/* DCC_RADIO_SETUP_WIZARD */

.dcc-radio-setup-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  max-width: 760px;
  margin: 0 0 16px;
  padding: 15px 16px;
  border: 1px solid #287493;
  border-radius: 7px;
  background: linear-gradient(135deg, #092532, #081a22);
}

.dcc-radio-setup-card strong {
  display: block;
  color: #53d5ff;
  font-size: 16px;
}

.dcc-radio-setup-card span {
  display: block;
  margin-top: 4px;
  color: #aac0c9;
  font-size: 12px;
  line-height: 1.45;
}

.dcc-radio-setup-card button,
.dcc-wizard button {
  border: 1px solid #2f7592;
  border-radius: 5px;
  background: #0b2733;
  color: #e9f9ff;
  padding: 9px 13px;
  font-weight: 800;
  cursor: pointer;
}

.dcc-radio-setup-card button {
  color: #081116;
  background: #4bcfff;
  font-size: 13px;
  white-space: nowrap;
}

.dcc-wizard-overlay {
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(0 5 8 / 82%);
  backdrop-filter: blur(4px);
  pointer-events: auto !important;
}

.dcc-wizard-overlay[hidden] {
  display: none !important;
}

.dcc-wizard {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(1040px, calc(100vw - 30px));
  height: min(780px, calc(100vh - 30px));
  overflow: hidden;
  border: 1px solid #2c657a;
  border-radius: 9px;
  background: #07141a;
  color: #dce9ee;
  box-shadow: 0 18px 70px rgb(0 0 0 / 65%);
  font-family: Arial, Helvetica, sans-serif;
  pointer-events: auto !important;
}

.dcc-wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 20px 13px;
  border-bottom: 1px solid #1d3b48;
  background: #0a1c24;
}

.dcc-wizard-header small {
  display: block;
  color: #47cfff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.dcc-wizard-header h2 {
  margin: 3px 0 4px;
  color: #f1fbff;
  font-size: 23px;
  font-weight: 800;
}

.dcc-wizard-header p {
  margin: 0;
  color: #96abb4;
  font-size: 12px;
}

.dcc-wizard-close {
  min-width: 40px;
  padding: 7px !important;
  font-size: 20px;
  line-height: 1;
}

.dcc-wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  padding: 10px 20px;
  border-bottom: 1px solid #18313c;
  background: #08171e;
}

.dcc-wizard-step {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #718893;
  font-size: 11px;
  font-weight: 800;
}

.dcc-wizard-step i {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid #355360;
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
}

.dcc-wizard-step.active {
  color: #4dd4ff;
}

.dcc-wizard-step.active i {
  border-color: #4dd4ff;
  background: #10394a;
}

.dcc-wizard-step.complete {
  color: #7ee556;
}

.dcc-wizard-step.complete i {
  border-color: #69d345;
  background: #163c1d;
}

.dcc-wizard-body {
  min-height: 0;
  padding: 20px;
  overflow: auto;
}

.dcc-wizard-body h3 {
  margin: 0 0 5px;
  color: #ecf8fc;
  font-size: 20px;
}

.dcc-wizard-body > p,
.dcc-wizard-copy {
  color: #94aab3;
  font-size: 13px;
  line-height: 1.5;
}

.dcc-wizard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 17px;
}

.dcc-wizard-panel {
  padding: 14px;
  border: 1px solid #234451;
  border-radius: 6px;
  background: #0a1a21;
}

.dcc-wizard-panel h4 {
  margin: 0 0 9px;
  color: #51d1ff;
  font-size: 13px;
}

.dcc-device-list {
  display: grid;
  gap: 7px;
}

.dcc-device {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  padding: 9px;
  border: 1px solid #1f3c48;
  border-radius: 4px;
  background: #08151b;
  color: #c8d7dc;
  font-size: 12px;
}

.dcc-device strong,
.dcc-device small {
  display: block;
}

