/* ── Trading bot · futuristic skin (v25.3) ─────────────────────────────
   Loaded on /bot only. Design and motion; nothing here changes a form,
   a field or what the bot does. */

@property --bx-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* page backdrop: soft glows and a slowly drifting grid */
body.botpage {
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(87,209,141,.09), transparent 60%),
    radial-gradient(760px 620px at -12% 35%, rgba(204,228,100,.06), transparent 62%),
    var(--bg);
}
body.botpage::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(rgba(204,228,100,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,228,100,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 18%, #000 15%, transparent 72%);
          mask-image: radial-gradient(ellipse at 50% 18%, #000 15%, transparent 72%);
  animation: bx-grid 4s linear infinite;
}

/* ── panels: dark glass, corner brackets, scan line ─────────────────── */
.bx .hud, .bx .botcard, .bx .folio, .bx .botstate {
  --hc: rgba(204,228,100,.6);
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(204,228,100,.13);
  border-radius: 6px;
  background:
    linear-gradient(var(--hc),var(--hc)) left top / 16px 1px no-repeat,
    linear-gradient(var(--hc),var(--hc)) left top / 1px 16px no-repeat,
    linear-gradient(var(--hc),var(--hc)) right top / 16px 1px no-repeat,
    linear-gradient(var(--hc),var(--hc)) right top / 1px 16px no-repeat,
    linear-gradient(var(--hc),var(--hc)) left bottom / 16px 1px no-repeat,
    linear-gradient(var(--hc),var(--hc)) left bottom / 1px 16px no-repeat,
    linear-gradient(var(--hc),var(--hc)) right bottom / 16px 1px no-repeat,
    linear-gradient(var(--hc),var(--hc)) right bottom / 1px 16px no-repeat,
    radial-gradient(120% 80% at 100% 0%, rgba(204,228,100,.06), transparent 55%),
    linear-gradient(160deg, rgba(16,27,23,.94), rgba(7,11,9,.97));
  box-shadow: 0 22px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.03);
}
.bx .hud::after, .bx .botcard::after, .bx .folio::after, .bx .deploy-console::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, transparent 42%, rgba(204,228,100,.07) 50%, transparent 58%) 0 0 / 100% 300% no-repeat;
  animation: bx-scan 8s linear infinite;
}
.bx .botcard:nth-of-type(2n)::after { animation-delay: -3s; }
.bx .botcard, .bx .folio, .bx .hud { margin-block-end: 1.4rem; }

/* entrance */
.bx-js .rv { opacity: 0; transform: translateY(18px); }
.bx-js .rv.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }

/* headings: mono caps with a glowing square */
.bx .botcard h3, .bx .folio-h h3 {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .84rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--lime);
}
.bx .botcard h3::before, .bx .folio-h h3::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; background: var(--lime);
  box-shadow: 0 0 10px var(--lime); animation: bx-blip 2.4s ease-in-out infinite;
}
.bx .botcard:has(.botlog-stats) .botlog-h h3::after {
  content: "▍"; color: var(--lime); margin-inline-start: -.3rem; animation: bx-blink 1s steps(1) infinite;
}
[dir="rtl"] .bx .botcard h3, [dir="rtl"] .bx .folio-h h3, [dir="rtl"] .bx .hud-title h2,
[dir="rtl"] .bx .hud-sub, [dir="rtl"] .bx .hud-meta span, [dir="rtl"] .bx .botlog-stats span { letter-spacing: 0; }

/* ── deploy console: orbiting neon border ───────────────────────────── */
.bx .deploy-console {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid transparent; border-radius: 8px;
  background:
    linear-gradient(rgba(204,228,100,.045) 1px, transparent 1px) padding-box 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(204,228,100,.045) 1px, transparent 1px) padding-box 0 0 / 28px 28px,
    radial-gradient(70% 120% at 0% 0%, rgba(87,209,141,.14), transparent 60%) padding-box,
    linear-gradient(135deg, #0f1c16, #070b09 70%) padding-box,
    conic-gradient(from var(--bx-a), rgba(204,228,100,.12) 0 62%, var(--lime) 76%, #57d18d 84%, rgba(204,228,100,.12) 96%) border-box;
  box-shadow: 0 0 40px rgba(204,228,100,.07), 0 24px 60px rgba(0,0,0,.5);
  animation: bx-spin 7s linear infinite;
}
.bx .deploy-console h2 {
  background: linear-gradient(90deg, #eef3e6 0%, #cce464 30%, #57d18d 50%, #eef3e6 70%, #eef3e6 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: bx-shimmer 9s linear infinite;
}
.bx .deploy-console .kicker { font-family: var(--mono); letter-spacing: .18em; }
.bx .deploy-actions .btn-primary:not([disabled]) { animation: bx-glow 2.8s ease-in-out infinite; }

/* status bar */
.bx .botstate { padding: .9rem 1.15rem; margin-block: 0 1.4rem; }
.bx .botstate-k { font-family: var(--mono); letter-spacing: .16em; }
.bx .botstate-l b { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); }
.bx .botstate-l b::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--up);
  animation: bx-led 1.8s ease-out infinite;
}
.bx .botstate-l b.muted::before { background: var(--muted); animation: none; }
.bx .botpill { font-family: var(--mono); letter-spacing: .06em; }
.bx .botpill.live { animation: bx-led-red 1.8s ease-out infinite; }
.bx .botpill.dry  { animation: bx-led 2.2s ease-out infinite; }
.bx .botarmed { border-radius: 6px; background: rgba(232,184,75,.08); box-shadow: inset 3px 0 0 var(--gold); }

