/* ════════════════════════════════════════════════════════
   VOICE ROOM — YARA-style galaxy UI
   ════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
body.room-mode-voice {
  --ya-accent: #c084fc;
  --ya-accent2: #818cf8;
  --ya-glow: rgba(192, 132, 252, 0.22);
  --ya-bg-deep: #0d0520;
  --ya-bg-mid: #1a0a38;
  --ya-seat-empty: rgba(255,255,255,0.07);
  --ya-seat-border: rgba(192,132,252,0.3);
  --ya-text: rgba(241,240,254,0.9);
  --ya-text-dim: rgba(241,240,254,0.45);
  --ya-red: #f87171;
  --ya-green: #34d399;
  --ya-gold: #fbbf24;
}

/* ── Voice room section wrapper ── */
.voice-room-section {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  overflow: hidden;
}

/* ── YARA Stage outer container ── */
#yara-voice-stage {
  position: relative;
  min-height: 420px;
  width: 100%;
  overflow: hidden;
  background: var(--ya-bg-deep, #0d0520);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Animated galaxy background ── */
.yara-stage-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.yara-stage-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139,92,246,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(192,132,252,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(99,102,241,0.12) 0%, transparent 50%),
    linear-gradient(180deg, #120730 0%, #0d0520 100%);
}

.yara-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.yara-glow-1 {
  width: 300px; height: 300px;
  background: rgba(167,139,250,0.12);
  top: -80px; left: 50%;
  transform: translateX(-50%);
}
.yara-glow-2 {
  width: 200px; height: 200px;
  background: rgba(99,102,241,0.1);
  bottom: 20px; right: 10%;
}

/* ── Stars ── */
.yara-stars {
  position: absolute;
  inset: 0;
}
.yara-star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: yara-twinkle linear infinite;
  opacity: 0.7;
}
@keyframes yara-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.4); }
}

/* ── Room header ── */
.yara-room-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px 8px;
  width: 100%;
}

.yara-room-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ya-text, #f1f0fe);
  letter-spacing: 0.04em;
}

.yara-conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.yara-conn-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.yara-conn-pill.conn-live   { background: rgba(52,211,153,0.12); color: #34d399; }
.yara-conn-pill.conn-live .yara-conn-dot { background: #34d399; box-shadow: 0 0 6px #34d399; animation: yara-dot-pulse 1.5s ease-in-out infinite; }
.yara-conn-pill.conn-wait   { background: rgba(245,158,11,0.12); color: #fbbf24; }
.yara-conn-pill.conn-wait .yara-conn-dot { background: #fbbf24; animation: yara-blink 0.8s ease-in-out infinite; }
.yara-conn-pill.conn-err    { background: rgba(248,113,113,0.12); color: #f87171; }
.yara-conn-pill.conn-err .yara-conn-dot  { background: #f87171; }
.yara-conn-pill.conn-off    { background: rgba(107,114,128,0.12); color: rgba(241,240,254,0.35); }
.yara-conn-pill.conn-off .yara-conn-dot  { background: #6b7280; }

@keyframes yara-dot-pulse {
  0%, 100% { box-shadow: 0 0 6px #34d399; }
  50%       { box-shadow: 0 0 14px #34d399; }
}
@keyframes yara-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Seats wrap ── */
.yara-seats-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 12px 16px 16px;
  width: 100%;
}

.yara-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.yara-host-row {
  gap: 0;
  margin-bottom: 4px;
}

.yara-seats-row {
  gap: 16px;
}

/* ── Individual seat ── */
.yara-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  cursor: default;
  transition: transform 0.2s ease;
}

.yara-seat-empty {
  cursor: default;
}
.yara-seat-ring-clickable ~ .yara-seat-label,
.yara-seat-empty:has(.yara-seat-ring-clickable) {
  cursor: pointer;
}
.yara-seat-empty:has(.yara-plus-icon):not(:has(.yara-pending-icon)) {
  cursor: pointer;
}
.yara-seat-empty:has(.yara-plus-icon):not(:has(.yara-pending-icon)):hover .yara-seat-ring {
  box-shadow: 0 0 0 3px rgba(192,132,252,0.4), 0 0 20px rgba(192,132,252,0.25);
  border-color: rgba(192,132,252,0.6);
}
.yara-seat-empty:has(.yara-plus-icon):not(:has(.yara-pending-icon)):hover .yara-seat-avatar {
  background: rgba(192,132,252,0.15);
}

/* ── Seat ring container ── */
.yara-seat-ring {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--ya-seat-border, rgba(192,132,252,0.3));
  background: transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Host seat ring */
.yara-seat-host .yara-seat-ring {
  width: 90px;
  height: 90px;
  border-color: rgba(250,204,21,0.45);
  box-shadow: 0 0 0 3px rgba(250,204,21,0.1), 0 0 30px rgba(250,204,21,0.15);
}

/* Speaking seat ring */
.yara-seat-speaking .yara-seat-ring {
  border-color: var(--ya-accent, #c084fc);
  box-shadow: 0 0 0 4px rgba(192,132,252,0.18), 0 0 24px rgba(192,132,252,0.4);
  animation: yara-ring-pulse 1.4s ease-in-out infinite;
  will-change: box-shadow;
}

@keyframes yara-ring-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(192,132,252,0.18), 0 0 24px rgba(192,132,252,0.4); }
  50%       { box-shadow: 0 0 0 9px rgba(192,132,252,0.08), 0 0 42px rgba(192,132,252,0.6); }
}

.yara-speaking-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(192,132,252,0.35);
  animation: yara-outer-ring 1.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes yara-outer-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.1); opacity: 0.5; }
}

/* ── Avatar inside ring ── */
.yara-seat-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e1a5e, #1a0a35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 1.5px solid rgba(192,132,252,0.18);
  flex-shrink: 0;
}

.yara-seat-host .yara-seat-avatar {
  width: 86px;
  height: 86px;
}

.yara-seat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.yara-seat-initial {
  font-size: 24px;
  font-weight: 700;
  color: var(--ya-accent, #c084fc);
  font-family: 'Space Grotesk', sans-serif;
}

.yara-seat-host .yara-seat-initial {
  font-size: 30px;
}

/* Empty seat avatar */
.yara-seat-avatar-empty {
  background: var(--ya-seat-empty, rgba(255,255,255,0.07));
  border: 2px dashed rgba(192,132,252,0.25);
}

/* ── Devil halo (for host slot) ── */
.yara-devil-halo {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  z-index: 3;
  filter: drop-shadow(0 0 8px rgba(239,68,68,0.6));
  pointer-events: none;
}

/* ── Host crown ── */
.yara-seat-crown {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  color: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(251,191,36,0.8));
  pointer-events: none;
  z-index: 4;
}

/* ── Muted badge ── */
.yara-muted-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-size: 13px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239,68,68,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #0d0520;
  z-index: 2;
}

/* ── Seat label area ── */
.yara-seat-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.yara-seat-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ya-text, rgba(241,240,254,0.9));
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
}

