/* ============================================================
   YUKTI VOICE — Standalone MWeb CSS
   Matches exact UI of LiveSession.tsx + MobileAgentsView.tsx
   ============================================================ */

:root {
  --space:        #060b14;
  --space-mid:    #0d1b2e;
  --gold:         #c9a558;
  --gold-dim:     rgba(201,165,88,0.5);
  --text-bright:  rgba(241,232,210,0.92);
  --text-dim:     rgba(255,255,255,0.45);
  --ember:        #e87a5a;
  --silver:       rgba(255,255,255,0.55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--space);
  color: var(--text-bright);
  font-family: Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

#yukti-root {
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* ── Keyframe Animations ──────────────────────────────────── */

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(201,165,88,0.6); }
  70%  { box-shadow: 0 0 0 18px rgba(201,165,88,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,165,88,0); }
}

@keyframes spin-ring {
  to { transform: rotate(360deg); }
}

@keyframes slow-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

@keyframes ripple-out {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes waveform-pulse {
  0%, 100% { transform: scaleY(0.4); }
  50%       { transform: scaleY(1); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toast-slide-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toast-slide-out-up {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-20px); }
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,165,88,0.2); border-radius: 2px; }

/* ============================================================
   LISTING SCREEN
   ============================================================ */

.yv-listing {
  background: #060b14;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Hero Banner */
.yv-hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  flex-shrink: 0;
}

.yv-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: opacity 0.6s ease;
}

.yv-hero-back {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.yv-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6,11,20,0) 0%, rgba(6,11,20,0) 55%, rgba(6,11,20,0.55) 100%);
}

.yv-hero-text {
  position: absolute;
  top: 32%;
  right: 12px;
  width: 42%;
  text-align: right;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.yv-hero-text-line1 {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.25;
  word-break: keep-all;
  font-family: 'Noto Sans Devanagari', system-ui, sans-serif;
  text-shadow: 0 2px 8px rgba(0,0,0,1), 0 0 30px rgba(0,0,0,0.9), 2px 2px 0 rgba(0,0,0,0.5);
}

.yv-hero-text-line2 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 8px;
  word-break: keep-all;
  font-family: 'Noto Sans Devanagari', system-ui, sans-serif;
  text-shadow: 0 2px 8px rgba(0,0,0,1), 0 0 24px rgba(0,0,0,0.9);
}

.yv-hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
  background: rgba(0,0,0,0.35);
  border-radius: 20px;
  padding: 6px 12px;
  backdrop-filter: blur(4px);
}

.yv-hero-dot {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.6);
  transition: width 0.3s, background 0.3s;
  cursor: pointer;
}

.yv-hero-dot.active {
  background: #c9a558;
}

/* Listing body */
.yv-listing-body {
  padding: 18px 16px 40px;
  background: #060b14;
  border-radius: 28px 28px 0 0;
  margin-top: -28px;
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Time exhausted banner */
.yv-exhausted-banner {
  margin-bottom: 18px;
  padding: 4px 0 16px;
  text-align: left;
}

.yv-exhausted-title {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Noto Sans Devanagari', system-ui, sans-serif;
  text-align: center;
  margin-bottom: 6px;
}

.yv-exhausted-sub {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 14px;
  font-family: 'Noto Sans Devanagari', system-ui, sans-serif;
  text-align: center;
}

.yv-app-download-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #f97316, #facc15);
  color: #1a1200;
  font-size: 1rem;
  font-weight: 800;
  font-family: 'Noto Sans Devanagari', system-ui, sans-serif;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 10px;
  box-shadow: 0 4px 16px rgba(249,115,22,0.4);
}

.yv-au-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #c8102e;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  font-family: Georgia, serif;
}

.yv-back-to-au {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-decoration: none;
  margin-top: 6px;
  text-align: center;
}

/* Listing headings */
.yv-listing-title {
  color: #f1e8d2;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 4px;
}

.yv-listing-sub {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.4;
}

/* Time badge */
.yv-time-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.yv-time-badge-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,165,88,0.07);
  border: 1px solid rgba(201,165,88,0.35);
  border-radius: 50px;
  padding: 9px 20px;
  color: #e2c880;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.yv-time-mono {
  font-family: monospace;
  font-weight: 700;
}

/* Agent list */
.yv-agent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yv-agent-card {
  background: linear-gradient(160deg, #0d1b2e, #0a1628);
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
}

/* Spinning avatar ring */
.yv-avatar-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.yv-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #6366f1, #a855f7, #ec4899, #f59e0b, #22c55e, #3b82f6, #6366f1);
  animation: spin-ring 2.5s linear infinite;
}

