/* CallDemo widget styles */
.demo-wrap {
  max-width: 1040px; margin: 0 auto;
}
.demo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 520px;
}
.demo-left {
  padding: 36px 36px 32px;
  display: flex; flex-direction: column; gap: 22px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.demo-eyebrow {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--slate); display: flex; align-items: center; gap: 8px;
}
.demo-hero { display: flex; align-items: center; gap: 16px; }
.demo-ring {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
}
.demo-ring--live { border-color: var(--live); }
.demo-ring--live::before, .demo-ring--live::after {
  content: ''; position: absolute; inset: -6px;
  border: 1.5px solid var(--live); border-radius: 50%; opacity: 0;
  animation: ring-pulse 2s ease-out infinite;
}
.demo-ring--live::after { animation-delay: 1s; }
@keyframes ring-pulse {
  0% { transform: scale(0.95); opacity: 0.55; }
  100% { transform: scale(1.5); opacity: 0; }
}
.demo-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600;
}
.demo-name { font-size: 20px; font-weight: 700; color: var(--black); letter-spacing: -0.02em; }
.demo-sub { font-size: 13px; color: var(--slate); margin-top: 2px; }
.demo-wave-wrap {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 16px;
  min-height: 68px; display: flex; align-items: center; justify-content: center;
}
.wave {
  display: flex; align-items: center; gap: 2.5px; height: 40px;
}
.wave span {
  display: inline-block; width: 3px; border-radius: 2px;
  background: var(--black);
  transition: height 80ms ease, opacity 80ms ease;
}

.demo-foot { font-size: 12.5px; color: var(--slate); margin: 0; line-height: 1.55; }
.demo-input-row { display: flex; gap: 8px; }
.demo-input {
  flex: 1; height: 44px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--white);
  padding: 0 16px; font: inherit; font-size: 14px; color: var(--ink);
  outline: none; transition: border-color 150ms;
}
.demo-input:focus { border-color: var(--black); }
.demo-mic-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink); transition: all 150ms;
}
.demo-mic-btn:hover { border-color: var(--black); }
.demo-mic-btn.is-listening {
  background: var(--alert); color: var(--white); border-color: var(--alert);
  animation: mic-pulse 1.2s ease-in-out infinite;
}
@keyframes mic-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,0.4);} 50%{box-shadow:0 0 0 8px rgba(239,68,68,0);} }
.btn-end {
  background: transparent; border: 1px solid var(--line);
  color: var(--alert); font-size: 13px; font-weight: 500;
  height: 38px; border-radius: var(--radius-pill);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; align-self: flex-start; padding: 0 14px;
  transition: all 150ms;
}
.btn-end:hover { background: var(--alert); color: var(--white); border-color: var(--alert); }

.demo-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--ink);
  animation: spin 0.7s linear infinite;
}
.demo-spinner--sm { width: 14px; height: 14px; border-width: 1.5px; }
@keyframes spin { to { transform: rotate(360deg); } }

.demo-ended { display: flex; flex-direction: column; gap: 10px; }
.demo-ended__stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--slate);
}
.demo-ended__stat strong { color: var(--black); font-weight: 600; }

/* Right: transcript */
.demo-right {
  display: flex; flex-direction: column; background: var(--white);
}
.demo-right__head {
  padding: 18px 24px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.demo-right__title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.demo-lock { font-size: 12px; opacity: 0.6; }
.demo-right__meta { font-size: 11.5px; color: var(--slate); display: flex; align-items: center; gap: 6px; }
.rec-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--alert); animation: rec-pulse 1.2s ease-in-out infinite;
}
.demo-right__body {
  flex: 1; padding: 22px 24px; overflow: auto;
  display: flex; flex-direction: column; gap: 16px;
}
.demo-empty { color: var(--slate); font-size: 14px; line-height: 1.6; }
.demo-empty p { margin: 0 0 12px; }
.demo-empty p strong { color: var(--ink); }
.demo-empty__list {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: var(--ink);
}
.demo-empty__list li { display: flex; align-items: center; gap: 10px; }
.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex-shrink: 0;
}
.tline--you .tline__text { color: var(--slate); }
.demo-typing { display: inline-flex; gap: 4px; padding-top: 6px; }
.demo-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--signal);
  animation: typing 1.2s ease-in-out infinite;
}
.demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%,80%,100%{opacity:0.3;transform:translateY(0);} 40%{opacity:1;transform:translateY(-3px);} }

@media (max-width: 860px) {
  .demo-card { grid-template-columns: 1fr; }
  .demo-left { border-right: 0; border-bottom: 1px solid var(--line); }
}
