:root {
  --voice-bg: #0b1117;
  --voice-panel: #121b24;
  --voice-panel-soft: #172431;
  --voice-border: rgba(255, 255, 255, 0.1);
  --voice-text: #f4fbff;
  --voice-muted: #9cb1bd;
  --voice-primary: #00e0c6;
  --voice-blue: #21a8ff;
  --voice-red: #ff5454;
  --voice-green: #31e981;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--voice-text);
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 224, 198, 0.14), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(33, 168, 255, 0.14), transparent 28%),
    var(--voice-bg);
}

.voice-page {
  min-height: calc(100vh - 92px);
  padding: 54px 18px 10px;
}

.voice-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  align-items: center;
  gap: 42px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.voice-copy {
  max-width: 570px;
}

.voice-kicker {
  margin: 0 0 12px;
  color: var(--voice-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.voice-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.98;
}

.voice-copy p:not(.voice-kicker) {
  max-width: 520px;
  margin: 20px 0 0;
  color: #c2d2dc;
  font-size: 18px;
  line-height: 1.7;
}

.voice-panel {
  border: 1px solid var(--voice-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(12, 20, 28, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--voice-border);
  color: #d9ecf4;
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
  font-weight: 700;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #687783;
  box-shadow: 0 0 0 4px rgba(104, 119, 131, 0.14);
}

.status-indicator.online {
  background: var(--voice-green);
  box-shadow: 0 0 0 4px rgba(49, 233, 129, 0.16), 0 0 18px rgba(49, 233, 129, 0.5);
}

.status-indicator.error {
  background: var(--voice-red);
  box-shadow: 0 0 0 4px rgba(255, 84, 84, 0.16), 0 0 18px rgba(255, 84, 84, 0.45);
}

.screen {
  padding: 20px;
}

.hidden {
  display: none;
}

.main-card,
.incall-card {
  border: 1px solid var(--voice-border);
  border-radius: 8px;
  background: var(--voice-panel);
}

.main-card {
  padding: 26px;
}

.main-card h2,
.incall-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.15;
}

.main-card p,
.form-help {
  margin: 10px 0 20px;
  color: var(--voice-muted);
  line-height: 1.55;
}

.voice-orb {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: 22px;
  border: 1px solid rgba(0, 224, 198, 0.32);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 224, 198, 0.18), rgba(33, 168, 255, 0.1));
}

.voice-orb span {
  width: 34px;
  height: 48px;
  border: 4px solid var(--voice-primary);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 0 28px rgba(0, 224, 198, 0.34);
}

.input-group {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.input-group label {
  color: #d8edf5;
  font-size: 13px;
  font-weight: 800;
}

.input-group input {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  outline: none;
  box-sizing: border-box;
}

.input-group input:focus {
  border-color: var(--voice-primary);
  box-shadow: 0 0 0 3px rgba(0, 224, 198, 0.13);
}

.btn,
.icon-btn {
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 8px;
}

.btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.btn:disabled,
.icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.btn-primary {
  color: #031311;
  background: linear-gradient(135deg, var(--voice-primary), var(--voice-blue));
  box-shadow: 0 14px 28px rgba(0, 224, 198, 0.16);
}

.btn-secondary {
  margin-top: 14px;
  color: #eafffb;
  background: rgba(0, 224, 198, 0.12);
  border: 1px solid rgba(0, 224, 198, 0.2);
}

.btn-ghost {
  margin-top: 10px;
  color: #d3e4eb;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.incall-card {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.room-label {
  display: block;
  margin-bottom: 7px;
  color: var(--voice-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #dffff0;
  background: rgba(49, 233, 129, 0.11);
  font-size: 12px;
  font-weight: 900;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--voice-green);
  box-shadow: 0 0 12px rgba(49, 233, 129, 0.75);
}

.meter {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 9px;
  min-height: 90px;
  padding: 18px;
  border-radius: 8px;
  background: var(--voice-panel-soft);
}

.meter span {
  width: 12px;
  min-height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--voice-primary), var(--voice-blue));
  animation: voice-meter 1s ease-in-out infinite;
}

.meter span:nth-child(2) {
  min-height: 46px;
  animation-delay: 0.12s;
}

.meter span:nth-child(3) {
  min-height: 66px;
  animation-delay: 0.24s;
}

.meter span:nth-child(4) {
  min-height: 38px;
  animation-delay: 0.36s;
}

.meter span:nth-child(5) {
  min-height: 54px;
  animation-delay: 0.48s;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 68px 68px;
  align-items: center;
  gap: 12px;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 8px;
  color: #d8edf5;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.icon-btn {
  width: 68px;
  height: 56px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.icon-btn.muted {
  color: #fff4f4;
  background: rgba(255, 84, 84, 0.26);
}

.icon-btn.hangup {
  background: var(--voice-red);
}

@keyframes voice-meter {
  0%,
  100% {
    transform: scaleY(0.7);
  }

  50% {
    transform: scaleY(1);
  }
}

@media (max-width: 820px) {
  .voice-page {
    padding-top: 32px;
  }

  .voice-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .voice-copy h1 {
    font-size: 2.6rem;
  }

  .voice-copy p:not(.voice-kicker) {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .voice-page {
    padding-inline: 12px;
  }

  .screen,
  .main-card,
  .incall-card {
    padding: 16px;
  }

  .controls {
    grid-template-columns: 1fr 58px 58px;
    gap: 8px;
  }

  .icon-btn {
    width: 58px;
  }
}