/* ── the flow panel ─────────────────────────────────────────────────── */
.bx .hud { padding: clamp(1rem, 2.4vw, 1.6rem); }
.hud-h { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.hud-title { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.hud-title h2 { margin: 0; font: 800 .95rem/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--lime); text-shadow: 0 0 16px rgba(204,228,100,.35); }
.hud-led { width: 9px; height: 9px; border-radius: 50%; background: var(--up); animation: bx-led 1.6s ease-out infinite; }
.hud-mk { font: 700 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--txt-2); border: 1px solid var(--line-2); padding: .3rem .5rem; border-radius: 3px; }
.hud-meta { display: flex; gap: .45rem; flex-wrap: wrap; }
.hud-meta span, .bx .botlog-stats span {
  font: 700 .64rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--txt-2);
  background: rgba(5,9,7,.75); border: 1px solid rgba(204,228,100,.18); padding: .38rem .6rem; border-radius: 3px;
}
.hud-x { margin: .6rem 0 1.1rem; color: var(--muted); font-size: .86rem; }

.hud-grid { display: grid; grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); gap: 1.1rem; }
.hud-coins { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.hud-sub { font: 700 .64rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hud-list {
  list-style: none; margin: 0; padding: 0 .25rem 0 0; display: flex; flex-direction: column; gap: .5rem;
  max-height: 520px; overflow: auto; scrollbar-width: thin; scrollbar-color: #3b4a2e transparent;
}
.hud-coin {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: .6rem;
  padding: .6rem .75rem; border-radius: 10px;
  background: linear-gradient(180deg, #2b3529, #212a21);
  border: 1.5px solid #b5ca5b;
  box-shadow: 0 0 0 3px rgba(5,9,7,.9), 0 0 16px rgba(204,228,100,.12);
  font: 700 .8rem/1 var(--mono); letter-spacing: .03em;
  animation: bx-in .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms);
}
.hud-coin::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(204,228,100,.14) 50%, transparent 70%) -150% 0 / 60% 100% no-repeat;
  animation: bx-sheen 4.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 180ms);
}
.hud-chk, .bx .botpick input:checked {
  background: #cce464 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.4 8.4l3 3 6.2-7' fill='none' stroke='%23142008' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hud-chk { flex: 0 0 auto; width: 17px; height: 17px; border-radius: 4px; box-shadow: 0 0 9px rgba(204,228,100,.5); }
.hud-sym { flex: 1 1 auto; min-width: 0; color: #dfe6d3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; unicode-bidi: isolate; text-align: start; }
.hud-coin b { font-size: .78rem; direction: ltr; unicode-bidi: isolate; }
.hud .up { color: var(--up); } .hud .down { color: var(--down); } .hud .flat { color: var(--muted); }
.hud-empty { padding: .9rem; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.hud-edit { font: 700 .72rem/1 var(--mono); letter-spacing: .06em; color: var(--lime); text-decoration: none; padding: .3rem 0; }
.hud-edit:hover { text-shadow: 0 0 10px rgba(204,228,100,.6); }

.hud-stage { min-width: 0; display: flex; flex-direction: column; gap: .75rem; }
.hud-plt { display: flex; gap: .5rem; overflow-x: auto; padding-block-end: .25rem; scrollbar-width: thin; scrollbar-color: #3b4a2e transparent; }
.hud-plt > :first-child { margin-inline-start: auto; }
.hud-tile {
  --tc: var(--muted);
  position: relative; overflow: hidden; flex: 0 0 auto; min-width: 86px;
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  padding: .55rem .75rem .5rem; border-radius: 5px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 20%, #0b120e), #0a0f0c);
  border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent);
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--tc) 10%, transparent);
  font-family: var(--mono); direction: ltr;
  animation: bx-in .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms);
}
.hud-tile.t-up { --tc: var(--up); } .hud-tile.t-down { --tc: var(--down); }
.hud-tile::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--tc), transparent);
  animation: bx-slide 2.8s linear infinite; animation-delay: calc(var(--i, 0) * -310ms);
}
.hud-tile span { font-size: .7rem; font-weight: 800; color: #e7eddd; letter-spacing: .06em; }
.hud-tile b { font-size: .95rem; font-weight: 800; color: var(--tc); text-shadow: 0 0 12px color-mix(in srgb, var(--tc) 50%, transparent); }
.hud-tile small { font-size: .56rem; color: var(--muted); letter-spacing: .16em; }

.hud-canvas-wrap {
  position: relative; height: clamp(360px, 42vw, 500px); border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(204,228,100,.1);
  background:
    radial-gradient(circle at 50% 50%, rgba(204,228,100,.07), transparent 58%),
    linear-gradient(rgba(204,228,100,.03) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(204,228,100,.03) 1px, transparent 1px) 0 0 / 32px 32px,
    rgba(3,6,5,.6);
}
.hud-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud-bal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 108px; display: flex; flex-direction: column; align-items: center; gap: .12rem;
  text-align: center; pointer-events: none;
}
.hud-bal-k { font: 700 .54rem/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--txt-2); }
.hud-bal b { font: 800 1rem/1.15 var(--mono); color: #f3f8ea; text-shadow: 0 0 14px rgba(204,228,100,.5); direction: ltr; }
.hud-bal small { font: 700 .54rem/1 var(--mono); letter-spacing: .12em; color: var(--muted); }
.hud-bal em { font: 800 .8rem/1.2 var(--mono); font-style: normal; direction: ltr; margin-top: .1rem; }

/* ── your account ───────────────────────────────────────────────────── */
.bx .folio { padding: clamp(1rem, 2.4vw, 1.5rem); }
.bx .folio-tot { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.bx .folio-tot b { font-size: 1.55rem; letter-spacing: 0; text-shadow: 0 0 18px rgba(204,228,100,.4); }
.bx .folio-stack { display: flex; gap: 2px; height: 8px; margin: 1rem 0 1.1rem; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.04); }
.bx .folio-stack i {
  display: block; width: var(--w); min-width: 3px; background: var(--c, var(--lime));
  box-shadow: 0 0 12px var(--c, var(--lime));
  transform-origin: left center; animation: bx-grow 1.1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms);
}
[dir="rtl"] .bx .folio-stack i { transform-origin: right center; }
.bx .folio-stack i:nth-child(8n+1) { --c: #cce464; } .bx .folio-stack i:nth-child(8n+2) { --c: #57d18d; }
.bx .folio-stack i:nth-child(8n+3) { --c: #4cc3d9; } .bx .folio-stack i:nth-child(8n+4) { --c: #e8b84b; }
.bx .folio-stack i:nth-child(8n+5) { --c: #8f7cf6; } .bx .folio-stack i:nth-child(8n+6) { --c: #4c8df6; }
.bx .folio-stack i:nth-child(8n+7) { --c: #e5726a; } .bx .folio-stack i:nth-child(8n+8) { --c: #d98ee0; }
.bx .folio-t { font-family: var(--mono); }
.bx .folio-t th { font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); border-bottom: 1px solid rgba(204,228,100,.18); }
.bx .folio-t td { border-bottom: 1px solid rgba(204,228,100,.07); padding-block: .55rem; transition: background .2s; }
.bx .folio-t tbody tr:hover td { background: rgba(204,228,100,.05); }
.bx .folio-t tbody tr:hover .folio-ico { box-shadow: 0 0 14px rgba(204,228,100,.55); }
.bx .folio-ico {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-inline-end: .55rem; vertical-align: middle;
  border-radius: 50%; border: 1px solid rgba(204,228,100,.45); color: var(--lime); font-size: .66rem; font-weight: 800;
  background: radial-gradient(circle at 30% 30%, rgba(204,228,100,.35), rgba(204,228,100,.05));
  transition: box-shadow .2s;
}
.bx .folio-val { position: relative; isolation: isolate; }
.bx .folio-bar {
  position: absolute; z-index: -1; inset-block: 22%; inset-inline-end: 0; width: var(--w); max-width: 100%;
  background: linear-gradient(90deg, transparent, rgba(204,228,100,.2));
  border-inline-end: 2px solid rgba(204,228,100,.7);
  transform-origin: right center; animation: bx-grow 1.2s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms + .2s);
}
[dir="rtl"] .bx .folio-bar { transform-origin: left center; background: linear-gradient(270deg, transparent, rgba(204,228,100,.2)); }

/* ── connection & allocation ────────────────────────────────────────── */
.bx .botcard { padding: clamp(1.1rem, 2.6vw, 1.8rem); }
.bx .botcard .notice { border-radius: 6px; background: rgba(5,9,7,.6); border-color: rgba(232,184,75,.28); }
.bx .howto { border-radius: 6px; background: rgba(5,9,7,.5); }
.bx .botform input:not([type="checkbox"]):not([type="radio"]), .bx .botform select {
  background: rgba(4,8,6,.8); border-color: rgba(204,228,100,.16); border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
}
.bx .botform input:not([type="checkbox"]):not([type="radio"]):focus, .bx .botform select:focus {
  border-color: var(--lime); outline: none;
  box-shadow: 0 0 0 3px rgba(204,228,100,.12), 0 0 22px rgba(204,228,100,.2);
}
.bx .field > label:not(.chk) { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--txt-2); }
[dir="rtl"] .bx .field > label:not(.chk) { letter-spacing: 0; }
.bx .eye { border-radius: 6px; background: rgba(4,8,6,.8); }
.bx .budgetmode .chk { border-radius: 8px; background: rgba(4,8,6,.6); transition: border-color .2s, box-shadow .2s; }
.bx .budgetmode .chk:has(input:checked) { box-shadow: 0 0 0 1px rgba(204,228,100,.3), 0 0 22px rgba(204,228,100,.12); }

/* ticker picks, styled like the flow list */
.bx .botpicks { gap: .6rem; }
.bx .botpick {
  position: relative; overflow: hidden; padding: .62rem .8rem; border-radius: 10px;
  background: #182019; border: 1.5px solid rgba(181,202,91,.25);
  box-shadow: 0 0 0 3px rgba(5,9,7,.85);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.bx .botpick:hover { border-color: rgba(204,228,100,.6); transform: translateY(-1px); }
.bx .botpick.on {
  background: linear-gradient(180deg, #2b3529, #212a21); border-color: #b5ca5b;
  box-shadow: 0 0 0 3px rgba(5,9,7,.9), 0 0 18px rgba(204,228,100,.15);
}
.bx .botpick.on::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(204,228,100,.13) 50%, transparent 70%) -150% 0 / 60% 100% no-repeat;
  animation: bx-sheen 5s ease-in-out infinite;
}
.bx .botpick input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: 0 0 auto; margin: 0; padding: 0;
  box-sizing: border-box; width: 18px; min-width: 18px; height: 18px; min-height: 0; border-radius: 4px; cursor: pointer;
  border: 1.5px solid rgba(204,228,100,.45); background-color: transparent;
  transition: background-color .15s, box-shadow .2s;
}
.bx .botpick input:checked { border-color: #cce464; box-shadow: 0 0 10px rgba(204,228,100,.5); }
.bx .botpick input:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.bx .botpick-sym { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: #dfe6d3; }
.bx .botpick-pl { font-family: var(--mono); font-weight: 800; direction: ltr; unicode-bidi: isolate; }

.bx .botsplit {
  position: relative; overflow: hidden; border-radius: 6px;
  background: rgba(4,8,6,.7); border: 1px solid rgba(204,228,100,.2);
}
.bx .botsplit::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  animation: bx-slide 3s linear infinite;
}
.bx .botsplit b { text-shadow: 0 0 14px rgba(204,228,100,.45); }
.bx .botswitches .chk { transition: color .2s, text-shadow .2s; }
.bx .botswitches .chk-live:has(input:checked) { color: var(--down); text-shadow: 0 0 12px rgba(229,114,106,.45); }

/* ── your bot record ────────────────────────────────────────────────── */
.bx .botprogress { border-radius: 6px; background: rgba(4,8,6,.6); border-color: rgba(204,228,100,.14); }
.bx .bp-k { font-family: var(--mono); letter-spacing: .12em; }
.bx .bp-v { font-family: var(--mono); text-shadow: 0 0 14px rgba(204,228,100,.25); }
.bx .bp-arrow {
  position: relative; width: 70px; height: 2px; font-size: 0; align-self: center;
  background: repeating-linear-gradient(90deg, var(--lime) 0 7px, transparent 7px 14px) 0 0 / 28px 2px;
  animation: bx-dash .9s linear infinite; filter: drop-shadow(0 0 4px rgba(204,228,100,.6));
}
.bx .bp-arrow::after {
  content: ""; position: absolute; inset-inline-end: -2px; top: -4px;
  border-block: 5px solid transparent; border-inline-start: 7px solid var(--lime);
}
[dir="rtl"] .bx .bp-arrow { animation-direction: reverse; }
.bx .botstats { border-color: rgba(204,228,100,.16); background: rgba(204,228,100,.1); }
.bx .botstats .stat {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(18,30,24,.96), rgba(8,13,11,.96));
}
.bx .botstats .stat::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: .7; animation: bx-slide 3.6s linear infinite;
}
.bx .botstats .stat:nth-child(2)::before { animation-delay: -.7s; }
.bx .botstats .stat:nth-child(3)::before { animation-delay: -1.4s; }
.bx .botstats .stat:nth-child(4)::before { animation-delay: -2.1s; }
.bx .botstats .stat:nth-child(5)::before { animation-delay: -2.8s; }
.bx .botstats .stat-v { text-shadow: 0 0 16px rgba(204,228,100,.35); }
.bx .botstats .stat-k { font-family: var(--mono); letter-spacing: .06em; }
.bx .chartbox { padding: .45rem; border-radius: 8px; border: 1px solid rgba(204,228,100,.16); box-shadow: inset 0 0 40px rgba(204,228,100,.05); }
.bx .live-pill { animation: bx-led-red 1.8s ease-out infinite; }

