/* ═══════════════════════════════════════════════════════
   DESTROLA — COMPONENTS
   Buttons · Cards · Badges · Forms · XP · HUD elements
═══════════════════════════════════════════════════════ */

/* ─── REUSABLE SECTION GRID OVERLAY ──────────────────── */
.section-grid {
  position: relative;
  isolation: isolate;
}
.section-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242,229,225,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,229,225,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 38%, rgba(0,0,0,0.5) 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 38%, rgba(0,0,0,0.5) 0%, transparent 100%);
}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  transition: transform 150ms var(--ease-inout), filter 150ms var(--ease-inout), box-shadow 300ms var(--ease-inout);
  user-select: none;
  white-space: nowrap;
  position: relative;
}

/* Primary — Burnt Orange with pixel offset shadow */
.btn-primary {
  background: var(--accent);
  color: var(--fg-primary);
  box-shadow: 4px 4px 0 #7A2010;
}
.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 4px 4px 0 #7A2010, var(--shadow-glow-orange);
}
.btn-primary:active {
  transform: scale(0.97);
  filter: brightness(0.9);
  box-shadow: 2px 2px 0 #7A2010;
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--fg-primary);
  border: 1px solid rgba(242,229,225,0.25);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(242,229,225,0.06);
  border-color: rgba(242,229,225,0.4);
  transform: scale(1.02);
}
.btn-ghost:active { transform: scale(0.97); filter: brightness(0.9); }

/* Small */
.btn-sm {
  font-size: var(--text-xs);
  padding: 10px 20px;
}
.btn-sm.btn-primary { box-shadow: 3px 3px 0 #7A2010; }
.btn-sm.btn-primary:active { box-shadow: 1px 1px 0 #7A2010; }

/* Danger */
.btn-danger {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(206,68,39,0.4);
}
.btn-danger:hover { background: rgba(206,68,39,0.08); }

/* Disabled */
.btn:disabled, .btn[aria-disabled="true"] {
  background: rgba(242,229,225,0.05);
  color: var(--fg-muted);
  border: 1px solid rgba(242,229,225,0.08);
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
  filter: none !important;
}

/* ─── GLASS CARD ─────────────────────────────────────── */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), var(--shadow-inset);
  overflow: hidden;
  position: relative;
}

/* Featured / Main Quest card */
.card-featured {
  border-color: var(--border-orange);
  background: radial-gradient(ellipse at 90% 0%, rgba(206,68,39,0.07) 0%, transparent 60%), var(--bg-card);
}

/* Surface card (darker) */
.card-surface {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}

/* ─── BADGES ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.badge-active   { background: rgba(206,68,39,0.15); color: var(--accent); border: 1px solid rgba(206,68,39,0.3); }
.badge-complete { background: rgba(34,90,40,0.2);   color: #6eb87a; border: 1px solid rgba(34,90,40,0.3); }
.badge-pending  { background: rgba(242,229,225,0.06); color: var(--fg-secondary); border: 1px solid var(--border-subtle); }
.badge-locked   { background: transparent; color: var(--fg-muted); border: 1px solid rgba(242,229,225,0.06); }
.badge-price    { background: var(--accent); color: var(--fg-primary); font-size: var(--text-sm); padding: 6px 14px; border-radius: var(--radius-md); box-shadow: 3px 3px 0 #7A2010; }

/* ─── PRICE DISPLAY ──────────────────────────────────── */
.price-hero {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--fg-primary);
  line-height: 1;
}
.price-hero sup {
  font-size: 0.5em;
  vertical-align: super;
  color: var(--fg-secondary);
}
.price-period {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  display: block;
  margin-top: 4px;
}

/* ─── FORM INPUTS ─────────────────────────────────────── */
.input, .textarea, .select {
  width: 100%;
  background: rgba(17,25,17,0.7);
  border: 1px solid rgba(242,229,225,0.12);
  border-radius: var(--radius-md);
  color: var(--fg-primary);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  padding: 12px 16px;
  transition: border-color 150ms var(--ease-inout), box-shadow 150ms var(--ease-inout);
  outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--fg-muted); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(206,68,39,0.2);
}
.textarea { resize: vertical; min-height: 120px; }

.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-secondary);
}

/* ─── TIER CARD ──────────────────────────────────────── */
.tier-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding: var(--sp-8) var(--sp-6);
  position: relative;
}
.tier-card .tier-header { display: flex; flex-direction: column; gap: var(--sp-3); }
.tier-card .tier-features { display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.tier-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-base);
  color: var(--fg-secondary);
}
.tier-feature::before {
  content: "▸";
  color: var(--accent);
  font-size: var(--text-sm);
  flex-shrink: 0;
  margin-top: 2px;
}
.tier-cta { margin-top: auto; }

