:root {
  --bg-dark: #07090e;
  --bg-card: rgba(16, 20, 31, 0.75);
  --bg-card-hover: rgba(22, 28, 44, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.3);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.35);
  --violet: #a855f7;
  --violet-glow: rgba(168, 85, 247, 0.35);
  --green: #00ff88;
  --green-glow: rgba(0, 255, 136, 0.35);
  --amber: #fbbf24;
  --red: #f43f5e;
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glow */
.background-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.12), rgba(168, 85, 247, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 36px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  font-size: 26px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px var(--cyan-glow));
}

.logo-text h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.logo-text .highlight {
  color: var(--cyan);
}

.logo-text .tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

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

.alias-pill {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 999px;
}

.alias-pill strong {
  color: var(--cyan);
}

.status-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-pill.ready {
  background: rgba(0, 255, 136, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.status-pill.running {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  animation: pulse-border 1.5s infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0, 240, 255, 0); }
}

/* Main Container */
.main-container {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 60px 20px;
  flex: 1;
}

/* Mode Selection Header */
.mode-select-header {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.mode-select-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Navigation Tabs */
.mode-tabs {
  display: flex;
  gap: 12px;
  background: rgba(12, 16, 26, 0.7);
  backdrop-filter: blur(14px);
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 30px;
}

.tab-btn {
  flex: 1;
  background: rgba(20, 27, 45, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(30, 41, 69, 0.95);
  border-color: rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 240, 255, 0.2);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(168, 85, 247, 0.28));
  color: #ffffff;
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.4), inset 0 0 14px rgba(0, 240, 255, 0.18);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

/* Gauge Section */
.gauge-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.gauge-wrapper {
  position: relative;
  width: 380px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.speedometer-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 14;
  stroke-linecap: round;
}

.gauge-fill {
  fill: none;
  stroke: url(#gauge-grad);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 0.15s ease-out;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}

.gauge-ticks text {
  fill: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-anchor: middle;
}

.gauge-needle-group {
  transform-origin: 170px 180px;
  transform: rotate(-90deg);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gauge-needle {
  stroke: var(--cyan);
  stroke-width: 3.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--cyan));
}

.gauge-hub {
  fill: #1e293b;
  stroke: var(--cyan);
  stroke-width: 3;
}

.gauge-hub-inner {
  fill: var(--cyan);
}

.gauge-digital-readout {
  margin-top: -30px;
  text-align: center;
}

.digital-value {
  font-size: 58px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.digital-unit {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-top: 4px;
}

.digital-stage {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--cyan);
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.08);
  display: inline-block;
}

/* Metrics Grid (4-box) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 24px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: all 0.25s ease;
}

.metric-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.metric-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot.cyan { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.dot.violet { background: var(--violet); box-shadow: 0 0 6px var(--violet); }
.dot.amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }

.metric-value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
  margin: 10px 0 4px 0;
  color: #fff;
}

.metric-value .unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

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

/* Controls Card */
.controls-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
}

.card-header {
  margin-bottom: 24px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.card-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.privacy-tag {
  font-size: 11px;
  color: var(--green);
  font-weight: 500;
}

input[type="text"],
input[type="password"],
select,
textarea {
  background: rgba(10, 13, 20, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.toggle-vis-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.7;
}

.toggle-vis-btn:hover {
  opacity: 1;
}

/* Buttons */
.actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.primary-btn {
  background: linear-gradient(135deg, #00f0ff, #0070f3);
  border: none;
  color: #000;
  font-weight: 700;
  font-family: var(--font-main);
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.35);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.5);
}

.primary-btn.success {
  background: linear-gradient(135deg, #00ff88, #059669);
  box-shadow: 0 4px 18px rgba(0, 255, 136, 0.35);
}

.primary-btn.success:hover {
  box-shadow: 0 6px 24px rgba(0, 255, 136, 0.5);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-main);
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Stopwatch 3-Step Flow */
.stopwatch-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

.step-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.step-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  flex: 1;
}

.stopwatch-display {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--amber);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  letter-spacing: 0.05em;
}

.response-textarea {
  min-height: 110px;
  resize: vertical;
}

