/* J.A.R.V.I.S. — interface voz estilo Homem de Ferro */
.jarvis-screen {
  min-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #0a1628 0%, #020408 70%);
  border-radius: var(--radius);
  border: 1px solid #1e3a5f;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.jarvis-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 180, 255, 0.03) 2px, rgba(0, 180, 255, 0.03) 4px);
  pointer-events: none;
}

.jarvis-title {
  font-size: .75rem;
  letter-spacing: .35em;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: .5rem;
  z-index: 1;
}

.jarvis-sub {
  color: #64748b;
  font-size: .85rem;
  margin-bottom: 2rem;
  z-index: 1;
}

.jarvis-orb-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin-bottom: 2rem;
  z-index: 1;
}

#jarvis-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.jarvis-orb-ring {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 50%;
  animation: jarvis-spin 8s linear infinite;
}

.jarvis-orb-ring:nth-child(2) {
  inset: -24px;
  border-color: rgba(56, 189, 248, 0.15);
  animation-duration: 12s;
  animation-direction: reverse;
}

@keyframes jarvis-spin {
  to { transform: rotate(360deg); }
}

.jarvis-state {
  font-size: 1rem;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: .15em;
  min-height: 1.5rem;
  z-index: 1;
}

.jarvis-transcript {
  max-width: 560px;
  width: 100%;
  min-height: 80px;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: .95rem;
  line-height: 1.6;
  z-index: 1;
}

.jarvis-transcript .user { color: #94a3b8; }
.jarvis-transcript .jarvis { color: #38bdf8; }

.jarvis-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 1;
}

.jarvis-btn {
  padding: .75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.jarvis-btn:hover { background: rgba(56, 189, 248, 0.25); }
.jarvis-btn.active {
  background: #0ea5e9;
  color: #0f172a;
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.5);
}

.jarvis-btn.mic-listening {
  animation: jarvis-pulse 1.2s ease infinite;
  border-color: #22d3ee;
}

@keyframes jarvis-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); }
}

.jarvis-hint {
  margin-top: 1.5rem;
  font-size: .8rem;
  color: #475569;
  text-align: center;
  max-width: 480px;
  z-index: 1;
}

.jarvis-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.45);
  z-index: 999;
}

.jarvis-fab:hover { transform: scale(1.05); }

.jarvis-screen[data-state="listening"] .jarvis-state { color: #22d3ee; }
.jarvis-screen[data-state="thinking"] .jarvis-state { color: #a78bfa; }
.jarvis-screen[data-state="speaking"] .jarvis-state { color: #4ade80; }
