@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Runink Core Design System Colors */
  --bg-dark: #120907;
  --surface-elevated: #1D100D;
  --surface-highlight: #2A1A18;

  --accent-orange: #C93318;
  --accent-orange-light: #EC5B13;
  --accent-orange-muted: #6E2012;

  --color-sentinel: #EF4444;
  --color-forge: #14B8A6;
  --color-compliance: #22C55E;
  --color-finance: #3B82F6;
  --color-route: #A855F7;
  --color-operations: #FBBF24;

  --text-primary: #F8F6F6;
  --text-secondary: rgba(248, 246, 246, 0.6);
  --text-muted: rgba(248, 246, 246, 0.38);

  --glass-white-05: rgba(255, 255, 255, 0.05);
  --glass-white-10: rgba(255, 255, 255, 0.10);
  --glass-dark-10: rgba(0, 0, 0, 0.10);
  --glass-dark-40: rgba(0, 0, 0, 0.40);

  /* Layout Metrics */
  --border-radius-card: 24px;
  --border-radius-button: 12px;

  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* Background grid & ambient orbs */
.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-orbs::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 51, 24, 0.06) 0%, transparent 70%);
  filter: blur(80px);
}

.bg-orbs::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.03) 0%, transparent 70%);
  filter: blur(80px);
}

/* Full screen Split Layout (Sidebar + Main App view) */
#desktop-layout {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Control Panel Sidebar (Left Column) */
.control-panel {
  width: 320px;
  background-color: rgba(20, 10, 8, 0.95);
  border-right: 1px solid var(--glass-white-05);
  display: flex;
  flex-direction: column;
  padding: 24px;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10;
  flex-shrink: 0;
}

.brand-area {
  margin-bottom: 20px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title span {
  color: var(--accent-orange-light);
}

.brand-desc {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 2px;
  margin-top: 4px;
}

/* Control Nav Group */
.control-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  margin-top: 16px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 4px;
}

.screen-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-white-05);
  border-radius: var(--border-radius-button);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.screen-pill:hover {
  background-color: var(--glass-white-05);
  color: var(--text-primary);
  border-color: rgba(236, 91, 19, 0.2);
}

.screen-pill.active {
  background-color: rgba(201, 51, 24, 0.12);
  border-color: var(--accent-orange);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(201, 51, 24, 0.08);
}

.screen-pill-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.screen-pill.active .screen-pill-status {
  background-color: var(--accent-orange-light);
  box-shadow: 0 0 6px var(--accent-orange-light);
}

/* Presentation Area (Right Column - Takes 100% height and width) */
.presentation-area {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
}