/* ── execution activity: a terminal ─────────────────────────────────── */
.bx .botlog { font-family: var(--mono); font-size: .8rem; }
.bx .botlog thead th { font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); border-bottom: 1px solid rgba(204,228,100,.2); }
.bx .botlog tbody tr { --ev: rgba(204,228,100,.25); }
.bx .botlog tbody tr.ev-buy  { --ev: var(--up); }
.bx .botlog tbody tr.ev-sell { --ev: var(--gold); }
.bx .botlog tbody tr.ev-error, .bx .botlog tbody tr.ev-stop { --ev: var(--down); }
.bx .botlog tbody tr.ev-start { --ev: var(--lime); }
.bx .botlog tbody td { border-bottom: 1px solid rgba(204,228,100,.06); transition: background .2s; }
.bx .botlog tbody td:first-child { box-shadow: inset 2px 0 0 var(--ev); }
[dir="rtl"] .bx .botlog tbody td:first-child { box-shadow: inset -2px 0 0 var(--ev); }
.bx .botlog tbody tr:hover td { background: color-mix(in srgb, var(--ev) 9%, transparent); }
.bx .botlog tbody tr.ev-error td { animation: bx-err 2.6s ease-in-out infinite; }
.bx .evtag {
  display: inline-block; padding: .18rem .45rem; border-radius: 3px;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.bx .botalert { border-radius: 6px; background: rgba(4,8,6,.55); }
.bx-js .rv .botlog tbody tr, .bx-js .rv .folio-t tbody tr { opacity: 0; }
.bx-js .rv.in .botlog tbody tr, .bx-js .rv.in .folio-t tbody tr {
  animation: bx-row .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms + .15s);
}

