/* PropelClick — assessment + report styles. */

.pc-assess {
  max-width: 820px; margin: 0 auto; padding: 40px 24px 80px;
}

.pc-progress {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px;
}
.pc-progress__bar {
  height: 6px; background: var(--bg-card); border-radius: 999px; overflow: hidden; border: 1px solid var(--border);
}
.pc-progress__fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  width: 0; transition: width .4s var(--ease);
}
.pc-progress__label {
  display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary);
  letter-spacing: .05em; text-transform: uppercase;
}

.pc-step-panel {
  display: none;
  animation: stepIn .45s var(--ease);
}
.pc-step-panel.is-active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}

.pc-step-panel h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.pc-step-panel > p { color: var(--text-secondary); margin-bottom: 28px; }

.pc-options {
  display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr);
}
.pc-options--1 { grid-template-columns: 1fr; }
.pc-options--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) {
  .pc-options, .pc-options--3 { grid-template-columns: 1fr; }
}

.pc-option {
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.pc-option input { position: absolute; opacity: 0; pointer-events: none; }
.pc-option:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.pc-option.is-selected {
  border-color: var(--accent); background: rgba(0,212,170,0.08);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.pc-option__check {
  width: 22px; height: 22px; border-radius: 6px;
  border: 1px solid var(--border); flex: 0 0 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); background: rgba(255,255,255,0.02);
  transition: border-color .15s var(--ease);
  font-size: 13px;
}
.pc-option.is-selected .pc-option__check {
  border-color: var(--accent); background: var(--accent); color: #00180f;
}
.pc-option__check i { opacity: 0; transition: opacity .15s var(--ease); }
.pc-option.is-selected .pc-option__check i { opacity: 1; }
.pc-option__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(0,212,170,0.08); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; flex: 0 0 40px;
}
.pc-option__body { flex: 1; }
.pc-option__title { font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.pc-option__hint { font-size: 13px; color: var(--text-secondary); }

.pc-step-actions {
  margin-top: 36px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.pc-step-err { min-height: 22px; color: var(--danger); font-size: 14px; margin-top: 8px; }

/* ---------------- REPORT ---------------- */
.pc-report {
  max-width: 980px; margin: 0 auto; padding: 40px 24px 80px;
}
.pc-report__head { margin-bottom: 48px; }
.pc-report__head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.pc-report__meta { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }

.pc-report-score {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
  padding: 32px;
  background: linear-gradient(135deg, rgba(0,212,170,0.08), rgba(26,34,53,0.4));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}
@media (max-width: 600px) { .pc-report-score { grid-template-columns: 1fr; } }

.pc-score-ring {
  position: relative; width: 140px; height: 140px;
  display: flex; align-items: center; justify-content: center;
}
.pc-score-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pc-score-ring__track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 10; }
.pc-score-ring__fill {
  fill: none; stroke: url(#ringGrad); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 377; stroke-dashoffset: 377;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.pc-score-ring__num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; color: var(--accent);
  line-height: 1;
}
.pc-score-ring__slash { color: var(--text-tertiary); font-size: 1rem; }

.pc-report-profile__label {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(0,212,170,0.12); color: var(--accent); border: 1px solid var(--border-accent);
  font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 14px;
}
.pc-report-profile h2 { font-size: 1.6rem; margin-bottom: 12px; }
.pc-report-profile ul { margin: 0; padding-left: 20px; color: var(--text-secondary); }
.pc-report-profile li { padding: 3px 0; }

.pc-report-section { margin-bottom: 48px; }
.pc-report-section h2 { margin-bottom: 16px; }
.pc-report-section p { max-width: 780px; }

.pc-pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 600px) { .pc-pain-grid { grid-template-columns: 1fr; } }

.pc-pain {
  display: flex; gap: 16px;
  padding: 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.pc-pain__icon {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 40px;
  background: rgba(0,212,170,0.1); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.pc-pain h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pc-pain p { font-size: 14px; margin: 0; }

.pc-next-steps {
  counter-reset: step;
  padding: 28px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.pc-next-steps li {
  list-style: none;
  padding: 12px 0 12px 48px; position: relative;
  border-top: 1px solid var(--border);
}
.pc-next-steps li:first-child { border-top: 0; }
.pc-next-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,212,170,0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  border: 1px solid var(--border-accent);
}

.pc-report-cta {
  padding: 32px; text-align: center;
  background: linear-gradient(135deg, rgba(0,212,170,0.1), rgba(26,34,53,0.4));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
}
.pc-report-cta h2 { margin-bottom: 10px; }
.pc-report-cta p { margin-bottom: 20px; }

/* ---------------- TOOLS DIRECTORY ---------------- */
.pc-tools-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .pc-tools-layout { grid-template-columns: 1fr; } }

.pc-filters {
  padding: 24px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  position: sticky; top: calc(var(--nav-h) + 16px);
}
@media (max-width: 900px) { .pc-filters { position: static; } }
.pc-filters h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; color: var(--text-secondary); }
.pc-filters__group { margin-bottom: 20px; }
.pc-filters__group:last-child { margin-bottom: 0; }
.pc-filters__item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; font-size: 14px; color: var(--text-secondary); cursor: pointer;
}
.pc-filters__item input { accent-color: var(--accent); }
.pc-filters__item:hover { color: var(--text-primary); }
.pc-filters__count { margin-left: auto; color: var(--text-tertiary); font-size: 12px; }

