/* ============================================================
 * NOVEXA Voice & Toast Styles
 * Theme: dark + NOVEXA blue (#8cb0ff) + accent orange (#ff9800)
 * RTL-aware (Arabic UI). All classes prefixed nv-.
 * ============================================================ */

/* ---------- Toast container ---------- */
#novexa-toast-container {
  position: fixed;
  top: 16px;
  left: 16px;            /* RTL: stays on left in LTR, mirrors via dir */
  right: auto;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
}
[dir="rtl"] #novexa-toast-container,
html[dir="rtl"] #novexa-toast-container {
  left: auto;
  right: 16px;
}

/* ---------- Toast base ---------- */
.nv-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #1c2235;
  color: #e8ecf6;
  border: 1px solid #2a3454;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  direction: rtl;
  text-align: right;
}
.nv-toast.nv-toast-in {
  opacity: 1;
  transform: translateY(0);
}
.nv-toast.nv-toast-out {
  opacity: 0;
  transform: translateY(-8px);
}

/* ---------- Toast types ---------- */
.nv-toast-success { border-color: #2e7d4f; background: #14291f; }
.nv-toast-success .nv-toast-icon { color: #4ade80; }

.nv-toast-error   { border-color: #b53b3b; background: #2a1414; }
.nv-toast-error   .nv-toast-icon { color: #f87171; }

.nv-toast-warning { border-color: #c08a25; background: #2a2010; }
.nv-toast-warning .nv-toast-icon { color: #fbbf24; }

.nv-toast-info    { border-color: #3a5a9a; background: #142035; }
.nv-toast-info    .nv-toast-icon { color: #8cb0ff; }

/* ---------- Toast parts ---------- */
.nv-toast-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  margin-top: 1px;
}
.nv-toast-body {
  flex: 1 1 auto;
  min-width: 0;
}
.nv-toast-title {
  font-weight: 700;
  margin-bottom: 2px;
  color: #f0f4ff;
}
.nv-toast-msg {
  color: #c8d0e0;
  word-break: break-word;
}
.nv-toast-hint {
  margin-top: 4px;
  font-size: 12px;
  color: #8a94ad;
}
.nv-toast-close {
  flex: 0 0 24px;
  background: transparent;
  border: 0;
  color: #8a94ad;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nv-toast-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e8ecf6;
}

/* ---------- Settings tabs ---------- */
.nv-settings-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #2a3454;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.nv-tab-btn {
  background: transparent;
  border: 0;
  color: #8a94ad;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  border-radius: 6px 6px 0 0;
  font-family: inherit;
}
.nv-tab-btn:hover {
  color: #e8ecf6;
  background: rgba(140, 176, 255, 0.06);
}
.nv-tab-btn.active {
  color: #8cb0ff;
  border-bottom-color: #8cb0ff;
}
.nv-tab-panel {
  display: none;
  animation: nv-fade-in 0.22s ease;
}
.nv-tab-panel.active {
  display: block;
}
@keyframes nv-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Provider note ---------- */
.nv-provider-note {
  margin: 10px 0 14px 0;
  padding: 10px 12px;
  border: 1px dashed #3a5a9a;
  border-radius: 8px;
  background: rgba(140, 176, 255, 0.04);
  color: #c8d0e0;
  font-size: 13px;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}
.nv-provider-note strong {
  color: #8cb0ff;
}

/* ---------- Remember checkbox row ---------- */
.nv-remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 4px 0;
  padding: 10px 12px;
  background: rgba(255, 152, 0, 0.06);
  border: 1px solid rgba(255, 152, 0, 0.2);
  border-radius: 8px;
  direction: rtl;
}
.nv-remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #ff9800;
  cursor: pointer;
}
.nv-remember-row label {
  color: #e8ecf6;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

/* ---------- Mic button row (next to topic textarea) ---------- */
.nv-mic-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px 0;
  direction: rtl;
}
.nv-mic-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #3a5a9a;
  background: #1c2235;
  color: #8cb0ff;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, border-color 0.15s, background 0.15s, box-shadow 0.2s;
  flex: 0 0 44px;
  padding: 0;
  line-height: 1;
}
.nv-mic-btn:hover {
  background: #232a42;
  border-color: #8cb0ff;
  transform: scale(1.05);
}
.nv-mic-btn:active { transform: scale(0.96); }
.nv-mic-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.nv-mic-btn.is-recording {
  background: #2a1414;
  border-color: #f87171;
  color: #f87171;
  animation: nv-mic-pulse 1.4s ease-in-out infinite;
}
@keyframes nv-mic-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.55);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(248, 113, 113, 0);
  }
}

