/* Crypto Brokers — bright Robinhood green UI (scoped to .brokers-page). */

body.brokers-page {
  --ink: #03140a;
  --ink-lift: #062012;
  --surface: #0a2a14;
  --paper: #e8ffe9;
  --muted: #8dcca0;
  --faint: #5f9a72;
  --ember: #00c805;
  --ember-lo: #00a004;
  --rh: #00c805;
  --rh-bright: #39ff14;
  --rh-dim: rgba(0, 200, 5, 0.16);
  --rh-glow: rgba(0, 200, 5, 0.35);
  --rule: rgba(0, 200, 5, 0.22);
  --rule-lo: rgba(0, 200, 5, 0.1);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "IBM Plex Sans", ui-sans-serif, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --rail: 15rem;
  --toc: 13rem;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(0, 200, 5, 0.18), transparent 55%),
              radial-gradient(900px 500px at 100% 0%, rgba(57, 255, 20, 0.08), transparent 50%),
              var(--ink) !important;
  color: var(--paper);
}

body.brokers-page .frame {
  grid-template-columns: var(--rail) minmax(0, 1fr);
}

body.brokers-page .toc { display: none; }

body.brokers-page .rail a[aria-current="page"],
body.brokers-page a:hover {
  color: var(--rh-bright);
}

body.brokers-page .advisory {
  border: 1px solid var(--rule);
  background: var(--rh-dim);
  color: var(--paper);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

body.brokers-page .page-head .lead {
  max-width: 46rem;
  color: #c8f5d0;
}

body.brokers-page code {
  color: var(--rh-bright);
  background: rgba(0, 200, 5, 0.1);
  border-radius: 4px;
  padding: 0.05em 0.3em;
}

.bk-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--rh);
  border-radius: 999px;
  background: var(--rh-dim);
  font: 600 0.68rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rh-bright);
  box-shadow: 0 0 24px var(--rh-glow);
}

.bk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
}

.bk-btn {
  appearance: none;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(6, 32, 18, 0.9);
  color: var(--paper);
  font: 600 0.72rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.12s;
}

.bk-btn:hover {
  border-color: var(--rh);
  color: #fff;
  box-shadow: 0 0 0 3px var(--rh-dim);
  transform: translateY(-1px);
}

.bk-btn-ember {
  background: linear-gradient(180deg, #12e01a 0%, #00c805 55%, #009a04 100%);
  border-color: #7dff86;
  color: #03140a;
  text-shadow: none;
  box-shadow: 0 0 20px var(--rh-glow);
  font-weight: 700;
}

.bk-btn-ember:hover {
  color: #03140a;
  box-shadow: 0 0 28px rgba(57, 255, 20, 0.45);
}

.bk-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bk-wallet {
  margin: 1.2rem 0 0;
  font: 400 0.82rem/1.5 var(--mono);
  color: var(--muted);
}

.bk-wallet strong { color: var(--rh-bright); font-weight: 600; }

.bk-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
}

.bk-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--rh-dim);
  font: 600 0.68rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rh-bright);
}

.bk-pill i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--rh);
  display: inline-block;
}

.bk-pill[data-state="live"] { color: var(--rh-bright); }
.bk-pill[data-state="live"] i {
  background: var(--rh-bright);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.25);
}
.bk-pill[data-state="preview"] { color: #b8f5c0; }
.bk-pill[data-state="offline"] { color: #ffb4a8; }
.bk-pill[data-state="offline"] i { background: #ff6b4a; box-shadow: none; }

.bk-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
}

.bk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.85rem;
}

.bk-grid a {
  display: block;
  padding: 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 200, 5, 0.08), rgba(3, 20, 10, 0.7));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  overflow: hidden;
}

.bk-grid a:hover {
  border-color: var(--rh);
  box-shadow: 0 0 24px var(--rh-dim);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(0, 200, 5, 0.16), rgba(3, 20, 10, 0.85));
}

.bk-grid a[data-activated="1"] {
  outline: 1px solid rgba(0, 200, 5, 0.65);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.2);
}

.bk-grid .bk-card-meta {
  margin: 0.55rem 0 0;
  font: 400 0.72rem/1.35 var(--mono);
  color: var(--muted);
}

.bk-grid .bk-card-meta strong {
  display: block;
  color: var(--paper);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.bk-grid a .bk-shot { margin: -0.7rem -0.7rem 0; }

.bk-tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--rh-dim);
  color: var(--rh-bright);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bk-tag-live {
  background: rgba(57, 255, 20, 0.18);
  color: #39ff14;
  border: 1px solid rgba(57, 255, 20, 0.45);
}

.bk-console {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  margin-top: 1.2rem;
}

@media (max-width: 900px) {
  .bk-console { grid-template-columns: 1fr; }
}