.pc-search {
  position: relative; margin-bottom: 24px;
}
.pc-search input {
  width: 100%; padding: 14px 16px 14px 44px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-primary); font: inherit;
}
.pc-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.pc-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); }

.pc-tools-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; color: var(--text-secondary); font-size: 14px;
}

.pc-tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1100px) { .pc-tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .pc-tool-grid { grid-template-columns: 1fr; } }

.pc-empty {
  padding: 60px 20px; text-align: center; color: var(--text-secondary);
  background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius-md);
}

.pc-load-more {
  text-align: center; margin-top: 32px;
}

/* Tool detail */
.pc-tool-detail { max-width: 900px; margin: 0 auto; }
.pc-tool-detail__head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
@media (max-width: 700px) { .pc-tool-detail__head { grid-template-columns: 1fr; text-align: left; } }
.pc-tool-detail__logo {
  width: 80px; height: 80px; border-radius: var(--radius-md); object-fit: cover; background: var(--bg-elevated); border: 1px solid var(--border);
}
.pc-tool-detail h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 6px; }
.pc-tool-detail__meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pc-tool-detail__body { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
@media (max-width: 900px) { .pc-tool-detail__body { grid-template-columns: 1fr; } }
.pc-tool-detail__side {
  padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  align-self: start;
}
.pc-tool-detail__side h4 { margin-bottom: 8px; }
.pc-tool-detail__side ul { margin: 0 0 16px; padding-left: 20px; color: var(--text-secondary); }
.pc-related { margin-top: 48px; }

/* ==========================================================================
   Phase 3 — Adaptive assessment + visual report dashboard
   ========================================================================== */

/* ---- Assessment layout ------------------------------------------------ */
.pc-assess {
  max-width: 1100px;
}
.pc-assess__top {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.pc-assess__eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 6px;
}
.pc-assess__title h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.pc-assess__progress { min-width: 220px; flex: 0 1 280px; display: flex; flex-direction: column; gap: 8px; }
.pc-assess__progress-bar { height: 6px; background: var(--bg-card); border-radius: 999px; border: 1px solid var(--border); overflow: hidden; }
.pc-assess__progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-dim)); transition: width .5s var(--ease); }
.pc-assess__progress-label, .pc-assess__progress [data-progress-label] { font-size: 13px; color: var(--text-secondary); letter-spacing: 0.05em; text-transform: uppercase; }

/* ---- Area rings row --------------------------------------------------- */
.pc-assess__rings {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.pc-area-ring {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
}
.pc-area-ring__svg { width: 52px; height: 52px; }
.pc-area-ring__bg { fill: none; stroke: var(--border); stroke-width: 4; }
.pc-area-ring__fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 138;
  stroke-dashoffset: 138;
  transition: stroke-dashoffset .6s var(--ease);
  transform: rotate(-90deg);
  transform-origin: center;
}
.pc-area-ring__icon {
  position: absolute;
  top: 26px;
  color: var(--text-secondary);
  font-size: 14px;
  transform: translateY(-50%);
  left: 50%;
  transform: translate(-50%, -50%) translateY(2px);
}
.pc-area-ring__label { font-size: 12px; color: var(--text-secondary); letter-spacing: 0.02em; }
.pc-area-ring__score { font-size: 12px; color: var(--accent); font-weight: 700; }