.yv-avatar-bg {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #0d1b2e;
}

.yv-avatar-img {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
}

/* Agent info */
.yv-agent-info { flex: 1; min-width: 0; }

.yv-agent-name {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.yv-agent-spec {
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

.yv-agent-meta {
  display: flex;
  align-items: center;
  gap: 4px;
}

.yv-star { color: #fbbf24; font-size: 0.78rem; }
.yv-rating { color: #fbbf24; font-size: 0.75rem; font-weight: 700; }
.yv-rating-count { color: #fbbf24; font-size: 0.72rem; }

/* Agent actions */
.yv-agent-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.yv-call-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #22c55e;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.yv-agent-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yv-chat-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #3b82f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.yv-history-link {
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  text-decoration: none;
}

/* Time-up card — floats over chat as a bottom sheet when quota exhausted */
.yv-timeup-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  pointer-events: none;
}

.yv-timeup-fade {
  height: 80px;
  background: linear-gradient(to bottom, transparent, #0a0f1e);
  pointer-events: none;
}

.yv-timeup-card {
  background: #0a0f1e;
  padding: 16px 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  pointer-events: all;
}

.yv-timeup-title {
  color: #fbbf24;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  font-family: 'Noto Sans Devanagari', system-ui, sans-serif;
  line-height: 1.3;
}

.yv-timeup-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  text-align: center;
  font-family: 'Noto Sans Devanagari', system-ui, sans-serif;
  margin-bottom: 4px;
}

.yv-timeup-btns {
  display: flex;
  gap: 10px;
  width: 100%;
}

.yv-timeup-feedback-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #ffffff;
  border-radius: 12px;
  padding: 14px 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Noto Sans Devanagari', system-ui, sans-serif;
}

.yv-timeup-download-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f97316;
  color: #ffffff;
  border-radius: 12px;
  padding: 14px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Noto Sans Devanagari', system-ui, sans-serif;
}

.yv-timeup-download-btn.full {
  flex: unset;
  width: 100%;
  justify-content: center;
  gap: 10px;
}

.yv-timeup-au-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #c8102e;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  font-family: Georgia, serif;
}

/* ============================================================
   CONNECTING SCREEN
   ============================================================ */

.yv-connecting {
  position: fixed;
  inset: 0;
  background: #070d1f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Georgia, 'Times New Roman', serif;
  z-index: 100;
}

.yv-conn-photo-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid #c9a558;
  overflow: hidden;
  margin-bottom: 28px;
  animation: pulse-ring 2s ease-out infinite;
  flex-shrink: 0;
}

.yv-conn-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.yv-conn-name {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.yv-conn-status {
  color: #22c55e;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.yv-conn-cancel-wrap {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
}

.yv-conn-cancel {
  background: #ef4444;
  border: none;
  border-radius: 50px;
  width: 200px;
  height: 58px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(239,68,68,0.5);
}

/* ============================================================
   CALL SCREEN
   ============================================================ */

.yv-call {
  position: fixed;
  inset: 0;
  background: var(--space);
  display: flex;
  flex-direction: column;
  font-family: Georgia, 'Times New Roman', serif;
}

/* Top bar */
.yv-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(8,8,28,0.97);
  border-bottom: 1px solid rgba(201,165,88,0.12);
  flex-shrink: 0;
  z-index: 10;
}

.yv-topbar-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 1.5px solid rgba(201,165,88,0.4);
  flex-shrink: 0;
}

.yv-topbar-info { flex: 1; min-width: 0; }