.bk-panel {
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(0, 200, 5, 0.1), rgba(3, 20, 10, 0.92) 40%);
  padding: 1.1rem 1.2rem 1.3rem;
  box-shadow: 0 0 40px rgba(0, 200, 5, 0.06);
}

.bk-panel h2 {
  margin: 1.4rem 0 0.55rem;
  font: 600 0.78rem/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rh-bright);
}

.bk-panel h2:first-child { margin-top: 0; }

.bk-panel .lead,
.bk-note {
  color: #b7e8c2;
  font-size: 0.92rem;
}

.bk-shot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #00c805;
  aspect-ratio: 1 / 1;
}

.bk-shot .bk-reveal-img,
.bk-shot video,
.bk-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #00c805;
}

.bk-shot .bk-pulse {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(3, 20, 10, 0.75);
  border: 1px solid var(--rh);
  color: var(--rh-bright);
  font: 600 0.62rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bk-shot .bk-pulse i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--rh-bright);
  box-shadow: 0 0 8px var(--rh-bright);
}

.bk-shot .bk-tape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.45rem 0.6rem;
  background: linear-gradient(transparent, rgba(3, 20, 10, 0.92));
  font: 500 0.58rem/1.4 var(--mono);
  color: #c8ffd0;
  white-space: nowrap;
  overflow: hidden;
}

.bk-skill {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(0, 200, 5, 0.07);
}

.bk-skill-name {
  margin: 0;
  font: 600 1rem/1.3 var(--sans);
  color: var(--paper);
}

.bk-skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0 0;
}

.bk-skill-chip {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: rgba(3, 20, 10, 0.65);
  font: 500 0.65rem var(--mono);
  color: var(--rh-bright);
}

.bk-blotter {
  width: 100%;
  border-collapse: collapse;
  font: 400 0.75rem/1.4 var(--mono);
}

.bk-blotter th,
.bk-blotter td {
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--rule-lo);
}

.bk-blotter th { color: var(--rh-bright); font-weight: 600; }

.bk-intent,
.bk-ticket {
  margin: 0.8rem 0 1rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(0, 200, 5, 0.4);
  border-radius: 12px;
  background: rgba(0, 200, 5, 0.08);
  color: var(--paper);
  overflow: auto;
}

.bk-ticket h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--rh-bright);
}

.bk-ticket ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.bk-ticket code { font-size: 0.85em; }

.bk-offline { color: #ffb4a8; }

.bk-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.bk-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 7rem; }
.bk-field label {
  font: 600 0.65rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rh-bright);
}

.bk-field input,
.bk-field select {
  appearance: none;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: rgba(3, 20, 10, 0.85);
  color: var(--paper);
  font: 400 0.9rem var(--sans);
}

.bk-field input:focus,
.bk-field select:focus {
  outline: none;
  border-color: var(--rh);
  box-shadow: 0 0 0 3px var(--rh-dim);
}

.bk-mintbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--rh-dim);
  font: 500 0.78rem/1.4 var(--mono);
  color: var(--paper);
}

.bk-callout {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(57, 255, 20, 0.45);
  background:
    linear-gradient(135deg, rgba(0, 200, 5, 0.2), rgba(3, 20, 10, 0.85));
  box-shadow: 0 0 30px rgba(0, 200, 5, 0.12);
}

.bk-callout h2 {
  margin: 0 0 0.5rem !important;
  color: var(--rh-bright) !important;
}

.bk-callout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

@media (max-width: 720px) {
  .bk-callout-split { grid-template-columns: 1fr; }
}

.bk-callout-card {
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: rgba(3, 20, 10, 0.65);
  padding: 0.75rem 0.85rem;
}

.bk-callout-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--rh-bright);
  font: 700 0.72rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bk-callout-card.is-yes {
  border-color: rgba(57, 255, 20, 0.55);
  background: rgba(0, 200, 5, 0.12);
}

.bk-callout-card.is-no {
  border-color: rgba(255, 120, 90, 0.45);
  background: rgba(80, 20, 10, 0.35);
}

.bk-callout-card.is-no strong { color: #ffb4a8; }

.bk-empty,
.bk-legal {
  color: var(--muted);
  font-size: 0.88rem;
}

.bk-browse-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: rgba(0, 200, 5, 0.06);
}

.scroller { overflow: auto; margin-top: 0.6rem; }

body.brokers-page .facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.55rem;
}

body.brokers-page .facts > div {
  border: 1px solid var(--rule-lo);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(3, 20, 10, 0.45);
}

body.brokers-page .facts dt {
  font: 600 0.62rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rh-bright);
}

body.brokers-page .facts dd {
  margin: 0.2rem 0 0;
  color: var(--paper);
  font-size: 0.86rem;
}

body.brokers-page .foot {
  border-top: 1px solid var(--rule);
  margin-top: 2.5rem;
  padding-top: 1rem;
  color: var(--muted);
}