.nv-mic-status {
  font-size: 13px;
  color: #8a94ad;
  flex: 1 1 auto;
  min-width: 0;
}
.nv-mic-status.is-active {
  color: #f87171;
  font-weight: 600;
}

/* ---------- Listen button (next to article actions) ---------- */
.nv-listen-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nv-listen-btn {
  background: #1c2235;
  border: 2px solid #ff9800;
  color: #ff9800;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, transform 0.1s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nv-listen-btn:hover {
  background: #ff9800;
  color: #1c2235;
}
.nv-listen-btn:active { transform: scale(0.97); }
.nv-listen-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.nv-listen-btn.is-playing {
  background: #ff9800;
  color: #1c2235;
  animation: nv-listen-glow 1.8s ease-in-out infinite;
}
@keyframes nv-listen-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.55); }
  50%      { box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
}

/* ---------- Test/preview small buttons inside settings ---------- */
.nv-tab-panel button[data-action="test-stt"],
.nv-tab-panel button[data-action="test-tts"],
.nv-tab-panel button[data-action="preview-tts"] {
  background: #1c2235;
  border: 1px solid #3a5a9a;
  color: #8cb0ff;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  margin: 6px 4px 6px 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nv-tab-panel button[data-action="test-stt"]:hover,
.nv-tab-panel button[data-action="test-tts"]:hover,
.nv-tab-panel button[data-action="preview-tts"]:hover {
  background: #232a42;
  border-color: #8cb0ff;
  color: #e8ecf6;
}
.nv-tab-panel button[data-action="preview-tts"] {
  border-color: rgba(255, 152, 0, 0.5);
  color: #ff9800;
}
.nv-tab-panel button[data-action="preview-tts"]:hover {
  border-color: #ff9800;
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

/* ---------- Tab panel inputs (consistent styling) ---------- */
.nv-tab-panel select,
.nv-tab-panel input[type="text"],
.nv-tab-panel input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  background: #14192a;
  border: 1px solid #2a3454;
  color: #e8ecf6;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  margin: 6px 0;
  box-sizing: border-box;
  direction: rtl;
}
.nv-tab-panel select:focus,
.nv-tab-panel input:focus {
  outline: none;
  border-color: #8cb0ff;
  box-shadow: 0 0 0 2px rgba(140, 176, 255, 0.15);
}
.nv-tab-panel label {
  display: block;
  color: #c8d0e0;
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 2px;
}

/* ---------- Live Presenter Mode (Stage 3 — base only) ---------- */
.nv-presenter-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: radial-gradient(circle at center, #0d1424 0%, #050810 100%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e8ecf6;
}
.nv-presenter-overlay.is-active {
  display: flex;
}
.nv-presenter-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e8ecf6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}
.nv-presenter-state {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 600;
  color: #8cb0ff;
  letter-spacing: 1px;
}

