:root {
  --bg: #0b1119;
  --bg-2: #0f1623;
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text: #eaf2ff;
  --muted: #94a3b8;
  --accent: #ff7a29;
  --accent-2: #4ee0c1;
  --green: #2de38c;
  --blue: #7bb1ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(255, 122, 41, 0.06), transparent 32%),
    radial-gradient(circle at 70% 0%, rgba(78, 224, 193, 0.08), transparent 30%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 26px 26px 64px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 3px 3px;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  filter: blur(120px);
  opacity: 0.55;
  z-index: 0;
}

.glow-a {
  width: 480px;
  height: 480px;
  top: 8%;
  right: 6%;
  background: radial-gradient(circle, rgba(255, 122, 41, 0.4), transparent 70%);
}

.glow-b {
  width: 460px;
  height: 460px;
  bottom: 5%;
  left: 10%;
  background: radial-gradient(circle, rgba(78, 224, 193, 0.36), transparent 70%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: rgba(16, 22, 34, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 12px 0 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0.7;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  padding: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 52%),
    linear-gradient(135deg, var(--accent), #ffb347);
  box-shadow: 0 12px 26px rgba(255, 122, 41, 0.35);
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: conic-gradient(from 120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  opacity: 0.7;
}

.brand-mark-ring {
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.brand-mark-core {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(12, 18, 28, 0.9);
  display: grid;
  place-items: center;
  color: #ffdfc0;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ffb347);
  color: #120c08;
  font-weight: 800;
  letter-spacing: 0.6px;
  box-shadow: 0 10px 30px rgba(255, 122, 41, 0.4);
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.4px;
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.4px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
}

.tabs a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.tabs a.active,
.tabs a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.actions .github-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  font-weight: 700;
  opacity: 0.9;
}

.actions .github-link:hover {
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), #ff9d5c);
  color: #1b0f07;
  border-color: transparent;
  box-shadow: 0 16px 44px rgba(255, 122, 41, 0.45);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 52px rgba(255, 122, 41, 0.55);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  padding: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
}

.chip.ghost {
  color: var(--muted);
}

.status-chip {
  position: relative;
  padding-left: 12px;
}

.status-chip .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(78, 224, 193, 0.4);
  animation: pulse 2s infinite;
  display: inline-block;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.badge.accent {
  background: linear-gradient(120deg, rgba(255, 122, 41, 0.16), rgba(255, 122, 41, 0.1));
  color: #ffb37a;
  border-color: rgba(255, 122, 41, 0.3);
}

.badge.dark {
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.label {
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 40%);
  opacity: 0.4;
  pointer-events: none;
}

.dashboard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1.35fr;
  grid-auto-rows: minmax(0, auto);
  gap: 14px;
}

.flow-card {
  padding: 18px;
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.hero-card {
  padding: 18px;
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  background: linear-gradient(150deg, rgba(255, 122, 41, 0.14), rgba(24, 32, 48, 0.8)),
    linear-gradient(120deg, rgba(78, 224, 193, 0.12), rgba(24, 32, 48, 0.7));
}

.metrics-card {
  padding: 16px;
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.table-card {
  padding: 14px 14px 6px;
  grid-column: 1 / 2;
}

.feeds-card {
  padding: 14px;
  grid-column: 2 / 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.card-head.tight {
  margin-bottom: 8px;
}

.flow-card h2 {
  margin: 4px 0 8px;
}

.output-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.output-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.sub {
  color: var(--muted);
  font-size: 13px;
}

.badge-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-rails {
  display: grid;
  gap: 10px;
  margin: 10px 0 12px;
}

.flow-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.flow-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-title {
  font-weight: 700;
}

.flow-sub {
  color: var(--muted);
  font-size: 12px;
}

.flow-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.flow-bar .fill {
  height: 100%;
  width: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffb347);
  box-shadow: 0 6px 18px rgba(255, 122, 41, 0.32);
  transition: width 0.25s ease;
}

.flow-bar .fill.stake {
  background: linear-gradient(90deg, #ffb347, #ff7a29);
}

.flow-bar .fill.transfer {
  background: linear-gradient(90deg, var(--blue), #8fd2ff);
  box-shadow: 0 6px 18px rgba(123, 177, 255, 0.32);
}

.flow-bar .fill.upgrade {
  background: linear-gradient(90deg, var(--accent-2), #7df0d8);
  box-shadow: 0 6px 18px rgba(78, 224, 193, 0.32);
}

.flow-value {
  font-weight: 700;
  color: #ffb37a;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05);
}

.dot.green {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(45, 227, 140, 0.2);
}

.dot.blue {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(123, 177, 255, 0.18);
}

.dot.vote {
  background: var(--accent);
}

.dot.stake {
  background: #ffc182;
}

.dot.transfer {
  background: var(--blue);
}

.dot.upgrade {
  background: var(--accent-2);
}

.inline-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.inline-stats strong {
  display: block;
  font-size: 18px;
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-content h2 {
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin: 6px 0;
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 4px;
}

.badge.strong {
  border-color: rgba(255, 122, 41, 0.4);
  box-shadow: 0 8px 24px rgba(255, 122, 41, 0.3);
}

.dial {
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  margin-top: 8px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #0f1623 45%, transparent 46%),
    conic-gradient(var(--accent) var(--deg, 0deg), rgba(255, 255, 255, 0.08) 0deg 360deg);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.dial-inner {
  width: 66%;
  height: 66%;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(15, 22, 35, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
}

.dial-value {
  font-size: 28px;
  font-weight: 800;
}

.dial-sub {
  color: var(--muted);
  font-size: 12px;
}

.hero-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 10px 0;
}

.hero-foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.hero-foot-value {
  font-weight: 800;
  color: #ffb37a;
}

.metric {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.metric .big {
  font-size: 24px;
  font-weight: 800;
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

.table-head,
.row {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 0.7fr 0.7fr 0.8fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 12px 10px;
}

.table-head {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.table-body {
  max-height: 420px;
  overflow: hidden;
  display: grid;
}

.row {
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.row:hover {
  background: linear-gradient(90deg, rgba(255, 122, 41, 0.07), rgba(255, 255, 255, 0.02));
}

.signature {
  font-family: "Space Mono", monospace;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill {
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-pill.finalized {
  color: var(--green);
  background: rgba(45, 227, 140, 0.1);
  border: 1px solid rgba(45, 227, 140, 0.2);
}

.status-pill.confirmed {
  color: var(--blue);
  background: rgba(123, 177, 255, 0.1);
  border: 1px solid rgba(123, 177, 255, 0.2);
}

.feeds-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
}

.feed-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.feed-panel.code {
  background: rgba(255, 255, 255, 0.02);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-title {
  font-weight: 800;
}

.panel-sub {
  color: var(--muted);
  font-size: 12px;
}

#terminal-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Space Mono", monospace;
  font-size: 13px;
  max-height: 320px;
  overflow: hidden;
  display: grid;
  gap: 8px;
}

#terminal-feed li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#terminal-feed li .status {
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 700;
}

#terminal-feed li span:last-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#terminal-feed li .status.finalized {
  color: var(--green);
  background: rgba(45, 227, 140, 0.12);
}

#terminal-feed li .status.confirmed {
  color: var(--blue);
  background: rgba(123, 177, 255, 0.12);
}

#code-feed {
  margin: 0;
  padding: 10px 12px;
  font-family: "Space Mono", monospace;
  font-size: 13px;
  max-height: 320px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}

footer {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 700;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-field select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ffb17a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-field select option {
  background: #0f1623;
  color: var(--text);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(255, 122, 41, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 122, 41, 0.12);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.info-list {
  display: grid;
  gap: 6px;
  color: var(--muted);
  margin: 8px 0 2px;
}

.info-list strong {
  color: var(--text);
}

.token-card {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.token-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.token-right {
  background: radial-gradient(circle at 30% 20%, rgba(255, 122, 41, 0.12), transparent 48%),
    radial-gradient(circle at 80% 40%, rgba(78, 224, 193, 0.14), transparent 55%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.token-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.token-pill {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  color: var(--muted);
}

.token-pill.ca-pill {
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffb17a;
}

.token-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.token-value {
  font-weight: 800;
  font-size: 18px;
}

.token-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.token-cta .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.token-supply {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.token-ticker {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 1px;
}

.token-note {
  color: var(--muted);
  font-size: 13px;
}

.token-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 10px;
}

/* Stream / OBS layout tweaks */
.stream-page {
  padding: 16px 14px 32px;
}

.stream-page .dashboard {
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}

.stream-page .card {
  padding: 12px;
}

.stream-page .card-head {
  margin-bottom: 8px;
}

.stream-page .badge {
  padding: 6px 10px;
}

.stream-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.stat-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-chip strong {
  font-size: 18px;
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.stream-page .panel.terminal,
.stream-page .panel.code {
  height: 300px;
  overflow: hidden;
}

.stream-page .panel-header {
  padding: 10px 12px;
  gap: 36px;
}

.stream-page .panel-header .dot {
  margin-right: 6px;
  flex-shrink: 0;
}

.stream-page #terminal-feed,
.stream-page #code-feed {
  height: 240px;
}

.stream-page .panel.table {
  margin-top: 10px;
}

.stream-page .table-body {
  max-height: 520px;
  overflow: auto;
}

.stream-table {
  margin-top: 12px;
}

/* Stream custom scrollbar */
.stream-page .table-body::-webkit-scrollbar,
.stream-page #terminal-feed::-webkit-scrollbar,
.stream-page #code-feed::-webkit-scrollbar {
  width: 10px;
}

.stream-page .table-body::-webkit-scrollbar-track,
.stream-page #terminal-feed::-webkit-scrollbar-track,
.stream-page #code-feed::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.stream-page .table-body::-webkit-scrollbar-thumb,
.stream-page #terminal-feed::-webkit-scrollbar-thumb,
.stream-page #code-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

.stream-page .table-body::-webkit-scrollbar-thumb:hover,
.stream-page #terminal-feed::-webkit-scrollbar-thumb:hover,
.stream-page #code-feed::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}
.stream-page .table-head {
  position: static;
  top: auto;
  z-index: auto;
}

.stream-page .table-head,
.stream-page .row {
  padding: 10px 8px;
}

.stream-page .table-body {
  max-height: 320px;
  overflow: auto;
}

.stream-page .row {
  font-size: 13px;
}

.stream-page .row .signature {
  font-size: 12px;
}

.console-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.console-log {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-family: "Space Mono", monospace;
  font-size: 13px;
  color: var(--muted);
  min-height: 240px;
  max-height: 340px;
  overflow: auto;
}

.console-input {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.console-input input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
}

.console-help {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.console-help .token-pill {
  border-color: rgba(255, 255, 255, 0.1);
}

.terminal-page {
  background: #000;
  color: #d4ffd4;
  font-family: "Space Mono", monospace;
  margin: 0;
  padding: 16px;
}

.terminal-shell {
  max-width: 1200px;
  margin: 0 auto;
  background: #0a0a0a;
  border: 1px solid rgba(0, 255, 170, 0.2);
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 255, 170, 0.16);
  background: #0f0f0f;
}

.console-title {
  color: #8bf5b3;
  font-weight: 700;
  font-size: 12px;
}

.console-hint {
  margin-left: auto;
  color: #4ac18b;
  font-size: 12px;
}

.terminal-body {
  min-height: 260px;
  max-height: 420px;
  overflow: auto;
  background: #050505;
  color: #d4ffd4;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: #2dd192 #0b0b0b;
}

.terminal-page .terminal-body::-webkit-scrollbar {
  width: 10px;
}

.terminal-page .terminal-body::-webkit-scrollbar-track {
  background: #0b0b0b;
  border-radius: 8px;
}

.terminal-page .terminal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #32f1c0, #1aa072);
  border-radius: 8px;
  border: 2px solid #0b0b0b;
  box-shadow: 0 0 8px rgba(50, 241, 192, 0.3);
}

.terminal-page .terminal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4ff9cd, #1dbb86);
}

.terminal-input {
  border-top: 1px solid rgba(0, 255, 170, 0.16);
  padding: 8px 10px;
  background: #0f0f0f;
  align-items: center;
}

.terminal-input .prompt {
  font-family: "Space Mono", monospace;
  color: #ffb17a;
  font-size: 13px;
}

.terminal-input input {
  background: transparent;
  border: none;
  outline: none;
  padding: 8px;
  color: #d4ffd4;
  font-family: "Space Mono", monospace;
  font-size: 13px;
  width: 100%;
}

@media (max-width: 900px) {
  .token-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.contact-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.contact-card .card-head {
  grid-column: 1 / -1;
  margin-bottom: 6px;
}

.contact-card .form-grid {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.contact-card .form-actions {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .flow-card,
  .hero-card,
  .metrics-card,
  .table-card,
  .feeds-card {
    grid-column: 1 / 2;
    grid-row: auto;
  }
  .inline-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding: 18px 16px 48px;
  }
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tabs,
  .actions {
    flex-wrap: wrap;
  }
  .hero-actions {
    flex-direction: column;
  }
  .table-head,
  .row {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.9fr;
    font-size: 13px;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(78, 224, 193, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(78, 224, 193, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(78, 224, 193, 0);
  }
}

