/* CEO OS — Cockpit, Voice Orb, CEO-Inbox, Regulations */

/* ============================== FOCUS HERO ============================== */
.focus-hero {
  background: linear-gradient(135deg, #1a1535 0%, #0f0c20 60%, #1a0f2a 100%);
  border: 1px solid #2c2148;
  border-radius: 16px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}
.focus-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(800px circle at 100% 0%, rgba(124, 106, 255, 0.18), transparent 50%);
  pointer-events: none;
}
.focus-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-amber);
  margin-bottom: 14px;
}
.focus-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-amber);
  box-shadow: 0 0 12px var(--color-amber);
  animation: pulse 1.6s infinite;
}
.focus-title {
  font-family: var(--font-display);
  font-weight: 600; font-size: 28px; letter-spacing: -0.02em;
  margin: 0 0 10px; line-height: 1.2;
  text-wrap: balance;
}
.focus-context {
  font-size: 14px; color: var(--color-text2);
  line-height: 1.6; max-width: 720px;
  margin: 0 0 14px;
}
.focus-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; flex-wrap: wrap;
  font-size: 12px;
}
.focus-options {
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* ============================== CEO INBOX ============================== */
.inbox-item {
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.12s;
  border-left-width: 3px;
}
.inbox-item:hover {
  background: var(--color-surface3);
  transform: translateX(2px);
}
.inbox-item.sev-urgent  { border-left-color: var(--color-red); }
.inbox-item.sev-high    { border-left-color: var(--color-amber); }
.inbox-item.sev-normal  { border-left-color: var(--color-accent); }
.inbox-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.inbox-title {
  font-size: 13px; font-weight: 500;
  line-height: 1.4;
}

/* ============================== LIVE FEED ============================== */
.live-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
}
.live-row:hover { background: var(--color-surface3); }
.live-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}

/* ============================== PROCESSES ============================== */
.proc-step {
  background: var(--color-surface3);
  border-radius: 8px;
  padding: 10px 12px;
  flex: 1; min-width: 160px;
}
.proc-arrow {
  display: flex; align-items: center;
  padding: 0 6px;
  color: var(--color-text3);
  font-size: 18px;
  flex-shrink: 0;
}

/* ============================== VOICE ORB ============================== */
.voice-orb-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c6aff 0%, #4f8fff 100%);
  border: none;
  color: white;
  cursor: pointer;
  z-index: 200;
  display: grid; place-items: center;
  box-shadow: 0 8px 32px rgba(124, 106, 255, 0.4), 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.voice-orb-fab:hover { transform: scale(1.06); }
.voice-orb-fab svg { width: 26px; height: 26px; }
.voice-orb-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(124, 106, 255, 0.5);
  animation: orb-pulse 2.4s infinite;
  pointer-events: none;
}
.voice-orb-ring.d2 { animation-delay: 1.2s; }
@keyframes orb-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.voice-orb-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--color-red);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--color-bg);
}

/* ============================== VOICE PANEL ============================== */
.voice-panel {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  width: 380px; max-width: calc(100vw - 24px);
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  z-index: 200;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.2);
  max-height: 80vh; overflow-y: auto;
}
.voice-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.voice-status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-text3);
}
.voice-status-dot.live {
  background: var(--color-red);
  box-shadow: 0 0 12px var(--color-red);
  animation: pulse 1s infinite;
}
.voice-mic-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 0 14px;
}
.voice-mic {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2148, #1a1535);
  border: 2px solid var(--color-border);
  color: var(--color-text1);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.voice-mic svg { width: 32px; height: 32px; }
.voice-mic:hover { transform: scale(1.04); border-color: var(--color-accent); }
.voice-mic.live {
  background: linear-gradient(135deg, #ff4858, #c9304c);
  border-color: var(--color-red);
  animation: mic-pulse 1.2s infinite;
}
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 72, 88, 0.5); }
  50%      { box-shadow: 0 0 0 16px rgba(255, 72, 88, 0); }
}
.voice-transcript input {
  width: 100%;
  background: var(--color-surface3);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--color-text1);
  font-size: 13px;
}
.voice-transcript input:focus {
  outline: none;
  border-color: var(--color-accent);
}
.voice-plan {
  margin-top: 12px;
  padding: 12px;
  background: var(--color-surface3);
  border-radius: 10px;
  border: 1px solid var(--color-border);
}
.voice-example {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--color-text2);
  cursor: pointer;
  font-style: italic;
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.voice-example:hover {
  background: var(--color-surface3);
  border-color: var(--color-border);
  color: var(--color-text1);
}