/* CHAT111_PRESENTER_CSS: Full presenter mode */
.nv-presenter-orb {
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #1e3a5f, #0a1628);
  border: 3px solid rgba(139,176,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; margin-bottom: 16px;
  transition: all 0.4s;
  box-shadow: 0 0 40px rgba(99,102,241,0.15);
}
.nv-presenter-orb.listening {
  border-color: rgba(99,102,241,0.8);
  box-shadow: 0 0 60px rgba(99,102,241,0.4);
  animation: nv-presenter-pulse 1.5s ease-in-out infinite;
}
.nv-presenter-orb.thinking {
  border-color: rgba(251,191,36,0.8);
  box-shadow: 0 0 60px rgba(251,191,36,0.4);
  animation: nv-presenter-pulse 1s ease-in-out infinite;
}
.nv-presenter-orb.speaking {
  border-color: rgba(52,211,153,0.8);
  box-shadow: 0 0 60px rgba(52,211,153,0.4);
}
@keyframes nv-presenter-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.nv-presenter-transcript {
  width: 90%; max-width: 700px; max-height: 35vh;
  overflow-y: auto;
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 16px; margin-bottom: 20px;
  direction: rtl; text-align: right;
  font-size: 0.95rem; line-height: 1.8; color: #cbd5e1;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.nv-presenter-transcript::-webkit-scrollbar { width: 6px; }
.nv-presenter-transcript::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.nv-presenter-msg {
  margin-bottom: 12px; padding: 8px 12px; border-radius: 8px;
}
.nv-presenter-msg.user {
  background: rgba(99,102,241,0.15);
  border-right: 3px solid #6366f1; color: #e0e7ff;
}
.nv-presenter-msg.assistant {
  background: rgba(52,211,153,0.1);
  border-right: 3px solid #34d399; color: #d1fae5;
}

.nv-presenter-mic-btn {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.15); color: #a5b4fc;
  font-size: 28px; cursor: pointer;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.nv-presenter-mic-btn:hover {
  background: rgba(99,102,241,0.3);
  border-color: rgba(99,102,241,0.8); transform: scale(1.05);
}
.nv-presenter-mic-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.nv-presenter-article-preview {
  width: 90%; max-width: 700px; max-height: 12vh;
  overflow-y: auto;
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 16px;
  direction: rtl; text-align: right;
  font-size: 0.8rem; color: #64748b; line-height: 1.6;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.nv-presenter-article-preview strong { color: #94a3b8; }

@media (max-width: 600px) {
  .nv-presenter-orb { width: 90px; height: 90px; font-size: 36px; }
  .nv-presenter-transcript { max-height: 30vh; font-size: 0.88rem; }
  .nv-presenter-mic-btn { width: 56px; height: 56px; font-size: 24px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  #novexa-toast-container {
    left: 8px;
    right: 8px;
    max-width: none;
  }
  [dir="rtl"] #novexa-toast-container,
  html[dir="rtl"] #novexa-toast-container {
    left: 8px;
    right: 8px;
  }
  .nv-settings-tabs {
    overflow-x: auto;
  }
}


/* ============================================================
   CHAT108_MIC_MODAL_CSS: fullscreen mic modal styling
   ============================================================ */
.nv-mic-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.nv-mic-modal-overlay.is-active { display: flex; }

.nv-mic-modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 32px 40px;
  background: rgba(15, 22, 41, 0.65);
  border: 1px solid rgba(140, 176, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 12px 70px rgba(140, 176, 255, 0.22);
  max-width: 92vw;
}

.nv-mic-orb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #8cb0ff 0%, #1a4d8c 65%, #0a1f3d 100%);
  box-shadow: 0 0 60px #8cb0ff, 0 0 120px rgba(140, 176, 255, 0.35);
  animation: nv-mic-pulse 1.4s ease-in-out infinite;
}
@keyframes nv-mic-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 60px #8cb0ff, 0 0 120px rgba(140, 176, 255, 0.30);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 84px #8cb0ff, 0 0 160px rgba(140, 176, 255, 0.55);
  }
}

.nv-mic-canvas {
  width: 80vw;
  max-width: 600px;
  height: 120px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(140, 176, 255, 0.12);
  display: block;
}

.nv-mic-state {
  color: #a3c3ff;
  font-size: 18px;
  font-weight: 700;
  font-family: Tajawal, Cairo, "Segoe UI", Tahoma, Arial, sans-serif;
  text-align: center;
  min-height: 26px;
}

.nv-mic-actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}

.nv-mic-btn {
  padding: 12px 26px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  font-family: Tajawal, Cairo, "Segoe UI", Tahoma, Arial, sans-serif;
  transition: transform 0.1s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.nv-mic-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.nv-mic-btn:active { transform: translateY(0); }

.nv-mic-btn-stop   { background: #d32f2f; color: #fff; }
.nv-mic-btn-cancel { background: #555;    color: #fff; }

/* NOVEXA_PHASE_G_REBUILD_CSS: Professional Live Presenter */
html.nv-presenter-lock,
html.nv-presenter-lock body {
  overflow: hidden !important;
}

.nv-presenter-overlay {
  position: fixed;
  inset: 0;
  z-index: 8500;
  display: none;
  direction: rtl;
  color: #e5f0ff;
  font-family: inherit;
  background:
    radial-gradient(circle at 18% 12%, rgba(124,58,237,.28), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(14,165,233,.20), transparent 30%),
    linear-gradient(135deg, #020617 0%, #07111f 45%, #0f172a 100%);
  overflow: hidden;
}

.nv-presenter-overlay.is-active {
  display: block;
}

.nv-presenter-bg-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(42px);
  opacity: .35;
  pointer-events: none;
  animation: nvPresenterFloat 8s ease-in-out infinite;
}

.nv-presenter-bg-orb-a {
  right: -120px;
  top: -120px;
  background: #7c3aed;
}

.nv-presenter-bg-orb-b {
  left: -140px;
  bottom: -140px;
  background: #0284c7;
  animation-delay: -3s;
}

@keyframes nvPresenterFloat {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(22px,-18px,0) scale(1.08); }
}

.nv-presenter-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 34px));
  height: min(760px, calc(100vh - 34px));
  margin: 17px auto;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(330px, 430px);
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 28px;
  background: rgba(2,6,23,.55);
  box-shadow: 0 30px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
}

