/* ── Layout ── */
.diag-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.diag-form { position: sticky; top: 84px; }

.diag-form-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--bg-glass-border);
}

.diag-form-icon { font-size: 1.1rem; color: var(--accent); }

.diag-form-title {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.diag-form-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.diag-form-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--bg-glass-border);
}

.diag-form-footer .btn { width: 100%; justify-content: center; }

/* ── Results ── */
.diag-results { min-height: 400px; overflow: hidden; }

.diag-results-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--text-tertiary);
  text-align: center;
  padding: 2rem;
}

.diag-empty-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.15; }
.diag-empty-title { font-size: 1.0625rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.diag-empty-sub { font-size: 0.8125rem; max-width: 300px; line-height: 1.5; }

/* ── Report ── */
.diag-report { padding: 2rem; }

.diag-report-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.diag-report-brand h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.25rem; }
.diag-report-brand p { font-size: 0.8125rem; color: var(--text-tertiary); }

.diag-report-score { text-align: right; }

.diag-report-score-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.diag-report-score-label {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.diag-report-score-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.diag-report-score-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1s var(--ease-out);
}

/* ── Radar ── */
.diag-radar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 1rem;
}

/* ── Metrics ── */
.diag-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.diag-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
}

.diag-metric-label { color: var(--text-secondary); }
.diag-metric-value { font-weight: 600; }
.diag-metric-value.high { color: var(--accent); }
.diag-metric-value.medium { color: var(--accent-orange); }
.diag-metric-value.low { color: var(--accent-red); }

/* ── Recommendations ── */
.diag-recs {
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,157,0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.diag-recs-title {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.diag-recs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.diag-recs-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.diag-recs-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Loading ── */
.diag-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 1.5rem;
}

.diag-loading-spinner {
  width: 32px; height: 32px;
  border: 2px solid rgba(255,255,255,0.04);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: diag-spin 0.8s linear infinite;
}

@keyframes diag-spin { to { transform: rotate(360deg); } }

.diag-loading-text {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-align: center;
}

.diag-loading-progress {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  overflow: hidden;
}

.diag-loading-bar {
  height: 100%; width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

/* ── Actions ── */
.diag-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service-card {
  padding: 2rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.12);
}

.service-num {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; }

.service-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-meta {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .diag-layout { grid-template-columns: 1fr; }
  .diag-form { position: static; }
}

@media (max-width: 768px) {
  .diag-metrics { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .diag-report-header { flex-direction: column; }
  .diag-report-score { text-align: left; }
}