/* ---- Layout: main + sidebar ----------------------------------------- */
.pc-assess__layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}
.pc-assess__main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  min-height: 320px;
}
.pc-assess__context {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 14px;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.pc-assess__heading {
  font-size: 24px;
  margin: 0 0 24px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.pc-assess__input { min-height: 80px; }
.pc-assess__actions { display: flex; justify-content: flex-end; margin-top: 28px; }
.pc-step-err:not(:empty) {
  color: #f87171;
  font-size: 13px;
  margin-top: 12px;
}

/* ---- Question card options ------------------------------------------ */
.pc-qcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.pc-qcards--yes_no { grid-template-columns: 1fr 1fr; gap: 16px; }
.pc-qcards--budget { grid-template-columns: 1fr; }
.pc-qcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all .2s var(--ease);
  font: inherit;
  text-align: center;
  position: relative;
}
.pc-qcard:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 212, 170, .15);
}
.pc-qcard.is-selected {
  border-color: var(--accent);
  background: rgba(0, 212, 170, .08);
}
.pc-qcard.is-selected::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--accent);
  font-size: 12px;
}
.pc-qcard__icon {
  font-size: 24px;
  color: var(--text-secondary);
}
.pc-qcard.is-selected .pc-qcard__icon { color: var(--accent); }
.pc-qcard__label { font-size: 14px; font-weight: 500; }
.pc-qcards--yes_no .pc-qcard { padding: 32px 16px; }
.pc-qcards--yes_no .pc-qcard__icon { font-size: 32px; }

/* ---- Slider input --------------------------------------------------- */
.pc-qslider { padding: 24px 12px 8px; }
.pc-qslider__value {
  text-align: center;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.pc-qslider__range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--bg-elevated) 0%);
  border-radius: 999px;
  outline: none;
}
.pc-qslider__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px var(--accent-glow);
  cursor: pointer;
}
.pc-qslider__range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px var(--accent-glow); cursor: pointer;
}
.pc-qslider__labels {
  display: flex; justify-content: space-between;
  margin-top: 14px; font-size: 13px; color: var(--text-secondary);
}

/* ---- Scale input ---------------------------------------------------- */
.pc-qscale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pc-qscale__btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all .15s var(--ease);
  font: inherit;
}
.pc-qscale__btn span { font-size: 18px; font-weight: 700; }
.pc-qscale__btn small { font-size: 11px; color: var(--text-secondary); line-height: 1.2; }
.pc-qscale__btn:hover { border-color: var(--accent); }
.pc-qscale__btn.is-selected { border-color: var(--accent); background: rgba(0,212,170,.08); }
.pc-qscale__btn.is-selected span, .pc-qscale__btn.is-selected small { color: var(--accent); }

/* ---- Thinking state ------------------------------------------------- */
.pc-assess__thinking {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 64px 0;
}
.pc-thinking-dots { display: flex; gap: 10px; }
.pc-thinking-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  animation: pc-thinking-pulse 1.3s ease-in-out infinite;
}
.pc-thinking-dot:nth-child(2) { animation-delay: 0.18s; }
.pc-thinking-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes pc-thinking-pulse {
  0%, 80%, 100% { transform: scale(0.55); opacity: 0.4; }
  40%           { transform: scale(1);    opacity: 1;   }
}
.pc-thinking-msg { color: var(--text-secondary); font-style: italic; font-size: 15px; }

/* ---- Completion panel ---------------------------------------------- */
.pc-assess__complete { text-align: center; padding: 12px 0 0; color: var(--text-primary); }
.pc-complete-check { color: var(--accent); margin: 0 auto 12px; display: inline-block; }
.pc-complete-check__ring { stroke-dasharray: 170; stroke-dashoffset: 170; animation: pc-check-ring .8s ease-out forwards; }
.pc-complete-check__tick { stroke-dasharray: 48; stroke-dashoffset: 48; animation: pc-check-tick .5s .7s ease-out forwards; }
@keyframes pc-check-ring { to { stroke-dashoffset: 0; } }
@keyframes pc-check-tick { to { stroke-dashoffset: 0; } }

.pc-complete-scores {
  max-width: 480px; margin: 28px auto; display: flex; flex-direction: column; gap: 12px; text-align: left;
}
.pc-complete-score-row__head {
  display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary);
  margin-bottom: 6px;
}
.pc-complete-score-row__track { height: 6px; background: var(--bg-elevated); border-radius: 999px; overflow: hidden; }
.pc-complete-score-row__fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  width: 0%; transition: width 1.1s var(--ease);
}
.pc-complete-form { max-width: 420px; margin: 36px auto 0; text-align: left; }
.pc-complete-form h3 { text-align: center; font-size: 18px; margin-bottom: 16px; }

