/* ─────────────────────────────────────────────────────────────
   RRG Live Console — "The Terminal is Open."
   ───────────────────────────────────────────────────────────── */
#rrg-console {
  width: 100%;
  max-width: 960px;
  margin: 56px auto 0;
}
.rc-shell {
  position: relative;
  background:
    linear-gradient(180deg, rgba(245,158,11,0.06) 0%, rgba(245,158,11,0.00) 20%),
    radial-gradient(1200px 300px at 50% -20%, rgba(245,158,11,0.10), transparent 60%),
    #0c0e13;
  border: 1px solid rgba(245,158,11,0.28);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(245,158,11,0.06) inset,
    0 0 160px rgba(245,158,11,0.06);
  transition: box-shadow 0.5s ease;
}
.rc-shell.rc-heartbeat {
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(245,158,11,0.18) inset,
    0 0 220px rgba(245,158,11,0.22);
}

/* ── Topbar ─────────────────────────────────────────────── */
.rc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.3);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.rc-brand { display: flex; align-items: center; gap: 12px; }
.rc-dots { display: inline-flex; gap: 5px; }
.rc-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.14);
}
.rc-dots span:nth-child(1){ background: #E84B3C; }
.rc-dots span:nth-child(2){ background: #E9A23C; }
.rc-dots span:nth-child(3){ background: #49BE73; }
.rc-host { color: rgba(255,255,255,0.55); }
.rc-status {
  display: inline-flex; align-items: center; gap: 6px;
  color: #F59E0B; font-weight: 500;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.28);
}
.rc-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 0 0 rgba(245,158,11,0.55);
  animation: rcPulse 1.8s infinite;
}
@keyframes rcPulse {
  0%{ box-shadow: 0 0 0 0 rgba(245,158,11,0.6); }
  70%{ box-shadow: 0 0 0 8px rgba(245,158,11,0); }
  100%{ box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}
.rc-stats { display: flex; gap: 8px; color: rgba(255,255,255,0.45); }
.rc-stat b { color: rgba(255,255,255,0.85); font-weight: 500; }
.rc-stat-sep { color: rgba(255,255,255,0.2); }

/* ── Headline / kicker ──────────────────────────────────── */
.rc-head {
  padding: 26px 28px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rc-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #F59E0B;
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.rc-kicker .rc-dim { color: rgba(245,158,11,0.45); }
.rc-caret {
  display: inline-block;
  color: #F59E0B;
  animation: rcBlink 1s steps(2) infinite;
  margin-left: 2px;
}
@keyframes rcBlink { 50%{ opacity: 0; } }

.rc-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: pretty;
  margin-bottom: 10px;
}
.rc-accent { color: #F59E0B; }
.rc-lead {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  line-height: 1.55;
  max-width: 560px;
}

/* ── Body: 2 panes ──────────────────────────────────────── */
.rc-body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
}
.rc-pane {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.rc-pane + .rc-pane { border-left: 1px solid rgba(255,255,255,0.06); }
.rc-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.rc-pane-label { color: rgba(245,158,11,0.9); }
.rc-pane-filter { display: flex; gap: 6px; }
.rc-pane-filter button {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  padding: 3px 7px;
  border-radius: 4px;
  background: transparent;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.rc-pane-filter button:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.rc-pane-filter button[data-active="1"] {
  color: #F59E0B;
  border-color: rgba(245,158,11,0.45);
  background: rgba(245,158,11,0.08);
}
.rc-pane-link {
  color: rgba(245,158,11,0.8);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.rc-pane-link:hover { color: #F59E0B; text-decoration: underline; }

/* ── Log ───────────────────────────────────────────────── */
.rc-log {
  height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 14px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
  mask-image: linear-gradient(180deg, transparent 0, #000 20px, #000 calc(100% - 0px));
}
.rc-log::-webkit-scrollbar { width: 6px; }
.rc-log::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 3px; }
.rc-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 5px 4px;
  border-radius: 4px;
  opacity: 0;
  animation: rcLineIn 0.35s ease forwards;
  color: rgba(255,255,255,0.78);
}
.rc-line.rc-seeded { animation: none; opacity: 0.68; }
@keyframes rcLineIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rc-line.rc-flash {
  background: linear-gradient(90deg, rgba(245,158,11,0.18), transparent 60%);
  box-shadow: inset 2px 0 0 #F59E0B;
}
.rc-ts { color: rgba(255,255,255,0.32); }
.rc-tag {
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1px 7px;
  border-radius: 3px;
  border: 1px solid;
  display: inline-block;
  line-height: 1.4;
}
.rc-actor { color: rgba(255,255,255,0.92); }
.rc-verb  { color: rgba(255,255,255,0.52); }
.rc-ep    { color: rgba(94,200,225,0.78); }
.rc-q     { color: rgba(255,255,255,0.55); font-style: italic; }
.rc-prod  { color: #fff; }
.rc-amt   { color: #F59E0B; font-weight: 500; }

/* tag colors per event */
.ev-agent  .rc-tag { color:#F59E0B; border-color: rgba(245,158,11,0.45); background: rgba(245,158,11,0.08); }
.ev-human  .rc-tag { color:#E6E6E6; border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.04); }
.ev-nego   .rc-tag { color:#A78BFA; border-color: rgba(167,139,250,0.45); background: rgba(167,139,250,0.10); }
.ev-settle .rc-tag { color:#7BD389; border-color: rgba(123,211,137,0.5); background: rgba(123,211,137,0.10); }
.ev-mint   .rc-tag { color:#5EC8E1; border-color: rgba(94,200,225,0.45); background: rgba(94,200,225,0.10); }
.ev-sys    .rc-tag { color:rgba(255,255,255,0.55); border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.03); }

/* ── Product ticker ────────────────────────────────────── */
.rc-ticker {
  position: relative;
  height: 320px;
  overflow: hidden;
  padding: 6px 0;
  mask-image: linear-gradient(180deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.rc-ticker > * { animation: rcScroll 36s linear infinite; }
@keyframes rcScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.rc-ticker:hover > * { animation-play-state: paused; }

.rc-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.rc-row-main { min-width: 0; }
.rc-row-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rc-row-brand {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  margin-top: 2px;
}
.rc-row-spark {
  color: rgba(245,158,11,0.75);
  display: flex; align-items: center;
}
.rc-row-price { text-align: right; }
.rc-row-amt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #fff;
  font-weight: 500;
}
.rc-row-ed {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  color: rgba(123,211,137,0.85);
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 2px;
}
.rc-row-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7BD389;
  box-shadow: 0 0 6px rgba(123,211,137,0.6);
}

/* ── Command bar ─────────────────────────────────────────── */
.rc-cmd {
  padding: 22px 28px 26px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(245,158,11,0.03), rgba(0,0,0,0.25));
}
.rc-cmd-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,158,11,0.8);
  margin-bottom: 8px;
}
.rc-cmd-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px 11px 14px;
  background: #0a0a0a;
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  box-shadow: 0 0 0 0 rgba(245,158,11,0.3), inset 0 0 30px rgba(245,158,11,0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.rc-cmd-input:hover {
  border-color: rgba(245,158,11,0.6);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.08), inset 0 0 30px rgba(245,158,11,0.06);
}
.rc-cmd-proto { color: rgba(245,158,11,0.6); }
.rc-cmd-host { color: #fff; flex: 1; word-break: break-all; }
.rc-cmd-copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.35);
  color: #F59E0B;
  border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rc-cmd-copy:hover { background: #F59E0B; color: #0a0a0a; }
.rc-cmd-copy[data-copied="1"] { background: #7BD389; color: #0a0a0a; border-color: #7BD389; }

.rc-cmd-help {
  margin-top: 14px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.rc-platforms {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rc-plat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 5px 10px 5px 8px;
  border-radius: 50px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: color .15s, border-color .15s, background .15s;
}
.rc-plat:hover { color: #F59E0B; border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.08); }
.rc-plat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7BD389;
  box-shadow: 0 0 6px rgba(123,211,137,0.7);
}

.rc-cta-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.rc-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #F59E0B;
  color: #0a0a0a;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.rc-cta-primary:hover { background: #fbbf24; transform: translateY(-1px); }
.rc-cta-primary .rc-arr { display: inline-block; transition: transform 0.15s; }
.rc-cta-primary:hover .rc-arr { transform: translate(2px,-2px); }

.rc-cta-secondary {
  color: rgba(255,255,255,0.75);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 11px 16px;
  text-decoration: none;
  border-radius: 50px;
  transition: color 0.15s, background 0.15s;
}
.rc-cta-secondary:hover { color: #fff; background: rgba(255,255,255,0.06); }

@media (max-width: 860px){
  .rc-topbar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .rc-body { grid-template-columns: 1fr; }
  .rc-pane + .rc-pane { border-left: 0; border-top: 1px solid rgba(255,255,255,0.06); }
  .rc-head { padding: 22px 20px 16px; }
  .rc-cmd { padding: 18px 20px 22px; }
  .rc-log, .rc-ticker { height: 240px; }
  .rc-line { font-size: 11px; gap: 5px 8px; }
}

@media (prefers-reduced-motion: reduce){
  .rc-ticker > * { animation: none; }
  .rc-pulse { animation: none; }
  .rc-caret { animation: none; }
}