.yv-topbar-name {
  font-size: 0.95rem;
  color: var(--text-bright);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yv-topbar-spec {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yv-end-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e53935;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(229,57,53,0.5);
}

.yv-switch-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.yv-switch-circle.yv-to-chat { background: #3b82f6; box-shadow: 0 2px 12px rgba(59,130,246,0.4); }
.yv-switch-circle.yv-to-call { background: #22c55e; box-shadow: 0 2px 12px rgba(34,197,94,0.4); }

/* Chat timer badge — trapezoid hanging from the top bar's border */
.yv-chat-timer-badge-wrap {
  position: relative;
  height: auto;
  flex-shrink: 0;
  z-index: 5;
}
.yv-chat-timer-badge {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 120px;
  height: 28px;
}
.yv-chat-timer-badge svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.yv-chat-timer-label {
  position: absolute;
  left: 0; right: 0; top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
}
.yv-chat-timer-label .yv-timer { font-size: 0.8rem; letter-spacing: 0.05em; }

.yv-back-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  font-family: inherit;
}

/* Warning toast */
.yv-network-toast {
  position: fixed;
  top: 70px;
  left: 12px;
  right: 12px;
  z-index: 50;
  background: linear-gradient(135deg, #dc2626, #f97316);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(220,38,38,0.5);
  animation: toast-slide-down 0.3s ease;
}
.yv-network-toast .yv-toast-title { color: #fff; }
.yv-network-toast .yv-toast-sub   { color: rgba(255,255,255,0.85); }

.yv-warning-toast {
  position: fixed;
  bottom: 130px;
  left: 12px;
  right: 12px;
  z-index: 50;
  background: linear-gradient(135deg, #f97316, #facc15);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(249,115,22,0.5);
  animation: toast-slide-up 0.3s ease;
}

.yv-toast-icon { font-size: 1.3rem; flex-shrink: 0; }
.yv-toast-title { color: #1a1200; font-size: 0.9rem; font-weight: 700; }
.yv-toast-sub { color: rgba(26,18,0,0.75); font-size: 0.75rem; margin-top: 2px; }

.yv-back-to-listing-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold-dim);
  border-radius: 28px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
  cursor: pointer;
  animation: toast-slide-up 0.3s ease;
}
.yv-back-to-listing-btn:active { opacity: 0.7; }

.yv-resume-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), #c9a558);
  color: #1a1200;
  border: none;
  border-radius: 28px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,165,88,0.45);
  animation: toast-slide-up 0.3s ease;
}
.yv-resume-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Chat area */
.yv-chat {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

/* Sticky date chip */
.yv-sticky-date {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: flex;
  justify-content: center;
  pointer-events: none;
  margin-bottom: -24px;
}

.yv-sticky-date-chip {
  background: rgba(15,15,35,0.88);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 3px 14px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
  backdrop-filter: blur(6px);
}

/* Date separator */
.yv-date-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.yv-date-sep-line { flex: 1; height: 1px; background: rgba(201,165,88,0.15); }
.yv-date-sep-label { font-size: 0.6rem; color: rgba(255,255,255,0.3); font-family: monospace; white-space: nowrap; }

/* Session separator */
.yv-session-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.yv-session-sep-line { flex: 1; height: 1px; background: rgba(201,165,88,0.3); }
.yv-session-sep-label { font-size: 0.6rem; color: var(--gold); font-family: monospace; white-space: nowrap; }

/* Messages */
.yv-msg {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  animation: fade-in 0.2s ease;
}

.yv-msg.user { align-items: flex-end; }
.yv-msg.agent { align-items: flex-start; }

.yv-msg-sender {
  font-size: 0.68rem;
  color: var(--gold);
  margin-bottom: 2px;
  padding-left: 4px;
}

.yv-msg-bubble {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  word-break: break-word;
}

.yv-msg.user .yv-msg-bubble {
  border-radius: 18px 18px 4px 18px;
  background: #c9a558;
  color: #1a1200;
  font-style: italic;
}

.yv-msg.agent .yv-msg-bubble {
  border-radius: 4px 18px 18px 18px;
  background: rgba(20,20,52,0.96);
  border: 1px solid rgba(201,165,88,0.15);
  color: rgba(241,232,210,0.92);
}

.yv-msg-time {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  margin-top: 3px;
}

.yv-msg.user .yv-msg-time { padding-right: 4px; }
.yv-msg.agent .yv-msg-time { padding-left: 4px; }

/* Cursor for in-progress message */
.yv-caret {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--gold);
  margin-left: 3px;
  vertical-align: middle;
  border-radius: 1px;
  animation: slow-blink 1s ease-in-out infinite;
}

.yv-msg.user .yv-caret { background: #1a1200; }

/* System / tool messages */
.yv-msg-system {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-dim);
  font-style: italic;
  margin: 4px 0;
  font-family: monospace;
}

/* Chart containers */
.yv-chart-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 8px;
}

.yv-chart-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 4px;
  font-family: monospace;
}

/* History empty state */
.yv-chat-empty {
  margin: auto;
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 2rem 1rem;
}

.yv-chat-empty.limit { color: var(--gold); font-style: normal; }

