/* ==========================================================================
   ACT 3: THE 6 REAL EXECUTION PRIMITIVES & 7,002-ENDPOINT WATERFALL EXPLORER
   Scoped strictly to #act-3-mount and .act3-*
   ========================================================================== */

#act-3-mount {
  position: relative;
  width: 100%;
  padding: 130px 0 140px;
  color: var(--text-primary, #f5f5f7);
  font-family: var(--font-sans, 'Inter', -apple-system, sans-serif);
  z-index: 2;
  overflow: hidden;
}

#act-3-mount::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, 96vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 151, 255, 0.45), rgba(48, 209, 88, 0.45), transparent);
  pointer-events: none;
}

.act3-ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.22;
  z-index: 0;
}

.act3-glow-1 {
  width: 680px;
  height: 680px;
  top: 120px;
  left: -180px;
  background: radial-gradient(circle, #2997ff 0%, transparent 70%);
}

.act3-glow-2 {
  width: 740px;
  height: 740px;
  top: 42%;
  right: -220px;
  background: radial-gradient(circle, #5e5ce6 0%, transparent 70%);
}

.act3-glow-3 {
  width: 820px;
  height: 820px;
  bottom: 4%;
  left: 18%;
  background: radial-gradient(circle, #30d158 0%, transparent 70%);
  opacity: 0.16;
}

.act3-shell {
  position: relative;
  z-index: 2;
  width: min(1380px, 94vw);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   SECTION HEADER & CHAPTER NAVIGATION
   -------------------------------------------------------------------------- */
.act3-hero-header {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 56px;
}

.act3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(41, 151, 255, 0.1);
  border: 1px solid rgba(41, 151, 255, 0.3);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #66b8ff;
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(41, 151, 255, 0.15);
}

.act3-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 10px #30d158;
  animation: act3PulseDot 2s infinite;
}

@keyframes act3PulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.act3-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2.2rem, 4.3vw, 4.1rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
}

.act3-title-serif {
  font-family: var(--font-serif, 'Instrument Serif', Georgia, serif);
  font-weight: 400;
  font-style: italic;
  background: linear-gradient(135deg, #66b8ff 0%, #30d158 52%, #ffd60a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 6px;
}

.act3-subtitle {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
  color: var(--text-secondary, #a1a1aa);
  max-width: 820px;
  margin: 0 auto 30px;
}

.act3-subtitle code {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.9em;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
}

/* Telemetry & Quick Jump Strip */
.act3-command-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(15, 17, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 44px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.act3-jump-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.act3-jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #a1a1aa);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.act3-jump-pill:hover,
.act3-jump-pill.active {
  color: #fff;
  background: rgba(41, 151, 255, 0.15);
  border-color: rgba(41, 151, 255, 0.45);
  transform: translateY(-1px);
}

.act3-jump-pill-num {
  color: #2997ff;
  font-weight: 700;
}

.act3-command-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.act3-live-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 10px;
  background: rgba(48, 209, 88, 0.08);
  border: 1px solid rgba(48, 209, 88, 0.28);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  color: #30d158;
}

.act3-run-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0071e3, #2997ff);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(41, 151, 255, 0.35);
  transition: all 0.2s ease;
}

.act3-run-all-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(41, 151, 255, 0.55);
}

/* --------------------------------------------------------------------------
   PART A: THE 6 REAL EXECUTION PRIMITIVES GRID
   -------------------------------------------------------------------------- */
.act3-primitives-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 110px;
}