/* ---- Sidebar -------------------------------------------------------- */
.pc-assess__sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}
.pc-assess__sidebar h3 { font-size: 15px; margin: 0 0 4px; }
.pc-assess__bars { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.pc-area-bar__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-secondary); margin-bottom: 6px;
}
.pc-area-bar__head i { margin-right: 6px; color: var(--accent); }
.pc-area-bar__track { height: 6px; background: var(--bg-elevated); border-radius: 999px; overflow: hidden; }
.pc-area-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  border-radius: 999px;
  transition: width .6s var(--ease);
}
.pc-assess__tip {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; background: rgba(0,212,170,.06); border: 1px solid rgba(0,212,170,.2);
  border-radius: var(--radius-md); font-size: 12.5px; color: var(--text-secondary);
  line-height: 1.45;
}
.pc-assess__tip i { color: var(--accent); margin-top: 2px; }

/* ==========================================================================
   Report Dashboard (Phase 3)
   ========================================================================== */

.pc-report-dash {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.pc-report-dash__head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px;
  margin-bottom: 28px;
}
.pc-report-dash__head h1 { margin: 4px 0 6px; font-size: 30px; letter-spacing: -0.02em; }
.pc-report-dash__meta { color: var(--text-secondary); font-size: 13px; }
.pc-report-dash__actions { display: flex; gap: 10px; }

