:root {
  --qb-bg: #ebe7dc;
  --qb-paper: #ffffff;
  --qb-soft: #f8f5ec;
  --qb-ink: #18231c;
  --qb-muted: #687166;
  --qb-line: #d7cfbd;
  --qb-line-soft: #e8e1d3;
  --qb-green: #0f2d1f;
  --qb-green-2: #1a4a2e;
  --qb-gold: #c9a84c;
  --qb-gold-soft: #f4ecd3;
  --qb-danger: #a83232;
  --qb-danger-soft: #f8e9e6;
  --qb-good: #2f6844;
  --qb-good-soft: #e7f1e8;
  --qb-shadow: 0 14px 45px rgba(15, 45, 31, 0.13);
}

body {
  background: var(--qb-bg);
  color: var(--qb-ink);
  overflow-x: hidden;
}

#questionBankApp,
#questionBankApp * {
  box-sizing: border-box;
}

#questionBankApp {
  padding-top: 92px;
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

.qb-screen {
  display: none;
  min-height: 100vh;
  padding: 28px 16px 48px;
}

.qb-screen.is-active {
  display: block;
}

.qb-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.qb-hero,
.qb-panel,
.qb-practice-top,
.qb-review-head,
.qb-card,
.qb-passage {
  border: 1px solid var(--qb-line);
  border-radius: 6px;
  background: var(--qb-paper);
  box-shadow: var(--qb-shadow);
}

.qb-hero,
.qb-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
  padding: 40px;
}

.qb-brand {
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--qb-gold);
  text-transform: uppercase;
}

#questionBankApp h1,
#questionBankApp h2,
#questionBankApp h3 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--qb-green);
}

#questionBankApp h1 {
  max-width: 780px;
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
}

.qb-hero p,
.qb-review-head p {
  max-width: 680px;
  margin: 0;
  color: var(--qb-muted);
  font-size: 17px;
  line-height: 1.65;
}

.qb-link,
.qb-btn,
.qb-tool,
.qb-small-btn {
  max-width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--qb-ink);
  border-radius: 3px;
  background: transparent;
  color: var(--qb-ink);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.qb-link:hover,
.qb-btn:hover,
.qb-tool:hover,
.qb-small-btn:hover {
  background: var(--qb-ink);
  color: var(--qb-paper);
}

.qb-btn-primary {
  border-color: var(--qb-green);
  background: var(--qb-green);
  color: var(--qb-paper);
}

.qb-btn-primary:hover {
  border-color: var(--qb-green-2);
  background: var(--qb-green-2);
  color: var(--qb-paper);
}

.qb-small-btn {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 13px;
}

.qb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 18px;
}

.qb-panel {
  padding: 24px;
}

.qb-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.qb-panel-head h2 {
  margin: 0;
  font-size: 28px;
}

.qb-panel-head span {
  color: var(--qb-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.qb-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.qb-form-grid label {
  display: grid;
  gap: 7px;
}

.qb-form-grid span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--qb-muted);
  text-transform: uppercase;
}

.qb-form-grid select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--qb-line);
  border-radius: 3px;
  background: var(--qb-soft);
  color: var(--qb-ink);
}

.qb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.qb-error {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--qb-danger);
  font-weight: 700;
}

.qb-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.qb-progress div,
.qb-result-card {
  min-height: 96px;
  padding: 15px;
  border: 1px solid var(--qb-line-soft);
  border-radius: 4px;
  background: var(--qb-soft);
}

.qb-progress span,
.qb-result-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--qb-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qb-progress strong,
.qb-result-card strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 34px;
  line-height: 1;
  color: var(--qb-green);
}

.qb-result-card em {
  display: block;
  margin-top: 7px;
  color: var(--qb-muted);
  font-style: normal;
}

.qb-snapshot {
  display: grid;
  gap: 10px;
}

.qb-snapshot h3 {
  margin: 0;
  font-size: 22px;
}

.qb-snapshot .qb-skill-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--qb-line-soft);
}

.qb-snapshot .qb-skill-row > strong:first-child,
.qb-snapshot .qb-skill-row span strong {
  color: var(--qb-green);
  margin-right: 6px;
}

.qb-snapshot .qb-skill-row.is-empty span,
.qb-snapshot .qb-skill-row.is-empty > strong {
  color: var(--qb-muted);
}

.qb-snapshot p,
.qb-snapshot span {
  color: var(--qb-muted);
}

.qb-snapshot em {
  display: block;
  margin-top: 2px;
  color: var(--qb-muted);
  font-size: 12px;
  font-style: normal;
}

