/* Stage 442 — Broker-grade product core: account, portfolio, watchlists, alerts and AI strategy orchestration */
:root {
  --stage442-bg: rgba(4, 13, 22, 0.88);
  --stage442-panel: rgba(7, 24, 38, 0.82);
  --stage442-panel-strong: rgba(10, 34, 52, 0.92);
  --stage442-border: rgba(91, 226, 177, 0.22);
  --stage442-gold: #f4c85b;
  --stage442-mint: #30e6a1;
  --stage442-cyan: #64c7ff;
  --stage442-muted: rgba(223, 238, 255, 0.72);
  --stage442-danger: #ff6b72;
}
.qlion-stage442-broker-core,
.stage442-broker-core,
.stage442-terminal-core,
.stage442-operator-core {
  position: relative;
  border: 1px solid var(--stage442-border);
  border-radius: 22px;
  background: radial-gradient(circle at 12% 0%, rgba(48,230,161,.13), transparent 32%), linear-gradient(145deg, var(--stage442-panel), rgba(3,10,18,.94));
  box-shadow: 0 22px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
  color: #eef8ff;
  overflow: hidden;
}
.qlion-stage442-broker-core::before,
.stage442-terminal-core::before,
.stage442-operator-core::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(244,200,91,.08), transparent 28%, rgba(48,230,161,.07) 72%, transparent);
}
.stage442-shell { position: relative; z-index: 1; padding: clamp(18px, 3vw, 30px); }
.stage442-kicker { color: var(--stage442-mint); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; }
.stage442-title { margin: 8px 0 10px; font-size: clamp(23px, 3vw, 38px); line-height: 1.05; font-weight: 900; }
.stage442-copy { max-width: 860px; color: var(--stage442-muted); font-size: 15px; line-height: 1.65; }
.stage442-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.stage442-card { border: 1px solid rgba(255,255,255,.10); background: rgba(0, 13, 24, .58); border-radius: 18px; padding: 16px; min-height: 132px; }
.stage442-card strong { display:block; color:#fff; font-size: 15px; margin-bottom: 8px; }
.stage442-card p { color: var(--stage442-muted); margin: 0; font-size: 13px; line-height: 1.5; }
.stage442-metric { display:flex; align-items:flex-end; gap: 8px; margin-top:10px; }
.stage442-metric b { color: var(--stage442-mint); font-size: 28px; line-height: 1; }
.stage442-metric span { color: var(--stage442-muted); font-size: 12px; }
.stage442-actions { display:flex; flex-wrap:wrap; gap: 10px; margin-top: 18px; }
.stage442-btn { border: 1px solid rgba(48,230,161,.38); background: linear-gradient(135deg, rgba(48,230,161,.95), rgba(100,199,255,.95)); color:#061018; border-radius: 12px; padding: 10px 14px; font-weight: 850; cursor:pointer; box-shadow: 0 10px 26px rgba(48,230,161,.14); }
.stage442-btn.secondary { background: rgba(255,255,255,.04); color:#eff8ff; border-color: rgba(244,200,91,.38); box-shadow:none; }
.stage442-btn.danger { background: rgba(255,107,114,.14); color:#ffdfe1; border-color: rgba(255,107,114,.45); }
.stage442-terminal-core { margin: 16px 0; }
.stage442-terminal-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap: 14px; margin-top: 14px; }
.stage442-terminal-panel { border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(0, 12, 21, .58); padding: 14px; }
.stage442-terminal-panel h4 { margin: 0 0 10px; font-size: 14px; color:#fff; }
.stage442-list { display:grid; gap: 8px; }
.stage442-row { display:flex; justify-content:space-between; align-items:center; gap: 12px; border-bottom:1px solid rgba(255,255,255,.07); padding: 8px 0; font-size: 13px; color: var(--stage442-muted); }
.stage442-row:last-child { border-bottom:0; }
.stage442-row b { color:#fff; }
.stage442-positive { color: var(--stage442-mint); }
.stage442-negative { color: var(--stage442-danger); }
.stage442-pill { display:inline-flex; align-items:center; gap:6px; border:1px solid rgba(48,230,161,.25); background: rgba(48,230,161,.09); color:#b9ffe6; border-radius:999px; padding:5px 9px; font-size:12px; font-weight:750; }
.stage442-pill.warn { border-color:rgba(244,200,91,.36); background:rgba(244,200,91,.11); color:#ffe7a1; }
.stage442-pill.locked { border-color:rgba(255,107,114,.35); background:rgba(255,107,114,.10); color:#ffd9db; }
.stage442-field-row { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.stage442-field-row input,
.stage442-field-row select { width:100%; border:1px solid rgba(255,255,255,.14); border-radius:12px; padding:10px 11px; color:#fff; background:rgba(0,0,0,.26); }
.stage442-output { margin-top: 12px; max-height: 240px; overflow:auto; white-space: pre-wrap; color: rgba(235,248,255,.78); font-size:12px; border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:12px; background:rgba(0,0,0,.24); }
.stage442-operator-core { margin: 16px 0; }
@media (max-width: 980px) {
  .stage442-grid, .stage442-terminal-grid { grid-template-columns: 1fr 1fr; }
  .stage442-field-row { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .stage442-grid, .stage442-terminal-grid { grid-template-columns: 1fr; }
  .stage442-shell { padding: 16px; }
  .stage442-actions { flex-direction: column; }
  .stage442-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .stage442-btn { transition: none !important; }
}