/* ── keyframes ──────────────────────────────────────────────────────── */
@keyframes bx-grid    { to { background-position: 44px 44px, 44px 44px; } }
@keyframes bx-scan    { from { background-position: 0 0%; } to { background-position: 0 100%; } }
@keyframes bx-spin    { to { --bx-a: 360deg; } }
@keyframes bx-shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes bx-glow    { 0%,100% { box-shadow: 0 0 0 rgba(204,228,100,0); } 50% { box-shadow: 0 0 24px rgba(204,228,100,.45); } }
@keyframes bx-led     { 0% { box-shadow: 0 0 0 0 rgba(87,209,141,.65); } 100% { box-shadow: 0 0 0 10px rgba(87,209,141,0); } }
@keyframes bx-led-red { 0% { box-shadow: 0 0 0 0 rgba(229,114,106,.55); } 100% { box-shadow: 0 0 0 10px rgba(229,114,106,0); } }
@keyframes bx-blip    { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes bx-blink   { 50% { opacity: 0; } }
@keyframes bx-in      { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bx-row     { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes bx-sheen   { 0%,55% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
@keyframes bx-slide   { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes bx-grow    { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bx-dash    { to { background-position: 28px 0; } }
@keyframes bx-err     { 0%,100% { background: transparent; } 50% { background: rgba(229,114,106,.08); } }

/* ── small screens ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hud-grid { grid-template-columns: 1fr; }
  .hud-list { flex-direction: row; overflow-x: auto; max-height: none; padding: 0 0 .3rem; }
  .hud-coin { flex: 0 0 auto; }
  .hud-plt > :first-child { margin-inline-start: 0; }
  .hud-canvas-wrap { height: 360px; }
}
@media (max-width: 560px) {
  .hud-canvas-wrap { height: 320px; }
  .bx .bp-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.botpage::before, .bx *, .bx *::before, .bx *::after, .bx::after { animation: none !important; transition: none !important; }
  .bx-js .rv, .bx-js .rv .botlog tbody tr, .bx-js .rv .folio-t tbody tr { opacity: 1; transform: none; }
}

/* ── v25.4 ─────────────────────────────────────────────────────────── */
/* room for bigger coins and their status tags */
.hud-canvas-wrap { height: clamp(430px, 48vw, 590px); }
@media (max-width: 860px) { .hud-canvas-wrap { height: 430px; } }
@media (max-width: 560px) { .hud-canvas-wrap { height: 390px; } }

/* the progress arrow runs the whole gap from "Started with" to "Worth now" */
.bx .botprogress { grid-template-columns: auto minmax(70px, 1fr) auto minmax(0, 1.25fr); column-gap: 1.2rem; }
.bx .bp-arrow { width: 100%; }
@media (max-width: 720px) { .bx .botprogress { grid-template-columns: 1fr; } }

/* execution activity: ten rows, scroll for more */
.bx .botlog-wrap {
  max-height: 34rem; overflow-y: auto; border: 1px solid rgba(204,228,100,.1); border-radius: 6px;
  scrollbar-width: thin; scrollbar-color: #3b4a2e transparent;
}
.bx .botlog thead th { position: sticky; top: 0; z-index: 2; background: #0b120e; }
.bx .botlog-more {
  margin: .55rem 0 0; font: 700 .66rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); animation: bx-blip 2.2s ease-in-out infinite;
}
[dir="rtl"] .bx .botlog-more { letter-spacing: 0; }

/* disclaimer, now at the bottom of the page */
body.botpage .botdisc {
  margin: .5rem 0 2.8rem; text-align: start; border-radius: 6px; line-height: 1.7;
  background: linear-gradient(160deg, rgba(16,27,23,.92), rgba(7,11,9,.96));
  border: 1px solid rgba(204,228,100,.16); box-shadow: inset 3px 0 0 var(--lime);
}
[dir="rtl"] body.botpage .botdisc { box-shadow: inset -3px 0 0 var(--lime); }
body.botpage .botdisc strong { color: var(--lime); margin-inline-end: .35rem; }

/* ── v25.5 ─────────────────────────────────────────────────────────── */
/* each asset wears its colour from the portfolio line */
.bx .folio-ico {
  color: var(--c, var(--lime));
  border-color: color-mix(in srgb, var(--c, var(--lime)) 65%, transparent);
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c, var(--lime)) 45%, transparent), color-mix(in srgb, var(--c, var(--lime)) 8%, transparent));
  box-shadow: 0 0 10px color-mix(in srgb, var(--c, var(--lime)) 25%, transparent);
}
.bx .folio-t tbody tr:hover .folio-ico { box-shadow: 0 0 16px color-mix(in srgb, var(--c, var(--lime)) 60%, transparent); }
.bx .folio-bar {
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c, var(--lime)) 24%, transparent));
  border-inline-end-color: var(--c, var(--lime));
}
[dir="rtl"] .bx .folio-bar { background: linear-gradient(270deg, transparent, color-mix(in srgb, var(--c, var(--lime)) 24%, transparent)); }

