/* HOOKDROID — dashboard (/app) + studio (/studio) + connect/verify modals */
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.note-sm { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; line-height: 1.45; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--blue-600); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.card h2 { color: var(--ink); }

/* modals */
.modal__err { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(200, 48, 42, .1); color: var(--red-ink) !important; font-size: 13.5px !important; }
.modal__err a { color: var(--red-ink); font-weight: 600; }
.modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.sigmsg { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; max-height: 190px; overflow: auto; }
.vstep-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--navy); color: var(--gold); margin-bottom: 14px; }
.vstep-ic svg { width: 26px; height: 26px; }
.wl.is-busy { opacity: .7; pointer-events: none; }

/* ---------- dashboard ---------- */
.dash-head { align-items: center; }
.acct { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acct__on { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acct__chip { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 8px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); color: #fff; cursor: pointer; text-align: left; }
.acct__chip:hover { background: rgba(255, 255, 255, .16); }
.acct__chip img { width: 30px; height: 30px; border-radius: 8px; background: #fff; }
.acct__chip b { display: block; font-size: 13.5px; font-weight: 600; }
.acct__chip small { display: block; font-size: 11.5px; color: var(--on-3); }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: var(--r-lg); background: var(--gold); color: var(--navy-900); font-size: 14.5px; }
.gate { display: grid; gap: 28px; padding: 36px 24px; text-align: center; }
.gate__main { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gate__mark { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 20px 40px -18px rgba(10, 11, 7, .6); }
.gate h2 { font-size: 34px; font-weight: 650; letter-spacing: -.04em; }
.gate p { max-width: 560px; color: var(--ink-2); }
.gate__wallets { display: flex; gap: 10px; margin-top: 6px; }
.gate__wallets img { width: 34px; height: 34px; border-radius: 9px; }
.gate__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); counter-reset: g; text-align: left; }
.gate__steps li { counter-increment: g; position: relative; padding: 16px 16px 16px 58px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); display: flex; flex-direction: column; gap: 2px; }
.gate__steps li::before { content: counter(g); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--gold); font-weight: 700; color: var(--navy-900); }
.gate__steps span { font-size: 13.5px; color: var(--ink-2); }
@media (min-width: 900px) { .gate { padding: 56px 48px; } .gate__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.dash { display: flex; flex-direction: column; gap: 16px; }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.steps3 li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--on-line); min-width: 0; transition: background-color .4s var(--ease); }
.steps3 li > span:last-child { min-width: 0; }
.steps3 b { display: block; font-size: 15px; }
.steps3 small { display: block; font-size: 12.5px; color: var(--on-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps3__n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-weight: 700; color: var(--on-2); transition: background-color .4s, color .4s; }
.steps3 li.ok { background: rgba(0, 200, 5, .1); box-shadow: inset 0 0 0 1px rgba(0, 200, 5, .35); }
.steps3 li.ok .steps3__n { background: var(--green); color: #0A0B07; font-size: 0; }
.steps3 li.ok .steps3__n::after { content: '✓'; font-size: 16px; }
@media (min-width: 760px) { .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.sum { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.sum > * { min-width: 0; }
@media (min-width: 640px) { .sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sum { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sumc { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.sumc small { font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.sumc > b { font-size: 24px; font-weight: 650; letter-spacing: -.03em; overflow-wrap: anywhere; }
.sumc > b.mono { font-size: 13.5px; font-weight: 500; letter-spacing: 0; line-height: 1.45; }
.sumc > span { font-size: 13px; color: var(--ink-2); }
.sumc__row { display: flex; gap: 14px; align-items: center; }
.sumc--tier { background: linear-gradient(150deg, var(--gold-300), var(--gold)); }
.tierbar { display: block; height: 6px; border-radius: 6px; background: rgba(10, 11, 7, .14); overflow: hidden; margin-top: 4px; }
.tierbar i { display: block; height: 100%; background: var(--navy); border-radius: 6px; transition: width .8s var(--ease); }

.verify-card { display: grid; gap: 18px; align-items: center; grid-template-columns: minmax(0, 1fr); padding: 24px; border: 2px dashed rgba(10, 11, 7, .2); transition: background-color .4s, border-color .4s; }
.verify-card__ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.verify-card__ic svg { width: 28px; height: 28px; }
.verify-card h2 { font-size: 24px; font-weight: 650; letter-spacing: -.03em; }
.verify-card p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; max-width: 760px; }
.verify-card.is-ok { border: 2px solid rgba(30, 122, 18, .4); background: #E6F5DF; }
.verify-card.is-ok .verify-card__ic { background: var(--green-ink); color: #fff; }
.verify-card.is-ok h2 { color: var(--green-ink); }
@media (min-width: 900px) { .verify-card { grid-template-columns: auto minmax(0, 1fr) auto; } }

.dash__grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .dash__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }
.mydroid { padding: 16px 0; border-bottom: 1px solid var(--ink-line); display: flex; flex-direction: column; gap: 10px; }
.mydroid:last-child { border-bottom: 0; }
.mydroid.is-paused { opacity: .75; }
.mydroid__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mydroid__top a { color: var(--ink); text-decoration: none; font-size: 16px; }
.mydroid__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-size: 12px; color: var(--ink-3); }
.mydroid__stats b { display: block; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mydroid__stats b.up { color: var(--green-ink); } .mydroid__stats b.down { color: var(--red-ink); }
.mydroid__rules { display: flex; flex-wrap: wrap; gap: 5px; }
.mydroid__act { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 480px) { .mydroid__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lookup__form { display: flex; gap: 8px; margin-bottom: 8px; }
.lookup__form .input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13.5px; }

/* ---------- studio ---------- */
.studio { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .studio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .studio__side { position: sticky; top: 12px; } }
.studio__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.studio__form { padding: 8px 22px; }
.sgroup { padding: 20px 0; border-bottom: 1px solid var(--ink-line); }
.sgroup:last-child { border-bottom: 0; }
.sgroup__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sgroup__head h2 { font-size: 16px; font-weight: 650; }
.sgroup__head span { font-size: 12.5px; color: var(--ink-3); }
.field span small { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.presets { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .presets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.preset { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px; border-radius: 14px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); color: var(--ink); cursor: pointer; transition: box-shadow .2s, transform .3s var(--ease); min-width: 0; }
.preset:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(28, 33, 23, .4); }
.preset small { font-size: 11.5px; color: var(--blue-600); font-weight: 600; }
.preset b { font-size: 15px; }
.preset span { font-size: 12px; color: var(--ink-3); }
.preset span b { font-size: 12.5px; }
.preset span .up { color: var(--green-ink); } .preset span .down { color: var(--red-ink); }
.preset[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--navy), 0 10px 24px -14px rgba(10, 11, 7, .5); background: #F3F8E6; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); color: var(--ink); font-size: 13.5px; font-weight: 550; cursor: pointer; transition: background-color .2s, color .2s; }
.chips button[aria-checked="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.sliders { display: flex; flex-direction: column; gap: 18px; }
.slider { display: flex; flex-direction: column; gap: 6px; }
.slider__top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.slider__top b { font-weight: 600; }
.slider output { font-family: var(--mono); font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 8px; background: var(--navy); color: #fff; min-width: 54px; text-align: center; }
.slider small { font-size: 12px; color: var(--ink-3); }
.slider input[type=range] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.slider input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--navy) var(--p), rgba(10, 11, 7, .14) var(--p)); }
.slider input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--navy) var(--p), rgba(10, 11, 7, .14) var(--p)); }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--gold); border: 3px solid var(--navy); box-shadow: 0 4px 10px rgba(10, 11, 7, .3); transition: transform .2s; }
.slider input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid var(--navy); }
.slider input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.toggle { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__ui { flex: none; width: 44px; height: 26px; border-radius: 999px; background: rgba(10, 11, 7, .2); position: relative; transition: background-color .25s; margin-top: 1px; }
.toggle__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .3s var(--spring); }
.toggle input:checked + .toggle__ui { background: var(--navy); }
.toggle input:checked + .toggle__ui::after { transform: translateX(18px); background: var(--gold); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--gold); outline-offset: 2px; }
.toggle b { display: block; font-size: 14px; }
.toggle small { display: block; font-size: 12px; color: var(--ink-3); }

