/* Command Center — cockpit gauges & full business surface */
.command-cockpit {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.1rem 1.25rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 212, 238, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(232, 50, 138, 0.06), transparent 50%),
    #040408;
}

.command-view-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(4, 4, 10, 0.95);
  border-bottom: 1px solid rgba(0, 212, 238, 0.12);
  flex-shrink: 0;
}
.command-view-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(244, 244, 250, 0.55);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.command-view-tab.is-active {
  border-color: rgba(0, 212, 238, 0.45);
  background: rgba(0, 212, 238, 0.1);
  color: #00d4ee;
}
.command-frame.is-hidden-view {
  display: none;
}
.command-cockpit.is-hidden-view {
  display: none;
}

.cockpit-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.cockpit-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: #00d4ee;
  margin-bottom: 0.35rem;
}
.cockpit-head h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4f4fa;
}
.cockpit-session {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: rgba(244, 244, 250, 0.45);
}
.cockpit-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00ff88;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 999px;
  align-self: flex-start;
}
.cockpit-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.7);
  animation: cockpitPulse 2s ease-in-out infinite;
}
.cockpit-status.is-live .cockpit-status-dot { background: #00d4ee; box-shadow: 0 0 10px rgba(0, 212, 238, 0.7); }
@keyframes cockpitPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.cockpit-gauges {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.cockpit-gauge {
  position: relative;
  text-align: center;
  padding: 0.5rem 0.35rem 0.65rem;
  background: rgba(8, 8, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}
.cockpit-gauge-svg {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  display: block;
}
.cockpit-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 8;
}
.cockpit-gauge-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px currentColor);
}
.cockpit-gauge-val {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: -0.15rem;
  background: linear-gradient(135deg, #00d4ee, #e8328a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cockpit-gauge-lbl {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 244, 250, 0.45);
  margin-top: 0.15rem;
}
.cockpit-gauge-delta {
  display: block;
  font-size: 0.55rem;
  color: #00ff88;
  margin-top: 0.1rem;
}

.cockpit-dept-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.cockpit-dept {
  padding: 0.75rem;
  background: rgba(8, 8, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  border-top: 2px solid var(--dept-color, #00d4ee);
}
.cockpit-dept--ceo { --dept-color: #ffc940; }
.cockpit-dept--marketing { --dept-color: #e8328a; }
.cockpit-dept--sales { --dept-color: #00ff88; }
.cockpit-dept--tech { --dept-color: #00d4ee; }
.cockpit-dept h4 {
  margin: 0 0 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--dept-color);
}
.cockpit-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.5rem;
  font-size: 0.62rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cockpit-metric span { color: rgba(244,244,250,0.45); }
.cockpit-metric strong { color: #f4f4fa; }
.cockpit-metric em {
  grid-column: 1 / -1;
  font-style: normal;
  color: #00ff88;
  font-size: 0.55rem;
}

.cockpit-mid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.cockpit-panel {
  padding: 0.85rem;
  background: rgba(8, 8, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  min-height: 0;
}
.cockpit-panel h4 {
  margin: 0 0 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00d4ee;
}
.cockpit-panel--alerts { margin-bottom: 0.5rem; }

.cockpit-funnel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
}
.cockpit-funnel-step {
  text-align: center;
  padding: 0.45rem 0.25rem;
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
}
.cockpit-funnel-step strong {
  display: block;
  font-size: 1rem;
  color: #e8328a;
}
.cockpit-funnel-step span {
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244,244,250,0.45);
}

.cockpit-ops, .cockpit-intel, .cockpit-alerts, .cockpit-news {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cockpit-ops li {
  display: grid;
  grid-template-columns: 1fr auto;
  font-size: 0.65rem;
  gap: 0.25rem;
}
.cockpit-ops em {
  grid-column: 1 / -1;
  font-style: normal;
  font-size: 0.58rem;
  color: rgba(244,244,250,0.4);
}
.cockpit-instructions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cockpit-instructions li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.65rem;
  line-height: 1.45;
}
.cockpit-ins-step {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 800;
  color: #e8328a;
  letter-spacing: 0.08em;
}
.cockpit-deals { display: flex; flex-direction: column; gap: 0.3rem; }
.cockpit-deal {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.4rem;
  font-size: 0.62rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cockpit-deal em { color: #00d4ee; font-style: normal; }
.cockpit-intel li, .cockpit-alerts li {
  font-size: 0.65rem;
  line-height: 1.4;
  padding: 0.35rem 0.45rem;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
}
.cockpit-intel-tag {
  color: #e8328a;
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  margin-right: 0.35rem;
}
.cockpit-news li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.65rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cockpit-news time {
  color: rgba(244,244,250,0.4);
  font-size: 0.58rem;
}

@media (max-width: 1100px) {
  .cockpit-gauges { grid-template-columns: repeat(4, 1fr); }
  .cockpit-mid { grid-template-columns: 1fr 1fr; }
  .cockpit-panel--instructions,
  .cockpit-panel--news { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .cockpit-gauges { grid-template-columns: repeat(2, 1fr); }
  .cockpit-dept-row { grid-template-columns: 1fr 1fr; }
  .cockpit-mid { grid-template-columns: 1fr; }
  .cockpit-funnel { grid-template-columns: repeat(3, 1fr); }
}
