/* ============================================
   ChannelROIHub.com — Shared Styles
   Clean, professional, data-forward design
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #0f4c81;
  --primary-dark: #0a3660;
  --primary-light: #1a6bb5;
  --accent: #00b4d8;
  --accent-dark: #0096b7;
  --accent-light: #48cae4;
  --success: #2dc653;
  --warning: #f77f00;
  --danger: #d62828;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0b1a2e;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --bg-alt: #f1f5f9;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --header-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--bg-white);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 3rem 0; }
}

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header__logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__logo svg {
  width: 32px;
  height: 32px;
}

.nav { display: flex; align-items: center; gap: 2rem; }

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
}

.nav a:hover, .nav a.active { color: var(--primary); }

.nav__cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav__cta:hover { background: var(--primary-dark) !important; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle svg { width: 24px; height: 24px; stroke: var(--text); }

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav__toggle { display: block; }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero * { position: relative; z-index: 1; }

.hero h1 {
  color: white;
  font-size: 3.25rem;
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero--sm { padding: 4rem 0; }
.hero--sm h1 { font-size: 2.5rem; }

@media (max-width: 768px) {
  .hero { padding: 4rem 0; }
  .hero h1 { font-size: 2.25rem; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: var(--font);
}

.btn--primary {
  background: var(--accent);
  color: white;
}
.btn--primary:hover { background: var(--accent-dark); color: white; }

.btn--secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--border);
}
.btn--secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn--outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn--outline:hover { border-color: white; color: white; background: rgba(255,255,255,0.1); }

.btn--large {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn--block { width: 100%; justify-content: center; }

.btn--success { background: var(--success); color: white; }
.btn--success:hover { background: #25a745; color: white; }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card__icon--blue { background: #dbeafe; color: var(--primary); }
.card__icon--teal { background: #ccfbf1; color: #0d9488; }
.card__icon--purple { background: #ede9fe; color: #7c3aed; }
.card__icon--orange { background: #ffedd5; color: #ea580c; }
.card__icon--green { background: #dcfce7; color: #16a34a; }
.card__icon--pink { background: #fce7f3; color: #db2777; }

.card__title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card__desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card__link {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card__link::after { content: '\2192'; transition: transform 0.2s; }
.card:hover .card__link::after { transform: translateX(4px); }

/* --- Tool Page Layout --- */
.tool-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.tool-header {
  margin-bottom: 2.5rem;
}

.tool-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.tool-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* --- Calculator Styles --- */
.calc {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.calc__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .calc__grid { grid-template-columns: 1fr; }
}

.calc__group { display: flex; flex-direction: column; gap: 0.4rem; }

.calc__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calc__input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.2s;
  background: var(--bg);
}

.calc__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.1);
}

.calc__input::placeholder { color: var(--text-muted); }

.calc__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.calc__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* --- Results Panel --- */
.results {
  display: none;
  margin-top: 2rem;
  animation: fadeIn 0.4s ease;
}

.results.visible { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.result-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.result-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.result-card__value--success { color: var(--success); }
.result-card__value--warning { color: var(--warning); }
.result-card__value--danger { color: var(--danger); }

.result-card__label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}

.result-card__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Benchmark Bar --- */
.benchmark {
  margin: 1.5rem 0;
}

.benchmark__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.benchmark__bar {
  height: 12px;
  background: var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.benchmark__fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.8s ease;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.benchmark__marker {
  position: absolute;
  top: -6px;
  width: 3px;
  height: 24px;
  background: var(--danger);
  border-radius: 2px;
  transition: left 0.8s ease;
}

/* --- Quiz/Assessment Styles --- */
.quiz {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.quiz__progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 2rem;
}

.quiz__progress-step {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.3s;
}

.quiz__progress-step.active { background: var(--accent); }
.quiz__progress-step.done { background: var(--primary); }

.quiz__question {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.quiz__context {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.quiz__options { display: flex; flex-direction: column; gap: 0.75rem; }

.quiz__option {
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quiz__option:hover { border-color: var(--accent-light); background: #f0fdfa; }
.quiz__option.selected { border-color: var(--accent); background: #f0fdfa; }

.quiz__option-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz__option.selected .quiz__option-dot {
  border-color: var(--accent);
  background: var(--accent);
}

.quiz__option.selected .quiz__option-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.quiz__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th {
  background: var(--bg-dark);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: var(--header-height);
  z-index: 10;
}

.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table tr:hover td { background: #f8fafc; }

.comparison-table .check { color: var(--success); font-weight: bold; }
.comparison-table .cross { color: var(--text-muted); }
.comparison-table .partial { color: var(--warning); }

/* --- Email Capture Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.visible { display: flex; }

.modal {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal__close:hover { color: var(--text); }

.modal h3 { margin-bottom: 0.5rem; }

.modal p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; }

.modal__form { display: flex; flex-direction: column; gap: 1rem; }

.modal__input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
}

.modal__input:focus {
  outline: none;
  border-color: var(--accent);
}

.modal__select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  background: white;
  cursor: pointer;
}

.modal__disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 2rem; }

/* --- Email Inline Capture --- */
.email-capture {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.email-capture input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
}

.email-capture input:focus { outline: 2px solid var(--accent); }

@media (max-width: 500px) {
  .email-capture { flex-direction: column; }
}

/* --- Stats Bar --- */
.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.stat { text-align: center; }

.stat__value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

.stat__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Badge/Tag --- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge--blue { background: #dbeafe; color: var(--primary); }
.badge--teal { background: #ccfbf1; color: #0d9488; }
.badge--purple { background: #ede9fe; color: #7c3aed; }
.badge--orange { background: #ffedd5; color: #ea580c; }

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
  font-size: 0.85rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__brand {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer__links { display: flex; gap: 3rem; flex-wrap: wrap; }

.footer__col h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.footer__col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}

/* --- Template/Download Page --- */
.template-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

.template-preview__img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.template-features {
  list-style: none;
  padding: 0;
}

.template-features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.template-features li::before {
  content: '\2713';
  color: var(--success);
  font-weight: bold;
  flex-shrink: 0;
}

/* --- Radar Chart (CSS only) --- */
.radar-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

/* --- Score Display --- */
.score-display {
  text-align: center;
  padding: 2rem;
}

.score-display__circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 6px solid var(--accent);
  background: linear-gradient(135deg, #f0fdfa, #e0f7fa);
}

.score-display__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.score-display__max {
  font-size: 0.9rem;
  color: var(--text-light);
}

.score-display__level {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* --- Dimension Scores --- */
.dimension {
  margin-bottom: 1.5rem;
}

.dimension__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.dimension__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.dimension__score {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.dimension__bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.dimension__fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

.dimension__fill--high { background: var(--success); }
.dimension__fill--mid { background: var(--warning); }
.dimension__fill--low { background: var(--danger); }

/* --- How It Works --- */
.steps {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.step {
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.step__title { font-weight: 600; margin-bottom: 0.35rem; }
.step__desc { color: var(--text-light); font-size: 0.9rem; }

/* --- Toast notification --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--success);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  animation: slideUp 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* --- Tool Card (template/download pages) --- */
.tool-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

/* --- Extra button size --- */
.btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* --- Steps grid (template pages) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* --- Stats grid (template pages) --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* --- Preview table (template preview tabs) --- */
.preview-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.preview-table th {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.preview-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.preview-table tr:nth-child(even) td { background: var(--bg); }

/* --- Dashboard preview --- */
.dash-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.dash-preview-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.dash-preview-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.dash-preview-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
