:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080b10;
  color: #f7f9fc;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(39, 128, 255, 0.22), transparent 34rem),
    linear-gradient(145deg, #080b10 0%, #0d1118 60%, #090d13 100%);
}

button, input { font: inherit; }

.c2c-status-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.c2c-status-card,
.c2c-phone-panel {
  width: min(100%, 560px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(15, 19, 27, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.c2c-status-card { padding: clamp(28px, 6vw, 48px); }

.c2c-kicker,
.c2c-phone-header small {
  color: #78afff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 10px;
  font-size: clamp(32px, 7vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

p { margin: 0; color: #aeb6c5; font-size: 16px; line-height: 1.6; }

dl { display: grid; gap: 10px; margin: 30px 0 0; }

dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

dt { color: #8993a5; }
dd { margin: 0; color: #dce8ff; font-weight: 750; }

.c2c-phone-shell { min-height: 100vh; display: grid; place-items: center; padding: 18px; }
.c2c-phone-panel { padding: 18px; }
.c2c-phone-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.c2c-phone-header div { display: grid; gap: 2px; }
.c2c-phone-header strong { font-size: 17px; }

.c2c-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #2780ff, #64adff);
  color: white;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(39, 128, 255, 0.28);
}

.c2c-phone-controls { display: grid; gap: 10px; }
.c2c-registration,
.c2c-dial-control,
.c2c-audio-control { display: flex; gap: 8px; }

#reg_status,
#digits,
#dtmf_digits {
  min-width: 0;
  flex: 1;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  background: #0a0e14;
  color: #f7f9fc;
}

#reg_status { color: #8bc0ff; }
#digits:focus, #dtmf_digits:focus { border-color: #2780ff; box-shadow: 0 0 0 3px rgba(39, 128, 255, 0.16); }

.button,
.dialpad_button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0 15px;
  background: #151b25;
  color: #f7f9fc;
  cursor: pointer;
  font-weight: 760;
}

.button:hover, .dialpad_button:hover { border-color: rgba(120, 175, 255, 0.55); background: #1a2331; }
.button:focus-visible, .dialpad_button:focus-visible { outline: 3px solid rgba(39, 128, 255, 0.48); outline-offset: 2px; }
.button img { display: none; }
.c2c-register, .c2c-call { border-color: #2780ff; background: #2780ff; color: white; }
.c2c-disconnect { border-color: rgba(241, 91, 105, 0.5); color: #ff9ca5; }

.c2c-dialpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.dialpad_button { min-height: 48px; font-size: 18px; }
.c2c-dtmf { display: flex; grid-column: 1 / -1; gap: 8px; }

.c2c-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  .c2c-registration, .c2c-dial-control { flex-wrap: wrap; }
  #reg_status, #digits { flex-basis: 100%; }
  .c2c-registration .button, .c2c-dial-control .button { flex: 1; }
}
