.diag-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 15vh, 150px) 0 clamp(60px, 8vh, 100px);
}
.diag-shell__aurora { position: absolute; inset: 0; pointer-events: none; }
.diag-shell__aurora i {
  position: absolute;
  width: 44vw; height: 44vw;
  max-width: 560px; max-height: 560px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.16;
}
.diag-shell__aurora i:nth-child(1) { background: var(--blue); top: -16%; left: -10%; }
.diag-shell__aurora i:nth-child(2) { background: var(--red); bottom: -24%; right: -8%; opacity: 0.12; }
.diag-shell__aurora i:nth-child(3) { background: var(--nir); bottom: -30%; left: 32%; opacity: 0.1; }

.diag-shell__grid {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.diag-shell__left {
  position: sticky;
  top: 28px;
}
.diag-shell__left .eyebrow::before { display: none; }
.diag-shell__left .h2 { max-width: 15ch; }
.diag-shell__left .h2 em { font-style: normal; color: var(--nir); }
.diag-shell__left .section-sub { max-width: 46ch; }

.diag-progress {
  max-width: 320px; margin-top: 34px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px; height: 3px; overflow: hidden;
}
.diag-progress__fill {
  height: 100%; border-radius: 100px; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--nir));
  box-shadow: 0 0 14px 1px rgba(140, 160, 255, 0.5);
  transition: width 0.5s ease;
}
.diag-progress__label {
  color: var(--muted); margin-top: 12px;
}

.diag-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px);
  display: none;
  animation: diagFadeUp 0.4s ease;
}
.diag-card.is-active { display: block; }
@keyframes diagFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.diag-card__num { color: var(--accent); margin-bottom: 14px; }
.diag-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  color: var(--text);
  margin-bottom: 26px;
  line-height: 1.3;
}

.diag-hint { color: var(--muted); margin-bottom: 16px; display: block; }