.dcc-device small {
  margin-top: 3px;
  color: #7f959e;
  font: 10px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}

.dcc-device input {
  margin-top: 2px;
  accent-color: #62da3e;
}

.dcc-wizard-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 16px;
}

.dcc-wizard-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #a9bbc2;
  font-size: 11px;
  font-weight: 700;
}

.dcc-wizard-form label.wide {
  grid-column: 1 / -1;
}

.dcc-wizard input[type="text"],
.dcc-wizard input[type="number"],
.dcc-wizard input[type="search"],
.dcc-wizard select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #2b5362;
  border-radius: 5px;
  outline: none;
  background: #08151b;
  color: #ecf8fc;
  font-size: 13px;
}

.dcc-backend-details {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #2b5362;
  border-radius: 6px;
  color: #adc5cf;
  font-size: 12px;
}
.dcc-backend-details summary { cursor: pointer; color: #53d5ff; font-weight: 700; }
.dcc-backend-details pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 340px; overflow: auto; }
.dcc-backend-details small { color: #91aab4; font-weight: 400; line-height: 1.4; }
.dcc-profile-radio-search { width: 100%; margin-bottom: 6px; }

.dcc-wizard input:focus,
.dcc-wizard select:focus {
  border-color: #4fd3ff;
  box-shadow: 0 0 0 2px rgb(79 211 255 / 14%);
}

.dcc-radio-count {
  color: #70d84c;
  font-size: 11px;
  font-weight: 800;
}

.dcc-guidance {
  margin-top: 15px;
  padding: 13px 15px;
  border: 1px solid #315431;
  border-radius: 6px;
  background: #0c2014;
}

.dcc-guidance h4 {
  margin: 0 0 8px;
  color: #83ed5c;
  font-size: 13px;
}

.dcc-guidance ol,
.dcc-help-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: #bed0c3;
  font-size: 12px;
  line-height: 1.45;
}

.dcc-help-list {
  padding: 0;
  list-style: none;
}

.dcc-help-list details {
  padding: 9px 10px;
  border: 1px solid #26434e;
  border-radius: 5px;
  background: #09171d;
}

.dcc-help-list summary {
  color: #d7e7ec;
  font-weight: 800;
  cursor: pointer;
}

.dcc-help-list details p {
  margin: 8px 0 0;
  color: #93a9b1;
}

.dcc-check-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.dcc-check {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #28434d;
  border-radius: 5px;
  color: #bbccd2;
  background: #09171d;
  font-size: 12px;
}

.dcc-check strong.ok {
  color: #7ee653;
}

.dcc-check strong.bad {
  color: #ff826f;
}

.dcc-wizard-alert {
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #70591c;
  border-radius: 5px;
  background: #211b09;
  color: #ffd466;
  font-size: 12px;
  line-height: 1.45;
}

.dcc-wizard-alert.success {
  border-color: #337841;
  background: #0b2514;
  color: #90efaa;
}

.dcc-wizard-alert.error {
  border-color: #8c3d35;
  background: #2a110f;
  color: #ff9b8c;
}

.dcc-wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid #203b46;
  background: #091920;
}

.dcc-wizard-footer span {
  color: #6fdc48;
  font-size: 11px;
  font-weight: 800;
}

.dcc-wizard-actions {
  display: flex;
  gap: 9px;
}

.dcc-wizard button.primary {
  border-color: #56d830;
  background: #2d9125;
  color: #fff;
}

.dcc-wizard button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 760px) {
  .dcc-wizard-overlay { padding: 6px; }
  .dcc-radio-setup-card,
  .dcc-wizard-grid,
  .dcc-wizard-form {
    grid-template-columns: 1fr;
  }

  .dcc-wizard-form label.wide {
    grid-column: auto;
  }

  .dcc-wizard-step span {
    display: none;
  }

  .dcc-wizard {
    width: calc(100vw - 12px);
    max-width: 100%;
    min-width: 0;
    height: calc(100dvh - 12px);
  }
}