.qb-practice-container {
  max-width: 1280px;
}

.qb-practice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 20px 24px;
}

.qb-practice-top h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.qb-practice-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.qb-timer {
  min-width: 92px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 3px;
  background: var(--qb-green);
  color: var(--qb-paper);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.qb-tool.is-flagged {
  border-color: var(--qb-gold);
  background: var(--qb-gold);
  color: var(--qb-ink);
}

.qb-question-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 16px;
  align-items: start;
}

.qb-question-layout.qb-no-passage {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}

.qb-passage,
.qb-card {
  padding: 22px;
}

.qb-passage {
  max-height: 640px;
  overflow-y: auto;
  background: var(--qb-soft);
}

.qb-passage h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.qb-passage p {
  margin: 0;
  color: #34443a;
  white-space: pre-line;
}

.qb-question-text {
  margin-bottom: 18px;
  font-size: 19px;
  font-weight: 700;
}

.qb-scenario {
  margin-bottom: 16px;
  padding: 15px;
  border-left: 3px solid var(--qb-gold);
  background: var(--qb-soft);
  color: #34443a;
}

.qb-options {
  display: grid;
  gap: 10px;
}

.qb-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--qb-line);
  border-radius: 4px;
  background: var(--qb-paper);
  color: var(--qb-ink);
  cursor: pointer;
  text-align: left;
}

.qb-option:hover,
.qb-option.selected {
  border-color: var(--qb-green);
  background: #edf5ef;
}

.qb-option span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid var(--qb-line);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.qb-option.selected span {
  border-color: var(--qb-green);
  background: var(--qb-green);
  color: var(--qb-paper);
}

.qb-option em {
  font-style: normal;
}

.qb-yesno {
  display: grid;
  gap: 10px;
}

.qb-yesno-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--qb-line);
  border-radius: 4px;
  background: var(--qb-paper);
}

.qb-yesno-row div:last-child {
  display: flex;
  gap: 8px;
}

.qb-yesno-row button {
  min-width: 58px;
  min-height: 34px;
  border: 1px solid var(--qb-line);
  border-radius: 3px;
  background: var(--qb-soft);
  color: var(--qb-ink);
  cursor: pointer;
  font-weight: 700;
}

.qb-yesno-row button.selected {
  border-color: var(--qb-green);
  background: var(--qb-green);
  color: var(--qb-paper);
}

.qb-table-wrap {
  margin-top: 10px;
  overflow-x: auto;
}

.qb-table {
  width: 100%;
  min-width: 390px;
  border-collapse: collapse;
  background: var(--qb-paper);
}

.qb-table th,
.qb-table td {
  padding: 9px 10px;
  border: 1px solid var(--qb-line-soft);
  text-align: left;
}

.qb-table th {
  background: #eef4ee;
  color: var(--qb-green);
}

.qb-instant {
  margin-top: 12px;
  padding: 0;
}

.qb-instant:not(:empty) {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(201, 168, 76, 0.42);
  border-left: 4px solid var(--qb-gold);
  border-radius: 4px;
  background: #fffdf7;
}

.qb-practice-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--qb-line);
  border-radius: 5px;
  background: var(--qb-paper);
}

.qb-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.qb-dot {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid var(--qb-line);
  border-radius: 999px;
  background: var(--qb-paper);
  color: var(--qb-muted);
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.qb-dot.answered {
  border-color: var(--qb-green-2);
  background: var(--qb-good-soft);
  color: var(--qb-green);
}

.qb-dot.current {
  border-color: var(--qb-green);
  background: var(--qb-green);
  color: var(--qb-paper);
}

.qb-dot.flagged::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -1px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--qb-paper);
  border-radius: 999px;
  background: var(--qb-gold);
}

.qb-review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.qb-coach {
  margin-bottom: 16px;
  border-left: 5px solid var(--qb-gold);
  background: #fffdf7;
}

.qb-coach-kicker {
  margin-bottom: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--qb-gold);
  text-transform: uppercase;
}

.qb-coach h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.qb-coach p {
  color: #34443a;
}

.qb-coach-plan {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 4px;
  background: var(--qb-gold-soft);
}

.qb-review-list {
  display: grid;
  gap: 10px;
}

.qb-review-item {
  padding: 16px;
  border: 1px solid var(--qb-line-soft);
  border-left: 4px solid var(--qb-line);
  border-radius: 4px;
  background: var(--qb-paper);
}