.act3-prim-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(24, 26, 38, 0.88) 0%, rgba(12, 13, 20, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.act3-prim-card:hover {
  border-color: rgba(41, 151, 255, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 36px rgba(41, 151, 255, 0.12);
}

.act3-prim-card.act3-prim-active-flash {
  border-color: rgba(48, 209, 88, 0.65);
  box-shadow: 0 0 42px rgba(48, 209, 88, 0.22);
}

.act3-prim-top {
  margin-bottom: 20px;
}

.act3-prim-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.act3-prim-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(41, 151, 255, 0.12);
  color: #66b8ff;
  border: 1px solid rgba(41, 151, 255, 0.28);
}

.act3-prim-badge-emerald {
  background: rgba(48, 209, 88, 0.12);
  color: #30d158;
  border-color: rgba(48, 209, 88, 0.3);
}

.act3-prim-badge-amber {
  background: rgba(255, 159, 10, 0.12);
  color: #ffd60a;
  border-color: rgba(255, 159, 10, 0.3);
}

.act3-prim-badge-indigo {
  background: rgba(94, 92, 230, 0.15);
  color: #a4a2ff;
  border-color: rgba(94, 92, 230, 0.35);
}

.act3-prim-badge-rose {
  background: rgba(255, 69, 58, 0.12);
  color: #ff6961;
  border-color: rgba(255, 69, 58, 0.3);
}

.act3-prim-namespace {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: var(--text-muted, #71717a);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.act3-prim-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.42rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.act3-prim-desc {
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--text-secondary, #a1a1aa);
}

/* Interactive Playground Box inside each Primitive Card */
.act3-widget-box {
  background: rgba(7, 8, 13, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.act3-widget-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.act3-window-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.act3-window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.act3-window-dots span:nth-child(1) { background: #ff5f56; }
.act3-window-dots span:nth-child(2) { background: #ffbd2e; }
.act3-window-dots span:nth-child(3) { background: #27c93f; }

.act3-mini-tabs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.act3-mini-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #a1a1aa);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.act3-mini-tab:hover,
.act3-mini-tab.active {
  background: rgba(41, 151, 255, 0.18);
  border-color: rgba(41, 151, 255, 0.5);
  color: #fff;
}

.act3-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.24), rgba(94, 92, 230, 0.24));
  border: 1px solid rgba(41, 151, 255, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
}

.act3-action-btn:hover {
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.38), rgba(94, 92, 230, 0.38));
  border-color: #2997ff;
  box-shadow: 0 0 20px rgba(41, 151, 255, 0.28);
  transform: translateY(-1px);
}

.act3-action-btn-emerald {
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.22), rgba(16, 185, 129, 0.22));
  border-color: rgba(48, 209, 88, 0.48);
}

.act3-action-btn-emerald:hover {
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.35), rgba(16, 185, 129, 0.35));
  border-color: #30d158;
  box-shadow: 0 0 20px rgba(48, 209, 88, 0.3);
}

/* --------------------------------------------------------------------------
   PRIMITIVE 1: STEALTH BROWSER (DOM SCRAPER)
   -------------------------------------------------------------------------- */
.act3-browser-urlbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: #d4d4d8;
}

.act3-browser-lock {
  color: #30d158;
  font-weight: 600;
}

.act3-proxy-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(48, 209, 88, 0.14);
  color: #30d158;
  border: 1px solid rgba(48, 209, 88, 0.3);
}

.act3-browser-viewport {
  position: relative;
  min-height: 185px;
  background: #0b0d14;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px;
  overflow: hidden;
}