/* ============================== SECTION HEADER ============================== */
.section-h {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 18px 0 10px;
}
.section-h h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--color-text1);
}

/* mobile: shrink hero */
@media (max-width: 720px) {
  .focus-hero { padding: 20px 18px; }
  .focus-title { font-size: 22px; }
  .voice-panel { width: calc(100vw - 24px); bottom: 80px; }
  .voice-orb-fab { bottom: 76px; }
}

/* ═══════════════════════════════════════════════════════════
   HERMES CEO CONTROL PLANE — Premium Glassmorphic UI
   ═══════════════════════════════════════════════════════════ */

/* ── FAB Button ─────────────────────────────────────────── */
.unified-hermes-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c6aff 0%, #c44dff 60%, #ff6b9d 100%);
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  z-index: 500;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 1px rgba(124,106,255,0.4),
    0 8px 32px rgba(124,106,255,0.45),
    0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s;
  overflow: visible;
}
.unified-hermes-fab:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 0 1px rgba(124,106,255,0.6),
    0 12px 40px rgba(124,106,255,0.6),
    0 4px 12px rgba(0,0,0,0.4);
}
.unified-hermes-fab:active { transform: scale(0.96); }

/* Pulse rings */
.fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(124,106,255,0.55);
  animation: fab-ring-out 2.4s ease-out infinite;
  pointer-events: none;
}
.fab-pulse.d2 { animation-delay: 1.2s; }
@keyframes fab-ring-out {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* Glow core */
.fab-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,106,255,0.4) 0%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

/* Badge */
.fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-red, #fb7185);
  color: white;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--color-bg, #0c0a14);
  animation: badge-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badge-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* Mobile FAB positioning */
@media (max-width: 768px) {
  .unified-hermes-fab {
    bottom: calc(env(safe-area-inset-bottom, 16px) + 90px);
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 20px;
  }
}

/* ── Panel Shell ────────────────────────────────────────── */
.hermes-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 400px;
  height: 560px;
  max-height: calc(100dvh - 140px);
  z-index: 499;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: panel-rise 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes panel-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hermes-panel.glassmorphic {
  background: rgba(18, 14, 32, 0.82);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid rgba(124,106,255,0.22);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 24px 80px rgba(0,0,0,0.65),
    0 0 40px rgba(124,106,255,0.12);
}

/* Animated gradient header glow */
.panel-glow-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c6aff, #c44dff, #ff6b9d, #7c6aff);
  background-size: 200% 100%;
  animation: glow-sweep 3s linear infinite;
}
@keyframes glow-sweep {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

@media (max-width: 768px) {
  .hermes-panel {
    bottom: calc(env(safe-area-inset-bottom, 16px) + 90px);
    right: 8px;
    left: 8px;
    width: auto;
    height: min(560px, calc(100dvh - 160px));
    max-height: calc(100dvh - 160px);
  }
}

/* ── Panel Header ───────────────────────────────────────── */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(124,106,255,0.2), rgba(196,77,255,0.2));
  border: 1px solid rgba(124,106,255,0.35);
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.active-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: var(--color-green, #06d6a0);
  border-radius: 50%;
  border: 2px solid rgba(18,14,32,0.9);
}
.active-indicator.blinking {
  animation: blink-green 2s ease-in-out infinite;
}
@keyframes blink-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(6,214,160,0.7); }
  50%       { opacity: 0.5; box-shadow: none; }
}

.panel-header .title {
  font-family: var(--font-display, system-ui);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--color-text1, #f1f0f5);
}
.panel-header .subtitle {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(124,106,255,0.8);
  margin-top: 1px;
}

/* ── Tabs ───────────────────────────────────────────────── */
.panel-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 4px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  white-space: nowrap;
}
.tab-btn:hover { color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.04); }
.tab-btn.active {
  color: #fff;
  background: rgba(124,106,255,0.18);
  box-shadow: 0 0 0 1px rgba(124,106,255,0.3) inset;
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, #7c6aff, #c44dff);
  border-radius: 1px;
}