/* Hero */
.pc-report-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: 0 0 60px rgba(0, 212, 170, .08);
  position: relative;
}
.pc-score-ring-big {
  position: relative;
  width: 180px; height: 180px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.pc-score-ring-big__svg { position: absolute; inset: 0; }
.pc-score-ring-big__bg { fill: none; stroke: var(--border); stroke-width: 12; }
.pc-score-ring-big__fill {
  fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: center;
}
.pc-score-ring-big__number {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 800; line-height: 1;
  color: var(--text-primary);
  position: relative;
}
.pc-score-ring-big__slash { position: relative; font-size: 14px; color: var(--text-secondary); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }

.pc-report-hero__right { display: flex; flex-direction: column; gap: 14px; }
.pc-report-hero__label {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0,212,170,.14);
  color: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.pc-report-hero__profile p { color: var(--text-secondary); margin: 0; line-height: 1.55; font-size: 15px; }

.pc-hero-highlight {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
  background: rgba(0,212,170,.06);
}
.pc-hero-highlight--risk { border-left-color: var(--warning); background: rgba(245, 158, 11, .08); }
.pc-hero-highlight__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.pc-hero-highlight--risk .pc-hero-highlight__kicker { color: var(--warning); }
.pc-hero-highlight p { margin: 0; color: var(--text-primary); font-size: 14.5px; line-height: 1.5; }

/* Executive summary */
.pc-report-dash__exec {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 28px;
}
.pc-report-dash__exec h2 { margin: 0 0 10px; font-size: 20px; }
.pc-report-dash__exec p { margin: 0; color: var(--text-primary); line-height: 1.6; }

/* Area cards */
.pc-report-dash__areas { margin-bottom: 32px; }
.pc-report-dash__areas h2 { margin-bottom: 16px; }
.pc-area-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.pc-area-card {
  --area-color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--area-color);
  border-radius: var(--radius-md);
  padding: 22px;
}
.pc-area-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pc-area-card__icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: var(--area-color);
  background: color-mix(in srgb, var(--area-color) 18%, transparent);
  font-size: 18px;
}
.pc-area-card__heading { flex: 1; }
.pc-area-card__title { font-weight: 700; color: var(--text-primary); font-size: 15px; }
.pc-area-card__sub { color: var(--text-secondary); font-size: 12.5px; }
.pc-area-card__score {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--area-color);
  line-height: 1;
}
.pc-area-card__track { height: 8px; background: var(--bg-elevated); border-radius: 999px; overflow: hidden; }
.pc-area-card__fill {
  height: 100%;
  background: var(--area-color);
  border-radius: 999px;
  width: 0%;
  transition: width .8s var(--ease);
  box-shadow: 0 0 10px color-mix(in srgb, var(--area-color) 40%, transparent);
}
.pc-area-card__analysis { margin: 14px 0 10px; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.pc-area-card__top-tool { margin-top: 8px; }

/* Radar chart */
.pc-report-dash__radar {
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}
.pc-report-dash__radar h2 { margin-bottom: 4px; }
.pc-radar { display: flex; justify-content: center; margin-top: 16px; }
.pc-radar svg { max-width: 100%; height: auto; }

/* Priority cards */
.pc-report-dash__priorities { margin-bottom: 36px; }
.pc-priority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}
.pc-priority-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease) var(--rank-delay, 0ms), transform .5s var(--ease) var(--rank-delay, 0ms);
}
.pc-report-dash__priorities.is-visible .pc-priority-card { opacity: 1; transform: translateY(0); }
.pc-priority-card:nth-child(2) { border-left-color: var(--warning); }
.pc-priority-card:nth-child(3) { border-left-color: #3b82f6; }
.pc-priority-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pc-priority-card__rank {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
}
.pc-priority-card h3 { margin: 4px 0 8px; font-size: 17px; }
.pc-priority-card__time { margin-top: 12px; color: var(--text-secondary); font-size: 13px; }
.pc-priority-card__time i { margin-right: 6px; color: var(--accent); }

/* Recommended tool cards */
.pc-rec-tool { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.pc-rec-tool__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pc-rec-tool__bottom { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }

/* Agents row (reuses .pc-agent-card from services.css) */
.pc-report-dash__agents { margin-top: 32px; }
.pc-report-dash__agents-cta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 20px 24px;
  background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.pc-report-dash__agents-cta p { margin: 0; color: var(--text-primary); font-weight: 600; }

/* Footer links */
.pc-report-dash__footer { margin-top: 40px; }
.pc-report-dash__secondary {
  display: flex; gap: 20px; align-items: center; justify-content: center; margin-top: 20px;
  flex-wrap: wrap; color: var(--text-secondary); font-size: 14px;
}

/* Scroll animations */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Loading screen */
.pc-report-loading {
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; text-align: center; padding: 60px 20px;
}
.pc-report-loading__logo { position: relative; color: var(--accent); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 22px; margin-bottom: 8px; }
.pc-report-loading__logo em { font-style: normal; color: var(--text-primary); }
.pc-report-loading__pulse {
  position: absolute; inset: -24px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,170,0.25) 0%, transparent 70%);
  animation: pc-pulse 2s ease-in-out infinite;
}
@keyframes pc-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%      { transform: scale(1.25); opacity: 0.8; }
}
.pc-report-loading h1 { font-size: 28px; margin: 6px 0; }
.pc-report-loading__sub { color: var(--text-secondary); max-width: 440px; margin: 0; font-size: 15px; }
.pc-report-loading__progress { width: 320px; max-width: 100%; height: 4px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.pc-report-loading__bar { height: 100%; background: var(--accent); border-radius: 999px; width: 0%; transition: width .5s var(--ease); box-shadow: 0 0 12px var(--accent); }
.pc-report-loading__msg { color: var(--text-secondary); font-size: 14px; font-style: italic; margin-top: 12px; min-height: 1.2em; }

/* Matched agents grid used in both legacy + new reports */
.pc-matched-agents { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Responsive breakpoints */
@media (max-width: 900px) {
  .pc-assess__layout { grid-template-columns: 1fr; }
  .pc-assess__sidebar { position: static; }
  .pc-assess__rings { grid-template-columns: repeat(3, 1fr); }
  .pc-priority-grid { grid-template-columns: 1fr; }
  .pc-report-hero { grid-template-columns: 1fr; text-align: center; }
  .pc-report-hero__right { text-align: left; }
}
@media (max-width: 560px) {
  .pc-assess__main { padding: 24px 20px; }
  .pc-assess__rings { grid-template-columns: repeat(2, 1fr); }
  .pc-qcards { grid-template-columns: 1fr 1fr; }
  .pc-qscale { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .pc-qscale__btn { padding: 10px 4px; }
  .pc-area-cards { grid-template-columns: 1fr; }
  .pc-assess__heading { font-size: 20px; }
}

/* ---- Loading screen: "AI is working" enhancements ------------------- */
.pc-report-loading__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 212, 170, .12);
  border: 1px solid rgba(0, 212, 170, .35);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pc-report-loading__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pc-loading-dot 1.2s ease-in-out infinite;
}
@keyframes pc-loading-dot {
  0%, 100% { transform: scale(0.7); opacity: 0.55; }
  50%      { transform: scale(1);   opacity: 1;    }
}

.pc-report-loading h1 {
  max-width: 560px;
  font-size: 30px;
  line-height: 1.2;
}

.pc-report-loading__sub {
  max-width: 520px;
  font-size: 15px;
}

.pc-report-loading__steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.pc-report-loading__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.pc-report-loading__steps li i { color: var(--accent); width: 16px; text-align: center; }
.pc-report-loading__steps li.is-active {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: rgba(0, 212, 170, .06);
}
.pc-report-loading__steps li:last-child i { color: var(--text-tertiary); }

.pc-report-loading__hint {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 18px;
  max-width: 420px;
}

@media (max-width: 560px) {
  .pc-report-loading h1 { font-size: 24px; }
  .pc-report-loading__sub { font-size: 14px; }
}
