/* ==========================================================================
   RevNexus AI - Component Styles
   High-Fidelity Cyber Glassmorphic Widgets & Interactive Elements
   ========================================================================== */

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.glass-card.highlight-emerald {
  border-color: var(--border-glow);
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.15);
}

.glass-card.highlight-cyan {
  border-color: var(--border-cyan-glow);
  box-shadow: 0 4px 24px rgba(6, 182, 212, 0.15);
}

.glass-card.highlight-rose {
  border-color: var(--accent-rose-glow);
  box-shadow: 0 4px 24px rgba(244, 63, 94, 0.15);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* KPI Metrics Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0.7;
}

.kpi-card.warning::before {
  background: var(--grad-warning);
}

.kpi-card.purple::before {
  background: var(--grad-accent);
}

.kpi-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-bright);
  margin: 10px 0 6px;
  letter-spacing: -0.02em;
}

.kpi-subtext {
  font-size: 0.8rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend-positive {
  color: var(--text-emerald);
  font-weight: 600;
}

.trend-negative {
  color: var(--text-rose);
  font-weight: 600;
}

/* 5-Stage Revenue Chain Visualizer */
.revenue-chain-container {
  margin-bottom: 28px;
}

.chain-steps-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
  margin-top: 14px;
}

.chain-step {
  background: rgba(14, 20, 34, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 16px;
  position: relative;
  transition: all var(--transition-normal);
  cursor: pointer;
  user-select: none;
}

.chain-step:hover {
  background: rgba(22, 31, 52, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.chain-step.active {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25), inset 0 0 12px rgba(16, 185, 129, 0.1);
}

.chain-step.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--accent-emerald);
}

.chain-step-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chain-step-health-pill {
  font-size: 0.64rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chain-step-health-pill.optimal {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.chain-step-health-pill.warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.chain-step-health-pill.alert {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.chain-step-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.chain-step-query {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.chain-leak-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(244, 63, 94, 0.15);
  color: var(--text-rose);
  border: 1px solid rgba(244, 63, 94, 0.25);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-step-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xs);
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-step-action:hover {
  background: var(--accent-emerald);
  color: #051610;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

/* Interconnected Overview Bar */
.chain-enterprise-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 12px 18px;
  background: rgba(10, 15, 26, 0.65);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
}

.chain-enterprise-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.chain-stat-item {
  display: flex;
  flex-direction: column;
}

.chain-stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.chain-stat-value {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Diagnostic Details Console Panel */
.chain-diagnostics-console {
  margin-top: 18px;
  background: rgba(10, 16, 28, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chain-diagnostics-console::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
}

.chain-console-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.chain-console-title-area h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-bright);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chain-console-title-area p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 6px 0;
}

.chain-console-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chain-gauge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.chain-gauge-score {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

.chain-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.chain-metric-card {
  background: rgba(14, 20, 34, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  transition: all var(--transition-fast);
}

.chain-metric-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(22, 31, 52, 0.8);
}

.chain-metric-card-label {
  font-size: 0.72rem;
  color: var(--text-subtle);
  font-weight: 600;
  margin-bottom: 4px;
}

.chain-metric-card-val {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-bright);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.chain-metric-card-target {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

.chain-metric-card-hint {
  font-size: 0.68rem;
  color: var(--text-subtle);
  margin-top: 4px;
  line-height: 1.3;
}

/* Console 2-Column Split: Checklist + Ripple Effect */
.chain-console-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-bottom: 20px;
}

.chain-audit-box, .chain-ripple-box {
  background: rgba(14, 20, 34, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 16px;
}

.chain-box-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chain-checklist-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chain-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chain-check-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.chain-check-item input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent-emerald);
  cursor: pointer;
  width: 15px;
  height: 15px;
}

.chain-check-label {
  font-size: 0.78rem;
  color: var(--text-main);
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
}

.chain-ripple-item {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  line-height: 1.4;
}

.chain-ripple-item.upstream {
  background: rgba(6, 182, 212, 0.08);
  border-left: 3px solid var(--accent-cyan);
  color: #bae6fd;
}

.chain-ripple-item.downstream {
  background: rgba(244, 63, 94, 0.08);
  border-left: 3px solid var(--accent-rose);
  color: #fecdd3;
}

.chain-ripple-item.enterprise {
  background: rgba(168, 85, 247, 0.08);
  border-left: 3px solid var(--accent-purple);
  color: #e9d5ff;
}

/* Remediation Action Strip */
.chain-remediation-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
}

.chain-remediation-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chain-remediation-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

.chain-remediation-impact {
  font-size: 0.74rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* Dedicated Interactive Stage Workbench */
.chain-interactive-workbench {
  margin-top: 18px;
  margin-bottom: 18px;
  background: rgba(14, 23, 42, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.3);
}

.workbench-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.workbench-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workbench-title h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.grid-2col-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .grid-2col-compact {
    grid-template-columns: 1fr;
  }
}

.pill-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.btn-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-chip:hover, .btn-chip.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: #fff;
}

.stat-mini {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-mini-label {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.stat-mini-val {
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.stalled-leads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 600px) {
  .stalled-leads-grid {
    grid-template-columns: 1fr;
  }
}

.stalled-lead-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  transition: all var(--transition-fast);
}

.stalled-lead-card:hover {
  border-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.08);
}

.stalled-lead-card.resolved {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

@media (max-width: 992px) {

  .chain-steps-track {
    grid-template-columns: 1fr;
  }
  .chain-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chain-console-split {
    grid-template-columns: 1fr;
  }
}

/* 2-Column & 3-Column Layouts */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

/* Sales Copilot Section (The 5 Questions) */
.copilot-questions-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  overflow-x: auto;
}

.q-nav-btn {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.q-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-bright);
}

