:root {
  --bg: #070d1a;
  --bg-2: #0b1426;
  --panel: rgba(17, 28, 52, 0.72);
  --panel-solid: #111c34;
  --sidebar: #0a1324;
  --line: rgba(96, 165, 250, 0.14);
  --text: #eef4ff;
  --muted: #8fa3c4;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --purple: #a78bfa;
  --green: #34d399;
  --orange: #fb923c;
  --user-bubble: rgba(37, 99, 235, 0.28);
  --bot-bubble: rgba(255, 255, 255, 0.06);
  --glow-blue: 0 0 24px rgba(59, 130, 246, 0.45);
  --glow-cyan: 0 0 28px rgba(34, 211, 238, 0.35);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --sidebar-w: 280px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(59, 130, 246, 0.22), transparent 55%),
    radial-gradient(700px 480px at 100% 0%, rgba(167, 139, 250, 0.14), transparent 50%),
    radial-gradient(800px 500px at 80% 100%, rgba(34, 211, 238, 0.08), transparent 45%),
    linear-gradient(160deg, var(--bg), var(--bg-2) 45%, #08101f);
  overflow: hidden;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100dvh;
  min-height: 100vh;
}

/* ========== SIDEBAR ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 14px 14px;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.06), transparent 28%),
    linear-gradient(160deg, #0c1730, var(--sidebar));
  border-right: 1px solid var(--line);
  position: relative;
  z-index: 30;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: auto -40% -30% -20%;
  height: 55%;
  background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.18), transparent 55%);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  padding: 4px 6px 10px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue-deep));
  box-shadow: var(--glow-cyan);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-text strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-text span {
  font-size: 11px;
  color: var(--muted);
}

.btn-new {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, #6366f1);
  box-shadow: var(--glow-blue);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-new:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-new .plus { font-size: 18px; line-height: 1; }

.search-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}
.search-wrap input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.search-wrap input::placeholder { color: var(--muted); }

.nav-scroll {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.nav-section-label {
  margin: 12px 8px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  text-align: left;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.nav-item span {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.95), rgba(59, 130, 246, 0.95));
  color: #041018;
  box-shadow: var(--glow-cyan);
}
.nav-item.active svg { stroke: #041018; }

.history-empty {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 12px;
}

.sidebar-user {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}
.logout-link {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.logout-link:hover {
  color: var(--text);
  border-color: var(--cyan);
}
.avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.35);
}
.user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.user-meta strong { font-size: 13px; }
.user-meta span { font-size: 11px; color: var(--muted); }

/* ========== MAIN ========== */
.main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100dvh;
  position: relative;
}

.topbar {
  margin: 14px 18px 0;
  padding: 12px 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.chat-heading {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-history {
  border: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-history:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(96, 165, 250, 0.45);
}

.btn-call {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #6366f1);
  box-shadow: var(--glow-blue);
  white-space: nowrap;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-call:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-call.live {
  background: linear-gradient(90deg, #f87171, #fb923c);
  box-shadow: 0 0 24px rgba(248, 113, 113, 0.4);
}

/* Call history modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 8, 20, 0.72);
  backdrop-filter: blur(8px);
}
.modal-backdrop.hidden { display: none; }
.modal-card {
  width: min(520px, 100%);
  max-height: min(78vh, 680px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(180deg, #0f1a2e 0%, #0a1322 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.modal-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.modal-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.modal-close { flex-shrink: 0; }
.modal-body {
  overflow: auto;
  padding: 10px;
  flex: 1;
}
.modal-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.modal-call-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.15s ease;
}
.modal-call-item:hover { background: rgba(96, 165, 250, 0.1); }
.modal-call-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}
.modal-call-meta { min-width: 0; flex: 1; }
.modal-call-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-call-meta span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}
.modal-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 18px;
  overflow: auto;
  flex: 1;
}
.modal-detail.hidden { display: none; }
.modal-back {
  border: 0;
  background: transparent;
  color: #7dd3fc;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
}
.modal-detail h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.modal-transcript {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-turn {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.modal-turn .who {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 4px;
}
.modal-turn.user .who { color: #a5b4fc; }
.modal-turn .txt {
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.messages {
  overflow: auto;
  padding: 22px 22px 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.msg {
  display: flex;
  gap: 12px;
  max-width: min(760px, 100%);
  animation: rise 0.35s ease both;
}
.msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg.bot { align-self: flex-start; }

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue-deep));
  box-shadow: var(--glow-cyan);
  font-size: 11px;
  font-weight: 800;
}
.msg.user .msg-avatar {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

.bubble {
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bot-bubble);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.msg.user .bubble {
  background: var(--user-bubble);
  border-color: rgba(59, 130, 246, 0.35);
}
.bubble .who {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.bubble .body {
  word-break: break-word;
  line-height: 1.55;
  font-size: 14.5px;
}
.bubble .body .md-p { margin: 0 0 2px; white-space: pre-wrap; }
.bubble .body .md-gap { height: 8px; }
.bubble .body .md-li {
  position: relative;
  padding-left: 14px;
  margin: 2px 0;
}
.bubble .body .md-li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--cyan);
}
.bubble .body .md-h {
  color: var(--cyan);
  font-weight: 800;
  margin: 10px 0 6px;
  letter-spacing: -0.01em;
}
.bubble .body .md-h1 { font-size: 1.15em; }
.bubble .body .md-h2 { font-size: 1.08em; }
.bubble .body .md-h3,
.bubble .body .md-h4 { font-size: 1.02em; }
.bubble .body strong,
.bubble .body b {
  color: var(--cyan);
  font-weight: 800;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.confirm-actions button {
  min-width: 96px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.confirm-actions button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.confirm-actions button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.btn-yes {
  color: #041018;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: var(--glow-cyan);
}

.btn-no {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line) !important;
}

.typing {
  align-self: flex-start;
  margin-left: 48px;
  display: inline-flex;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bot-bubble);
}
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: bounce 1s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

.composer-wrap {
  /* Align with sidebar logout box (sidebar padding-bottom: 14px) */
  padding: 6px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.composer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(17, 28, 52, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
}

.composer textarea {
  width: 100%;
  min-height: 42px;
  max-height: 140px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  padding: 10px 4px;
}
.composer textarea::placeholder { color: var(--muted); }

.icon-ghost {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.icon-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.icon-ghost.live {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.35);
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.25);
}

.btn-send {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue-deep));
  box-shadow: var(--glow-cyan);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-send:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-send:disabled { opacity: 0.55; cursor: wait; transform: none; }

.hint {
  order: -1;
  margin: 0 4px 6px;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
}

.voice-toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--glow-blue);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.voice-toast.hidden { display: none !important; }
.voice-toast .pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  animation: pulse 1.2s infinite ease-in-out;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  z-index: 25;
  backdrop-filter: blur(2px);
}
.overlay.visible { display: block; }

