/* =====================================================
   Logic Career BOT — Chat Widget Styling
   ===================================================== */

/* ---------- Floating Launcher ---------- */
.lcb-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1A0F4A 0%, #4A2EB0 100%);
  color: #fff;
  border: 0;
  border-radius: 100px;
  padding: 12px 20px 12px 12px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(26, 15, 74, 0.4), 0 0 0 3px rgba(242, 106, 33, 0.15);
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: transform .2s, box-shadow .2s;
  animation: lcb-float 3s ease-in-out infinite;
}
.lcb-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(26, 15, 74, 0.5), 0 0 0 4px rgba(242, 106, 33, 0.25);
}
.lcb-launcher.lcb-hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.lcb-launcher-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFC400;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}
.lcb-launcher-avatar svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.lcb-launcher-wave {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: lcb-wave 2s ease-in-out infinite;
  transform-origin: 70% 70%;
}
.lcb-launcher-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.lcb-launcher-label strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.lcb-launcher-label small {
  font-size: 0.72rem;
  color: #FFC400;
  font-weight: 600;
  margin-top: 2px;
}

.lcb-launcher.lcb-attention {
  animation: lcb-float 3s ease-in-out infinite, lcb-pulse-ring 2.5s ease-out 1;
}

@keyframes lcb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes lcb-wave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(20deg); }
  30% { transform: rotate(-15deg); }
  45% { transform: rotate(20deg); }
  60% { transform: rotate(0deg); }
}
@keyframes lcb-pulse-ring {
  0% { box-shadow: 0 14px 30px rgba(26,15,74,0.4), 0 0 0 0 rgba(242,106,33,0.6); }
  100% { box-shadow: 0 14px 30px rgba(26,15,74,0.4), 0 0 0 40px rgba(242,106,33,0); }
}

/* ---------- Chat Window ---------- */
.lcb-window {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: 640px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(26, 15, 74, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.85) translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), opacity .25s;
  font-family: 'Inter', sans-serif;
}
.lcb-window.lcb-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Header ---------- */
.lcb-header {
  background: linear-gradient(135deg, #1A0F4A 0%, #4A2EB0 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 3px solid #F26A21;
}
.lcb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFC400;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.lcb-header-info {
  flex: 1;
  min-width: 0;
}
.lcb-header-info strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.lcb-header-info small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}
.lcb-status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  display: inline-block;
}
.lcb-close, .lcb-reset {
  background: rgba(255,255,255,0.1);
  border: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .2s;
  flex-shrink: 0;
}
.lcb-close:hover, .lcb-reset:hover {
  background: rgba(255,255,255,0.2);
}
.lcb-reset { font-size: 1rem; }

/* ---------- Body ---------- */
.lcb-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  background: linear-gradient(180deg, #FAF7F2 0%, #fff 30%);
  scroll-behavior: smooth;
}
.lcb-body::-webkit-scrollbar { width: 6px; }
.lcb-body::-webkit-scrollbar-thumb { background: #d4cfe0; border-radius: 3px; }

/* ---------- Messages ---------- */
.lcb-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
  animation: lcb-msg-in .3s ease-out;
}
@keyframes lcb-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.lcb-msg-bot { justify-content: flex-start; }
.lcb-msg-user { justify-content: flex-end; }

