/* ============ Audit page ============ */
.audit-hero { padding: 24px 0 8px; max-width: 760px; }
.audit-hero .gradient-title { font-size: 42px; margin-bottom: 18px; }
.audit-hero p { font-size: 17px; color: var(--text-secondary); max-width: 640px; line-height: 1.55; margin-bottom: 16px; }

.audit-meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin: 22px 0 32px; padding: 18px 22px;
  background: var(--card-dark-bg);
  border: 1px solid var(--card-dark-border);
  border-radius: 14px;
}
.audit-meta-item { display: flex; flex-direction: column; }
.audit-meta-num {
  font-size: 22px; font-weight: 800;
  background: var(--title-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.audit-meta-lbl { font-size: 12px; color: var(--text-secondary); margin-top: 4px; letter-spacing: 0.02em; }

/* Screens */
.screen { display: none; }
.screen.active { display: block; animation: fadeSlide 320ms ease both; }

/* Start screen content */
.what-we-rate {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.what-we-rate li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.what-we-rate li .num {
  color: var(--accent-secondary);
  font-weight: 700;
  min-width: 18px;
}
.what-we-rate li b { color: var(--text-primary); }

.q-card-title-tight { margin-bottom: 12px !important; }

.btn-start {
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-height: 48px;
}

/* Quiz progress */
.quiz-progress {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; font-size: 13px; color: var(--text-secondary);
}
.quiz-progress-section { color: var(--accent-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }
.progress-track { height: 6px; background: rgba(99,102,241,0.18); border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%); border-radius: 99px; transition: width 300ms ease; width: 0%; }

/* Question card */
.q-card { padding: 30px 28px; }
.q-num { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--accent-secondary); text-transform: uppercase; margin-bottom: 12px; }
.q-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 6px; color: var(--text-primary); }
.q-hint { font-size: 14px; color: var(--text-secondary); margin-bottom: 22px; line-height: 1.5; }

.options { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 14px;
  min-height: 44px;
  padding: 16px 18px;
  background: rgba(99,102,241,0.05);
  border: 1.5px solid var(--card-dark-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit; font-size: 15px; line-height: 1.4;
  text-align: left; cursor: pointer; width: 100%;
  transition: background 180ms ease, border-color 180ms ease, transform 100ms ease;
}
.opt:hover { background: rgba(99,102,241,0.10); border-color: var(--accent-secondary); }
.opt.selected { background: rgba(99,102,241,0.16); border-color: var(--accent-primary); }
.opt:active { transform: scale(0.99); }
.opt-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--accent-secondary);
  flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.opt.selected .opt-dot { border-color: var(--accent-primary); background: var(--accent-primary); }
.opt.selected .opt-dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.opt-text { flex: 1; }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; flex-wrap: wrap; }
.btn-nav {
  min-height: 44px;
  padding: 12px 22px;
  background: var(--card-dark-bg);
  border: 1px solid var(--card-dark-border);
  border-radius: 12px;
  color: var(--text-primary);
  font: 600 14px 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.btn-nav:hover:not(:disabled) { background: var(--card-dark-bg-hover); border-color: var(--accent-primary); }
.btn-nav:disabled { opacity: 0.4; cursor: not-allowed; }

/* Result */
.result-hero {
  padding: 32px 30px;
  background: linear-gradient(135deg, rgba(99,102,241,0.16) 0%, rgba(129,140,248,0.10) 100%);
  border: 1px solid rgba(99, 102, 241, 0.30);
  border-radius: 18px;
  margin-bottom: 22px;
  text-align: center;
}
.result-score {
  font-size: 64px; font-weight: 800;
  background: var(--title-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums;
}
.result-score-pct { font-size: 36px; font-weight: 700; color: var(--accent-light); }
.result-tier { font-size: 19px; font-weight: 700; color: var(--text-primary); margin-top: 12px; letter-spacing: -0.01em; }
.result-tier-desc { font-size: 15px; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }

.result-block-title { font-size: 22px; margin-bottom: 6px; }
.result-block-sub { margin-bottom: 18px; }

.sections { display: grid; gap: 14px; margin-bottom: 22px; }
.sec-row { padding: 18px 22px; background: var(--card-dark-bg); border: 1px solid var(--card-dark-border); border-radius: 14px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 12px; }
.sec-name { font-weight: 700; font-size: 15px; color: var(--text-primary); }
.sec-score { font-size: 14px; font-weight: 700; color: var(--accent-light); font-variant-numeric: tabular-nums; }
.bar-track { height: 8px; background: rgba(99,102,241,0.15); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; transition: width 700ms ease; width: 0%; }
.bar-fill.low { background: linear-gradient(90deg, #e57373, #f1a0a0); }
.bar-fill.mid { background: linear-gradient(90deg, #c7aa3a, #e8d36a); }
.bar-fill.high { background: linear-gradient(90deg, #6366f1, #818cf8); }
.sec-tip { margin-top: 10px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Result-screen channel-card override (left-aligned) */
.result-channel {
  text-align: left;
  margin-bottom: 18px;
}
.result-channel .channel-title { text-align: left; }
.result-channel .channel-desc { text-align: left; margin-left: 0; margin-right: 0; }

.result-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.btn-restart {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 14px 22px;
  background: var(--card-dark-bg);
  border: 1px solid var(--card-dark-border);
  border-radius: 12px;
  color: var(--text-primary);
  font: 600 14px 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: background 180ms ease;
}
.btn-restart:hover { background: var(--card-dark-bg-hover); }

@media (max-width: 740px) {
  .audit-hero .gradient-title { font-size: 30px; }
  .q-card { padding: 24px 20px; }
  .q-title { font-size: 19px; }
  .result-hero { padding: 26px 22px; }
  .result-score { font-size: 52px; }
  .result-score-pct { font-size: 30px; }
}