.q-nav-btn.active {
  background: var(--grad-primary);
  color: #05070c;
  border-color: transparent;
  box-shadow: var(--shadow-neon-emerald);
}

/* Lead Queue Table */
.lead-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.data-table th {
  background: rgba(10, 15, 26, 0.9);
  color: var(--text-subtle);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-card);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-bright);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-alpha {
  background: rgba(16, 185, 129, 0.18);
  color: var(--text-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-beta {
  background: rgba(6, 182, 212, 0.18);
  color: var(--text-cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.badge-gamma {
  background: rgba(245, 158, 11, 0.18);
  color: var(--text-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-omega {
  background: rgba(244, 63, 94, 0.18);
  color: var(--text-rose);
  border: 1px solid rgba(244, 63, 94, 0.4);
}

/* Latency decay countdown badge */
.latency-timer {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: rgba(244, 63, 94, 0.1);
  color: var(--text-rose);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

/* Objection & Copilot Script Card */
.script-box {
  background: rgba(10, 15, 26, 0.95);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.7;
  position: relative;
  margin: 16px 0;
  font-family: var(--font-body);
}

.script-box .script-quote {
  font-style: italic;
  color: #ffffff;
}

.killer-question-box {
  background: rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--accent-indigo);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 14px;
  font-size: 0.86rem;
}

/* Button & Controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: #05070c;
  box-shadow: var(--shadow-neon-emerald);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

/* Form inputs & Range sliders */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

/* Range Slider Styling */
.range-slider-wrapper {
  margin: 16px 0;
}

.slider-val-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-emerald);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-emerald);
  transition: transform var(--transition-fast);
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Leakage Funnel Stage Bars */
.funnel-visualizer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.funnel-bar-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.funnel-stage-meta {
  width: 180px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.funnel-stage-name {
  font-weight: 600;
  color: var(--text-bright);
}

.funnel-stage-drop {
  font-size: 0.75rem;
  color: var(--text-rose);
}

.funnel-track {
  flex: 1;
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xs);
  overflow: hidden;
  position: relative;
  display: flex;
}

.funnel-fill {
  height: 100%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #05070c;
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.funnel-drop-fill {
  background: rgba(244, 63, 94, 0.2);
  border-left: 2px dashed rgba(244, 63, 94, 0.5);
}

/* Industry Grid & Cards */
.industry-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-bright);
}

.filter-chip.active {
  background: var(--accent-cyan);
  color: #05070c;
  font-weight: 600;
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.industry-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.industry-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
}

.industry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.industry-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-bright);
}

.industry-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  font-weight: 600;
}