.tab-badge-num {
  background: var(--color-red, #fb7185);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  font-family: var(--font-mono, monospace);
}

/* ── Panel Body ─────────────────────────────────────────── */
.panel-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,106,255,0.3) transparent;
}
.panel-body::-webkit-scrollbar { width: 4px; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(124,106,255,0.3); border-radius: 2px; }

/* ── Owner Tab ──────────────────────────────────────────── */
.owner-content { display: flex; flex-direction: column; height: 100%; }

.msgs-scroll {
  flex: 1;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
}

/* Empty state */
.empty-chat {
  text-align: center;
  padding: 16px 12px;
  color: rgba(255,255,255,0.5);
}
.empty-chat .empty-emoji {
  font-size: 36px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 16px rgba(124,106,255,0.5));
}
.empty-chat .title {
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
}
.empty-chat .desc {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}
.empty-chat .desc-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin: 12px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Popular quick-action chips */
.popular-cards {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.pop-card {
  background: rgba(124,106,255,0.1);
  border: 1px solid rgba(124,106,255,0.2);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.15s;
}
.pop-card:hover {
  background: rgba(124,106,255,0.2);
  border-color: rgba(124,106,255,0.4);
  color: #fff;
  transform: translateY(-1px);
}

/* Message bubbles */
.msg-row { display: flex; }
.msg-row.user-msg { justify-content: flex-end; }
.msg-row.bot-msg  { justify-content: flex-start; }

.msg-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.user-msg .msg-bubble {
  background: linear-gradient(135deg, rgba(124,106,255,0.7), rgba(196,77,255,0.6));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bot-msg .msg-bubble {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  border-bottom-left-radius: 4px;
}

/* Typing dots */
.msg-bubble.typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
}
.msg-bubble.typing .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.msg-bubble.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.msg-bubble.typing .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

/* ── Action Cards ───────────────────────────────────────── */
.action-cards-panel {
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.panel-sub-title {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}

.cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  line-height: 1.3;
}
.action-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.action-card.btn-glass { /* alias */ }
.action-card.red-glow:hover  { border-color: rgba(251,113,133,0.4); box-shadow: 0 0 16px rgba(251,113,133,0.2); }
.action-card.green-glow:hover { border-color: rgba(6,214,160,0.4);  box-shadow: 0 0 16px rgba(6,214,160,0.2); }
.action-card.animate-hover { transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ── Approvals Tab ──────────────────────────────────────── */
.approvals-content { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }

.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: rgba(255,255,255,0.4);
}
.empty-state .title { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.7); margin: 8px 0 6px; }
.empty-state .desc  { font-size: 12px; line-height: 1.5; }

.approvals-section { display: flex; flex-direction: column; gap: 6px; }
.section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.approval-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.approval-card.pending {
  border-color: rgba(251,191,36,0.3);
  background: rgba(251,191,36,0.04);
  animation: approval-pulse 2s ease-in-out infinite;
}
@keyframes approval-pulse {
  0%, 100% { border-color: rgba(251,191,36,0.3); }
  50%       { border-color: rgba(251,191,36,0.6); }
}