/* Probes Accordion */
.probes-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Legacy probe item (for results table use) */
.probe-item {
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.probe-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.probe-num {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.probe-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex: 1;
}

.probe-target {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Autonomous Live Probe Cards */
.probe-battery-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.probe-card-live {
  background: rgba(10, 14, 26, 0.85);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.probe-card-live.pass {
  border-color: rgba(0, 255, 136, 0.6);
  background: rgba(0, 255, 136, 0.05);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.15);
}

.probe-card-live.fail {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.05);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.15);
}

.probe-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.probe-card-title-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.probe-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.probe-card-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.probe-status-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
}

.probe-status-pill.pending {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.probe-status-pill.pass {
  color: var(--green);
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid var(--green);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.probe-status-pill.fail {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.probe-live-telemetry {
  background: #060912;
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.probe-live-telemetry .telemetry-label {
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 10px;
}

.probe-live-telemetry .telemetry-content {
  color: #cbd5e1;
  word-break: break-all;
}

.probe-live-telemetry.pass .telemetry-content {
  color: var(--green);
  font-weight: 700;
}

.probe-live-telemetry.fail .telemetry-content {
  color: #ef4444;
  font-weight: 700;
}

/* Results & Diagnostics Table */
.results-section {
  margin-top: 16px;
}

.results-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.share-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-main);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.action-btn.twitter {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.probe-results-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.probe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
}

.probe-row.pass {
  border-left: 4px solid var(--green);
}

.probe-row.fail {
  border-left: 4px solid var(--red);
}

.probe-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.probe-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.probe-detail {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.probe-verdict {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 4px;
}

.probe-verdict.pass {
  background: rgba(0, 255, 136, 0.12);
  color: var(--green);
}

.probe-verdict.fail {
  background: rgba(244, 63, 94, 0.12);
  color: var(--red);
}

/* Raw Stream Preview */
.raw-stream-preview {
  background: rgba(5, 7, 12, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.stream-stats {
  font-family: var(--font-mono);
  color: var(--cyan);
}

.stream-log {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 180px;
  overflow-y: auto;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-sub {
  font-size: 12px;
  margin-top: 4px;
  color: #475569;
}

/* Tab Switching visibility */
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* Preflight Continuity Bar */
.preflight-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(10, 13, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 24px;
}

.preflight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.preflight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.preflight-dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.preflight-dot.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.preflight-dot.violet { background: var(--violet); box-shadow: 0 0 8px var(--violet); }

.preflight-item strong {
  font-family: var(--font-mono);
  color: #fff;
}

/* Packet Flow Grid */
.packet-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.packet-status-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px dashed rgba(0, 240, 255, 0.3);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.packet-status-box .status-icon {
  font-size: 28px;
}

.packet-status-box .status-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.packet-status-box .status-sub {
  font-size: 12px;
  color: var(--cyan);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Dressed-Up Terminal Telemetry Receipt Card */
.receipt-terminal-card {
  background: #070a12;
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.12);
  margin-bottom: 18px;
}

.receipt-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dots .dot.red { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.terminal-dots .dot.yellow { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.terminal-dots .dot.green { background: #10b981; box-shadow: 0 0 6px #10b981; }

.receipt-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  font-family: var(--font-mono);
}

.receipt-actions {
  display: flex;
  gap: 8px;
}

.receipt-pre {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  color: #cbd5e1;
  padding: 24px;
  margin: 0;
  overflow-x: auto;
  white-space: pre;
  background: #070a12;
}

.rec-highlight {
  font-weight: 800;
}
.rec-highlight.cyan { color: var(--cyan); text-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }
.rec-highlight.violet { color: var(--violet); text-shadow: 0 0 10px rgba(168, 85, 247, 0.5); }
.rec-highlight.amber { color: var(--amber); text-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
.rec-highlight.green { color: var(--green); text-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }

/* Serialized Agent Protocol Styles */
.agent-flow-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agent-action-box {
  background: rgba(10, 13, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.agent-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.agent-action-header h4 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.agent-action-header p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.agent-radar-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.radar-pulse {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
  animation: radar-wave 1.6s infinite ease-out;
  flex-shrink: 0;
}

@keyframes radar-wave {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(0, 240, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }
}

.radar-info .radar-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.radar-info .radar-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
  }
  
  .mode-tabs {
    flex-direction: column;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .packet-flow-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .digital-value {
    font-size: 46px;
  }
}