.industry-pain-row {
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.industry-pain-row .label {
  color: var(--text-subtle);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.68rem;
  display: block;
}

.industry-pain-row .val {
  color: var(--text-muted);
}

.industry-solution-box {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

.solution-badge-label {
  font-weight: 700;
  color: var(--text-emerald);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

/* Live Simulation Event Stream Drawer / Box */
.live-stream-box {
  background: rgba(5, 7, 12, 0.95);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 16px;
  height: 280px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stream-event-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-emerald);
  animation: slideInLeft 200ms ease-out;
}

.stream-event-item.warning {
  border-left-color: var(--accent-amber);
}

.stream-event-item.danger {
  border-left-color: var(--accent-rose);
}

.stream-event-item.info {
  border-left-color: var(--accent-cyan);
}

.event-timestamp {
  color: var(--text-subtle);
  font-size: 0.72rem;
  white-space: nowrap;
}

.event-content {
  flex: 1;
  color: var(--text-main);
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(14, 20, 34, 0.95);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-card);
  color: var(--text-bright);
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 250ms cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 420px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 16, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 200ms ease;
}

.modal-backdrop.open,
.modal-backdrop.active {
  display: flex;
}

.modal-window {
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 28px;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: scaleUp 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: var(--radius-xs);
  transition: all 150ms ease;
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Auth Component Styles */
.auth-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glow);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background: var(--accent-cyan);
  color: #040710;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.vip-bypass-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid var(--accent-emerald);
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   PQC CYBER SECURITY FORTRESS STYLES (NIST FIPS 203 / 204 / 205)
   ========================================================================== */

.pqc-header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.pqc-header-badge:hover {
  background: rgba(6, 182, 212, 0.16);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

.pqc-shield-icon {
  font-size: 1rem;
  filter: drop-shadow(0 0 4px var(--accent-cyan));
}

.pqc-header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.pqc-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.pqc-algo {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.pqc-quantum-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pqcPulse 2s infinite ease-in-out;
}

@keyframes pqcPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.pqc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  transition: border-color var(--transition-normal);
}

.pqc-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
}

.pqc-hero-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(16, 185, 129, 0.08) 50%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.pqc-hero-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pqc-vip-clearance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.pqc-crypto-box {
  background: #020408;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.6;
  position: relative;
  overflow-x: auto;
  word-break: break-all;
}

.pqc-crypto-box .key-label {
  color: var(--accent-cyan);
  font-weight: 600;
}

.pqc-crypto-box .key-val {
  color: #38bdf8;
}

.pqc-crypto-box .key-emerald {
  color: var(--accent-emerald);
}

.pqc-threat-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.8rem;
}

.pqc-threat-table th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.pqc-threat-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
}

.pqc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-safe {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
}

.status-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
}

.status-critical {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid var(--accent-rose);
  color: var(--accent-rose);
}

.pqc-audit-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.pqc-audit-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  transition: background var(--transition-fast);
}

.pqc-audit-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(6, 182, 212, 0.25);
}

.pqc-audit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pqc-audit-id {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
}

.pqc-audit-time {
  font-size: 0.7rem;
  color: var(--text-subtle);
}

.pqc-audit-sign {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   GLOBAL OMNICHANNEL MARKETING, SALES & MULTILINGUAL COMMUNICATOR STYLES
   ========================================================================== */

.global-persona-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.global-persona-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.global-persona-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: rgba(6, 182, 212, 0.3);
}

.global-persona-tab.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.25);
  font-weight: 700;
}

.global-chat-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #020408;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  max-height: 380px;
  overflow-y: auto;
}

.global-chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  position: relative;
  animation: fadeInBubble 250ms ease;
}