.result { position: relative; }
.result__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.result__head small { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.result.is-dirty #btOut { opacity: .45; transition: opacity .3s; }
.result.is-dirty .result__head .btn { box-shadow: 0 0 0 4px rgba(0, 200, 5, .5); }
.bt-big { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.bt-big > b { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.bt-big > b.up { color: var(--green-ink); } .bt-big > b.down { color: var(--red-ink); } .bt-big > b.flat { color: var(--ink); }
.bt-big span { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.bt-big small { font-size: 12px; color: var(--ink-3); }
.bt-big strong { font-size: 22px; font-weight: 650; }
.bt-big strong.up { color: var(--green-ink); } .bt-big strong.down { color: var(--red-ink); }
#btChart { margin-top: 8px; }
.bt-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
@media (min-width: 520px) { .bt-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bt-tiles > div { padding: 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bt-tiles small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.bt-tiles b { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.bt-tiles b.up { color: var(--green-ink); } .bt-tiles b.down { color: var(--red-ink); }
.bt-tiles span { font-size: 11.5px; color: var(--ink-3); }
.bt-sec { margin-top: 18px; }
.bt-sec h3 { font-size: 14px; font-weight: 650; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.bt-sec h3 small { font-weight: 500; color: var(--ink-3); }
.skbar { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); padding: 3px 0; }
.skbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skbar i { display: block; height: 8px; border-radius: 6px; background: linear-gradient(90deg, #2B6B0E var(--w), rgba(10, 11, 7, .08) var(--w)); }
.skbar b { font-variant-numeric: tabular-nums; font-size: 12.5px; }
.bt-trades { max-height: 280px; overflow-y: auto; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); padding: 2px 12px; }
.btt { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 60px 32px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ink-line); font-size: 12.5px; }
.btt:last-child { border-bottom: 0; }
.btt a { color: var(--ink); text-decoration: none; }
.btt__t { color: var(--ink-3); white-space: nowrap; }
.btt__x { color: var(--ink-2); white-space: nowrap; }
.btt > b:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.btt .up { color: var(--green-ink); } .btt .down { color: var(--red-ink); }
@media (max-width: 560px) { .btt { grid-template-columns: minmax(0, 1fr) auto 56px 28px; } .btt__t { display: none; } }
.launchbox { padding: 20px; background: var(--navy); color: #fff; }
.launchbox__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.launchbox b { font-size: 18px; display: block; color: #fff; }
.launchbox small { display: block; font-size: 13px; color: var(--on-2); margin-top: 2px; }
.launchbox .badge-ver { background: rgba(0, 200, 5, .18); color: var(--green); }