.act3-scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: -10%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2997ff, #30d158, transparent);
  box-shadow: 0 0 18px #2997ff;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.act3-browser-viewport.scraping .act3-scan-beam {
  opacity: 1;
  animation: act3ScanSweep 1.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes act3ScanSweep {
  0% { top: 0%; opacity: 1; }
  85% { top: 96%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.act3-auth-wall-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(255, 159, 10, 0.12);
  border: 1px solid rgba(255, 159, 10, 0.3);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  color: #ffd60a;
  margin-bottom: 10px;
  transition: all 0.25s ease;
}

.act3-auth-wall-banner.bypassed {
  background: rgba(48, 209, 88, 0.12);
  border-color: rgba(48, 209, 88, 0.35);
  color: #30d158;
}

.act3-scrape-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.act3-scrape-tier {
  position: relative;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  transition: all 0.25s ease;
}

.act3-scrape-tier.extracted {
  border: 1px solid rgba(48, 209, 88, 0.55);
  background: rgba(48, 209, 88, 0.07);
  box-shadow: 0 0 14px rgba(48, 209, 88, 0.12);
}

.act3-dom-tag {
  display: inline-block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 9.5px;
  color: #66b8ff;
  background: rgba(41, 151, 255, 0.14);
  padding: 1px 5px;
  border-radius: 4px;
  margin-bottom: 5px;
}

.act3-tier-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.act3-tier-price {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 14px;
  font-weight: 700;
  color: #30d158;
}

.act3-tier-note {
  font-size: 10px;
  color: var(--text-muted, #71717a);
  margin-top: 3px;
}

.act3-browser-json-view {
  display: none;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  line-height: 1.5;
  color: #30d158;
  background: rgba(0, 0, 0, 0.45);
  padding: 10px;
  border-radius: 8px;
  max-height: 155px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.act3-browser-viewport.show-json .act3-scrape-visual-wrap {
  display: none;
}

.act3-browser-viewport.show-json .act3-browser-json-view {
  display: block;
}

.act3-status-log {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: var(--text-secondary, #a1a1aa);
}

/* --------------------------------------------------------------------------
   PRIMITIVE 2: AUTONOMOUS PHONE & SMS (+1-415-890-NACE)
   -------------------------------------------------------------------------- */
.act3-phone-deck {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.act3-call-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(48, 209, 88, 0.08);
  border: 1px solid rgba(48, 209, 88, 0.25);
}

.act3-caller-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.act3-call-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #30d158, #0071e3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.act3-caller-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}

.act3-caller-sub {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  color: #30d158;
}

.act3-waveform-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 26px;
}

.act3-wave-bar {
  width: 3px;
  height: 6px;
  border-radius: 99px;
  background: #30d158;
  opacity: 0.45;
  transition: height 0.12s ease, opacity 0.12s ease;
}

.act3-waveform-bars.playing .act3-wave-bar {
  opacity: 1;
  animation: act3WaveBounce 0.65s infinite ease-in-out alternate;
}

@keyframes act3WaveBounce {
  0% { height: 5px; }
  100% { height: 24px; }
}

.act3-transcript-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 145px;
  overflow-y: auto;
}

.act3-transcript-line {
  font-size: 11.5px;
  line-height: 1.45;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary, #a1a1aa);
  transition: all 0.22s ease;
}

.act3-transcript-line.active-line {
  background: rgba(41, 151, 255, 0.13);
  border-left-color: #2997ff;
  color: #fff;
}

.act3-transcript-speaker {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 6px;
  color: #66b8ff;
}

.act3-transcript-speaker.vendor {
  color: #ffd60a;
}

.act3-sms-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(41, 151, 255, 0.16), rgba(48, 209, 88, 0.14));
  border: 1px solid rgba(48, 209, 88, 0.45);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.act3-sms-toast.flash {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(48, 209, 88, 0.4);
}

.act3-sms-code {
  font-size: 13px;
  font-weight: 700;
  color: #30d158;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(48, 209, 88, 0.4);
  letter-spacing: 0.06em;
}

.act3-dual-btn-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   PRIMITIVE 3: CORPORATE INBOX (intern@youragency.com)
   -------------------------------------------------------------------------- */
.act3-inbox-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.act3-thread-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.act3-thread-tab {
  text-align: left;
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: all 0.18s ease;
}

.act3-thread-tab:hover,
.act3-thread-tab.active {
  background: rgba(41, 151, 255, 0.14);
  border-color: rgba(41, 151, 255, 0.48);
}

.act3-thread-tab-tag {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 9.5px;
  font-weight: 700;
  color: #ffd60a;
  display: block;
  margin-bottom: 2px;
}

.act3-thread-tab-title {
  font-size: 11px;
  font-weight: 600;
  color: #f5f5f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.act3-email-pane {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
}

.act3-email-headers {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 8px;
  margin-bottom: 8px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  color: var(--text-secondary, #a1a1aa);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.act3-email-subj {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.act3-email-body {
  font-size: 11.8px;
  line-height: 1.52;
  color: #d4d4d8;
  margin-bottom: 10px;
}

.act3-email-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.act3-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(41, 151, 255, 0.28);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  color: #66b8ff;
}

/* --------------------------------------------------------------------------
   PRIMITIVE 4: SPEND-CAPPED VIRTUAL VISA CARD
   -------------------------------------------------------------------------- */
.act3-visa-stage {
  perspective: 900px;
  margin-bottom: 4px;
}

.act3-visa-card {
  position: relative;
  border-radius: 16px;
  padding: 18px 20px;
  background: radial-gradient(circle at 85% 18%, rgba(41, 151, 255, 0.28), transparent 48%),
              linear-gradient(135deg, #161822 0%, #090a0f 58%, #121521 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.25s ease;
  cursor: grab;
  overflow: hidden;
  user-select: none;
}

.act3-visa-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 30%), rgba(255, 255, 255, 0.16), transparent 55%);
  pointer-events: none;
}

.act3-visa-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.act3-visa-chip {
  width: 38px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffd60a, #ff9f0a);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(255, 214, 10, 0.25);
  position: relative;
}

.act3-visa-cap-pill {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.16);
  border: 1px solid rgba(48, 209, 88, 0.45);
  color: #30d158;
}

.act3-visa-number {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.act3-visa-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  color: #a1a1aa;
}

.act3-visa-holder strong {
  display: block;
  color: #fff;
  font-size: 11.5px;
  margin-top: 2px;
}

