/* © 2026 bladept696 — Centro de Comando / Hash Commander. Todos os direitos reservados.
   é proibido copiar, modificar, redistribuir ou publicar este ficheiro, no todo ou em parte, sem autorização escrita do autor.
   https://github.com/bladept696/centro-de-comando-v3 */
/* ---------- Aba Mercado de hashrate (mercado-hashrate.js) ---------- */
.hm{margin:16px 22px 22px;padding:18px 22px;border-radius:18px;background:linear-gradient(140deg,#0c1621,#08111a 60%,#0d1018);border:1px solid #ffb02033;box-shadow:inset 0 1px 0 #ffffff0d}
.hm-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.hm-top>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hm-top small{color:var(--muted);font-size:11px}
.hm-top code{font:600 12px monospace;color:#c9a6ff;background:#ffffff08;border:1px solid #ffffff14;border-radius:8px;padding:5px 9px}
.hm-relays{font-size:11px;color:#ffc04d;font-weight:700}
.hm-phase{margin:10px 0 12px;padding:9px 12px;border-radius:10px;background:#4fd6ff0d;border:1px solid #4fd6ff2e;font-size:12px;color:#bfe9f7}
.hm-tabs{display:flex;gap:8px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.hm-tabs button{font:inherit;font-size:13px;font-weight:700;padding:7px 14px;border-radius:10px;border:1px solid #ffffff14;background:#ffffff08;color:#9fb6bf;cursor:pointer}
.hm-tabs button.on{background:#ffb02022;color:#ffc04d;border-color:#ffb02055}
.hm-tabs .hm-ref{margin-left:auto;font-size:12px}
.hm-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,.7fr) minmax(0,1.2fr) minmax(0,.5fr) auto;gap:12px;align-items:center;padding:11px 6px;border-bottom:1px solid #ffffff0d;font-size:13px}
.hm-row.hm-hd{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700;padding-top:0}
.hm-row small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.hm-row.mine{background:#ffb0200a;border-radius:8px}
.hm-tag{font-style:normal;font-size:10px;font-weight:800;padding:1px 7px;border-radius:999px;background:#ffb020;color:#1a1200}
.hm-btn{font:inherit;font-size:12px;font-weight:800;padding:6px 13px;border-radius:9px;border:1px solid #4fd6ff;color:#4fd6ff;background:#4fd6ff14;cursor:pointer}
.hm-btn:disabled{opacity:.45;cursor:not-allowed}
.hm-btn.y{border-color:#ffb020;color:#1a1200;background:linear-gradient(180deg,#ffd27a,#ff9d1c);padding:9px 22px}
.hm-btn.red{border-color:#ff5d5d;color:#ff8080;background:#ff5d5d14}
.hm-empty{padding:18px 6px;color:var(--muted);font-size:13px}
.hm-sec{margin:0 0 16px}
.hm-sec,.hm-priv,.hm-go,.hm-live,.hm-msg{max-width:780px}
.hm-sec>b{display:block;font-size:13px;margin-bottom:8px;color:var(--text)}
.hm-mach{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 10px;margin:0 0 6px;border-radius:10px;background:#ffffff06;border:1px solid #ffffff10;cursor:pointer}
.hm-mach.off{opacity:.5;cursor:default}
/* a dashboard desenha as caixas como interruptores: aqui volta a ser uma caixa simples */
.hm-mach input{all:revert;width:16px;height:16px;margin:0;accent-color:#ffb020;cursor:pointer}
.hm-mach b{font-size:13px}.hm-mach small{display:block;font-size:11px;color:var(--muted)}
.hm-mach em{font-style:normal;font-weight:700;color:#21ffb0;font-size:13px}
.hm-in{display:flex;gap:8px;align-items:center;margin-bottom:6px}
.hm-in input{flex:1;min-width:0;font:inherit;font-size:13px;color:var(--text);background:var(--deep);border:1px solid var(--line-strong);border-radius:9px;padding:8px 11px}
.hm-in input[type=number]{flex:0 0 140px}
.hm-in input:focus{outline:none;border-color:#ffb020}
.hm-in span{font-size:12px;color:var(--muted)}
.hm-calc{display:block;font-size:12px;color:#ffc04d;font-weight:700;margin-top:2px}
.hm-hint{display:block;font-size:11px;color:var(--muted);margin-top:4px;line-height:1.45}
#hmLnMsg{font-size:12px}#hmLnMsg.ok{color:#21ffb0}#hmLnMsg.bad{color:#ff8080}
.hm-priv{font-size:11.5px;color:#9fb6bf;margin:4px 0 12px}
.hm-go{display:flex;justify-content:flex-end}
.hm-msg{margin:10px 0 0;padding:9px 12px;border-radius:10px;background:#ffffff08;border:1px solid #ffffff14;font-size:12.5px}
.hm-live{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 14px;padding:10px 12px;border-radius:12px;background:#21ffb00d;border:1px solid #21ffb040;font-size:12.5px;color:#c8ffe9}
/* carteira, janela Alugar, alugueres a decorrer e histórico (fase 2) */
.hm-wallet{margin:0 0 14px;padding:12px 14px;border-radius:12px;background:#ffffff06;border:1px solid #ffffff12;max-width:780px}
.hm-wallet>b{display:block;font-size:13px;margin-bottom:8px}
.hm-wallet.on{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#21ffb00d;border-color:#21ffb040;color:#c8ffe9;font-size:13px}
.hm-bad{display:block;font-size:12px;color:#ff8080;margin-top:4px}
.hm-err{font-size:12px;color:#ff8080;margin:6px 0}
.hm-rent{margin:4px 0 10px;padding:14px 16px;border-radius:14px;background:#ffb0200a;border:1px solid #ffb02044}
.hm-rent>b{display:block;margin-bottom:10px;font-size:14px}
.hm-rent{max-width:780px}
.hm-rgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-bottom:8px}
.hm-rgrid label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted)}
.hm-rgrid label.wide,.hm-rgrid .wide{grid-column:1/-1}
.hm-rgrid p{margin:0}
.hm-warn{font-size:12px;line-height:1.45;color:#ffd27a;background:#ffb02012;border:1px solid #ffb02044;border-radius:10px;padding:8px 10px}
.hm-rgrid input,.hm-rgrid select{font:inherit;font-size:13px;color:var(--text);background:var(--deep);border:1px solid var(--line-strong);border-radius:9px;padding:8px 10px}
.hm-ses{margin:0 0 12px;padding:12px 14px;border-radius:14px;background:#4fd6ff0a;border:1px solid #4fd6ff40}
.hm-ses.sell{background:#21ffb00a;border-color:#21ffb040}
.hm-ses-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.hm-ses-h span{flex:1;font-size:12px;color:var(--muted)}
.hm-ses small{font-size:11px;color:var(--muted)}
.hm-bar{height:7px;border-radius:4px;background:#ffffff10;overflow:hidden;margin:6px 0 4px}
.hm-bar i{display:block;height:100%;background:linear-gradient(90deg,#4fd6ff,#21ffb0);transition:width 1s}
.hm-stats{display:flex;gap:10px;margin:8px 0}
.hm-stats span{flex:1;max-width:200px;padding:8px 10px;border-radius:10px;background:#ffffff07;border:1px solid #ffffff10;font-size:11px;color:var(--muted)}
.hm-stats b{display:block;font-size:17px;color:#ffc04d;margin-top:2px}
.hm-log{font-size:11.5px;color:#9fb6bf}
.hm-log div{padding:3px 0;border-top:1px solid #ffffff08}
.hm-log em{font-style:normal;color:var(--muted);font-family:monospace;margin-right:6px}
.hm-hist{margin-top:16px;font-size:12px}
.hm-hist summary{cursor:pointer;color:var(--muted);font-weight:700}
.hm-hist>div{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:7px 0;border-bottom:1px solid #ffffff0a}
.hm-hist>div>small{grid-column:1/-1;color:var(--muted);font-size:11px}
/* pagamento em BTC on-chain */
.hm-pays{display:flex!important;gap:6px;flex-wrap:wrap;margin-top:4px!important}
.hm-pays i{font-style:normal;font-size:10.5px;font-weight:700;padding:1px 7px;border-radius:999px;background:#ffb02014;color:#ffc04d;border:1px solid #ffb02033}
.hm-pays i.oc,.hm-tag.oc{background:#f7931a;color:#1a0d00;border-color:#f7931a}
.hm-pays i.oc{background:#f7931a1f;color:#ffb35a;border-color:#f7931a55}
.hm-pm{display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;align-items:start;padding:10px 12px;margin:0 0 6px;border-radius:11px;background:#ffffff06;border:1px solid #ffffff12;cursor:pointer}
.hm-pm.on{border-color:#ffb02066;background:#ffb0200b}
.hm-pm input,.hm-radio input{all:revert;width:16px;height:16px;margin:2px 0 0;accent-color:#ffb020;cursor:pointer}
.hm-pm b{font-size:13.5px}.hm-pm small{display:block;font-size:11.5px;color:var(--muted);margin-top:2px;line-height:1.4}
.hm-pm-box{margin:0 0 10px 28px}
.hm-pm-box .hm-rgrid{margin-top:8px}
.hm-radio{display:flex;align-items:center;gap:8px;font-size:12.5px;margin:5px 0;cursor:pointer}
.hm-oc-script{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin:6px 0}
.hm-oc-script[hidden]{display:none}
.hm-oc-script select{font:inherit;font-size:12.5px;color:var(--text);background:var(--deep);border:1px solid var(--line-strong);border-radius:8px;padding:5px 8px}
#hmXpubMsg.ok{color:#21ffb0}
.hm-seg{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.hm-seg button{font:inherit;text-align:left;padding:10px 12px;border-radius:11px;border:1px solid #ffffff14;background:#ffffff06;font-size:12px;color:var(--muted);cursor:pointer;line-height:1.4}
.hm-seg button b{display:block;color:var(--text);font-size:14px;margin-bottom:3px}
.hm-seg button.on{border-color:#ffb020;background:#ffb02012}
.hm-seg button.oc.on{border-color:#f7931a;background:#f7931a14}.hm-seg button.oc.on b{color:#ffb35a}
.hm-sum{border-radius:11px;background:#ffffff06;border:1px solid #ffffff10;padding:2px 12px;margin:4px 0 8px}
.hm-sum div{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #ffffff0a;font-size:13px}
.hm-sum div:last-child{border:0;font-weight:700;color:#ffc04d;font-size:14px}.hm-sum span{color:var(--muted);font-weight:400}
.hm-oc-t{display:block;font-size:13px;margin:4px 0 6px}
.hm-qrw{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:4px 0 8px}
.hm-qr{width:150px;height:150px;flex:0 0 150px;background:#fff;border-radius:10px;overflow:hidden}
.hm-qr svg{width:100%;height:100%;display:block}
.hm-qrw>div:last-child{flex:1;min-width:200px}
.hm-oc-amt{font-size:24px;font-weight:700;color:#ffc04d}
.hm-addr{display:block;font:500 12px monospace;word-break:break-all;color:#cfe;margin:8px 0;line-height:1.5}
.hm-qrw a.hm-btn{text-decoration:none;display:inline-block}
.hm-steps{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.hm-st{display:flex;gap:10px;align-items:center;font-size:12.5px;padding:7px 11px;border-radius:10px;background:#ffffff05;border:1px solid #ffffff0d;color:var(--muted)}
.hm-st i{font-style:normal;width:18px;text-align:center}
.hm-st.ok{color:#c8ffe9;border-color:#21ffb033;background:#21ffb00a}.hm-st.now{border-color:#ffb02055;color:#ffd27a}
.hm-st em{margin-left:auto;font-style:normal;font-size:11px;color:var(--muted)}
@media (max-width:760px){.hm-seg{grid-template-columns:1fr}.hm-pm-box{margin-left:0}}
@media (max-width:760px){.hm-row{grid-template-columns:1fr 1fr;}.hm-row.hm-hd{display:none}}
.hm-pm-full{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:var(--muted,#9aa3b8);margin:4px 0 8px 4px}
.hm-det{margin:2px 0 8px}.hm-det summary{cursor:pointer;font-size:12px;color:var(--muted,#9aa3b8)}.hm-det .hm-top{margin-top:8px}
/* lista: filtros, estrelas e avaliações */
.hm-filt{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:0 0 10px;padding:10px 12px;border-radius:12px;background:#ffffff05;border:1px solid #ffffff10}
.hm-filt label{display:flex;flex-direction:column;gap:4px;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700}
.hm-filt select,.hm-filt input{font:inherit;font-size:12.5px;text-transform:none;letter-spacing:0;color:var(--text);background:var(--deep);border:1px solid var(--line-strong);border-radius:8px;padding:6px 9px}
.hm-filt input{width:86px}
.hm-filt select:focus,.hm-filt input:focus{outline:none;border-color:#ffb020}
.hm-fn{margin-left:auto;font-size:11.5px;color:var(--muted);padding-bottom:6px}
.hm-day{font-size:15px;color:#ffc04d}
.hm-stars{display:inline-flex;gap:1px;font-size:12px;line-height:1}
.hm-stars i{font-style:normal;color:#ffffff26}
.hm-stars i.on{color:#ffc04d}
.hm-stars i.half{background:linear-gradient(90deg,#ffc04d 50%,#ffffff26 50%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hm-rt{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:3px;padding:0;border:0;background:none;font:inherit;font-size:12px;color:var(--text);cursor:pointer;text-align:left}
.hm-rt small{display:inline!important;margin:0!important}
.hm-rt em{font-style:normal;font-size:10.5px;font-weight:700;padding:1px 7px;border-radius:999px;border:1px solid}
.hm-rt.new{display:block;cursor:default;font-size:11px;color:var(--muted)}
.hm-rt em.ok,.hm-dlt.ok,.hm-rv em.ok{color:#21ffb0;border-color:#21ffb055;background:#21ffb012}
.hm-rt em.mid,.hm-dlt.mid,.hm-rv em.mid{color:#ffc04d;border-color:#ffb02055;background:#ffb02012}
.hm-rt em.low,.hm-dlt.low,.hm-rv em.low{color:#ff8080;border-color:#ff5d5d55;background:#ff5d5d12}
.hm-dlt,.hm-rv em{font-style:normal;font-weight:700;padding:0 6px;border-radius:999px;border:1px solid}
.hm-rvs{margin:0 0 10px;padding:12px 14px;border-radius:12px;background:#ffffff05;border:1px solid #ffffff12;max-width:780px}
.hm-rvs>b{display:block;font-size:12px;margin-bottom:8px;color:var(--muted)}
.hm-rv{padding:7px 0;border-top:1px solid #ffffff0a;font-size:12px}
.hm-rv span{margin-left:8px;color:var(--muted);font-size:11px}
.hm-rv p{margin:4px 0 0;color:var(--text)}
/* entrega ao vivo (comprador) */
.hm-dl{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:4px 12px;margin:8px 0;padding:9px 12px;border-radius:10px;background:#ffffff07;border:1px solid #ffffff10;max-width:520px}
.hm-dl b{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.hm-dl strong{font-size:22px;line-height:1}
.hm-dl small{grid-column:1/-1;font-size:11px;color:var(--muted)}
.hm-dl svg{justify-self:end;overflow:visible}
.hm-dl polyline{fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.hm-dl circle{fill:currentColor}
.hm-dl line.ref{stroke:#ffffff2e;stroke-dasharray:3 3}
.hm-dl.ok{color:#21ffb0;border-color:#21ffb040}.hm-dl.mid{color:#ffc04d;border-color:#ffb02055}.hm-dl.low{color:#ff8080;border-color:#ff5d5d55}
.hm-dl.na{grid-template-columns:1fr}
/* avaliar um aluguer no histórico */
.hm-rbtn{padding:2px 9px;font-size:11px;margin-left:6px}
.hm-rate{grid-column:1/-1;margin:6px 0 2px;padding:10px 12px;border-radius:10px;background:#ffb0200a;border:1px solid #ffb02044;max-width:520px}
.hm-rate>b{display:block;font-size:12.5px;margin-bottom:6px}
.hm-pick{display:flex;gap:4px;margin-bottom:8px}
.hm-pick button{font:inherit;font-size:24px;line-height:1;padding:0 2px;border:0;background:none;color:#ffffff2e;cursor:pointer}
.hm-pick button.on,.hm-pick button:hover{color:#ffc04d}
@media (max-width:760px){.hm-fn{margin-left:0;width:100%}.hm-filt label{flex:1 1 40%}.hm-filt input{width:100%}}

/* fatura de cada aluguer */
.hm-hist>.hm-inv-bar{display:flex;justify-content:flex-end;padding:4px 0 8px;border:0}
.hm-inv{grid-column:1/-1;margin-top:8px;padding:12px 14px;border:1px solid var(--border,#333);border-radius:10px;background:rgba(255,255,255,.03);font-size:13px}
.hm-inv-h{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:8px}
.hm-inv-h b{display:block;font-size:15px}
.hm-inv-h small{opacity:.7}
.hm-inv-h span{border:1px solid #3fb950;color:#3fb950;padding:2px 10px;border-radius:6px;white-space:nowrap}
.hm-inv-h span.no{border-color:#888;color:#aaa}
.hm-inv table{width:100%;border-collapse:collapse;border-top:1px solid rgba(255,255,255,.12);margin-top:6px}
.hm-inv td{padding:4px 0;vertical-align:top}
.hm-inv td+td{text-align:right}
.hm-inv td:first-child{opacity:.75}
.hm-inv .hm-inv-c td:first-child{opacity:1}
.hm-inv .tot td{border-top:1px solid rgba(255,255,255,.12);font-weight:600;font-size:14px;padding-top:8px;opacity:1}
.hm-inv-s{display:block;margin-top:8px;color:#3fb950}
/* aviso: criar a Carteira antes de usar o mercado */
.hm-nowallet{display:flex;gap:14px;align-items:center;flex-wrap:wrap;border:1px solid rgba(255,176,32,.55);background:linear-gradient(90deg,rgba(255,176,32,.12),rgba(255,176,32,.03));border-radius:12px;padding:14px 16px;margin:10px 0 14px}
.hm-nowallet .hm-nw-ico{font-size:30px;line-height:1}
.hm-nowallet .hm-nw-txt{flex:1;min-width:240px}
.hm-nowallet b{display:block;font-size:15px;margin-bottom:4px;color:#ffe2a3}
.hm-nowallet p{margin:0;font-size:12px;line-height:1.5;opacity:.9}
.hm-nw-steps{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.hm-nw-steps span{border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:3px 10px;font-size:11px;opacity:.75}
.hm-nw-steps span.d{border-color:rgba(60,240,138,.55);color:#3cf08a;opacity:1}
.hm-nowallet .hm-nw-go{margin-left:auto;border-color:#ffb020;color:#ffb020}
.hm-body.hm-dim{opacity:.55}

/* Alugueres em curso (painel de venda, só leitura) */
.hm-rent{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;padding:8px 10px;margin-bottom:6px;border-radius:10px;background:#ffffff07;border:1px solid #ffffff10;font-size:12px;overflow-wrap:anywhere}
.hm-rent span:nth-child(4){color:#ffc04d;font-weight:600}
.hm-rent em{font-style:normal;color:var(--muted);margin-left:auto}