/* phones and touch screens: keep the motion that matters, drop the
   full-screen repaint effects that made the flow panel stutter */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  body.botpage::before { animation: none; }
  .bx .hud::after, .bx .botcard::after, .bx .folio::after, .bx .deploy-console::after { display: none; }
  .bx .deploy-console, .bx .deploy-console h2 { animation: none; }
  .hud-coin::after, .bx .botpick.on::after { display: none; }
  .bx-js .rv { transform: none; }
  .bx .hud, .bx .botcard, .bx .folio { box-shadow: 0 10px 24px rgba(0,0,0,.35); }
  .hud-canvas-wrap { touch-action: pan-y; }
}
@media (max-width: 560px) { .hud-canvas-wrap { height: 480px; } }
@media (max-width: 520px) {
  .hud-bal { width: 86px; }
  .hud-bal b { font-size: .86rem; }
  .hud-bal em { font-size: .7rem; }
  .hud-bal-k, .hud-bal small { font-size: .48rem; }
  .bx .folio-ico { width: 20px; height: 20px; margin-inline-end: .35rem; }
  .bx .folio-tot b { font-size: 1.25rem; }
}
/* v34.23: on a phone the account table becomes a two-line card per asset,
   so nothing is ever cut off (four columns never fitted; the value column
   was hidden past the edge, most visibly in the home-screen app):
     ZEC  [BUY 3/3]                 7.24 USDT
                         Available 0.0544                                  */