.nv-presenter-close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 14px;
  background: rgba(15,23,42,.72);
  color: #dbeafe;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.nv-presenter-close:hover {
  transform: translateY(-1px);
  background: rgba(30,41,59,.92);
  border-color: rgba(191,219,254,.42);
}

.nv-presenter-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
}

.nv-presenter-kicker {
  letter-spacing: .22em;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  direction: ltr;
}

.nv-presenter-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
  color: #f8fafc;
  text-shadow: 0 0 26px rgba(96,165,250,.22);
}

.nv-presenter-subtitle {
  margin: 12px 0 10px;
  color: #a8c5e8;
  font-size: 16px;
}

.nv-presenter-aura-wrap {
  position: relative;
  width: min(430px, 72vw);
  aspect-ratio: 1 / 1;
  margin: 6px auto 12px;
  display: grid;
  place-items: center;
}

.nv-presenter-aura {
  width: 100%;
  height: 100%;
  display: block;
}

.nv-presenter-core {
  position: absolute;
  inset: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(160deg, rgba(15,23,42,.84), rgba(30,41,59,.54));
  border: 1px solid rgba(191,219,254,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 45px rgba(59,130,246,.20);
}

.nv-presenter-core-dot {
  width: 18px;
  height: 18px;
  border-radius: 99px;
  background: #60a5fa;
  box-shadow: 0 0 22px rgba(96,165,250,.9);
  animation: nvPresenterBreath 1.8s ease-in-out infinite;
}

.nv-presenter-core-label {
  margin-top: 9px;
  font-size: 13px;
  color: #dbeafe;
  font-weight: 700;
}

@keyframes nvPresenterBreath {
  0%,100% { transform: scale(.88); opacity: .72; }
  50% { transform: scale(1.22); opacity: 1; }
}

.nv-presenter-overlay[data-state="recording"] .nv-presenter-core-dot {
  background: #c084fc;
  box-shadow: 0 0 28px rgba(192,132,252,.95);
}

.nv-presenter-overlay[data-state="processing"] .nv-presenter-core-dot {
  background: #fbbf24;
  box-shadow: 0 0 28px rgba(251,191,36,.95);
}

.nv-presenter-overlay[data-state="speaking"] .nv-presenter-core-dot {
  background: #34d399;
  box-shadow: 0 0 28px rgba(52,211,153,.95);
}

.nv-presenter-mic {
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  box-shadow: 0 18px 45px rgba(37,99,235,.34);
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.nv-presenter-mic:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(124,58,237,.38);
}

.nv-presenter-mic:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.nv-presenter-mic-symbol {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #bfdbfe;
  text-shadow: 0 0 12px rgba(255,255,255,.7);
}

.nv-presenter-overlay[data-state="speaking"] .nv-presenter-mic {
  background: linear-gradient(135deg, #0f766e 0%, #059669 100%);
}

.nv-presenter-hint {
  min-height: 22px;
  margin-top: 12px;
  color: #8fb3d9;
  font-size: 13px;
}

.nv-presenter-side {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 48px 0 0;
}

.nv-presenter-card {
  min-width: 0;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 22px;
  background: rgba(15,23,42,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.nv-presenter-card-head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148,163,184,.13);
  color: #bfdbfe;
  font-weight: 900;
  font-size: 14px;
}

.nv-presenter-article-card {
  max-height: 235px;
}

.nv-presenter-article-title {
  padding: 13px 16px 4px;
  color: #f8fafc;
  font-weight: 900;
  line-height: 1.5;
}

.nv-presenter-article-text {
  padding: 8px 16px 16px;
  color: #a8c5e8;
  line-height: 1.75;
  font-size: 13.5px;
  max-height: 150px;
  overflow: auto;
  white-space: pre-wrap;
}

.nv-presenter-chat-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.nv-presenter-chat {
  min-height: 0;
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nv-presenter-msg {
  max-width: 94%;
  padding: 12px 13px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(30,41,59,.62);
}

.nv-presenter-msg.is-user {
  align-self: flex-start;
  background: rgba(37,99,235,.20);
  border-color: rgba(96,165,250,.25);
}

.nv-presenter-msg.is-assistant {
  align-self: flex-end;
  background: rgba(124,58,237,.18);
  border-color: rgba(196,181,253,.22);
}

.nv-presenter-msg-who {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.nv-presenter-msg-body {
  color: #e5eefb;
  line-height: 1.7;
  font-size: 14px;
  white-space: pre-wrap;
}

.nv-presenter-btn {
  background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 26px rgba(59,130,246,.26) !important;
}

.nv-presenter-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

@media (max-width: 880px) {
  .nv-presenter-shell {
    grid-template-columns: 1fr;
    height: calc(100vh - 24px);
    width: calc(100vw - 24px);
    margin: 12px auto;
    overflow: auto;
  }

  .nv-presenter-stage {
    padding-top: 46px;
  }

  .nv-presenter-side {
    padding-top: 0;
  }

  .nv-presenter-aura-wrap {
    width: min(350px, 82vw);
  }

  .nv-presenter-core {
    width: 128px;
    height: 128px;
    margin: -64px 0 0 -64px;
  }
}

/* NOVEXA_PHASE_G_INLINE_V2_CSS: center aura core + close button inside shell + recording polish */
.nv-presenter-shell {
  overflow: hidden !important;
}

.nv-presenter-close {
  top: 18px !important;
  left: 18px !important;
  right: auto !important;
  bottom: auto !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 15px !important;
  background: rgba(15,23,42,.88) !important;
  border: 1px solid rgba(147,197,253,.28) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.03), 0 14px 36px rgba(0,0,0,.34) !important;
}

.nv-presenter-aura-wrap {
  isolation: isolate !important;
}

.nv-presenter-core {
  inset: auto !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
}

.nv-presenter-core-label {
  text-align: center !important;
  line-height: 1.35 !important;
}

.nv-presenter-overlay[data-state="recording"] .nv-presenter-core {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    0 0 60px rgba(168,85,247,.38),
    0 0 110px rgba(34,211,238,.18) !important;
}

.nv-presenter-overlay[data-state="recording"] .nv-presenter-mic {
  background: linear-gradient(135deg, #9333ea 0%, #0891b2 100%) !important;
  box-shadow: 0 18px 55px rgba(168,85,247,.42), 0 0 0 6px rgba(168,85,247,.09) !important;
  animation: nvPresenterRecordPulse 1.15s ease-in-out infinite !important;
}

@keyframes nvPresenterRecordPulse {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.025); }
}

.nv-presenter-overlay[data-state="processing"] .nv-presenter-mic {
  background: linear-gradient(135deg, #92400e 0%, #f59e0b 100%) !important;
}

.nv-presenter-overlay[data-state="speaking"] .nv-presenter-mic {
  background: linear-gradient(135deg, #047857 0%, #2563eb 100%) !important;
}

/* NOVEXA_PHASE_G_LIVE_LOOP_V3_CSS */
.nv-presenter-overlay[data-state="listening"] .nv-presenter-core-dot {
  background: #22d3ee !important;
  box-shadow: 0 0 28px rgba(34,211,238,.95) !important;
}

.nv-presenter-overlay[data-state="hearing"] .nv-presenter-core-dot {
  background: #c084fc !important;
  box-shadow: 0 0 34px rgba(192,132,252,.98) !important;
}

.nv-presenter-overlay[data-state="calibrating"] .nv-presenter-core-dot,
.nv-presenter-overlay[data-state="processing"] .nv-presenter-core-dot {
  background: #fbbf24 !important;
  box-shadow: 0 0 30px rgba(251,191,36,.95) !important;
}

.nv-presenter-overlay[data-state="listening"] .nv-presenter-mic {
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%) !important;
}

.nv-presenter-overlay[data-state="hearing"] .nv-presenter-mic {
  background: linear-gradient(135deg, #9333ea 0%, #0891b2 100%) !important;
  box-shadow: 0 18px 55px rgba(168,85,247,.42), 0 0 0 6px rgba(168,85,247,.09) !important;
}

.nv-presenter-overlay[data-state="calibrating"] .nv-presenter-mic,
.nv-presenter-overlay[data-state="processing"] .nv-presenter-mic {
  background: linear-gradient(135deg, #92400e 0%, #f59e0b 100%) !important;
  cursor: wait !important;
}