/* ─── STAT NUMBER ────────────────────────────────────── */
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  color: var(--accent);
  line-height: 1;
  display: block;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--fg-secondary);
  display: block;
  margin-top: var(--sp-2);
  max-width: 22ch;
}

/* ─── DOCTRINE CARD ──────────────────────────────────── */
.doctrine-card {
  padding: var(--sp-6);
  position: relative;
}
.doctrine-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-4);
  opacity: 0.8;
}
.doctrine-card h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-3);
}
.doctrine-card p { font-size: var(--text-base); }

/* ─── TESTIMONIAL CARD ───────────────────────────────── */
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-8) var(--sp-6);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--fg-primary);
  line-height: 1.4;
}
.testimonial-quote::before {
  content: "\201C";
  color: var(--accent);
  font-size: 2em;
  line-height: 0.5;
  display: block;
  margin-bottom: 8px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-secondary), var(--accent-dim));
  border: 1px solid var(--border-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--accent);
  flex-shrink: 0;
}
.testimonial-name {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg-primary);
  letter-spacing: 0.05em;
  display: block;
}
.testimonial-handle {
  font-size: var(--text-xs);
  color: var(--fg-muted);
}

/* ─── DOT INDICATORS ─────────────────────────────────── */
.dot-group { display: flex; gap: var(--sp-2); align-items: center; justify-content: center; }
.dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-sm);
  background: var(--border-mid);
  cursor: pointer;
  transition: width 250ms var(--ease-smooth), background 250ms var(--ease-smooth);
}
.dot.active {
  width: 18px;
  background: var(--accent);
}

/* ─── FAQ ITEM ───────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--fg-primary);
  font-family: var(--font-ui);
  font-size: var(--text-md);
  font-weight: 500;
  text-align: left;
  padding: var(--sp-5) 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  transition: color 200ms;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  font-size: var(--text-xl);
  color: var(--accent);
  transition: transform 300ms var(--ease-smooth);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  font-size: var(--text-base);
  color: var(--fg-secondary);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-smooth), padding 300ms var(--ease-smooth);
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: var(--sp-6); }

/* ─── PROBLEM CARD ───────────────────────────────────── */
.problem-card {
  padding: var(--sp-8) var(--sp-6);
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.problem-icon {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-4);
  opacity: 0.7;
}
.problem-card h4 { margin-bottom: var(--sp-3); }