.act3-visa-brand {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #fff;
}

.act3-slider-row {
  display: flex;
   flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.act3-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
}

.act3-cap-presets {
  display: inline-flex;
  gap: 4px;
}

.act3-cap-preset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d4d4d8;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 5px;
  cursor: pointer;
}

.act3-cap-preset-btn.active,
.act3-cap-preset-btn:hover {
  background: rgba(48, 209, 88, 0.2);
  border-color: #30d158;
  color: #fff;
}

.act3-range-input {
  width: 100%;
  accent-color: #30d158;
  cursor: pointer;
}

/* Slack Approval Modal inside Primitive 4 */
.act3-slack-modal {
  display: none;
  padding: 12px;
  border-radius: 12px;
  background: #141622;
  border: 1px solid rgba(41, 151, 255, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  animation: act3PopIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.act3-slack-modal.open {
  display: block;
}

@keyframes act3PopIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.act3-slack-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  color: #66b8ff;
  margin-bottom: 6px;
}

.act3-slack-modal-body {
  font-size: 11.8px;
  line-height: 1.45;
  color: #e4e4e7;
  margin-bottom: 10px;
}

.act3-slack-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.act3-approve-btn {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(48, 209, 88, 0.2);
  border: 1px solid #30d158;
  color: #30d158;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.act3-approve-btn:hover {
  background: #30d158;
  color: #050508;
}

.act3-decline-btn {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 69, 58, 0.15);
  border: 1px solid rgba(255, 69, 58, 0.55);
  color: #ff6961;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.act3-decline-btn:hover {
  background: #ff453a;
  color: #fff;
}

/* --------------------------------------------------------------------------
   PRIMITIVE 5: E2B PYTHON SANDBOX & ARTIFACT FACTORY
   -------------------------------------------------------------------------- */
.act3-input-files-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.act3-raw-file-btn {
  text-align: left;
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.18s ease;
}

.act3-raw-file-btn:hover,
.act3-raw-file-btn.active {
  background: rgba(94, 92, 230, 0.2);
  border-color: rgba(94, 92, 230, 0.65);
}

