.gz-call-layer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(137, 55, 220, 0.20),
      transparent 38%
    ),
    rgba(2, 1, 5, 0.86);
  backdrop-filter: blur(8px);
}

.gz-call-layer[hidden] {
  display: none !important;
}

.gz-call-card {
  width: min(390px, 94vw);
  padding: 28px;
  border: 1px solid rgba(204, 137, 255, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(145, 62, 229, 0.25),
      transparent 45%
    ),
    rgba(13, 8, 22, 0.98);
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.62),
    0 0 55px rgba(150, 65, 230, 0.12);
  text-align: center;
}

.gz-call-type {
  color: #f167d7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gz-call-avatar,
.gz-call-voice-avatar {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 24px auto 15px;
  border: 3px solid rgba(204, 137, 255, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 30%,
      rgba(255, 76, 203, 0.30),
      transparent 36%
    ),
    #24142f;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  box-shadow:
    0 0 40px rgba(173, 76, 239, 0.22);
}

.gz-call-card h2 {
  margin: 0;
  font-size: 20px;
}

.gz-call-card p {
  margin: 9px 0 0;
  color: var(--muted, #9f96aa);
  font-size: 11px;
}

.gz-call-pulse {
  animation:
    gzCallPulse 1.4s ease-in-out infinite;
}

@keyframes gzCallPulse {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

.gz-call-ring-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 27px;
}

.gz-call-ring-actions button {
  min-width: 132px;
  min-height: 43px;
  border-radius: 22px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.gz-call-decline {
  border: 1px solid rgba(255, 81, 118, 0.42);
  color: #ff6d8b;
  background: rgba(255, 67, 105, 0.09);
}

.gz-call-accept {
  border: 1px solid rgba(71, 255, 172, 0.4);
  color: #dffff0;
  background:
    linear-gradient(
      135deg,
      rgba(40, 190, 117, 0.94),
      rgba(35, 151, 103, 0.94)
    );
}

.gz-call-active {
  display: grid;
  grid-template-rows:
    auto
    minmax(0, 1fr)
    auto;
  width: min(980px, 96vw);
  height: min(720px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(198, 126, 255, 0.28);
  border-radius: 19px;
  background: #08050d;
  box-shadow:
    0 35px 120px rgba(0, 0, 0, 0.72);
}

.gz-call-active-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(198, 152, 255, 0.14);
  background: rgba(14, 9, 22, 0.96);
}

.gz-call-active-header div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gz-call-active-header strong {
  font-size: 13px;
}

.gz-call-active-header span {
  color: var(--muted, #9f96aa);
  font-size: 9px;
}

.gz-call-live-dot {
  color: #52eda2 !important;
  font-weight: 800;
}

.gz-call-video-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at center,
      #20122d,
      #060309 68%
    );
}

.gz-call-video-stage.is-voice {
  display: grid;
  place-items: center;
}

.gz-call-remote-video {
  width: 100%;
  height: 100%;
}

.gz-call-video-stage.is-voice
.gz-call-remote-video {
  display: grid;
  place-items: center;
}

.gz-call-remote-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gz-call-local-video {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 190px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid rgba(218, 164, 255, 0.48);
  border-radius: 12px;
  background: #110918;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.55);
}

.gz-call-local-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.gz-call-voice-avatar {
  width: 150px;
  height: 150px;
  margin: 0;
  font-size: 48px;
}

.gz-call-controls {
  display: flex;
  justify-content: center;
  gap: 11px;
  min-height: 76px;
  padding: 13px;
  border-top: 1px solid rgba(198, 152, 255, 0.14);
  background: rgba(13, 8, 21, 0.98);
}

.gz-call-controls button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(198, 152, 255, 0.19);
  border-radius: 50%;
  color: #ddd5e5;
  background: rgba(255, 255, 255, 0.045);
  font-size: 18px;
  cursor: pointer;
}

.gz-call-controls button.is-active {
  border-color: rgba(171, 86, 244, 0.62);
  background: rgba(132, 55, 204, 0.26);
}

.gz-call-controls .gz-call-hangup {
  border-color: rgba(255, 72, 104, 0.45);
  color: #fff;
  background: #d83e59;
}

@media (max-width: 700px) {
  .gz-call-active {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .gz-call-local-video {
    width: 130px;
    right: 10px;
    bottom: 10px;
  }

  .gz-call-ring-actions {
    flex-direction: column;
  }
}