/* ─── PRODUCT CARD (hero stack) ──────────────────────── */
.product-stack-card {
  position: absolute;
  width: 85%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 600ms var(--ease-smooth), opacity 500ms var(--ease-smooth);
}
.product-stack-card .card-inner {
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--sp-6);
}
.card-bg-1 { background: linear-gradient(135deg, #1a3020 0%, #2d5a38 100%); }
.card-bg-2 { background: linear-gradient(135deg, #1c2840 0%, #2a3f60 100%); }
.card-bg-3 { background: linear(135deg, #2a1c1a 0%, #4a2820 100%); background: linear-gradient(135deg, #2a1c1a 0%, #4a2820 100%); }
.card-bg-4 { background: linear-gradient(135deg, #1a2a20 0%, #2a4535 100%); }

/* ─── TAB PANEL ──────────────────────────────────────── */
.tab-bar { display: flex; flex-direction: column; }
.tab-item {
  padding: var(--sp-5) 0;
  cursor: pointer;
  border-top: 1px solid var(--border-subtle);
}
.tab-item:last-child { border-bottom: 1px solid var(--border-subtle); }
.tab-label {
  font-family: var(--font-ui);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--fg-secondary);
  transition: color 250ms var(--ease-smooth);
  margin-bottom: var(--sp-3);
}
.tab-item.active .tab-label { color: var(--fg-primary); font-weight: 600; }
.tab-progress-track { width: 100%; height: 2px; background: var(--border-subtle); border-radius: 1px; overflow: hidden; opacity: 0; transition: opacity 200ms; }
.tab-item.active .tab-progress-track { opacity: 1; }
.tab-progress-bar { height: 100%; width: 0; background: var(--accent); transition: none; }
.tab-progress-bar.running { width: 100%; transition: width 10000ms linear; }

.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content-anim {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 350ms var(--ease-smooth) 240ms, transform 350ms var(--ease-smooth) 240ms;
}
.tab-content-anim.show {
  opacity: 1;
  transform: translateX(0);
}

/* ─── QUEST LOG ROW ──────────────────────────────────── */
.quest-row {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 200ms;
}
.quest-row:hover { background: rgba(242,229,225,0.02); }
.quest-day-badge {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(206,68,39,0.1);
  border: 1px solid rgba(206,68,39,0.2);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.quest-row h4 { font-size: var(--text-lg); margin-bottom: var(--sp-1); }
.quest-row p { font-size: var(--text-sm); color: var(--fg-muted); }

/* ─── FEATURE ROW ────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
  max-width: 720px;
  margin-inline: auto;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row + .feature-row { margin-top: clamp(48px, 6vw, 80px); }
.feature-visual {
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon-lg {
  font-size: 4rem;
  opacity: 0.5;
  font-family: var(--font-display);
  color: var(--accent);
}

/* ─── SCROLLBAR OVERRIDE ─────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: var(--border-mid) transparent; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }

/* ─── BADGE VARIANTS ─────────────────────────────────── */
/* Default (no modifier) */
.badge {
  background: rgba(242,229,225,0.06);
  color: var(--fg-secondary);
  border: 1px solid var(--border-subtle);
}
.badge-success {
  background: rgba(34,90,40,0.2);
  color: #6eb87a;
  border: 1px solid rgba(34,90,40,0.3);
}

/* ─── STAT BLOCK ─────────────────────────────────────── */
.stat-block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-8) var(--sp-6);
  border-left: 1px solid var(--border-subtle);
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg-secondary);
  letter-spacing: 0.05em;
}
.stat-desc {
  font-size: var(--text-xs);
  color: var(--fg-muted);
  max-width: 22ch;
}
.stat-val {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--fg-primary);
}

/* ─── TESTIMONIAL SYSTEM ─────────────────────────────── */
.testimonial-wrapper {
  display: grid;
  grid-template-areas: 'slide';
}
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  color: var(--fg-secondary);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 0;
  transition: background-color 180ms, color 180ms, border-color 180ms, transform 180ms;
}
.testimonial-arrow:hover {
  background: var(--bg-secondary);
  color: var(--accent);
  border-color: var(--accent);
}
.testimonial-arrow:active {
  transform: translateY(-50%) scale(0.94);
}
.testimonial-prev { left: -22px; }
.testimonial-next { right: -22px; }
@media (max-width: 720px) {
  .testimonial-prev { left: 8px; }
  .testimonial-next { right: 8px; }
  .testimonial-arrow { width: 38px; height: 38px; font-size: 1.25rem; }
}
.testimonial-slide {
  grid-area: slide;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-smooth);
}
.testimonial-slide.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  animation: fadeIn 400ms var(--ease-smooth);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--fg-primary);
  line-height: 1.5;
  max-width: none;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.testimonial-name {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--fg-primary);
  display: block;
}
.testimonial-role {
  font-size: var(--text-xs);
  color: var(--fg-muted);
  display: block;
  margin-top: var(--sp-1);
}

/* ─── TIER CARD EXTENSIONS ───────────────────────────── */
.tier-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--fg-primary);
}
.tier-price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--fg-primary);
  line-height: 1;
}
.tier-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--fg-primary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-4);
}
.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.tier-features li {
  font-size: var(--text-base);
  color: var(--fg-secondary);
  padding-left: var(--sp-6);
  position: relative;
}
.tier-features li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.tier-card.tier-featured {
  background: radial-gradient(ellipse at 90% 0%, rgba(206,68,39,0.07) 0%, transparent 60%), var(--bg-card);
  border: 1px solid var(--border-orange);
}
.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ─── CHECK LIST ─────────────────────────────────────── */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.check-list li {
  font-size: var(--text-base);
  color: var(--fg-secondary);
  padding-left: var(--sp-6);
  position: relative;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ─── FORM (page-level overrides) ────────────────────── */
.form { display: flex; flex-direction: column; gap: var(--sp-5); }
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-row { display: flex; gap: var(--sp-3); }
.form-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-secondary);
}
.form-input {
  width: 100%;
  background: rgba(17,25,17,0.7);
  border: 1px solid rgba(242,229,225,0.12);
  border-radius: var(--radius-md);
  color: var(--fg-primary);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  padding: 12px 16px;
  transition: border-color 150ms, box-shadow 150ms;
  outline: none;
}
.form-input::placeholder { color: var(--fg-muted); }
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(206,68,39,0.2);
}
select.form-input { cursor: pointer; }
.form-field { display: flex; flex-direction: column; gap: var(--sp-1); }
.input-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 2px rgba(248,113,113,0.15) !important;
}
.form-error-msg {
  font-family: var(--font-ui);
  font-size: 11px;
  color: #f87171;
  letter-spacing: 0.04em;
  min-height: 1em;
}

