/**
 * Demo SMS: chamada (incoming → ativa, mutado até alto-falante) → ao fim do áudio mostra thread SMS simples.
 */

.voz-sms-demo-window {
  position: relative;
}

.voz-sms-demo-body {
  position: relative;
}

.voz-sms-demo-placeholder {
  cursor: default;
}

/* Overlay da chamada */
.voz-sms-demo-call {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #e8f4f8 0%, #ffffff 45%, #f0f7fc 100%);
  display: none;
  flex-direction: column;
  z-index: 10;
}

[data-theme="dark"] .voz-sms-demo-call {
  background: var(--voz-call-screen-dark, #1c1b1f);
}

.voz-sms-demo-call.is-visible {
  display: flex;
}

.voz-sms-demo-screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: linear-gradient(180deg, #e8f4f8 0%, #ffffff 45%, #f0f7fc 100%);
}

[data-theme="dark"] .voz-sms-demo-screen {
  background:
    radial-gradient(120% 70% at 15% 15%, var(--wall-1-dark), transparent 60%),
    radial-gradient(120% 80% at 85% 35%, var(--wall-2-dark), transparent 62%),
    radial-gradient(90% 70% at 50% 95%, var(--wall-3-dark), transparent 60%),
    linear-gradient(180deg,
      var(--wall-base-1-dark),
      var(--wall-base-2-dark) 55%,
      var(--wall-base-2-dark) 100%);
}

.voz-sms-demo-screen.is-visible {
  display: flex;
}

.voz-sms-demo-screen--incoming {
  justify-content: flex-start;
  padding-top: 24px;
}

.voz-sms-demo-incoming-header {
  text-align: center;
  margin-bottom: 16px;
}

.voz-sms-demo-call-label {
  font-size: 12px;
  font-weight: 400;
  color: #5a6b78;
  display: block;
  margin-bottom: 4px;
}

[data-theme="dark"] .voz-sms-demo-call-label {
  color: rgba(255, 255, 255, 0.6);
}

.voz-sms-demo-caller-name {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

[data-theme="dark"] .voz-sms-demo-caller-name {
  color: #fff;
}

.voz-sms-demo-incoming-actions {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 18px;
}

/* Slide igual ao hero */
.voz-sms-demo-call .voz-slide-container {
  position: relative;
  width: 100%;
  max-width: 248px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voz-sms-demo-call .voz-slide-track {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 68px;
  border-radius: 36px;
  padding: 5px;
  display: flex;
  align-items: center;
  overflow: visible;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 2px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .voz-sms-demo-call .voz-slide-track {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.12) 100%);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.15),
    0 2px 20px rgba(0, 0, 0, 0.4);
}

.voz-sms-demo-call .voz-slide-track>div:not(.voz-slide-knob):not(.voz-slide-hint-arrow) {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
  padding-right: 20px;
}

[data-theme="dark"] .voz-sms-demo-call .voz-slide-track>div:not(.voz-slide-knob):not(.voz-slide-hint-arrow) {
  color: rgba(255, 255, 255, 0.9);
}

.voz-sms-demo-call .voz-slide-knob {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
  animation: voz-sms-demo-knob-hint 2.2s ease-in-out infinite;
}

.voz-sms-demo-call .voz-slide-knob svg {
  width: 28px;
  height: 28px;
  fill: #34c759;
}

[data-theme="dark"] .voz-sms-demo-call .voz-slide-knob {
  background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
  box-shadow:
    0 2px 0 0 rgba(255, 255, 255, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .voz-sms-demo-call .voz-slide-knob svg {
  fill: #30d158;
}

@keyframes voz-sms-demo-knob-hint {

  0%,
  100% {
    transform: translateX(0);
  }

  35% {
    transform: translateX(6px);
  }

  70% {
    transform: translateX(0);
  }
}

.voz-sms-demo-call .voz-slide-hint-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: rgba(0, 0, 0, 0.55);
  animation: voz-sms-demo-arrow-pulse 1.8s ease-in-out infinite;
  pointer-events: none;
}

.voz-sms-demo-call .voz-slide-hint-arrow svg {
  width: 20px;
  height: 20px;
  display: block;
}

[data-theme="dark"] .voz-sms-demo-call .voz-slide-hint-arrow {
  color: rgba(255, 255, 255, 0.75);
}

@keyframes voz-sms-demo-arrow-pulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translateY(-50%) translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-50%) translateX(4px);
  }
}

/* Tela ativa (simples: só alto-falante + desligar) */
.voz-sms-demo-screen--active {
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 16px;
  gap: 50px;

}

.voz-sms-demo-active-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.voz-sms-demo-active-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

[data-theme="dark"] .voz-sms-demo-active-name {
  color: #fff;
}

.voz-sms-demo-active-timer {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.voz-sms-demo-active-timer.voz-sms-demo-timer-waiting {
  color: #30d158;
  opacity: 0.95;
}

.voz-sms-demo-screen .voz-wa-demo-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  width: 100%;
  padding: 0 14px;
}

.voz-sms-demo-screen .voz-wa-demo-opt-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: none;
  background: none;
  color: #1a1a1a;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.voz-sms-demo-screen .voz-wa-demo-opt-btn:hover {
  opacity: 0.82;
}

.voz-sms-demo-screen .voz-wa-demo-opt-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 18, 32, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease;
}

.voz-sms-demo-screen .voz-wa-demo-opt-btn:hover .voz-wa-demo-opt-circle {
  background: rgba(8, 18, 32, 0.14);
}

.voz-sms-demo-screen .voz-wa-demo-opt-circle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

[data-theme="dark"] .voz-sms-demo-screen .voz-wa-demo-opt-btn {
  color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .voz-sms-demo-screen .voz-wa-demo-opt-circle {
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .voz-sms-demo-screen .voz-wa-demo-opt-btn:hover .voz-wa-demo-opt-circle {
  background: rgba(255, 255, 255, 0.2);
}

.voz-sms-demo-opt-circle--speaker .voz-sms-demo-speaker-icon--on {
  display: none;
}

.voz-sms-demo-opt-btn.is-unmuted .voz-sms-demo-speaker-icon--muted {
  display: none;
}

.voz-sms-demo-opt-btn.is-unmuted .voz-sms-demo-speaker-icon--on {
  display: block;
}

.voz-sms-demo-opt-label {
  font-size: 11px;
  font-weight: 500;
}

.voz-sms-demo-active-hangup {
  margin-top: auto;
}

.voz-sms-demo-btn-hangup {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #d32f2f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 59, 48, 0.4);
  transition: transform 0.15s, background 0.15s;
}

.voz-sms-demo-btn-hangup:hover {
  background: #b21b1c;
  transform: scale(1.05);
}

/* Mensagens SMS no body */
.voz-sms-demo-body .voz-sms-demo-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.voz-sms-demo-body .voz-sms-demo-msg--left {
  align-self: flex-start;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

[data-theme="dark"] .voz-sms-demo-body .voz-sms-demo-msg--left {
  background: #2c2a30;
  color: #f5f5f7;
}

.voz-sms-demo-body .voz-sms-demo-msg--right {
  align-self: flex-end;
  background: #0e6b86;
  color: #fff;
}

.voz-sms-demo-body .voz-sms-demo-msg-link {
  color: #0e6b86;
  text-decoration: underline;
  word-break: break-all;
}

[data-theme="dark"] .voz-sms-demo-body .voz-sms-demo-msg--left .voz-sms-demo-msg-link {
  color: #1dd1a1;
}