/* Laptop Viewport shell (removes mobile margins) */
.device-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Clean Laptop Top Bar */
.device-header {
  height: 56px;
  background-color: rgba(20, 10, 8, 0.5);
  border-bottom: 1px solid var(--glass-white-05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  z-index: 100;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Hide notch on full screen */
.device-notch {
  display: none;
}

/* Viewport content */
.device-screen-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Laptop Screen View */
.screen-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  padding-bottom: 60px;
  animation: viewSlideIn 0.35s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.screen-view.active {
  display: flex;
}

/* Laptop layout grids */
.screen-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.screen-grid-1 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Screen Title Header in Laptop App */
.screen-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.screen-header-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(42, 26, 24, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.screen-header-btn:hover {
  color: var(--text-primary);
  background-color: rgba(42, 26, 24, 0.6);
}

.screen-header-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.screen-header-subtitle {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot-red {
  width: 6px;
  height: 6px;
  background-color: var(--accent-orange-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-orange-light);
  animation: pulseRed 1.8s infinite alternate;
}

.screen-header-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.screen-header-title span {
  font-weight: 300;
  color: var(--text-secondary);
}

/* Cards & Components */
.flutter-card {
  border-radius: var(--border-radius-card);
  background: linear-gradient(135deg, rgba(42, 26, 24, 0.5) 0%, rgba(20, 10, 8, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.flutter-card.highlighted {
  border-color: rgba(201, 51, 24, 0.25);
  box-shadow: 0 8px 30px rgba(201, 51, 24, 0.08);
}

/* Impact Potential */
.impact-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.impact-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.impact-val-container {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.impact-val {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.impact-unit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.trend-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background-color: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  color: #22C55E;
  font-size: 0.8rem;
  font-weight: 700;
}

.trend-badge svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.trend-period {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: right;
}

/* Digital Twin Filter Cards */
.status-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-scroll-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.status-card {
  flex: 1;
  min-width: 110px;
  padding: 14px;
  background-color: rgba(42, 26, 24, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.status-card.selected {
  background-color: rgba(255,255,255,0.01);
}

.status-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.status-dot-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  top: -2px;
  right: -4px;
  border: 2px solid var(--bg-dark);
  z-index: 2;
}

.status-card-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-top: 8px;
  letter-spacing: 0.2px;
}

/* Specific status colors */
.status-sentinel { --theme-color: var(--color-sentinel); }
.status-forge { --theme-color: var(--color-forge); }
.status-compliance { --theme-color: var(--color-compliance); }
.status-finance { --theme-color: var(--color-finance); }
.status-route { --theme-color: var(--color-route); }
.status-operations { --theme-color: var(--color-operations); }

.status-card .status-icon-wrapper {
  color: var(--text-secondary);
}

.status-card.selected.status-sentinel { border-color: rgba(239, 68, 68, 0.4); background-color: rgba(239, 68, 68, 0.1); }
.status-card.selected.status-forge { border-color: rgba(20, 184, 166, 0.4); background-color: rgba(20, 184, 166, 0.1); }
.status-card.selected.status-compliance { border-color: rgba(34, 197, 94, 0.4); background-color: rgba(34, 197, 94, 0.1); }
.status-card.selected.status-finance { border-color: rgba(59, 130, 246, 0.4); background-color: rgba(59, 130, 246, 0.1); }
.status-card.selected.status-route { border-color: rgba(168, 85, 247, 0.4); background-color: rgba(168, 85, 247, 0.1); }
.status-card.selected.status-operations { border-color: rgba(251, 191, 36, 0.4); background-color: rgba(251, 191, 36, 0.1); }

.status-card.selected .status-icon-wrapper {
  color: var(--theme-color);
}
.status-card.selected.status-sentinel .status-icon-wrapper { background-color: rgba(239, 68, 68, 0.2); }
.status-card.selected.status-forge .status-icon-wrapper { background-color: rgba(20, 184, 166, 0.2); }
.status-card.selected.status-compliance .status-icon-wrapper { background-color: rgba(34, 197, 94, 0.2); }
.status-card.selected.status-finance .status-icon-wrapper { background-color: rgba(59, 130, 246, 0.2); }
.status-card.selected.status-route .status-icon-wrapper { background-color: rgba(168, 85, 247, 0.2); }
.status-card.selected.status-operations .status-icon-wrapper { background-color: rgba(251, 191, 36, 0.2); }
.status-card .status-dot-badge {
  background-color: var(--theme-color);
  box-shadow: 0 0 6px var(--theme-color);
}

/* Priority Actions Widget */
.priority-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.priority-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.priority-count-badge {
  padding: 4px 10px;
  background-color: rgba(201, 51, 24, 0.1);
  border: 1px solid rgba(201, 51, 24, 0.2);
  border-radius: 12px;
  color: var(--accent-orange);
  font-size: 0.65rem;
  font-weight: 800;
}

/* Action Cards */
.action-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-card-widget {
  background: linear-gradient(135deg, rgba(42, 26, 24, 0.5) 0%, rgba(20, 10, 8, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.action-card-widget:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.action-card-widget.critical-shadow {
  border-color: rgba(201, 51, 24, 0.2);
  box-shadow: 0 8px 30px rgba(201, 51, 24, 0.08);
}

.action-card-header {
  background-color: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.action-card-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.ai-star-icon {
  color: #a855f7;
}

.action-card-priority-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 900;
  color: #fff;
}

.action-card-body {
  padding: 20px;
}

.action-card-main-row {
  display: flex;
  gap: 16px;
}

.action-card-icon-container {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.action-card-content-area {
  flex: 1;
}

.action-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Call twin action controls */
.action-card-call-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 12px;
  gap: 12px;
}

.action-call-btn {
  background-color: rgba(201, 51, 24, 0.1);
  border: 1px solid rgba(201, 51, 24, 0.3);
  color: var(--accent-orange-light);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.action-call-btn:hover {
  background-color: rgba(201, 51, 24, 0.2);
  border-color: var(--accent-orange-light);
}

.action-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.action-card-source {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-card-source svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.action-card-impact-highlight {
  font-weight: 700;
  color: var(--accent-orange-light);
}

/* Route Twin Card OpenStreetMap */
.route-twin-widget {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-card);
  padding: 16px;
  margin-top: 16px;
}

.route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.route-stop {
  display: flex;
  flex-direction: column;
}

.route-stop-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.route-stop-val {
  font-weight: 700;
  color: var(--text-primary);
}

.route-line-connector {
  flex: 1;
  height: 2px;
  background-color: rgba(255,255,255,0.08);
  margin: 0 16px;
  position: relative;
}

.route-line-connector::after {
  content: '✈';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* OpenStreetMap container */
.osm-map-container {
  height: 250px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-top: 12px;
  overflow: hidden;
  background-color: #0b0604;
  z-index: 1;
}

.route-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 12px;
  margin-top: 12px;
}

.route-metric-box {
  display: flex;
  flex-direction: column;
}

.route-metric-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.route-metric-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.route-metric-val.green { color: #22C55E; }
.route-metric-val.red { color: #EF4444; }

/* Custom Twin Widgets Base */
.custom-twin-widget {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-card);
  padding: 16px;
  margin-top: 16px;
}

/* Sentinel Widget */
.sentinel-twin-widget .terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.sentinel-twin-widget .terminal-dots { display: flex; gap: 4px; }
.sentinel-twin-widget .terminal-dots span { width: 8px; height: 8px; border-radius: 50%; background-color: rgba(255,255,255,0.2); }
.sentinel-twin-widget .terminal-dots span:nth-child(1) { background-color: #EF4444; }
.sentinel-twin-widget .terminal-dots span:nth-child(2) { background-color: #FBBF24; }
.sentinel-twin-widget .terminal-dots span:nth-child(3) { background-color: #22C55E; }
.sentinel-twin-widget .terminal-title { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); letter-spacing: 1px; }
.sentinel-twin-widget .terminal-body { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); background: #0b0604; padding: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.04); margin-bottom: 12px; }
.sentinel-twin-widget .term-prompt { color: var(--color-sentinel); margin-right: 8px; }
.sentinel-twin-widget .term-line { margin-bottom: 4px; }
.sentinel-twin-widget .term-output { margin-bottom: 8px; padding-left: 16px; }
.sentinel-twin-widget .metric-row { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.04); padding-top: 12px; }
.sentinel-twin-widget .metric-label { font-size: 0.6rem; font-weight: 700; color: var(--text-muted); }
.sentinel-twin-widget .metric-val { font-size: 0.85rem; font-family: var(--font-mono); font-weight: 700; }

/* Forge Widget */
.forge-twin-widget .forge-comparison-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; background: #0b0604; padding: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.04); }
.forge-twin-widget .forge-supplier { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.forge-twin-widget .supplier-title { font-size: 0.6rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.forge-twin-widget .supplier-name { font-size: 0.85rem; font-weight: 700; color: #fff; }
.forge-twin-widget .supplier-metric { font-size: 0.75rem; color: var(--text-secondary); }
.forge-twin-widget .forge-vs { font-size: 0.7rem; font-weight: 800; color: var(--color-forge); background: rgba(20, 184, 166, 0.1); padding: 4px 8px; border-radius: 12px; margin: 0 16px; }
.forge-twin-widget .forge-metrics-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid rgba(255,255,255,0.04); padding-top: 12px; }
.forge-twin-widget .forge-metric { display: flex; flex-direction: column; gap: 4px; }
.forge-twin-widget .forge-metric span { font-size: 0.6rem; color: var(--text-muted); font-weight: 700; }
.forge-twin-widget .forge-metric strong { font-size: 0.85rem; font-family: var(--font-mono); color: #fff; }

/* Compliance Widget */
.compliance-twin-widget .compliance-rule-header { display: flex; align-items: center; gap: 8px; color: var(--color-compliance); font-weight: 700; font-size: 0.75rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(34, 197, 94, 0.2); }
.compliance-twin-widget .compliance-checklist { display: flex; flex-direction: column; gap: 8px; }
.compliance-twin-widget .checklist-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.04); font-size: 0.8rem; color: var(--text-secondary); }
.compliance-twin-widget .check-icon { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 800; }
.compliance-twin-widget .checklist-item.fail { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.05); color: #fff; }
.compliance-twin-widget .checklist-item.fail .check-icon { background: #EF4444; color: #fff; }
.compliance-twin-widget .checklist-item.warning { border-color: rgba(251,191,36,0.3); }
.compliance-twin-widget .checklist-item.warning .check-icon { background: #FBBF24; color: #000; }
.compliance-twin-widget .checklist-item.success { border-color: rgba(34,197,94,0.3); }
.compliance-twin-widget .checklist-item.success .check-icon { background: #22C55E; color: #fff; }

/* Finance Widget */
.finance-twin-widget .finance-ledger-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; color: var(--text-muted); font-weight: 700; margin-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 8px; }
.finance-twin-widget .finance-ledger-header strong { font-family: var(--font-mono); color: #fff; font-size: 0.85rem; }
.finance-twin-widget .finance-ledger-grid { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 0.8rem; margin-bottom: 12px; background: #0b0604; padding: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.04); }
.finance-twin-widget .ledger-row { display: flex; justify-content: space-between; color: var(--text-secondary); }
.finance-twin-widget .ledger-row.highlight { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 6px; margin-top: 4px; font-weight: 700; color: #fff; }
.finance-twin-widget .finance-dispute-reason { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); padding: 8px 12px; border-radius: 8px; color: var(--color-finance); }
.finance-twin-widget .finance-dispute-reason span { font-family: var(--font-mono); color: #fff; margin-left: 8px; }

/* Operations Widget */
.operations-twin-widget .telemetry-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); margin-bottom: 16px; }
.operations-twin-widget .telemetry-badge { background: rgba(251, 191, 36, 0.15); color: var(--color-operations); padding: 4px 8px; border-radius: 4px; border: 1px solid rgba(251, 191, 36, 0.3); }
.operations-twin-widget .telemetry-graph-mock { height: 60px; width: 100%; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); position: relative; }
.operations-twin-widget .telemetry-sparkline { width: 100%; height: 100%; display: block; }
.operations-twin-widget .telemetry-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.operations-twin-widget .t-metric { display: flex; flex-direction: column; gap: 4px; }
.operations-twin-widget .t-metric span { font-size: 0.6rem; font-weight: 700; color: var(--text-muted); }
.operations-twin-widget .t-metric strong { font-size: 0.85rem; font-family: var(--font-mono); color: #fff; }

/* Global utility */
.red { color: #EF4444 !important; }
.green { color: #22C55E !important; }
.yellow { color: #FBBF24 !important; }

/* DECISION ARTIFACT VIEW SPECIFICS */
.artifact-pending-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-operations);
  font-size: 0.85rem;
  font-weight: 700;
}

.artifact-pending-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-operations);
  border-radius: 50%;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  margin-top: 16px;
}

/* Mac-like Code Editor wrapper */
.mac-editor-wrapper {
  background-color: #000;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}

.mac-editor-header {
  height: 44px;
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.mac-editor-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

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

.mac-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mac-editor-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre;
  overflow-x: auto;
}

/* Syntax colors */
.syn-keyword { color: #ff5c97; }
.syn-function { color: #5cc2ff; }
.syn-string { color: #8ba84b; }
.syn-comment { color: rgba(248, 246, 246, 0.38); }
.syn-number { color: #ffc95c; }

/* AI probability box */
.ai-prob-box {
  background-color: rgba(168, 85, 247, 0.08);
  padding: 14px 20px;
  display: flex;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.ai-prob-icon {
  color: #c084fc;
}

.ai-prob-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

.ai-prob-highlight {
  color: #c084fc;
  font-weight: 700;
  text-decoration: underline;
}

/* Draft Cards list inside details */
.draft-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.draft-card-widget {
  background-color: var(--surface-elevated);
  border: 1px solid var(--glass-white-05);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
}

.draft-card-color-stripe {
  width: 4px;
  flex-shrink: 0;
}

.draft-card-body {
  flex: 1;
  padding: 20px;
}

.draft-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.draft-card-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.draft-card-circle-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.draft-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.draft-card-subtitle {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.draft-card-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 900;
  border: 1px solid transparent;
}

.draft-card-content {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
  background-color: rgba(0,0,0,0.15);
  padding: 12px;
  border-radius: 8px;
}

.draft-card-button {
  width: 100%;
  padding: 12px;
  background-color: transparent;
  border: 1px solid var(--glass-white-10);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.draft-card-button:hover {
  background-color: var(--glass-white-05);
}

/* Bottom Actions Panel for approvals */
.bottom-actions-panel {
  padding: 20px 0;
  border-top: 1px solid var(--glass-white-10);
  margin-top: 24px;
}

.bottom-action-btn-primary {
  width: 100%;
  padding: 16px;
  background-color: var(--accent-orange);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(201, 51, 24, 0.2);
  transition: var(--transition-fast);
}

.bottom-action-btn-primary:hover {
  background-color: var(--accent-orange-light);
}

.bottom-action-info-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* REMEDIATION WORKFLOW VIEW SPECIFICS */
.security-alert-label-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.security-alert-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  color: #EF4444;
  font-size: 0.8rem;
  font-weight: 700;
}

.security-alert-circle-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(239, 68, 68, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EF4444;
}

.remediation-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 12px;
}

.remediation-source-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.remediation-source-highlight {
  color: #fff;
  font-weight: 600;
}

/* Before / After comparative risk projections */
.risk-projection-container {
  background-color: var(--surface-elevated);
  border: 1px solid var(--glass-white-05);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  margin-bottom: 24px;
}

.risk-side-accent-stripe {
  width: 4px;
  background-color: var(--accent-orange);
  flex-shrink: 0;
}

.risk-projection-body {
  flex: 1;
  padding: 20px;
}

.risk-projection-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.risk-comparison-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.risk-comparison-box {
  flex: 1;
  text-align: center;
}

.risk-comparison-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.risk-state-card {
  padding: 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.risk-state-card.red {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

.risk-state-card.green {
  background-color: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: #22C55E;
}

.risk-state-title {
  font-size: 1rem;
  font-weight: 700;
}

.risk-state-desc {
  font-size: 0.65rem;
  opacity: 0.8;
}

.risk-arrow-divider {
  color: var(--text-muted);
  font-size: 1.3rem;
}

/* Timeline steps */
.timeline-container {
  display: flex;
  flex-direction: column;
}

.timeline-row {
  display: flex;
  position: relative;
}

.timeline-row::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12px;
  bottom: -24px;
  width: 2px;
  background-color: var(--surface-highlight);
  z-index: 1;
}

.timeline-row.active::before {
  background-color: var(--accent-orange);
}

.timeline-row:last-child::before {
  display: none;
}

.timeline-connector-box {
  width: 26px;
  margin-right: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  flex-shrink: 0;
}

.timeline-node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--surface-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.timeline-row.active .timeline-node {
  background-color: rgba(201, 51, 24, 0.2);
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange-light);
  box-shadow: 0 0 8px rgba(201, 51, 24, 0.3);
}

.timeline-card {
  flex: 1;
  background-color: var(--surface-elevated);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.timeline-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.timeline-card-step-num {
  padding: 3px 8px;
  background-color: var(--surface-highlight);
  border-radius: 6px;
  font-size: 0.6rem;
  color: var(--text-secondary);
  text-align: center;
}

.timeline-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
}

/* Black terminal script display box */
.terminal-script-box {
  background-color: #000;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.03);
  position: relative;
  margin-bottom: 14px;
}

.terminal-dots-row {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 8px;
}

.terminal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.terminal-script {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-orange-light);
  white-space: pre-wrap;
  line-height: 1.45;
}

.timeline-action-button {
  width: 100%;
  padding: 12px;
  background-color: transparent;
  border: 1px solid rgba(201, 51, 24, 0.4);
  border-radius: 8px;
  color: var(--accent-orange-light);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.timeline-recipient-card {
  padding: 12px;
  background-color: #000;
  border-radius: 12px;
  border: 1px solid var(--glass-white-05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-recipient-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.timeline-recipient-details {
  display: flex;
  flex-direction: column;
}

.timeline-recipient-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.timeline-recipient-sub {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* FETCH CENTER VIEW SPECIFICS */
.fetch-search-bar {
  background-color: var(--surface-elevated);
  border: 1px solid rgba(201, 51, 24, 0.25);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.fetch-search-actions {
  display: flex;
  gap: 12px;
  color: var(--accent-orange-light);
}

.fetch-search-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.fetch-search-icon:hover {
  color: #fff;
  transform: scale(1.08);
}

.fetch-input-field {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  padding: 4px 12px;
}

.fetch-input-field::placeholder {
  color: rgba(201, 51, 24, 0.4);
}

/* Business Insights Carousel */
.carousel-wrapper {
  margin-bottom: 24px;
}

.carousel-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-slide-card {
  flex-shrink: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, rgba(42, 26, 24, 0.8) 0%, rgba(20, 10, 8, 0.9) 100%);
  border: 1.5px solid rgba(201, 51, 24, 0.25);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  cursor: pointer;
}

.carousel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.value-driver-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background-color: rgba(201, 51, 24, 0.1);
  border: 1px solid rgba(201, 51, 24, 0.3);
  border-radius: 20px;
  color: var(--accent-orange-light);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.carousel-card-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  flex: 1;
  margin-top: 12px;
}

.carousel-card-action-row {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-orange-light);
  font-size: 0.75rem;
  font-weight: 700;
}

.carousel-dots-indicator {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
}

.carousel-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(201, 51, 24, 0.3);
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-indicator-dot.active {
  width: 16px;
  border-radius: 3px;
  background-color: var(--accent-orange);
}

/* List details */
.list-item-wrapper {
  padding: 14px 20px;
  background-color: rgba(255,255,255,0.015);
  border: 1px solid var(--glass-white-05);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.list-item-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.list-item-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* MATURITY NODE GRAPH SIMULATOR */
.node-graph-box {
  height: 220px;
  border: 1px dashed rgba(255,255,255,0.06);
  border-radius: var(--border-radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: rgba(0,0,0,0.15);
  overflow: hidden;
  margin-bottom: 24px;
}

.node-graph-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.graph-edge {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 1.5;
}

.graph-node-circle {
  fill: var(--surface-highlight);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.5;
  cursor: pointer;
  transition: var(--transition-fast);
}

.graph-node-circle.active {
  fill: var(--accent-orange-muted);
  stroke: var(--accent-orange-light);
  filter: drop-shadow(0 0 6px var(--accent-orange-light));
}

.graph-node-label {
  fill: var(--text-secondary);
  font-size: 0.6rem;
  font-family: var(--font-mono);
  pointer-events: none;
  text-anchor: middle;
}

.graph-node-circle.active + .graph-node-label {
  fill: #fff;
  font-weight: 700;
}

/* Scorecard grid metrics */
.scoreboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.scorecard-box {
  background-color: rgba(42, 26, 24, 0.2);
  border: 1px solid var(--glass-white-05);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scorecard-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-orange-light);
}

.scorecard-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.25;
}

/* Incidents list horizontal scroll */
.incidents-horizontal-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
}

.incidents-horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.incident-badge-card {
  flex-shrink: 0;
  width: 180px;
  height: 220px;
  padding: 18px;
  background-color: var(--glass-dark-10);
  border: 1.5px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.incident-card-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.incident-card-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
}

.incident-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.incident-card-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 10px;
}

.incident-remediation-link {
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
}

/* MODALS AND VOIP OVERLAYS */

/* Voice Recorder Mic waveform */
.mic-record-wave-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18,9,7,0.95);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.mic-wave-header {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mic-audio-glow-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: rgba(201, 51, 24, 0.05);
  border: 1.5px dashed var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange-light);
  margin-bottom: 40px;
  animation: rotateGlow 8s linear infinite;
  position: relative;
}

.mic-icon-svg {
  animation: pulseMic 1.5s infinite alternate;
}

.mic-waveform-bars {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 60px;
  margin-bottom: 40px;
}

.mic-bar {
  width: 4px;
  background-color: var(--accent-orange-light);
  border-radius: 2px;
  height: 10px;
  transition: height 0.1s ease;
}

/* Voice Agent Call Overlay */
.voip-call-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 9, 7, 0.98);
  z-index: 1005;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: viewSlideIn 0.3s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.voip-contact-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-orange-muted), var(--bg-dark));
  border: 2px solid var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(201, 51, 24, 0.2);
  position: relative;
}

.voip-avatar-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--accent-orange-light);
  border-radius: 50%;
  opacity: 0;
  animation: ringPulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.voip-contact-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.voip-call-status {
  font-size: 0.8rem;
  color: var(--accent-orange-light);
  font-family: var(--font-mono);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.voip-wave-container {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 50px;
  margin-bottom: 30px;
}

.voip-wave-bar {
  width: 3px;
  background-color: var(--accent-orange-light);
  height: 4px;
  border-radius: 1.5px;
  animation: voipWaveAnimation 1.2s ease-in-out infinite alternate;
}

.voip-transcription-box {
  width: 100%;
  max-width: 500px;
  height: 180px;
  background-color: #000;
  border: 1px solid var(--glass-white-05);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
  overflow-y: auto;
  margin-bottom: 40px;
  font-family: var(--font-mono);
}

.transcript-speaker {
  font-weight: 700;
  color: var(--accent-orange-light);
}

.transcript-user {
  font-weight: 700;
  color: var(--color-compliance);
}

.voip-controls-row {
  display: flex;
  gap: 20px;
}

.voip-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: #fff;
  border: none;
}

.voip-btn-mute {
  background-color: var(--surface-highlight);
  border: 1px solid var(--glass-white-10);
}

.voip-btn-mute:hover {
  background-color: var(--glass-white-10);
}

.voip-btn-hangup {
  background-color: #ef4444;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.voip-btn-hangup:hover {
  background-color: #f87171;
}

/* WhatsApp VoIP Override */
.voip-call-overlay.whatsapp-call .voip-contact-avatar {
  background: radial-gradient(circle, rgba(37, 211, 102, 0.2), var(--bg-dark));
  border-color: #25d366;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
}
.voip-call-overlay.whatsapp-call .voip-avatar-pulse {
  border-color: #128c7e;
}
.voip-call-overlay.whatsapp-call .voip-call-status {
  color: #25d366;
}
.voip-call-overlay.whatsapp-call .pulse-dot-red {
  background-color: #25d366 !important;
  box-shadow: 0 0 8px #25d366 !important;
}
.voip-call-overlay.whatsapp-call .voip-wave-bar {
  background-color: #25d366;
}

/* Image Recognition / Camera Scanner Modal */
.camera-scanner-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 9, 7, 0.98);
  z-index: 1002;
  flex-direction: column;
  padding: 30px;
  animation: viewSlideIn 0.3s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.camera-scanner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
  overflow: hidden;
  align-items: stretch;
}

.camera-preview-box {
  background-color: #0b0604;
  border: 1.5px solid var(--glass-white-10);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-scan-laser-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-compliance);
  box-shadow: 0 0 10px var(--color-compliance);
  top: 0;
  display: none;
  z-index: 50;
  animation: laserScanAnimation 2.2s linear infinite;
}

.mock-scan-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  border: 1px solid var(--glass-white-05);
  display: none;
}

.camera-scanner-results {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scanner-select-item {
  padding: 12px;
  background-color: var(--surface-highlight);
  border: 1.5px solid var(--glass-white-05);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.scanner-select-item:hover {
  background-color: var(--glass-white-05);
  color: #fff;
}

.scanner-select-item.selected {
  border-color: var(--color-compliance);
  color: #fff;
  background-color: rgba(34, 197, 94, 0.1);
}

/* Toast simulation bottom */
.toast-simulator {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background-color: var(--surface-elevated);
  border: 1.5px solid var(--accent-orange);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 2000;
  animation: slideUpToast 0.3s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.toast-simulator-success {
  border-color: var(--color-compliance);
}

.toast-simulator-text {
  flex: 1;
}

.toast-simulator-close {
  cursor: pointer;
  color: var(--text-muted);
}

/* System Ingestion Overlays */
#fetch-pipeline-overlay {
  border-radius: 20px;
  margin: 20px;
  height: calc(100% - 40px);
}

/* PITCH PRESENTATION SLIDES (Pitch Slide Deck Mode) */
.slides-layout {
  display: none;
  flex: 1;
  flex-direction: column;
  padding: 40px;
  overflow: hidden;
}

.slides-layout.active {
  display: flex;
}

.slides-header {
  height: 60px;
  border-bottom: 1px solid var(--glass-white-05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slides-header-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.slides-header-title span {
  color: var(--accent-orange-light);
}

.slide-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pitch-slide {
  display: none;
  width: 100%;
  max-width: 900px;
  background-color: rgba(20, 10, 8, 0.8);
  border: 1px solid var(--glass-white-08);
  border-radius: 24px;
  padding: 40px;
  animation: slideFadeIn 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.pitch-slide.active {
  display: flex;
  flex-direction: column;
}

.slide-number-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.slide-heading-main {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.slide-heading-main span {
  color: var(--accent-orange-light);
}

.slide-body-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.slides-footer {
  height: 60px;
  border-top: 1px solid var(--glass-white-05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slides-progress-track {
  flex: 1;
  max-width: 400px;
  height: 4px;
  background-color: var(--glass-white-10);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 30px;
}

.slides-progress-bar {
  height: 100%;
  background-color: var(--accent-orange-light);
  transition: var(--transition-smooth);
}

.slides-controls {
  display: flex;
  gap: 12px;
}

.slides-nav-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-white-05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slides-nav-circle:hover {
  background-color: var(--glass-white-08);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Animations */
@keyframes viewSlideIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseRed {
  0% { box-shadow: 0 0 3px rgba(239, 68, 68, 0.4); }
  100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.8); }
}

@keyframes slideUpToast {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseMic {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes voipWaveAnimation {
  0% { height: 4px; }
  100% { height: 44px; }
}

@keyframes laserScanAnimation {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* Custom VOIP wave animations delay */
.voip-wave-bar:nth-child(2) { animation-delay: 0.15s; }
.voip-wave-bar:nth-child(3) { animation-delay: 0.3s; }
.voip-wave-bar:nth-child(4) { animation-delay: 0.45s; }
.voip-wave-bar:nth-child(5) { animation-delay: 0.1s; }
.voip-wave-bar:nth-child(6) { animation-delay: 0.25s; }
.voip-wave-bar:nth-child(7) { animation-delay: 0.4s; }
.voip-wave-bar:nth-child(8) { animation-delay: 0.15s; }
.voip-wave-bar:nth-child(9) { animation-delay: 0.3s; }
.voip-wave-bar:nth-child(10) { animation-delay: 0.05s; }

/* Custom switch toggles, sliders, and dot pings */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-highlight);
  transition: .4s;
  border-radius: 22px;
  border: 1px solid var(--glass-white-10);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: .4s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: var(--accent-orange-muted);
  border-color: var(--accent-orange-light);
}

input:checked + .switch-slider:before {
  transform: translateX(18px);
  background-color: var(--accent-orange-light);
  box-shadow: 0 0 6px var(--accent-orange-light);
}

.slider-sensitivity {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-highlight);
  outline: none;
  transition: background 0.3s;
}

.slider-sensitivity::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-orange-light);
  cursor: pointer;
  box-shadow: 0 0 6px var(--accent-orange-light);
  transition: transform 0.1s;
}

.slider-sensitivity::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.indicator-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-compliance);
  box-shadow: 0 0 6px var(--color-compliance);
  transition: var(--transition-fast);
}

.indicator-dot-red {
  background-color: var(--color-sentinel) !important;
  box-shadow: 0 0 6px var(--color-sentinel) !important;
}

.indicator-dot-orange {
  background-color: var(--accent-orange-light) !important;
  box-shadow: 0 0 6px var(--accent-orange-light) !important;
}

/* Page specs button hover effects */
.specs-btn:hover {
  background: rgba(236, 91, 19, 0.3) !important;
  border-color: var(--accent-orange-light) !important;
  box-shadow: 0 0 10px rgba(236, 91, 19, 0.2);
}