/* ─── TABS (page-level) ──────────────────────────────── */
.tabs-wrapper { display: flex; flex-direction: column; }
.tab-nav {
  display: flex;
  gap: var(--sp-2);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  position: relative;
  transition: color 200ms;
  white-space: nowrap;
}
.tab-btn::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 250ms var(--ease-smooth);
}
.tab-btn.active { color: var(--fg-primary); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-btn:hover { color: var(--fg-secondary); }
.tab-progress-track {
  width: 100%;
  height: 2px;
  background: var(--border-subtle);
  overflow: hidden;
}
.tab-panels {
  display: grid;
  grid-template-areas: 'panel';
}
.tab-panel {
  grid-area: panel;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms var(--ease-smooth);
}
.tab-panel.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  animation: fadeIn 350ms var(--ease-smooth);
}

/* ─── QUEST LOG ──────────────────────────────────────── */
.quest-log {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.quest-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.quest-row.complete .quest-icon { opacity: 0.5; }
.quest-row.locked { opacity: 0.45; }
.quest-row.active { background: rgba(206,68,39,0.04); }

/* ─── FAQ LIST ───────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; }
.faq-answer p { max-width: none; }

/* ═══════════════════════════════════════════════════════
   PHASE 2 — COMPONENT EXTENSIONS
   Workshop Format · Feature Steps · Numbered Cards
   Lore Block · Rank Track · Session Card · Live Badge
═══════════════════════════════════════════════════════ */

/* ─── WORKSHOP FORMAT STEPS ──────────────────────────── */
.format-step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-8) var(--sp-6);
  position: relative;
}
.format-step::after {
  content: '';
  position: absolute;
  bottom: 0; left: var(--sp-6);
  right: var(--sp-6);
  height: 1px;
  background: var(--border-subtle);
}
.format-step:last-child::after { display: none; }
.format-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
}
.format-step h4 { margin-bottom: 0; }

/* ─── SESSION CARD ───────────────────────────────────── */
.session-card {
  background: var(--bg-card);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.session-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff7a50, var(--accent));
  background-size: 200% 100%;
  animation: gradientPan 3s linear infinite;
}
.session-date {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
  display: block;
}

/* ─── LIVE BADGE ─────────────────────────────────────── */
.badge-live {
  background: rgba(34, 90, 40, 0.2);
  color: #6eb87a;
  border: 1px solid rgba(34, 90, 40, 0.4);
  position: relative;
  padding-left: var(--sp-5);
}
.badge-live::before {
  content: '';
  position: absolute;
  left: 8px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6eb87a;
  transform: translateY(-50%);
  box-shadow: 0 0 0 0 rgba(110, 184, 122, 0.4);
  animation: ping 1.6s ease-out infinite;
}

/* ─── WHAT-YOU-GET LIST ──────────────────────────────── */
.get-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.get-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  font-size: var(--text-base);
  color: var(--fg-secondary);
}
.get-icon {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--accent);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  margin-top: 2px;
}

/* ─── LORE BLOCK (pull quote / highlight) ────────────── */
.lore-block {
  border-left: 2px solid var(--accent);
  padding: var(--sp-6) var(--sp-8);
  background: rgba(206, 68, 39, 0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.lore-block p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--fg-primary);
  max-width: none;
  line-height: 1.45;
}
.lore-block cite {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── RANK TRACK ─────────────────────────────────────── */
.rank-track {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.rank-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.rank-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  width: 80px;
  flex-shrink: 0;
}
.rank-label.current { color: var(--fg-primary); }
.rank-bar { flex: 1; }

/* ─── GRID DOCTRINE ENHANCED ─────────────────────────── */
.doctrine-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 300ms var(--ease-smooth), box-shadow 300ms var(--ease-smooth);
}
.doctrine-card:hover {
  border-color: var(--border-orange);
  box-shadow: 0 0 24px rgba(206, 68, 39, 0.1);
}

/* ─── FEATURE ROW VISUAL POLISH ──────────────────────── */
.feature-visual.card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ─── PROBLEM CARD BORDER ────────────────────────────── */
.problem-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

/* ─── TIER CARD HOVER ────────────────────────────────── */
.tier-card {
  transition: box-shadow 300ms var(--ease-smooth), border-color 300ms var(--ease-smooth);
}
.tier-card:not(.tier-featured):hover {
  border-color: rgba(242,229,225,0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.tier-card.tier-featured:hover {
  box-shadow: 0 8px 40px rgba(206, 68, 39, 0.2);
}

/* ─── NAV ACTIVE STATE ───────────────────────────────── */
.nav-link.active { color: var(--fg-primary); }