.lcb-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1A0F4A;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.lcb-bubble {
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.55;
  word-wrap: break-word;
  color: #0E0825;
}
.lcb-msg-bot .lcb-bubble {
  background: #F5F1FD;
  border: 1px solid rgba(74, 46, 176, 0.15);
  border-bottom-left-radius: 4px;
}
.lcb-msg-user .lcb-bubble {
  background: linear-gradient(135deg, #F26A21 0%, #FF8F4A 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.lcb-bubble b { font-weight: 700; }
.lcb-bubble a {
  color: #F26A21;
  font-weight: 700;
  text-decoration: underline;
}
.lcb-msg-user .lcb-bubble a { color: #fff; }

/* Typing indicator */
.lcb-typing .lcb-bubble {
  padding: 12px 16px;
  display: inline-flex;
  gap: 4px;
}
.lcb-dot {
  width: 7px;
  height: 7px;
  background: #4A2EB0;
  border-radius: 50%;
  opacity: 0.4;
  animation: lcb-typing 1.4s infinite;
}
.lcb-dot:nth-child(2) { animation-delay: 0.2s; }
.lcb-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes lcb-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Lead saved banner */
.lcb-lead-banner {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  animation: lcb-msg-in .4s ease-out;
}
.lcb-lead-banner i { font-size: 1.2rem; }

/* ---------- Actions (buttons + input) ---------- */
.lcb-actions {
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid #E7E4F0;
}
.lcb-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  max-height: 90px;
  overflow-y: auto;
}
.lcb-quick-btn {
  background: #F5F1FD;
  border: 1px solid rgba(74, 46, 176, 0.2);
  color: #2E1B7A;
  padding: 7px 12px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all .15s;
}
.lcb-quick-btn:hover {
  background: #4A2EB0;
  color: #fff;
  border-color: #4A2EB0;
}
.lcb-btn, .lcb-btn-primary, .lcb-btn-ghost {
  background: #F5F1FD;
  border: 1px solid rgba(74, 46, 176, 0.2);
  color: #2E1B7A;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  margin: 2px;
}
.lcb-btn:hover { background: #4A2EB0; color: #fff; }
.lcb-btn-primary { background: #F26A21; color: #fff; border-color: #F26A21; }
.lcb-btn-primary:hover { background: #D8551A; }
.lcb-btn-ghost { background: transparent; }

.lcb-input-form {
  display: flex;
  gap: 6px;
  align-items: center;
}
.lcb-input-form input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid #E7E4F0;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: #0E0825;
  transition: border-color .2s, box-shadow .2s;
}
.lcb-input-form input:focus {
  outline: none;
  border-color: #F26A21;
  box-shadow: 0 0 0 3px rgba(242, 106, 33, 0.12);
}
.lcb-send-btn {
  background: linear-gradient(135deg, #F26A21 0%, #FF8F4A 100%);
  color: #fff;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: transform .15s;
  flex-shrink: 0;
}
.lcb-send-btn:hover { transform: scale(1.08); }
.lcb-send-btn:active { transform: scale(0.95); }

/* ---------- Footer ---------- */
.lcb-foot {
  padding: 8px 14px;
  background: #FAF7F2;
  border-top: 1px solid #E7E4F0;
  font-size: 0.72rem;
  color: #5B5478;
  text-align: center;
}
.lcb-foot i { color: #22c55e; margin-right: 4px; }
.lcb-foot b { color: #2E1B7A; }

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .lcb-launcher {
    bottom: 14px;
    right: 14px;
    padding: 10px 16px 10px 10px;
  }
  .lcb-launcher-avatar { width: 40px; height: 40px; }
  .lcb-launcher-label strong { font-size: 0.84rem; }
  .lcb-launcher-label small { font-size: 0.66rem; }

  .lcb-window {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .lcb-body { padding: 12px 10px; }
  .lcb-bubble { max-width: 82%; font-size: 0.88rem; }
}

/* ---------- Rich content in bot bubbles (recommendations) ---------- */
.lcb-rec {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(74,46,176,0.15);
  border-left: 3px solid #F26A21;
  border-radius: 8px;
}
.lcb-rec-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: #F26A21;
  font-size: 1rem;
}
.lcb-rec-title {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0E0825 !important;
  text-decoration: none !important;
  margin-bottom: 4px;
}
.lcb-rec-title:hover { color: #F26A21 !important; }
.lcb-rec-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: #5B5478;
  margin-bottom: 4px;
}
.lcb-rec-salary {
  font-size: 0.82rem;
  color: #16a34a;
  margin-bottom: 3px;
}
.lcb-rec-roi {
  font-size: 0.78rem;
  color: #4A2EB0;
}

/* ---------- RTL support ---------- */
html[dir="rtl"] .lcb-launcher { right: auto; left: 24px; flex-direction: row-reverse; }
html[dir="rtl"] .lcb-launcher-label { align-items: flex-end; }
html[dir="rtl"] .lcb-window { right: auto; left: 24px; }
html[dir="rtl"] .lcb-msg-bot { justify-content: flex-end; flex-direction: row-reverse; }
html[dir="rtl"] .lcb-msg-user { justify-content: flex-start; flex-direction: row-reverse; }

/* ===================================================
   Voice controls — Web Speech API TTS + STT
   =================================================== */

/* Header speaker toggle — reuses .lcb-reset base */
#lcb-speak-toggle {
  transition: all .2s;
}
#lcb-speak-toggle.lcb-active {
  background: rgba(255, 196, 0, .18);
  color: #FFC400;
  box-shadow: 0 0 0 2px rgba(255,196,0,.3) inset;
}
#lcb-speak-toggle.lcb-active i {
  animation: lcb-pulse-icon 1.4s ease-in-out infinite;
}
@keyframes lcb-pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Per-message speaker button (appears on hover of bot bubble) */
.lcb-msg-speaker {
  position: absolute;
  bottom: -8px;
  right: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #4A2EB0, #1A0F4A);
  color: #FFC400;
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  opacity: 0;
  transform: scale(0.7);
  transition: all .2s cubic-bezier(.2,.7,.3,1);
  z-index: 2;
}
.lcb-msg-bot .lcb-bubble {
  position: relative;
}
.lcb-msg-bot:hover .lcb-msg-speaker,
.lcb-msg-speaker:focus {
  opacity: 1;
  transform: scale(1);
}
.lcb-msg-speaker:hover {
  background: linear-gradient(135deg, #F26A21, #FFC400);
  color: #1A0F4A;
  transform: scale(1.15);
}

/* Always visible on touch devices (no hover) */
@media (hover: none) {
  .lcb-msg-speaker { opacity: 0.7; transform: scale(1); }
}

/* Mic button in input form */
.lcb-mic-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(74, 46, 176, .1);
  color: #4A2EB0;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
  margin-right: 6px;
}
.lcb-mic-btn:hover {
  background: rgba(74, 46, 176, .18);
  transform: scale(1.05);
}
.lcb-mic-btn.lcb-mic-active {
  background: linear-gradient(135deg, #EF4444, #F26A21);
  color: #fff;
  animation: lcb-mic-pulse 1.2s ease-in-out infinite;
}
@keyframes lcb-mic-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    transform: scale(1.08);
  }
}

/* RTL adjustments for voice controls */
html[dir="rtl"] .lcb-msg-speaker { right: auto; left: -6px; }
html[dir="rtl"] .lcb-mic-btn { margin-right: 0; margin-left: 6px; }

/* ===================================================
   v2 Enhancements — Toast, Modal, Retry, Copy, Listening overlay, Char counter
   =================================================== */

/* ---------- Toast ---------- */
.lcb-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1A0F4A;
  color: #fff;
  padding: 12px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.15);
  border-left: 4px solid #FFC400;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 16px 32px rgba(0,0,0,.3);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .3s cubic-bezier(.2,.7,.3,1);
  max-width: 90vw;
  white-space: nowrap;
}
.lcb-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.lcb-toast-success { border-left-color: #22C55E; }
.lcb-toast-error {
  border-left-color: #EF4444;
  background: #7f1d1d;
  white-space: normal;
  max-width: 340px;
  border-radius: 12px;
  text-align: center;
  line-height: 1.4;
}

/* ---------- Custom confirm modal ---------- */
.lcb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  padding: 20px;
}
.lcb-modal-open { opacity: 1; }
.lcb-modal {
  background: #fff;
  border-radius: 18px;
  padding: 26px 24px 20px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  transform: scale(.92);
  transition: transform .25s cubic-bezier(.2,.7,.3,1);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.lcb-modal-open .lcb-modal { transform: scale(1); }
.lcb-modal-body {
  font-size: 0.98rem;
  color: #1A0F4A;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
}
.lcb-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.lcb-modal-btn {
  padding: 10px 18px;
  border-radius: 100px;
  border: 0;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: transform .15s, background .18s;
}
.lcb-modal-cancel {
  background: rgba(74,46,176,.08);
  color: #1A0F4A;
}
.lcb-modal-cancel:hover { background: rgba(74,46,176,.15); }
.lcb-modal-ok {
  background: linear-gradient(135deg, #F26A21, #FFC400);
  color: #1A0F4A;
}
.lcb-modal-ok:hover { transform: scale(1.04); }

/* ---------- Message action bar (copy + speaker) ---------- */
.lcb-msg-actions {
  position: absolute;
  bottom: -10px;
  right: -4px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transform: translateY(-3px);
  transition: all .18s cubic-bezier(.2,.7,.3,1);
  z-index: 2;
}
.lcb-msg-bot:hover .lcb-msg-actions,
.lcb-msg-actions:focus-within { opacity: 1; transform: translateY(0); }
.lcb-msg-action {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #4A2EB0;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
  transition: all .18s;
}
.lcb-msg-action:hover {
  transform: scale(1.15);
  background: linear-gradient(135deg, #F26A21, #FFC400);
  color: #1A0F4A;
}
@media (hover: none) { .lcb-msg-actions { opacity: 0.7; transform: none; } }

/* Speaker pulses while speaking */
body.lcb-speaking .lcb-msg-speaker {
  background: linear-gradient(135deg, #F26A21, #FFC400);
  color: #1A0F4A;
  animation: lcb-speak-pulse 1.2s ease-in-out infinite;
  opacity: 1;
}
@keyframes lcb-speak-pulse {
  0%, 100% { box-shadow: 0 3px 10px rgba(255,196,0,.6); }
  50% { box-shadow: 0 3px 20px rgba(255,196,0,.9), 0 0 0 6px rgba(255,196,0,.15); }
}

/* Reposition per-message speaker inside action bar */
.lcb-msg-bot .lcb-msg-actions .lcb-msg-speaker {
  position: static;
  bottom: auto;
  right: auto;
}

/* ---------- Retry button on error bubble ---------- */
.lcb-bubble-error {
  background: #fef2f2 !important;
  border-left: 3px solid #EF4444 !important;
}
.lcb-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid #EF4444;
  background: #fff;
  color: #EF4444;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all .18s;
}
.lcb-retry-btn:hover {
  background: #EF4444;
  color: #fff;
  transform: scale(1.04);
}

/* ---------- Character counter ---------- */
.lcb-char-counter {
  position: absolute;
  right: 60px;
  bottom: 18px;
  font-size: 0.68rem;
  color: #94a3b8;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  background: #fff;
  padding: 2px 8px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(4px);
  transition: all .2s;
  pointer-events: none;
}
.lcb-char-counter-show { opacity: 1; transform: translateY(0); }
.lcb-char-counter-warn { color: #EF4444; }

/* ---------- Mic button language badge ---------- */
.lcb-mic-btn { position: relative; }
.lcb-mic-lang {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #F26A21;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  border: 2px solid #fff;
  line-height: 1;
}
.lcb-mic-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.lcb-send-btn:disabled,
.lcb-quick-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Input transcribed flash */
.lcb-input-transcribed {
  background: rgba(34, 197, 94, .1) !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, .3) !important;
  animation: lcb-transcribed-flash .6s ease-out;
}
@keyframes lcb-transcribed-flash {
  0% { background: rgba(34, 197, 94, .3); }
  100% { background: rgba(34, 197, 94, .1); }
}

/* ---------- Listening overlay ---------- */
.lcb-listening-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 15, 74, .92);
  z-index: 100002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  transition: opacity .25s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 30px;
}
.lcb-listening-open { opacity: 1; }
.lcb-listening-mic {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lcb-listening-icon {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F26A21, #EF4444);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.4rem;
  box-shadow: 0 12px 40px rgba(239, 68, 68, .5);
  z-index: 2;
}
.lcb-listening-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #F26A21;
  opacity: 0;
  animation: lcb-listen-pulse 1.8s ease-out infinite;
}
.lcb-listening-pulse-2 { animation-delay: .9s; }
@keyframes lcb-listen-pulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}
.lcb-listening-label {
  color: #FFC400;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 0.02em;
}
.lcb-listening-hint {
  color: rgba(255,255,255,.75);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  text-align: center;
  max-width: 320px;
  line-height: 1.5;
}
.lcb-listening-cancel {
  margin-top: 8px;
  padding: 12px 30px;
  border-radius: 100px;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all .18s;
  letter-spacing: 0.02em;
}
.lcb-listening-cancel:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.5);
}

/* Urdu font support */
html[dir="rtl"] .lcb-listening-label,
html[dir="rtl"] .lcb-listening-hint,
html[dir="rtl"] .lcb-listening-cancel,
html[dir="rtl"] .lcb-modal-body,
html[dir="rtl"] .lcb-modal-btn,
html[dir="rtl"] .lcb-toast {
  font-family: 'Noto Nastaliq Urdu', 'Plus Jakarta Sans', sans-serif;
  line-height: 1.9;
}

/* Mobile tuning */
@media (max-width: 575px) {
  .lcb-listening-mic { width: 100px; height: 100px; }
  .lcb-listening-icon { width: 72px; height: 72px; font-size: 1.9rem; }
  .lcb-listening-label { font-size: 1.15rem; }
  .lcb-listening-hint { font-size: 0.82rem; }
  .lcb-modal { padding: 22px 18px 18px; }
  .lcb-toast { bottom: 90px; font-size: 0.8rem; padding: 10px 16px; }
  .lcb-char-counter { right: 55px; bottom: 15px; }
}