.mobile-only { display: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

@media (max-width: 1023px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(var(--sidebar-w), 88vw);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-only { display: grid; }
  .topbar { margin: 10px 10px 0; }
  .messages { padding: 16px 12px; }
  .composer-wrap { padding: 6px 10px 12px; }
  .btn-call, .btn-history { font-size: 12px; padding: 9px 12px; }
  .btn-history span { display: none; }
}

/* ========== LIVE CALL SCREEN ========== */
.call-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.call-screen.hidden { display: none !important; }
.call-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 50% 20%, rgba(16, 185, 129, 0.22), transparent 60%),
    radial-gradient(600px 400px at 80% 90%, rgba(59, 130, 246, 0.12), transparent 55%),
    linear-gradient(180deg, #071018, #0a1620 50%, #060d14);
}
.call-inner {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.call-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6ee7b7;
}
.call-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
  animation: pulse 1.2s infinite ease-in-out;
}
.call-title {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.call-status {
  margin: 0;
  color: #34d399;
  font-weight: 700;
  font-size: 0.95rem;
}
.call-orb {
  width: 180px;
  height: 180px;
  margin: 10px 0 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 40% 35%, #34d399, #059669 55%, #064e3b);
  box-shadow:
    0 0 0 10px rgba(16, 185, 129, 0.12),
    0 0 50px rgba(16, 185, 129, 0.45);
  animation: orbPulse 2s ease-in-out infinite;
}
.call-orb.listening {
  background: radial-gradient(circle at 40% 35%, #38bdf8, #2563eb 55%, #1e3a8a);
  box-shadow:
    0 0 0 10px rgba(59, 130, 246, 0.12),
    0 0 50px rgba(59, 130, 246, 0.45);
}
.call-orb.thinking {
  background: radial-gradient(circle at 40% 35%, #fbbf24, #d97706 55%, #78350f);
  box-shadow:
    0 0 0 10px rgba(251, 191, 36, 0.12),
    0 0 50px rgba(251, 191, 36, 0.4);
}
.call-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 54px;
}
.call-wave i {
  width: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  height: 18px;
  animation: wave 1s ease-in-out infinite;
}
.call-wave i:nth-child(1) { animation-delay: 0s; height: 14px; }
.call-wave i:nth-child(2) { animation-delay: 0.08s; height: 28px; }
.call-wave i:nth-child(3) { animation-delay: 0.16s; height: 40px; }
.call-wave i:nth-child(4) { animation-delay: 0.24s; height: 50px; }
.call-wave i:nth-child(5) { animation-delay: 0.16s; height: 40px; }
.call-wave i:nth-child(6) { animation-delay: 0.08s; height: 28px; }
.call-wave i:nth-child(7) { animation-delay: 0s; height: 14px; }

.live-caption {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(8, 18, 28, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.25);
  min-height: 88px;
}
.live-caption-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #6ee7b7;
  margin-bottom: 8px;
}
.live-caption p {
  margin: 0;
  color: #e8fff6;
  font-size: 0.98rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.call-actions {
  display: flex;
  gap: 28px;
  margin-top: 8px;
}
.call-btn {
  width: 72px;
  border: 0;
  background: transparent;
  color: #d1fae5;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.call-btn svg,
.call-btn > svg {
  width: 56px;
  height: 56px;
  padding: 16px;
  border-radius: 50%;
  box-sizing: border-box;
}
.call-btn.mute svg {
  background: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}
.call-btn.mute.on svg {
  background: rgba(248, 113, 113, 0.25);
  color: #fecaca;
}
.call-btn.end svg {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.45);
  transform: rotate(135deg);
}
.call-btn:hover { filter: brightness(1.08); }

@keyframes orbPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.55); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}