@keyframes fadeInBubble {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.global-chat-customer {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border-bottom-left-radius: 2px;
}

.global-chat-customer .chat-sender {
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 0.72rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.global-chat-customer .chat-translation {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.74rem;
  color: var(--text-muted);
  font-style: italic;
}

.global-chat-rep {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.global-chat-rep .chat-sender {
  font-weight: 700;
  color: var(--accent-emerald);
  font-size: 0.72rem;
  margin-bottom: 4px;
  text-align: right;
}

.global-intent-meter {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.funnel-progression-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0;
  margin-bottom: 14px;
}

.funnel-stage-step {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.funnel-stage-step.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  font-weight: 700;
}

.funnel-stage-step.completed {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--accent-cyan);
  color: #38bdf8;
}

.lang-toggle-wrapper select {
  cursor: pointer;
  outline: none;
}

/* Executive Tactical Operations Studio */
.tactical-pane {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.tactical-pane.active {
  display: block;
}

.wa-tone-chip {
  padding: 4px 10px;
  font-size: 0.72rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wa-tone-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.wa-tone-chip.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  font-weight: 700;
}

/* Interactive KPI Cards */
.kpi-card.interactive {
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.kpi-card.interactive:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.kpi-card.interactive .kpi-subtext::after {
  content: ' ↗';
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Evidence Lab UI Polish & Print Styles */
#view-evidence-lab input[type="range"] {
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

#view-evidence-lab input[type="range"]::-webkit-slider-thumb {
  cursor: grab;
}

#view-evidence-lab input[type="range"]:active::-webkit-slider-thumb {
  cursor: grabbing;
}

@media print {
  body * {
    visibility: hidden;
  }
  #modal-evidence-dossier,
  #modal-evidence-dossier * {
    visibility: visible;
  }
  #modal-evidence-dossier {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: #ffffff !important;
    color: #111827 !important;
    display: block !important;
    padding: 0 !important;
  }
  #modal-evidence-dossier .modal-window {
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    color: #111827 !important;
    padding: 20px !important;
  }
  #modal-evidence-dossier .modal-header,
  #modal-evidence-dossier .modal-close-btn,
  #modal-evidence-dossier .btn-primary,
  #modal-evidence-dossier .btn-secondary,
  .top-header,
  .sidebar {
    display: none !important;
  }
  #dossier-printable-area {
    color: #111827 !important;
  }
  #dossier-printable-area div,
  #dossier-printable-area span,
  #dossier-printable-area p,
  #dossier-printable-area h3,
  #dossier-printable-area h4 {
    color: inherit !important;
  }
}

/* ==========================================================================
   Enterprise Real-Time Telemetry & Operations Dock
   ========================================================================== */
.telemetry-operations-dock {
  position: fixed;
  bottom: 0;
  left: 280px;
  right: 0;
  height: 42px;
  background: rgba(6, 10, 18, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 88;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.6);
  transition: left var(--transition-normal);
}

@media (max-width: 1024px) {
  .telemetry-operations-dock {
    left: 0;
    padding: 0 12px;
    height: 46px;
    flex-wrap: wrap;
  }
}

.dock-left, .dock-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.telemetry-node {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.telemetry-label {
  color: #64748b;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.telemetry-val {
  color: #f8fafc;
  font-weight: 600;
}

.telemetry-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.pulse-dot-emerald {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-ring 2s infinite ease-out;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-outline-cyan {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
}

.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.22);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.content-body {
  padding-bottom: 70px !important;
}

/* Shortcut Modal Styles */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
}

.shortcut-item kbd {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #38bdf8;
}

/* ==========================================================================
   Datadog-Grade Real-Time Event Stream & Terminal Drawer
   ========================================================================== */