.yara-seat-role-chip {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 50px;
}
.yara-seat-role-chip.host    { background: rgba(251,191,36,0.18); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.yara-seat-role-chip.manager { background: rgba(99,102,241,0.18); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }

/* Speaking dot */
.yara-speaking-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ya-accent, #c084fc);
  box-shadow: 0 0 6px var(--ya-accent, #c084fc);
  animation: yara-dot-pulse 1.2s ease-in-out infinite;
}

/* ── VIP badges ── */
.yara-vip-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #0d0520;
  padding: 1px 7px;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 3;
}

/* ── Wave (speaking indicator) ── */
.yara-wave {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  margin-top: 2px;
}
.yara-seat-speaking .yara-wave {
  display: flex;
}
.yara-wave span {
  width: 3px;
  border-radius: 3px;
  background: var(--ya-accent, #c084fc);
  animation: yara-wave-bar 0.8s ease-in-out infinite;
  will-change: transform;
}
.yara-wave span:nth-child(1) { animation-delay: 0s;    height: 40%; }
.yara-wave span:nth-child(2) { animation-delay: 0.1s;  height: 70%; }
.yara-wave span:nth-child(3) { animation-delay: 0.2s;  height: 100%; }
.yara-wave span:nth-child(4) { animation-delay: 0.15s; height: 70%; }
.yara-wave span:nth-child(5) { animation-delay: 0.05s; height: 40%; }

@keyframes yara-wave-bar {
  0%, 100% { transform: scaleY(0.5); opacity: 0.7; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

/* ── Plus / pending / lock icons ── */
.yara-plus-icon {
  font-size: 28px;
  font-weight: 300;
  color: rgba(192,132,252,0.5);
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.yara-seat-empty:hover .yara-plus-icon {
  color: rgba(192,132,252,0.9);
  transform: scale(1.15);
}
.yara-pending-icon, .yara-lock-icon {
  font-size: 22px;
}

/* ── Remove / Lock action buttons on seat ── */
.yara-remove-btn,
.yara-lock-btn {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
  line-height: 1;
}
.yara-remove-btn {
  top: -4px;
  right: -4px;
  color: var(--ya-red, #f87171);
  background: rgba(248,113,113,0.12);
}
.yara-lock-btn {
  top: -4px;
  left: -4px;
  background: rgba(192,132,252,0.1);
}
.yara-seat:hover .yara-remove-btn,
.yara-seat:hover .yara-lock-btn {
  opacity: 1;
}

/* ── Owner-take CTA ── */
.yara-seat-owner-take {
  cursor: pointer;
}
.yara-seat-owner-take:hover .yara-seat-ring {
  border-color: rgba(250,204,21,0.6);
  box-shadow: 0 0 0 3px rgba(250,204,21,0.12), 0 0 20px rgba(250,204,21,0.2);
}
.yara-seat-owner-take:hover .yara-plus-icon {
  color: #fbbf24;
}

/* ── Controls bar ── */
.yara-controls-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px 20px;
  flex-wrap: wrap;
}

.yara-ctrl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 50px;
  border: 1.5px solid rgba(192,132,252,0.3);
  background: rgba(192,132,252,0.08);
  color: rgba(241,240,254,0.8);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.yara-ctrl-btn svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}
.yara-ctrl-btn:hover {
  background: rgba(192,132,252,0.16);
  border-color: rgba(192,132,252,0.55);
  color: #f1f0fe;
}

.yara-join-btn {
  background: linear-gradient(135deg, #7c3aed, #c084fc) !important;
  border-color: transparent !important;
  color: #fff !important;
  font-size: 14px !important;
  padding: 12px 32px !important;
  box-shadow: 0 4px 22px rgba(124,58,237,0.4) !important;
  letter-spacing: 0.03em;
}
.yara-join-btn:hover {
  box-shadow: 0 6px 30px rgba(124,58,237,0.55) !important;
  transform: translateY(-1px);
}

.yara-req-btn {
  background: rgba(192,132,252,0.1) !important;
  border-color: rgba(192,132,252,0.4) !important;
  color: var(--ya-accent, #c084fc) !important;
}

.yara-mic-btn.mic-active {
  border-color: var(--ya-green, #34d399) !important;
  color: var(--ya-green, #34d399) !important;
  background: rgba(52,211,153,0.1) !important;
  box-shadow: 0 0 14px rgba(52,211,153,0.2) !important;
  animation: yara-mic-glow 2s ease-in-out infinite;
  will-change: box-shadow;
}
@keyframes yara-mic-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(52,211,153,0.2); }
  50%       { box-shadow: 0 0 26px rgba(52,211,153,0.4); }
}
.yara-mic-btn.mic-off {
  border-color: rgba(248,113,113,0.4) !important;
  color: rgba(248,113,113,0.8) !important;
}

.yara-leave-btn {
  border-color: rgba(248,113,113,0.35) !important;
  color: rgba(248,113,113,0.8) !important;
}
.yara-leave-btn:hover {
  background: rgba(248,113,113,0.12) !important;
  border-color: rgba(248,113,113,0.6) !important;
  color: #f87171 !important;
}

/* ── Welcome banner ── */
.yara-banner {
  position: relative;
  z-index: 2;
  margin: 0 16px 18px;
  padding: 10px 18px;
  background: rgba(192,132,252,0.08);
  border: 1px solid rgba(192,132,252,0.18);
  border-radius: 12px;
  font-size: 12.5px;
  color: rgba(241,240,254,0.6);
  text-align: center;
  font-style: italic;
}

/* ── Voice room chat section ── */
.yara-room-chat {
  display: none; /* shown only on mobile in voice rooms via @media rule below */
  flex-direction: column;
  background: rgba(13,5,32,0.85);
  border-top: 1px solid rgba(192,132,252,0.12);
  padding: 12px 14px;
  gap: 8px;
  max-height: 220px;
}

.yara-chat-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(192,132,252,0.2) transparent;
}

.yara-chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: yara-msg-in 0.2s ease;
}

@keyframes yara-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.yara-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e1a5e, #1a0a35);
  border: 1px solid rgba(192,132,252,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ya-accent, #c084fc);
  flex-shrink: 0;
  overflow: hidden;
}
.yara-chat-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

.yara-chat-body {
  flex: 1;
  min-width: 0;
}

.yara-chat-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--ya-accent, #c084fc);
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.yara-chat-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(251,191,36,0.18);
  color: #fbbf24;
}

.yara-chat-text {
  font-size: 12.5px;
  color: rgba(241,240,254,0.8);
  word-break: break-word;
  line-height: 1.45;
}

.yara-chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(192,132,252,0.18);
  border-radius: 50px;
  padding: 7px 14px;
  position: relative;
}

.yara-chat-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: rgba(241,240,254,0.85);
  font-size: 13px;
  font-family: inherit;
  min-width: 0;
}