@media (max-width: 640px) {
  .bx .folio-t, .bx .folio-t tbody { display: block; min-width: 0; width: 100%; }
  .bx .folio-t thead { display: none; }
  .bx .folio-t tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a v" "s f";
    align-items: center; gap: .15rem .7rem; padding: .6rem .2rem;
    border-bottom: 1px solid rgba(204,228,100,.07);
  }
  .bx .folio-t tbody td { display: block; border: 0; padding: 0; min-width: 0; }
  .bx .folio-t tbody td:nth-child(1) { grid-area: a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bx .folio-t tbody td:nth-child(2) { grid-area: s; }
  .bx .folio-t tbody td.folio-free { grid-area: f; font-size: .72rem; color: var(--muted); text-align: end; white-space: nowrap; }
  .bx .folio-t tbody td.folio-free::before { content: attr(data-k) " "; font-family: var(--sans); }
  .bx .folio-t tbody td.folio-val { grid-area: v; font-size: .95rem; font-weight: 700; text-align: end; white-space: nowrap; }
  .bx .folio-t tbody td.folio-val::after { content: " " attr(data-k); font-size: .66rem; font-weight: 400; color: var(--muted); }
  .bx .folio-t tbody td.folio-sig:empty { display: none; }
  .bx .folio-bar { inset-inline-start: auto; }
}