.qb-review-item.correct {
  border-left-color: var(--qb-good);
}

.qb-review-item.partial {
  border-left-color: var(--qb-gold);
}

.qb-review-item.incorrect {
  border-left-color: var(--qb-danger);
}

.qb-review-meta {
  margin-bottom: 8px;
  color: var(--qb-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.qb-review-item h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.qb-review-item p {
  margin-bottom: 8px;
  color: #34443a;
}

.qb-statement-review {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 4px;
  background: var(--qb-soft);
  color: #34443a;
  font-size: 14px;
}

@media (max-width: 980px) {
  .qb-grid,
  .qb-question-layout,
  .qb-review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .qb-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .qb-question-layout {
    grid-template-columns: 1fr;
  }

  .qb-passage {
    max-height: 320px;
  }
}

@media (max-width: 680px) {
  #questionBankApp {
    padding-top: 76px;
  }

  .qb-screen {
    padding: 14px 12px 32px;
  }

  .qb-hero,
  .qb-review-head,
  .qb-practice-top {
    flex-direction: column;
    padding: 24px 18px;
  }

  .qb-panel,
  .qb-card,
  .qb-passage {
    padding: 18px;
  }

  .qb-panel-head,
  .qb-actions,
  .qb-practice-tools {
    align-items: stretch;
  }

  .qb-actions .qb-btn,
  .qb-practice-tools .qb-tool,
  .qb-practice-tools .qb-timer {
    width: 100%;
    justify-content: center;
  }

  .qb-grid,
  .qb-form-grid,
  .qb-progress,
  .qb-review-grid {
    grid-template-columns: 1fr;
  }

  .qb-practice-foot {
    grid-template-columns: 1fr;
  }

  .qb-nav {
    justify-content: flex-start;
  }

  .qb-yesno-row {
    grid-template-columns: 1fr;
  }

  .qb-yesno-row div:last-child {
    width: 100%;
  }

  .qb-yesno-row button {
    flex: 1;
  }
}

/* ══════════════════════════════════════════════════════
   SETUP SCREEN REDESIGN
   Green × Gold × Ivory — MediBrain UK theme
══════════════════════════════════════════════════════ */

/* Remove default screen padding so hero goes edge-to-edge */
#setupScreen {
  padding: 0;
}

/* ── Hero Banner ── */
.qb-setup-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #091a0f 0%, #0f2d1f 55%, #163d26 100%);
  padding: 88px 24px 64px;
}

.qb-setup-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 40%, rgba(201,152,42,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(201,152,42,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.qb-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Hero Left ── */
.qb-hero-text {
  flex: 1;
  min-width: 0;
}

.qb-hero-text .qb-brand {
  margin-bottom: 18px;
}

.qb-hero-text h1,
#questionBankApp .qb-hero-text h1 {
  font-family: 'Playfair Display', 'Fraunces', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.06;
  color: #fff;
  margin-bottom: 20px;
}

.qb-hero-text > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 30px;
}

.qb-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qb-hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid rgba(201, 152, 42, 0.38);
  border-radius: 99px;
  background: rgba(201, 152, 42, 0.09);
  color: #e8b84a;
  font-family: 'Lato', 'IBM Plex Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.qb-hero-pills span i {
  font-size: 0.72rem;
}

/* ── Hero Right ── */
.qb-hero-aside {
  flex-shrink: 0;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qb-sim-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(201, 152, 42, 0.4);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
}

.qb-sim-card:hover {
  background: rgba(201, 152, 42, 0.14);
  border-color: rgba(201, 152, 42, 0.7);
  color: #e8b84a;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.qb-sim-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8b84a, #c9982a);
  color: #0f2d1f;
  font-size: 1.1rem;
}

.qb-sim-card-body {
  flex: 1;
  min-width: 0;
}

.qb-sim-card-body strong {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}

.qb-sim-card-body span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
}

.qb-sim-card:hover .qb-sim-card-body span { color: rgba(232, 184, 74, 0.7); }

