/* D4 — Paid video / voice calls */

.sl-pc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 4px;
}

.sl-pc-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.sl-pc-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.sl-pc-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.sl-pc-btn--video {
  color: #041018;
  background: linear-gradient(135deg, #38bdf8, #22d3ee 55%, #67e8f9);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.28);
}

.sl-pc-btn--voice {
  color: #ecfeff;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 10px 28px rgba(20, 184, 166, 0.25);
}

.sl-pc-meta {
  margin: 0 0 8px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.4;
}

.sl-pc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100090;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sl-pc-card {
  width: min(400px, 94vw);
  border-radius: 22px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(56, 189, 248, 0.16), transparent 46%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99));
  box-shadow: 0 28px 70px rgba(2, 8, 23, 0.55);
  color: #eef3ff;
  padding: 22px;
  text-align: center;
}

.sl-pc-card .sl-pc-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5eead4;
  font-weight: 800;
}

.sl-pc-card h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #f8fbff;
}

.sl-pc-card p {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 14px;
}

.sl-pc-pulse {
  width: 64px;
  height: 64px;
  margin: 18px auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #041018;
  font-size: 26px;
  animation: sl-pc-pulse 1.4s ease-in-out infinite;
}

@keyframes sl-pc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45); }
  50% { box-shadow: 0 0 0 16px rgba(56, 189, 248, 0); }
}

.sl-pc-card .sl-pc-actions {
  justify-content: center;
  margin-top: 18px;
}

.sl-pc-btn--ghost {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.sl-pc-btn--accept {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #042f2e;
}

.sl-pc-btn--decline {
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.sl-pc-soft-end {
  z-index: 100140;
}
.sl-pc-soft-end .sl-pc-card {
  border-color: rgba(251, 191, 36, 0.35);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(251, 191, 36, 0.14), transparent 46%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99));
}
.sl-pc-soft-end .sl-pc-kicker {
  color: #fde68a;
}
.sl-pc-soft-end a.sl-pc-btn {
  text-decoration: none;
}

.sl-pc-ring-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100100;
  width: min(360px, calc(100vw - 24px));
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(165deg, #0f172a, #020617);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #e2e8f0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.sl-pc-ring-toast strong { display: block; margin-bottom: 4px; color: #f8fafc; }
.sl-pc-ring-toast .sl-pc-actions { margin: 12px 0 0; }

/* —— In-call HUD (cutting-edge cyan glass) —— */
.sl-pc-hud {
  position: fixed;
  left: 50%;
  top: calc(14px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 100120;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.88), rgba(2, 6, 23, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow:
    0 18px 50px rgba(2, 8, 23, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  color: #e0f2fe;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  max-width: calc(100vw - 24px);
}
.sl-pc-hud-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(80% 120% at 10% 0%, rgba(34, 211, 238, 0.28), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.sl-pc-hud-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.sl-pc-hud-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #67e8f9;
  white-space: nowrap;
}
.sl-pc-hud-timer {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}
.sl-pc-hud-rate {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}
.sl-pc-hud-rate strong { color: #fde68a; font-weight: 800; }
.sl-pc-hud-hangup {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 13px;
  color: #fff1f2;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  box-shadow: 0 8px 22px rgba(225, 29, 72, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.sl-pc-hud-hangup:hover { filter: brightness(1.06); }
.sl-pc-hud.is-ending { opacity: 0.75; }

.sl-pc-voice-stage {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  pointer-events: none;
  background:
    radial-gradient(50% 40% at 50% 42%, rgba(34, 211, 238, 0.16), transparent 70%),
    rgba(2, 6, 23, 0.55);
}
.sl-pc-voice-orb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #67e8f9, #0ea5e9 55%, #0f766e);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45);
  animation: sl-pc-orb 1.8s ease-in-out infinite;
}
@keyframes sl-pc-orb {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 22px rgba(56, 189, 248, 0); }
}
.sl-pc-voice-label {
  margin: 8px 0 0;
  color: #f8fafc;
  font-weight: 800;
  font-size: 1.2rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}
.sl-pc-voice-sub { margin: 0; color: #94a3b8; font-size: 13px; }

html.sl-paid-call-voice .sl-room-video-host video,
html.sl-paid-call-voice #videos-container video,
html.sl-paid-call-voice .videoContainer video {
  opacity: 0.08 !important;
  filter: blur(2px);
}

@media (max-width: 720px) {
  .sl-pc-hud {
    left: 10px;
    right: 10px;
    transform: none;
    width: auto;
    border-radius: 18px;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 12px;
    padding: 12px 12px 12px 14px;
  }
  .sl-pc-hud-main { gap: 10px; width: 100%; justify-content: space-between; }
  .sl-pc-hud-hangup { width: 100%; justify-content: center; margin-top: 2px; }
}