/* ── v25.6 ─────────────────────────────────────────────────────────── */
/* pick a coin: its slice of the portfolio line shines 25% brighter */
.bx .folio-stack { overflow: visible; }
.bx .folio-stack i { position: relative; transition: opacity .3s ease, filter .3s ease, box-shadow .3s ease; }
.bx .folio-stack i:first-child { border-start-start-radius: 99px; border-end-start-radius: 99px; }
.bx .folio-stack i:last-child  { border-start-end-radius: 99px; border-end-end-radius: 99px; }
.bx .folio-stack.has-hot i { opacity: .5; }
.bx .folio-stack.has-hot i.hot {
  opacity: 1; z-index: 1; filter: brightness(1.25) saturate(1.15);
  box-shadow: 0 0 10px var(--c), 0 0 22px var(--c);
}
.bx .folio-stack i.hot::after {
  content: ""; position: absolute; inset: -4px 0; border-radius: 99px; pointer-events: none;
  background: var(--c); filter: blur(5px); animation: bx-seg 1.6s ease-in-out infinite;
}
.bx .folio-t tbody tr[data-fi] { cursor: pointer; }
.bx .folio-t tbody tr[data-fi]:focus-visible { outline: 1px solid rgba(204,228,100,.55); outline-offset: -1px; }
.bx .folio-t tbody tr.picked td { background: rgba(204,228,100,.07); }
.bx .folio-t tbody tr.picked .folio-ico { box-shadow: 0 0 16px color-mix(in srgb, var(--c, var(--lime)) 70%, transparent); }
@keyframes bx-seg { 0%, 100% { opacity: .15; } 50% { opacity: .55; } }

/* heartbeat arrow: started with → worth now */
.bx .bp-arrow.bp-ecg {
  --ecg: var(--lime); --ecg-dy: 0px;
  display: flex; align-items: center; gap: .1rem; width: 100%; height: 50px;
  background: none; animation: none; filter: none; font-size: 0;
}
.bx .bp-arrow.bp-ecg.up   { --ecg: var(--up);   --ecg-dy: -3px; }
.bx .bp-arrow.bp-ecg.down { --ecg: var(--down); --ecg-dy: 3px; }
.bx .bp-arrow.bp-ecg::after { content: none; }
.bp-ecg .ecg-line { flex: 1 1 auto; min-width: 0; height: 100%; overflow: visible; }
.bp-ecg path { fill: none; stroke: var(--ecg); stroke-linecap: round; stroke-linejoin: round; }
.bp-ecg .ecg-line path { vector-effect: non-scaling-stroke; }
.bp-ecg .ecg-base  { stroke-width: 1.6; opacity: .25; }
.bp-ecg .ecg-tail  { stroke-width: 3.2; stroke-dasharray: 24 200; filter: blur(1.6px); opacity: 0;
                     animation: bx-ecg-tail 2.4s cubic-bezier(.45,.05,.55,.95) infinite; }
.bp-ecg .ecg-trace { stroke-width: 2.4; stroke-dasharray: 9 200; filter: drop-shadow(0 0 4px var(--ecg)); opacity: 0;
                     animation: bx-ecg 2.4s cubic-bezier(.45,.05,.55,.95) infinite; }