.qb-sim-card-body em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.qb-sim-card-arrow {
  font-size: 0.8rem;
  color: rgba(201, 152, 42, 0.9);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.qb-sim-card:hover .qb-sim-card-arrow { transform: translateX(4px); color: #e8b84a; }

.qb-trust-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.qb-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  line-height: 1.5;
}

.qb-trust-item i {
  color: #e8b84a;
  font-size: 0.7rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── Section Tabs Bar ── */
.qb-section-bar {
  background: rgba(15, 45, 31, 0.96);
  border-bottom: 1px solid rgba(201, 152, 42, 0.2);
  padding: 0 24px;
  overflow-x: hidden;
}

.qb-section-bar .qb-hero-inner {
  flex-wrap: wrap !important;
  gap: 0 !important;
}

.qb-section-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.qb-section-tab i,
.qb-section-tab svg {
  color: #ffffff;
  fill: #ffffff;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  opacity: 1;
}

.qb-section-tab strong {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
  display: block;
  overflow-wrap: anywhere;
}

.qb-section-tab span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
  display: block;
}

/* ── Setup Body ── */
.qb-setup-body {
  padding: 40px 24px 72px;
}

/* ── Panel Kicker ── */
.qb-kicker {
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--qb-gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── Bank count badge ── */
.qb-bank-badge {
  padding: 5px 13px;
  border: 1px solid var(--qb-line);
  border-radius: 99px;
  background: var(--qb-soft);
  color: var(--qb-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  max-width: 100%;
  white-space: normal;
  align-self: flex-start;
}

/* ── Form fields ── */
.qb-field {
  display: grid;
  gap: 8px;
}

.qb-field > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--qb-muted);
  text-transform: uppercase;
}

.qb-field > span i {
  color: var(--qb-green);
  font-size: 10px;
}

.qb-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 38px 10px 14px;
  border: 1px solid var(--qb-line);
  border-radius: 6px;
  background-color: var(--qb-soft);
  color: var(--qb-ink);
  font-family: 'IBM Plex Sans', 'Lato', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath fill='none' stroke='%23687166' stroke-width='1.5' stroke-linecap='round' d='M1 1l4.5 4.5L10 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qb-field select:focus {
  outline: none;
  border-color: var(--qb-green);
  box-shadow: 0 0 0 3px rgba(15, 45, 31, 0.09);
}

/* ── Action buttons with icons ── */
.qb-actions .qb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── Feature strip ── */
.qb-feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--qb-line-soft);
}

.qb-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 200px;
  padding: 8px 16px 8px 0;
  color: var(--qb-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.qb-feature-item i {
  color: var(--qb-green);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Progress panel ── */
.qb-progress-panel .qb-panel-head {
  align-items: flex-start;
}

/* ── How It Works ── */
.qb-howto {
  margin-top: 28px;
  padding: 30px 36px;
  border: 1px solid var(--qb-line-soft);
  border-radius: 12px;
  background: var(--qb-paper);
  box-shadow: 0 2px 16px rgba(15, 45, 31, 0.05);
}

.qb-howto-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--qb-gold);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 24px;
}

.qb-howto-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.qb-howto-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 8px 28px;
}

.qb-howto-num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--qb-green-2), var(--qb-green));
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  box-shadow: 0 4px 14px rgba(15, 45, 31, 0.22);
}

.qb-howto-step strong {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-size: 15px;
  color: var(--qb-green);
  display: block;
}

.qb-howto-step span {
  font-size: 0.75rem;
  color: var(--qb-muted);
  max-width: 112px;
  display: block;
  line-height: 1.4;
}

.qb-howto-arrow {
  color: var(--qb-gold);
  font-size: 13px;
  padding: 4px 6px;
  opacity: 0.7;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 980px) {
  .qb-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .qb-hero-aside {
    width: 100%;
  }

  .qb-sim-card {
    max-width: 480px;
  }
}

@media (max-width: 720px) {
  .qb-setup-hero {
    padding: 80px 18px 40px;
  }

  .qb-hero-pills span {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .qb-section-bar {
    padding: 0 12px;
  }

  .qb-section-tab {
    flex-basis: 50%;
    padding: 12px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .qb-setup-body {
    padding: 28px 18px 52px;
  }

  .qb-howto {
    padding: 22px 18px;
  }

  .qb-howto-steps {
    gap: 0;
  }

  .qb-howto-step {
    padding: 10px 16px;
    flex: 1 1 140px;
    min-width: 0;
  }

  .qb-howto-arrow {
    display: none;
  }

  .qb-feature-strip {
    flex-direction: column;
  }

  .qb-section-tab span {
    display: none;
  }
}

@media (max-width: 420px) {
  .qb-setup-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .qb-hero-pills span,
  .qb-sim-card,
  .qb-feature-item,
  .qb-howto-step {
    min-width: 0;
  }

  .qb-sim-card {
    padding: 16px;
  }

  .qb-section-tab {
    flex-basis: 100%;
  }

  .qb-setup-body {
    padding-left: 12px;
    padding-right: 12px;
  }
}