/* Bottom bar */
.yv-bottom {
  flex-shrink: 0;
  background: rgba(8,8,28,0.97);
  border-top: 1px solid rgba(201,165,88,0.12);
  padding: 14px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Timer */
.yv-timer {
  font-family: monospace;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  transition: color 0.5s;
}

.yv-timer.warning { color: #e87a5a; }

/* Active call pill */
.yv-call-pill {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(20,20,45,0.95);
  border-radius: 50px;
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Mute button */
.yv-mute-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.yv-mute-btn.muted {
  background: #e53935;
  box-shadow: 0 2px 12px rgba(229,57,53,0.5);
}

/* Waveform */
.yv-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
}

.yv-wave-bar {
  width: 3px;
  border-radius: 2px;
  background: rgba(201,165,88,0.35);
  transition-property: height, background;
  transition-timing-function: ease;
}

.yv-wave-bar.speaking { background: rgba(201,165,88,0.8); }

/* Text chat input bar (bottom of chat screen — replaces .yv-call-pill mic controls) */
.yv-chat-input-bar {
  flex-shrink: 0;
  background: rgba(8,8,28,0.97);
  border-top: 1px solid rgba(201,165,88,0.12);
  padding: 14px 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.yv-chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.yv-chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 11px 18px;
  color: #ffffff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.yv-chat-input::placeholder { color: rgba(255,255,255,0.35); }
.yv-chat-input:disabled { opacity: 0.5; }

.yv-chat-send-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #c9a558;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yv-chat-send-btn:disabled { opacity: 0.4; cursor: default; }

.yv-chat-timeup-note {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  padding: 8px 0;
  font-family: 'Noto Sans Devanagari', system-ui, sans-serif;
}

/* Speaker indicator */
.yv-speaker-indicator {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(34,197,94,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.yv-speaker-indicator.speaking { background: rgba(34,197,94,0.9); }

/* Mic button (call start) */
.yv-mic-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(34,197,94,0.2);
  border: 2px solid rgba(34,197,94,0.3);
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.yv-mic-btn.ready {
  background: rgba(34,197,94,0.9);
  border-color: rgba(34,197,94,1);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(34,197,94,0.4);
}

/* History mode bottom bar */
.yv-history-bottom {
  flex-shrink: 0;
  background: rgba(8,8,28,0.97);
  border-top: 1px solid rgba(201,165,88,0.12);
  padding: 14px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.yv-history-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.14em;
  font-family: Georgia, serif;
}

.yv-history-waves {
  display: flex;
  align-items: center;
  gap: 3px;
}

.yv-history-wave-bar {
  width: 3px;
  border-radius: 2px;
  background: rgba(201,165,88,0.45);
}

/* ============================================================
   MODALS
   ============================================================ */

.yv-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,16,0.85);
  backdrop-filter: blur(6px);
}

.yv-modal {
  background: linear-gradient(160deg, #0d0d28, #080818);
  border: 1px solid rgba(201,165,88,0.3);
  border-radius: 14px;
  padding: 2rem 2.5rem;
  max-width: 340px;
  width: 90%;
  text-align: center;
}

.yv-modal-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }

.yv-modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-bright);
}

.yv-modal-sub {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.yv-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.yv-btn-cancel {
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.yv-btn-confirm {
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  background: rgba(196,71,28,0.15);
  border: 1px solid rgba(196,71,28,0.6);
  color: #e87a5a;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================================
   KUNDLI CHART
   ============================================================ */

.yv-kundli-wrap {
  width: 100%;
  max-width: 360px;
  margin: 0.5rem auto 0;
}

.yv-kundli-label {
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-family: monospace;
}

/* ============================================================
   ASHTAVARGA TABLE
   ============================================================ */

.yv-ashta-wrap { width: 100%; margin-top: 0.5rem; }

.yv-ashta-title {
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: monospace;
}

.yv-ashta-scroll { overflow-x: auto; }

.yv-ashta-table {
  width: 100%;
  border-collapse: collapse;
  font-family: monospace;
  font-size: 0.72rem;
}

.yv-ashta-table th {
  padding: 4px 5px;
  color: rgba(201,165,88,0.7);
  font-weight: 400;
  border-bottom: 1px solid rgba(201,165,88,0.25);
  white-space: nowrap;
}

.yv-ashta-table th.left { text-align: left; }
.yv-ashta-table th.center { text-align: center; }

.yv-ashta-table td {
  text-align: center;
  padding: 3px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.yv-ashta-table td.label {
  text-align: left;
  padding: 3px 6px;
  color: rgba(241,232,210,0.6);
  white-space: nowrap;
}

.yv-ashta-table tr.sarva { border-top: 1px solid rgba(201,165,88,0.4); }
.yv-ashta-table tr.sarva td.label { color: var(--gold); font-weight: 700; }
.yv-ashta-table tr.sarva td { font-weight: 700; }

.yv-timeup-card{position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    background: rgba(30, 40, 60, 0.25);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border-radius: 28px;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.yv-timeup-au-icon {
    border-radius: 5px;
    overflow: hidden;
}
.yv-timeup-download-btn svg {
    stroke:#000;
}
.yv-timeup-download-btn span {
    color: #000;
}
.yv-timeup-sub {
    color: #FFF;
    font-size: 15px;
    font-weight: 800;
}
.yv-timeup-title {
    font-size: 18px;
}
.yv-timeup-download-btn {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    color: #111827;
}
.yv-timeup-feedback-btn {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
    color: #FFF;
}

.yv-au-icon {
    box-shadow: none;
    background-color: transparent;
}
.yv-app-download-btn {
    max-width: 250px;
    margin: auto;
    background: linear-gradient(90deg, #FBBF24, #F59E0B);
    border-radius: 12px;
}

#yv-call-screen .yv-chat:has(+ .yv-timeup-wrap)  {
    position: absolute;
    height: calc(100% - 240px);
    padding-top: 70px;
}

.yv-history-bottom {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: auto;
    width: 200px;
    backdrop-filter: blur(20px);
    background: rgba(25, 30, 45, 0.35);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.yv-topbar-name {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
color: #FFF;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 2px;
font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}
.yv-topbar-spec {
    color: #FFD700;
    font-size: 11px;
    margin: 0;
    font-style: normal;
    font-weight: 800;
}
.yv-switch-circle {
    width: 32px;
    height: 32px;
}
.yv-end-btn {
    width: 32px;
    height: 32px;
}
.yv-topbar-photo {
    border: 2px solid rgba(255, 215, 0, 0.5);
}
.yv-back-btn {
    width: 36px;
    height: 36px;
    font-weight: bold;
}

.yv-timeup-title {
    font-size: 17px;
}
.yv-timeup-sub:after {
    content: "✨"
}
.yv-timeup-feedback-btn {
    font-size: 15px;
}
.yv-timeup-download-btn {
    font-size: 14px;
}
.yv-timeup-au-icon {
    width: 20px;
    height: 20px;
}
.yv-timeup-au-icon>img {
    width: 20px;
}

#yv-chat-messages * {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    font-style: normal;
}
.yv-msg.user .yv-msg-bubble {
    background-color: rgba(255,215,0,0.9);
    color: #0B0E1A;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 14px 0;
    line-height: 1.4;
}
.yv-msg-sender {
    font-size: 11px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 4px;
    display: block;
}
.yv-msg.agent .yv-msg-bubble {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 12px 12px 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    color: #fff;
    font-size: 14px;
    margin: 0 0 14px 0;
    line-height: 1.5;
}

#yv-chat-messages * {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    font-style: normal;
}
.yv-msg.user .yv-msg-bubble {
    background-color: rgba(255,215,0,0.9);
    color: #0B0E1A;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 14px 0;
    line-height: 1.4;
}
.yv-msg-sender {
    font-size: 11px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 4px;
    display: block;
}
.yv-msg.agent .yv-msg-bubble {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 12px 12px 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    color: #fff;
    font-size: 14px;
    margin: 0 0 14px 0;
    line-height: 1.5;
}

.yv-call .yv-chat:has( + .yv-history-bottom){
    padding: 16px 14px 120px;
}

.yv-chat-send-btn {
    background: linear-gradient(135deg, #10B981, #047857);
}
/* ============================================================
   KUNDLI SVG ANIMATIONS (inline in SVG via <style>)
   Defined here for reference — also injected in JS
   ============================================================ */

@keyframes kc-draw-border  { from{stroke-dashoffset:400} to{stroke-dashoffset:0} }
@keyframes kc-draw-diamond { from{stroke-dashoffset:72}  to{stroke-dashoffset:0} }
@keyframes kc-draw-cross   { from{stroke-dashoffset:142} to{stroke-dashoffset:0} }
@keyframes kc-fade-house   { from{opacity:0} to{opacity:1} }
@keyframes kc-planet-glow  {
  0%,100% { fill:rgba(241,232,210,0.92); }
  50%     { fill:rgba(255,218,100,1); }
}
@keyframes kc-badge-glow {
  0%,100% { opacity:0.85; }
  50%     { opacity:1; }
}
@keyframes kc-sparkle {
  0%,100% { opacity:0; transform:scale(0.4); }
  40%,60% { opacity:0.9; transform:scale(1.2); }
}