.terminal-stream-drawer {
  position: fixed;
  bottom: 42px;
  left: 280px;
  right: 0;
  height: 280px;
  background: rgba(3, 7, 14, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  z-index: 87;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s ease;
  transform: translateY(115%);
}

.terminal-stream-drawer.open {
  transform: translateY(0);
}

.terminal-stream-drawer.maximized {
  height: 55vh;
}

@media (max-width: 1024px) {
  .terminal-stream-drawer {
    left: 0;
  }
}

.terminal-header {
  height: 38px;
  background: rgba(8, 12, 22, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-logs-body {
  flex: 1;
  padding: 10px 16px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: #94a3b8;
  background: #020408;
}

.terminal-log-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 2px 4px;
  border-radius: 2px;
  transition: background 0.1s ease;
}

.terminal-log-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.term-time { color: #64748b; font-size: 0.67rem; flex-shrink: 0; }
.term-level-info { color: #38bdf8; font-weight: 700; flex-shrink: 0; }
.term-level-warn { color: #f59e0b; font-weight: 700; flex-shrink: 0; }
.term-level-sec { color: #10b981; font-weight: 700; flex-shrink: 0; }
.term-level-auto { color: #c084fc; font-weight: 700; flex-shrink: 0; }
.term-tag { color: #94a3b8; font-weight: 600; flex-shrink: 0; }
.term-msg { color: #f1f5f9; flex: 1; word-break: break-word; }

.btn-outline-emerald {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
}

.btn-outline-emerald:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--accent-emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Enterprise Pricing & Stripe Checkout Cards
   ========================================================================== */
.pricing-hero {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-trial-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.18));
  border: 1px solid var(--accent-emerald);
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
  animation: pulse-ring 3s infinite ease-out;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.pricing-card.featured {
  border: 2px solid var(--accent-emerald);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%, rgba(10, 15, 26, 0.95) 50%);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.25);
}

.pricing-card.pqc-tier {
  border: 1px solid rgba(129, 140, 248, 0.4);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(10, 15, 26, 0.95) 60%);
}

.pricing-badge-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  color: #040710;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 4px 14px;
  border-radius: 9999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.pricing-badge-pqc {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 4px 14px;
  border-radius: 9999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-tier-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.pricing-tier-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  min-height: 40px;
  line-height: 1.45;
}

.pricing-amount-block {
  margin: 20px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.pricing-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-trial-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.pricing-feature-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.pricing-trust-bar {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   First Web Page Layer: Enterprise Gateway & Authentication Portal
   ========================================================================== */
#portal-gateway-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #030712;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  z-index: 999;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

#portal-gateway-layer.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.98);
}

.portal-nav {
  height: 72px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 16, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
}

@media (max-width: 768px) {
  .portal-nav {
    padding: 0 16px;
  }
}

.portal-brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-main-container {
  flex: 1;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 1024px) {
  .portal-main-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 16px;
  }
}

/* Left Column: Innovations Showcase */
.portal-innovations-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid var(--accent-cyan);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  width: fit-content;
}

.portal-hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .portal-hero-title {
    font-size: 1.85rem;
  }
}

.portal-hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 620px;
}

.portal-innovation-card {
  background: rgba(10, 15, 26, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition-fast);
}

.portal-innovation-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(14, 22, 38, 0.85);
  transform: translateX(4px);
}

.portal-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.portal-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.portal-card-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Customer Support & Enquiries Card */
.portal-support-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
}

.portal-support-email {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-emerald);
  text-decoration: none;
}

.portal-support-email:hover {
  text-decoration: underline;
}

/* Right Column: Beautiful Sign In / Sign Up Form */
.portal-form-card {
  background: rgba(8, 12, 22, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 34px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(6, 182, 212, 0.15);
}

.portal-form-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 4px;
  margin-bottom: 22px;
}

.portal-tab-btn {
  flex: 1;
  padding: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.portal-tab-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
  color: #fff;
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.portal-phone-wrap {
  display: flex;
  gap: 8px;
}

.portal-phone-wrap select {
  width: 95px;
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 8px;
}

.portal-phone-wrap input {
  flex: 1;
}

.portal-footer-hint {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-subtle);
  margin-top: 14px;
  line-height: 1.45;
}

.auth-inline-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-emerald);
  cursor: pointer;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.auth-inline-link:hover {
  color: var(--accent-cyan);
}

.reset-link-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
}

.reset-link-url {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  padding: 8px 10px;
  word-break: break-all;
  text-decoration: none;
}

.reset-link-url:hover {
  text-decoration: underline;
  border-color: var(--accent-cyan);
}