.act3-raw-file-name {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.act3-raw-file-meta {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 9.5px;
  color: var(--text-muted, #71717a);
}

.act3-artifact-preview {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 11px;
  min-height: 156px;
}

.act3-artifact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.act3-artifact-title {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  font-weight: 700;
  color: #30d158;
}

.act3-formula-bar {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #ffd60a;
  margin-bottom: 8px;
}

.act3-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
}

.act3-mini-table th,
.act3-mini-table td {
  padding: 5px 7px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.act3-mini-table th {
  color: var(--text-muted, #71717a);
  font-weight: 600;
}

.act3-mini-table td {
  color: #e4e4e7;
}

/* --------------------------------------------------------------------------
   PRIMITIVE 6: PERSISTENT CROSS-CHANNEL MEMORY + SOC 2 SHIELD
   -------------------------------------------------------------------------- */
.act3-memory-graph-stage {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.act3-channel-nodes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.act3-channel-node-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.act3-channel-node-btn.active,
.act3-channel-node-btn:hover {
  background: rgba(48, 209, 88, 0.14);
  border-color: rgba(48, 209, 88, 0.5);
  color: #fff;
}

.act3-memory-detail-pane {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.act3-memory-Vector-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  color: #30d158;
  margin-bottom: 4px;
}

.act3-memory-recall-text {
  font-size: 11.5px;
  line-height: 1.48;
  color: #e4e4e7;
}

.act3-soc2-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.act3-soc2-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(48, 209, 88, 0.1);
  border: 1px solid rgba(48, 209, 88, 0.32);
  color: #30d158;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.act3-soc2-toggle:hover {
  background: rgba(48, 209, 88, 0.2);
}

/* --------------------------------------------------------------------------
   PART B: THE 7,002-ENDPOINT TREG + MONID WATERFALL SIMULATOR
   -------------------------------------------------------------------------- */
.act3-waterfall-section {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(170deg, rgba(18, 21, 32, 0.92) 0%, rgba(8, 10, 16, 0.97) 100%);
  border: 1px solid rgba(41, 151, 255, 0.25);
  padding: 48px 40px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(41, 151, 255, 0.08);
  overflow: hidden;
}

.act3-wf-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 34px;
}

.act3-wf-headline {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.85rem, 3.3vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 14px;
}

.act3-wf-subhead {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-secondary, #a1a1aa);
}

.act3-engine-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.act3-stat-tile {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.act3-stat-val {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.act3-stat-val span {
  color: #30d158;
}

.act3-stat-label {
  font-size: 12px;
  color: var(--text-secondary, #a1a1aa);
  line-height: 1.4;
}

/* Category Filter Tabs */
.act3-cat-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.act3-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.act3-cat-tab {
  padding: 9px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary, #a1a1aa);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.act3-cat-tab:hover,
.act3-cat-tab.active {
  background: rgba(41, 151, 255, 0.18);
  border-color: #2997ff;
  color: #fff;
  box-shadow: 0 0 20px rgba(41, 151, 255, 0.22);
}

.act3-search-input {
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  min-width: 250px;
  outline: none;
}

.act3-search-input:focus {
  border-color: #2997ff;
}

/* Category Endpoint Explorer Catalog */
.act3-endpoint-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.act3-endpoint-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.act3-endpoint-card:hover {
  background: rgba(41, 151, 255, 0.1);
  border-color: rgba(41, 151, 255, 0.45);
  transform: translateY(-2px);
}

.act3-ep-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.act3-ep-route {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  font-weight: 700;
  color: #66b8ff;
}

.act3-ep-price {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  font-weight: 700;
  color: #30d158;
  background: rgba(48, 209, 88, 0.12);
  padding: 2px 7px;
  border-radius: 5px;
}

.act3-ep-desc {
  font-size: 12px;
  color: #d4d4d8;
  line-height: 1.45;
}

.act3-ep-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  color: var(--text-muted, #71717a);
}

/* Fire Waterfall Query Controls */
.act3-wf-controls-box {
  background: rgba(6, 7, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 22px;
}

.act3-wf-controls-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.act3-wf-controls-title {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.act3-failover-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  color: #ffd60a;
  cursor: pointer;
  user-select: none;
}

.act3-preset-queries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.act3-fire-query-btn {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.14), rgba(48, 209, 88, 0.1));
  border: 1px solid rgba(41, 151, 255, 0.4);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.act3-fire-query-btn:hover,
.act3-fire-query-btn.active {
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.28), rgba(48, 209, 88, 0.22));
  border-color: #30d158;
  box-shadow: 0 0 28px rgba(48, 209, 88, 0.25);
  transform: translateY(-2px);
}

.act3-fq-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  color: #30d158;
}

.act3-fq-label {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* Waterfall Execution Pipeline & JSON Output */
.act3-wf-simulator-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 18px;
  align-items: stretch;
}

.act3-wf-nodes-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.act3-wf-node {
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.act3-wf-node.state-checking {
  border-color: #2997ff;
  background: rgba(41, 151, 255, 0.12);
  box-shadow: 0 0 20px rgba(41, 151, 255, 0.22);
}

.act3-wf-node.state-success {
  border-color: #30d158;
  background: rgba(48, 209, 88, 0.11);
  box-shadow: 0 0 22px rgba(48, 209, 88, 0.18);
}

.act3-wf-node.state-rerouted {
  border-color: #ff9f0a;
  background: rgba(255, 159, 10, 0.1);
}

.act3-wf-node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.act3-wf-node-title {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.act3-wf-node-badge {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: #d4d4d8;
}

.act3-wf-node.state-success .act3-wf-node-badge {
  background: rgba(48, 209, 88, 0.2);
  color: #30d158;
}

.act3-wf-node.state-rerouted .act3-wf-node-badge {
  background: rgba(255, 159, 10, 0.2);
  color: #ffd60a;
}

.act3-wf-node-meta {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: var(--text-secondary, #a1a1aa);
}

.act3-wf-json-terminal {
  background: #05060a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.act3-wf-term-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: #66b8ff;
}

.act3-wf-json-pre {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  line-height: 1.52;
  color: #30d158;
  overflow-x: auto;
  max-height: 230px;
  white-space: pre-wrap;
}

.act3-wf-receipt-bar {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: #d4d4d8;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .act3-primitives-grid {
    grid-template-columns: 1fr;
  }
  .act3-engine-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .act3-endpoint-catalog,
  .act3-preset-queries,
  .act3-wf-simulator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  #act-3-mount {
    padding: 80px 0 90px;
  }
  .act3-waterfall-section {
    padding: 28px 18px;
  }
  .act3-scrape-tiers-grid,
  .act3-thread-tabs,
  .act3-input-files-row,
  .act3-memory-graph-stage,
  .act3-engine-stats-bar {
    grid-template-columns: 1fr;
  }
}