.yara-chat-input::placeholder {
  color: rgba(241,240,254,0.3);
}

.yara-chat-send {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ya-accent, #c084fc);
  font-size: 16px;
  padding: 0;
  line-height: 1;
  transition: transform 0.15s;
  flex-shrink: 0;
}
.yara-chat-send:hover { transform: scale(1.2); }

/* ── Voice seat badge on People / nav tab ── */
.voice-req-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 50px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(239,68,68,0.5);
  animation: yara-badge-pop 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
}

@keyframes yara-badge-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

#tab-people,
#nav-tab-people {
  position: relative;
}

/* ── Legacy status elements (kept for overlay compat) ── */
.voice-connection-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 1;
}
.voice-connection-status .status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.voice-connection-status.conn-idle { background: rgba(107,114,128,0.15); color: rgba(241,240,254,0.4); }
.voice-connection-status.conn-idle .status-dot { background: #6b7280; }
.voice-connection-status.conn-connecting { background: rgba(245,158,11,0.12); color: rgba(245,158,11,0.85); }
.voice-connection-status.conn-connecting .status-dot { background: #f59e0b; animation: blink 0.8s ease-in-out infinite; will-change: opacity; }
.voice-connection-status.conn-connected { background: rgba(16,185,129,0.12); color: rgba(16,185,129,0.9); }
.voice-connection-status.conn-connected .status-dot { background: #10b981; }
.voice-connection-status.conn-error { background: rgba(239,68,68,0.12); color: rgba(239,68,68,0.85); }
.voice-connection-status.conn-error .status-dot { background: #ef4444; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── Voice overlay panel (mini bar in non-voice rooms) ── */
#voice-overlay-panel {
  border-top: 1px solid rgba(167,139,250,0.15);
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(20,14,36,0.5) 0%, transparent 100%);
  display: none;
}
#voice-overlay-panel.panel-open { display: block; }
.voice-overlay-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.voice-overlay-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #a78bfa; letter-spacing: 0.06em; text-transform: uppercase; }
.voice-overlay-title svg { width: 15px; height: 15px; stroke: currentColor; }
.voice-overlay-toggle { background: none; border: none; cursor: pointer; color: rgba(241,240,254,0.4); padding: 2px; border-radius: 4px; transition: color 0.15s; }
.voice-overlay-toggle:hover { color: rgba(241,240,254,0.8); }
.voice-overlay-toggle svg { width: 14px; height: 14px; stroke: currentColor; display: block; }
.voice-overlay-orbs { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.voice-overlay-orb { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.voice-overlay-orb-ring { position: relative; width: 44px; height: 44px; border-radius: 50%; }
.voice-overlay-orb-ring::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid rgba(167,139,250,0.22); transition: all 0.25s; }
.voice-overlay-orb.is-speaking .voice-overlay-orb-ring::before { border-color: #a78bfa; box-shadow: 0 0 12px rgba(167,139,250,0.45); animation: voice-orb-pulse 1.4s ease-in-out infinite; will-change: box-shadow; }
@keyframes voice-orb-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(167,139,250,0.18), 0 0 24px rgba(167,139,250,0.35); } 50% { box-shadow: 0 0 0 8px rgba(167,139,250,0.08), 0 0 40px rgba(167,139,250,0.5); } }
.voice-overlay-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #2e1a5e, #1a0d3d); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #a78bfa; font-family: 'Space Grotesk', sans-serif; overflow: hidden; border: 1px solid rgba(167,139,250,0.18); position: relative; z-index: 1; }
.voice-overlay-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.voice-overlay-orb-name { font-size: 10px; color: rgba(241,240,254,0.6); text-align: center; max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-overlay-controls { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.voice-overlay-mic-btn { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 50px; border: 1.5px solid rgba(167,139,250,0.3); background: rgba(167,139,250,0.08); color: rgba(241,240,254,0.7); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.voice-overlay-mic-btn svg { width: 13px; height: 13px; stroke: currentColor; flex-shrink: 0; }
.voice-overlay-mic-btn:hover { background: rgba(167,139,250,0.16); border-color: rgba(167,139,250,0.55); color: #f1f0fe; }
.voice-overlay-mic-btn.mic-on { border-color: #a78bfa; color: #a78bfa; background: rgba(167,139,250,0.14); }
.voice-overlay-mic-btn.mic-muted { border-color: rgba(239,68,68,0.4); color: rgba(239,68,68,0.8); }
.voice-overlay-join-btn { display: flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 50px; border: none; background: linear-gradient(135deg, #7c3aed, #a78bfa); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; box-shadow: 0 3px 14px rgba(124,58,237,0.35); transition: all 0.2s; }
.voice-overlay-join-btn:hover { background: linear-gradient(135deg, #6d28d9, #8b5cf6); box-shadow: 0 5px 20px rgba(124,58,237,0.5); transform: translateY(-1px); }
.voice-overlay-join-btn svg { width: 13px; height: 13px; stroke: currentColor; flex-shrink: 0; }
.voice-overlay-leave-btn { padding: 7px 12px; border-radius: 50px; border: 1.5px solid rgba(239,68,68,0.3); background: none; color: rgba(239,68,68,0.7); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s; display: flex; align-items: center; gap: 5px; }
.voice-overlay-leave-btn:hover { border-color: rgba(239,68,68,0.55); color: #f87171; background: rgba(239,68,68,0.08); }
.voice-overlay-leave-btn svg { width: 12px; height: 12px; stroke: currentColor; flex-shrink: 0; }

/* ── Room mode indicator ── */
.room-mode-badge-voice { background: rgba(167,139,250,0.15); color: #a78bfa; border: 1px solid rgba(167,139,250,0.3); }
.mode-card-voice { background: linear-gradient(135deg, #1a0d3d 0%, #0d0822 100%); border-color: rgba(167,139,250,0.25) !important; }
.mode-card-voice:hover { border-color: rgba(167,139,250,0.55) !important; box-shadow: 0 8px 40px rgba(124,58,237,0.25) !important; }
.mode-card-voice .mode-card-icon { background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(167,139,250,0.15)); color: #a78bfa; }

/* ── YARA chat bar buttons (mic + sound) ── */
.yara-bar-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(192,132,252,0.25);
  background: rgba(192,132,252,0.08);
  color: rgba(241,240,254,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.yara-bar-btn svg { width: 15px; height: 15px; stroke: currentColor; flex-shrink: 0; }
.yara-bar-btn:hover { background: rgba(192,132,252,0.18); border-color: rgba(192,132,252,0.5); color: #f1f0fe; }

/* Mic active */
.yara-bar-mic.mic-active {
  border-color: #34d399;
  color: #34d399;
  background: rgba(52,211,153,0.12);
  box-shadow: 0 0 10px rgba(52,211,153,0.25);
}
/* Mic muted */
.yara-bar-mic.mic-muted {
  border-color: rgba(248,113,113,0.4);
  color: rgba(248,113,113,0.8);
}
/* Sound muted */
.yara-bar-sound.sound-muted {
  border-color: rgba(107,114,128,0.4);
  color: rgba(107,114,128,0.6);
}

/* ── Emoji button active state ── */
.yara-bar-emoji[aria-expanded="true"] {
  border-color: rgba(192,132,252,0.6);
  color: #c084fc;
  background: rgba(192,132,252,0.15);
}

/* ── Picker panel anchored above the YARA input row ── */
.yara-chat-input-row #chat-picker-panel {
  position: absolute;
  bottom: 100%;
  right: 0;
  left: auto;
  margin-bottom: 6px;
  z-index: 9999;
}

/* ── Hide Chat tab on mobile bottom nav in voice rooms ── */
body.room-mode-voice #nav-tab-chat {
  display: none;
}

/* ── Mobile voice room overrides ── */
@media (max-width: 760px) {
  /* Show YARA chat bar (replaces Chat tab) */
  body.room-mode-voice .yara-room-chat {
    display: flex;
    flex-direction: column;
  }

  /* Remove mic/leave from voice overlay panel — handled by YARA bar */
  body.room-mode-voice .voice-overlay-controls {
    display: none;
  }

  /* Remove stage bottom controls (mic + leave) — YARA bar handles these */
  body.room-mode-voice .yara-controls-bar {
    display: none;
  }
}

/* ── Lock button always visible on locked seats (not just on hover) ── */
.yara-lock-btn-visible {
  opacity: 1 !important;
}

/* ── Responsive seat sizes ── */
@media (max-width: 600px) {
  #yara-voice-stage { min-height: 360px; border-radius: 12px; }
  .yara-seat-ring { width: 62px; height: 62px; }
  .yara-seat-avatar { width: 58px; height: 58px; }
  .yara-seat-host .yara-seat-ring { width: 76px; height: 76px; }
  .yara-seat-host .yara-seat-avatar { width: 72px; height: 72px; }
  .yara-seats-row { gap: 12px; }
  .yara-seat-initial { font-size: 20px; }
}