.bp-ecg .ecg-head { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; }
.bp-ecg .ecg-head svg { width: 26px; height: 26px; overflow: visible; filter: drop-shadow(0 0 6px var(--ecg));
                        animation: bx-ecg-beat 2.4s ease-in-out infinite; }
.bp-ecg .ecg-head path { stroke-width: 2.6; }
.bp-ecg .ecg-head::before {
  content: ""; position: absolute; inset: 1px; border-radius: 50%; border: 1.5px solid var(--ecg);
  opacity: 0; animation: bx-ecg-ring 2.4s ease-out infinite;
}
[dir="rtl"] .bp-ecg .ecg-line { transform: scaleX(-1); }
@keyframes bx-ecg      { 0% { stroke-dashoffset: 9;  opacity: 0; } 8% { opacity: 1; } 86% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes bx-ecg-tail { 0% { stroke-dashoffset: 24; opacity: 0; } 10% { opacity: .5; } 84% { opacity: .5; } 100% { stroke-dashoffset: -85; opacity: 0; } }
@keyframes bx-ecg-beat {
  0%, 76%, 100% { transform: translateY(0) scale(1); opacity: .8; }
  86% { transform: translateY(var(--ecg-dy)) scale(1.22); opacity: 1; }
  93% { transform: translateY(0) scale(.95); opacity: .9; }
}
@keyframes bx-ecg-ring { 0%, 80% { transform: scale(.6); opacity: 0; } 87% { opacity: .75; } 100% { transform: scale(1.8); opacity: 0; } }
/* on phones the cells stack; the heartbeat runs between them */
@media (max-width: 720px) { .bx .bp-arrow.bp-ecg { display: flex; height: 42px; } }

/* ticked tickers keep their lime box (the size fix above reset its fill) */
.bx .botpick input[type="checkbox"]:checked { background-color: #cce464; border-color: #cce464; }

/* ── v25.7 ─────────────────────────────────────────────────────────── */
/* selected tickers: names only, a narrower column */
.hud-grid { grid-template-columns: minmax(138px, 168px) minmax(0, 1fr); }
.hud-coin { padding: .55rem .65rem; gap: .5rem; cursor: pointer; transition: border-color .25s, box-shadow .25s, filter .25s; }
.hud-coin:hover, .hud-coin:focus-visible { outline: none; border-color: #dcef8a; box-shadow: 0 0 0 3px rgba(5,9,7,.9), 0 0 20px rgba(204,228,100,.28); }
.hud-coin.picked { border-color: #e6f79c; filter: brightness(1.12); box-shadow: 0 0 0 3px rgba(5,9,7,.9), 0 0 26px rgba(204,228,100,.4); }
@media (max-width: 860px) { .hud-grid { grid-template-columns: 1fr; } }

/* ── v26.0 ─────────────────────────────────────────────────────────── */
/* bigger coins need a little more canvas to sit in */
.hud-canvas-wrap { height: clamp(470px, 52vw, 640px); }
@media (max-width: 860px) { .hud-canvas-wrap { height: 470px; } }
@media (max-width: 560px) { .hud-canvas-wrap { height: 500px; } }

/* ── v26.2 ─────────────────────────────────────────────────────────── */
/* what the model says about each coin, beside the balance it holds */
.bx .folio-sig { white-space: nowrap; }
.bx .sigtag {
  display: inline-block; padding: .18rem .5rem; border-radius: 3px;
  font: 700 .66rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  background: color-mix(in srgb, currentColor 12%, transparent);
}
[dir="rtl"] .bx .sigtag { letter-spacing: 0; }
.bx .sig-buy    { color: var(--up); }
.bx .sig-sell   { color: var(--gold); }
.bx .sig-closed { color: var(--txt-2); }
.bx .sig-none   { color: var(--muted); }
@media (max-width: 520px) { .bx .sigtag { font-size: .6rem; padding: .14rem .35rem; } }

/* ── v26.3 ─────────────────────────────────────────────────────────── */
/* a picked ticker with nothing held: present, but plainly empty */
.bx .folio-t tbody tr.folio-zero td { color: var(--muted); }
.bx .folio-t tbody tr.folio-zero .folio-ico { opacity: .45; }
.bx .folio-t tbody tr.folio-zero b { font-weight: 600; }

/* ── v27.3 ─────────────────────────────────────────────────────────── */
/* pause sells everything now, so the button reads as consequential */
.btn-danger {
  border: 1px solid rgba(229,114,106,.55); background: rgba(229,114,106,.12);
  color: #ffb3ad;
}
.btn-danger:hover { background: rgba(229,114,106,.22); border-color: var(--down); color: #fff; }
.bx .deploy-actions .btn-danger { box-shadow: 0 0 18px rgba(229,114,106,.15); }