.card-header { display: flex; align-items: center; justify-content: space-between; }
.badge {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge.amber { background: rgba(251,191,36,0.15); color: var(--color-amber, #fbbf24); border: 1px solid rgba(251,191,36,0.3); }
.ts { font-family: var(--font-mono, monospace); font-size: 10px; color: rgba(255,255,255,0.35); }
.card-title { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.9); line-height: 1.4; }
.card-action-meta { font-size: 11px; color: rgba(255,255,255,0.4); }
.card-action-meta code {
  background: rgba(255,255,255,0.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: rgba(124,106,255,0.9);
}
.card-btns { display: flex; gap: 6px; }
.red-text { color: var(--color-red, #fb7185) !important; }

/* History */
.history-list { display: flex; flex-direction: column; gap: 4px; }
.approval-history-item {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}
.hist-title { font-size: 12px; color: rgba(255,255,255,0.65); }
.hist-status {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hist-status.approved { color: var(--color-green, #06d6a0); }
.hist-status.rejected { color: var(--color-red, #fb7185); }
.hist-result { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 4px; }

/* ── Ops Tab ────────────────────────────────────────────── */
.ops-content { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }

.ops-header {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px 12px;
}
.status-indicator { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.green { background: var(--color-green, #06d6a0); box-shadow: 0 0 8px rgba(6,214,160,0.6); }
.status-dot.amber { background: var(--color-amber, #fbbf24); box-shadow: 0 0 8px rgba(251,191,36,0.6); }
.status-dot.red   { background: var(--color-red, #fb7185);  box-shadow: 0 0 8px rgba(251,113,133,0.6); }

.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.metric-box {
  border-radius: 12px;
  padding: 12px;
}
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.metric-title { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.metric-value {
  font-family: var(--font-display, system-ui);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--color-accent, #7c6aff);
  transition: width 0.6s ease;
}

/* Services list */
.services-section { display: flex; flex-direction: column; gap: 6px; }
.services-list { display: flex; flex-direction: column; gap: 4px; }
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.12s;
}
.service-row:hover { background: rgba(255,255,255,0.06); }
.service-name-wrap { display: flex; align-items: center; gap: 8px; }
.indicator-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.indicator-dot.green { background: var(--color-green, #06d6a0); }
.indicator-dot.red   { background: var(--color-red, #fb7185); }
.service-name-wrap .name { font-size: 12px; color: rgba(255,255,255,0.8); }
.service-controls { display: flex; align-items: center; gap: 6px; }
.status-label {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: rgba(255,255,255,0.35);
}

/* ── Voice Tab ──────────────────────────────────────────── */
.voice-tab-content { padding: 14px; display: flex; flex-direction: column; gap: 14px; }

.voice-visualizer {
  position: relative;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-center {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124,106,255,0.6), rgba(196,77,255,0.5));
  border: 2px solid rgba(124,106,255,0.5);
  display: grid;
  place-items: center;
  z-index: 2;
  position: relative;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(124,106,255,0.3);
}
.orb-center.listening {
  background: linear-gradient(135deg, rgba(255,72,88,0.7), rgba(200,50,80,0.6));
  border-color: rgba(255,72,88,0.7);
  box-shadow: 0 0 30px rgba(255,72,88,0.5);
  animation: orb-listen-pulse 1s ease-in-out infinite;
}
@keyframes orb-listen-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

.pulse-circle {
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 1px solid rgba(124,106,255,0.3);
  animation: orb-pulse-ring 2.5s ease-out infinite;
}
.pulse-circle.d2 { animation-delay: 1.25s; }
@keyframes orb-pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.voice-btn-wrap { display: flex; justify-content: center; }
.btn-voice {
  padding: 12px 28px;
  border-radius: 24px;
  border: 1px solid rgba(124,106,255,0.35);
  background: rgba(124,106,255,0.12);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.btn-voice:hover { background: rgba(124,106,255,0.2); color: #fff; }
.btn-voice.active {
  background: rgba(255,72,88,0.2);
  border-color: rgba(255,72,88,0.5);
  color: #fff;
  animation: btn-voice-pulse 1.4s ease-in-out infinite;
}
@keyframes btn-voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,72,88,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(255,72,88,0); }
}

.voice-log-section { display: flex; flex-direction: column; gap: 6px; }
.voice-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  text-align: center;
  padding: 8px 0;
}
.voice-history { display: flex; flex-direction: column; gap: 5px; }
.voice-log-item {
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.06);
}
.voice-log-item .q {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin-bottom: 3px;
}
.voice-log-item .a {
  font-size: 11px;
  color: rgba(124,106,255,0.9);
}

/* ── Footer Input ───────────────────────────────────────── */
.panel-footer-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.panel-footer-input input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 9px 12px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.panel-footer-input input::placeholder { color: rgba(255,255,255,0.3); }
.panel-footer-input input:focus {
  border-color: rgba(124,106,255,0.5);
  box-shadow: 0 0 0 3px rgba(124,106,255,0.1);
}

.mic-footer-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.mic-footer-btn:hover { background: rgba(124,106,255,0.2); color: #fff; border-color: rgba(124,106,255,0.4); }
.mic-footer-btn.active {
  background: rgba(255,72,88,0.25);
  border-color: rgba(255,72,88,0.5);
  color: #fff;
}
.mic-footer-btn.disabled { opacity: 0.3; cursor: not-allowed; }

.send-footer-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #7c6aff, #c44dff);
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(124,106,255,0.4);
}
.send-footer-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(124,106,255,0.6); }
.send-footer-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