.diag-options { display: flex; flex-direction: column; gap: 10px; }
.diag-opt {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
  background: var(--bg-2);
  user-select: none;
}
.diag-opt:hover { border-color: rgba(78, 141, 255, 0.4); background: #0d1424; transform: translateX(2px); }
.diag-opt.is-selected {
  border-color: var(--accent);
  background: linear-gradient(120deg, rgba(78, 141, 255, 0.1), rgba(255, 75, 65, 0.06));
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.diag-opt__key {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; margin-top: 1px;
  background: var(--panel); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  color: var(--muted);
  transition: all 0.25s ease;
}
.diag-opt.is-selected .diag-opt__key { background: var(--accent); border-color: var(--accent); color: #06080f; }
.diag-opt__text { font-size: 0.95rem; color: var(--text); line-height: 1.55; padding-top: 3px; }

.diag-nav { display: flex; gap: 12px; margin-top: 32px; justify-content: flex-end; }
.diag-btn {
  padding: 14px 30px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: all 0.25s ease; border: none;
}
.diag-btn--next {
  color: #06080f;
  background: linear-gradient(115deg, var(--blue), var(--red) 55%, var(--nir));
  background-size: 220% 220%; background-position: 0% 50%;
  box-shadow: 0 0 24px -6px rgba(78, 141, 255, 0.5);
}
.diag-btn--next:hover { background-position: 100% 50%; transform: translateY(-1px); }
.diag-btn--next:disabled { background: rgba(255, 255, 255, 0.06); color: var(--muted); cursor: not-allowed; box-shadow: none; transform: none; }
.diag-btn--back { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.diag-btn--back:hover { border-color: var(--accent); color: var(--text); }

.diag-level {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 100px;
  border: 1px solid var(--line);
  margin-bottom: 18px; color: var(--accent);
}
.diag-result-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--text); line-height: 1.2; margin-bottom: 16px;
}
.diag-result-title em { font-style: normal; color: var(--nir); }
.diag-result-msg { font-size: 0.95rem; color: var(--muted); line-height: 1.75; margin-bottom: 28px; }

.diag-products { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.diag-product {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  display: flex; align-items: stretch;
  animation: diagFadeUp 0.45s ease;
}
.diag-product.is-primary { border-color: var(--accent); }
.diag-product__imgcol {
  width: 140px; flex-shrink: 0;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  border-right: 1px solid var(--line);
}
.diag-product__imgcol img { width: 100%; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5)); }
.diag-product__info { flex: 1; padding: 22px 20px; }
.diag-product__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.diag-product__name { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--text); }
.diag-badge {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 100px; font-weight: 500;
  border: 1px solid var(--line);
}
.diag-badge--main { background: var(--accent); color: #06080f; border-color: var(--accent); }
.diag-badge--excl { color: var(--gold); border-color: rgba(217, 181, 126, 0.4); }
.diag-why { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.diag-why li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.diag-why li::before { content: "—"; color: var(--accent); flex-shrink: 0; }

.diag-restart {
  width: 100%; padding: 16px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; transition: all 0.25s ease;
  font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.7rem;
  margin-top: 6px;
}
.diag-restart:hover { border-color: var(--accent); color: var(--text); }

.diag-cta {
  position: relative; overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  margin-top: 6px; margin-bottom: 22px;
  text-align: center;
}
.diag-cta__aurora { position: absolute; inset: 0; pointer-events: none; }
.diag-cta__aurora i { position: absolute; width: 60%; height: 60%; border-radius: 50%; filter: blur(70px); opacity: 0.14; }
.diag-cta__aurora i:nth-child(1) { background: var(--blue); top: -30%; left: -14%; }
.diag-cta__aurora i:nth-child(2) { background: var(--nir); bottom: -34%; right: -10%; opacity: 0.12; }
.diag-cta h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 3vw, 1.5rem); margin-bottom: 10px; color: var(--text); position: relative; }
.diag-cta p { font-size: 0.88rem; color: var(--muted); margin-bottom: 22px; line-height: 1.65; position: relative; max-width: 40ch; margin-inline: auto; }
.diag-cta__btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  color: #06080f; text-decoration: none;
  padding: 14px 30px; border-radius: 100px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: linear-gradient(115deg, var(--blue), var(--red) 55%, var(--nir));
  background-size: 220% 220%; background-position: 0% 50%;
  box-shadow: 0 0 26px -6px rgba(78, 141, 255, 0.55);
  transition: background-position 0.5s ease, transform 0.25s ease;
}
.diag-cta__btn:hover { background-position: 100% 50%; transform: translateY(-1px); }

.diag-capture {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px);
  animation: diagFadeUp 0.4s ease;
}
.diag-capture__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  color: var(--text); margin-bottom: 8px; line-height: 1.3;
}
.diag-capture__sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 28px; line-height: 1.7; }
.diag-fields { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.diag-field label {
  display: block; font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.diag-field input {
  width: 100%; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 16px; font-family: var(--font-body);
  font-size: 0.95rem; color: var(--text);
  outline: none; transition: border-color 0.2s ease;
}
.diag-field input:focus { border-color: var(--accent); }
.diag-field input:invalid:not(:placeholder-shown) { border-color: var(--red); }
.diag-field input::placeholder { color: rgba(152, 161, 182, 0.5); }
.diag-submit {
  width: 100%; padding: 15px; color: #06080f;
  border: none; border-radius: 12px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: all 0.25s ease;
  background: linear-gradient(115deg, var(--blue), var(--red) 55%, var(--nir));
  background-size: 220% 220%; background-position: 0% 50%;
}
.diag-submit:hover { background-position: 100% 50%; }

@media (max-width: 900px) {
  .diag-shell { padding: 100px 0 50px; }
  .diag-shell__grid { grid-template-columns: 1fr; gap: 32px; }
  .diag-shell__left { position: static; }
}

@media (max-width: 560px) {
  .diag-product { flex-direction: column; }
  .diag-product__imgcol { width: 100%; height: 150px; border-right: 0; border-bottom: 1px solid var(--line); }
  .diag-nav { flex-direction: column-reverse; }
  .diag-btn { width: 100%; text-align: center; }
}
