/* ═══════════════════════════════════════════════════════════
   KOSTTILLSKOTTEXPERTEN — Design A (Moderniserad WP-stil)
   ═══════════════════════════════════════════════════════════ */

/* ───── Design tokens ───── */
:root {
  --bg:           #ffffff;
  --bg-soft:      #f8fafc;
  --bg-mid:       #f1f5f9;
  --text:         #0f172a;
  --text-muted:   #475569;
  --text-light:   #64748b;
  --border:       #e2e8f0;
  --border-dark:  #cbd5e1;

  --brand:        #1e40af;
  --brand-dark:   #1e3a8a;
  --brand-light:  #3b82f6;
  --brand-soft:   #dbeafe;

  --accent:       #0891b2;
  --accent-soft:  #cffafe;

  --success:      #16a34a;
  --warning:      #f59e0b;
  --danger:       #dc2626;
  --gold:         #eab308;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow:    0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.06);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --container: 1180px;
  --container-narrow: 800px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ───── Reset ───── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.4em; }

/* ───── Typography ───── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { margin: 0 0 1em; }
small { color: var(--text-light); font-size: 0.875rem; }

/* ───── Container / layout ───── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 60px 0; }
.section-soft { background: var(--bg-soft); }
.section-mid  { background: var(--bg-mid); }

/* ───── Top bar / disclosure ───── */
.topbar {
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 6px 0;
  text-align: center;
}
.topbar a { color: var(--text-muted); text-decoration: underline; }

/* ───── Header ───── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; color: var(--brand); }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.logo-img {
  height: 40px;
  width: auto;
  max-width: 240px;
  display: block;
}

/* Bolagslogor */
.company-logo {
  display: block;
  max-width: 140px;
  max-height: 56px;
  object-fit: contain;
  margin-bottom: 14px;
}
.company-logo-sm {
  display: block;
  max-width: 100px;
  max-height: 40px;
  object-fit: contain;
  margin-bottom: 10px;
}
.company-logo-lg {
  display: block;
  max-width: 200px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 16px;
}

/* ───── Nav ───── */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  font-size: 1rem;
}
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.94rem;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
}

/* ───── Hero ───── */
.hero {
  position: relative;
  padding: 80px 0 70px;
  background: linear-gradient(135deg, var(--brand-soft) 0%, #f0f9ff 50%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  margin-bottom: 0.4em;
  color: var(--text);
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 1.8em;
  max-width: 640px;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.08s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow); }
.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border-dark);
}
.btn-secondary:hover { background: var(--bg-soft); color: var(--text); }
.btn-ghost {
  background: transparent;
  color: var(--brand);
  padding: 10px 14px;
}
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-large { padding: 14px 28px; font-size: 1rem; }
.btn-small { padding: 8px 14px; font-size: 0.85rem; }

/* ───── Section headings ───── */
.section-head { margin-bottom: 32px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }
.section-head .eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 6px;
  display: block;
}

/* ───── Top 3 cards (frontpage) ───── */
.top3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) { .top3-grid { grid-template-columns: 1fr; } }

.company-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.company-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-light);
}
.company-card.rank-1 { border-top: 4px solid var(--gold); }
.company-card.rank-2 { border-top: 4px solid #94a3b8; }
.company-card.rank-3 { border-top: 4px solid #d97706; }

.rank-badge {
  position: absolute;
  top: -14px;
  left: 22px;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rank-badge.gold { background: var(--gold); color: #1c1917; }
.rank-badge.silver { background: #94a3b8; }
.rank-badge.bronze { background: #d97706; }

.company-card h3 { font-size: 1.3rem; margin: 6px 0 2px; }
.company-card .tagline { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; }

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.stars {
  letter-spacing: 1px;
  color: var(--gold);
  font-size: 1rem;
}
.rating .rating-num { font-weight: 700; color: var(--text); font-size: 1rem; }

.card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin: 12px 0 18px;
  font-size: 0.85rem;
}
.card-stats div { color: var(--text-muted); }
.card-stats strong { color: var(--text); display: block; font-weight: 600; }

.card-footer {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ───── All companies grid (smaller cards) ───── */
.company-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .company-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .company-grid { grid-template-columns: 1fr; } }

.company-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
}
.company-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
  color: var(--text);
  text-decoration: none;
}
.company-tile h4 { margin: 0 0 4px; font-size: 1.05rem; }
.company-tile .tile-rating { font-size: 0.85rem; color: var(--text-muted); }
.company-tile .tile-rating .stars { font-size: 0.85rem; margin-right: 4px; }

/* ───── Category grid ───── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .category-grid { grid-template-columns: 1fr; } }

.category-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  text-align: center;
  text-decoration: none;
  color: var(--text);
}
.category-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
  color: var(--text);
  text-decoration: none;
}
.category-tile .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 700;
}
.category-tile h4 { margin: 4px 0 2px; font-size: 1rem; }
.category-tile p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* ───── Article cards ───── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 920px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
  color: var(--text);
  text-decoration: none;
}
.article-card .meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 10px;
}
.article-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.article-card p { font-size: 0.94rem; color: var(--text-muted); margin: 0 0 12px; }
.article-card .read-more {
  margin-top: auto;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ───── Trust section ───── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 920px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .trust-grid { grid-template-columns: 1fr; } }

.trust-tile {
  text-align: center;
  padding: 10px;
}
.trust-tile .trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.5rem;
}
.trust-tile h4 { font-size: 1rem; margin: 0 0 6px; }
.trust-tile p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ───── Review page ───── */
.review-hero {
  background: linear-gradient(135deg, var(--brand-soft) 0%, #f0f9ff 100%);
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--border);
}
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; opacity: 0.5; }

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 50px 0;
}
@media (max-width: 900px) {
  .review-layout { grid-template-columns: 1fr; }
}

.review-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}
.review-content h2 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  padding-top: 0.4em;
  border-top: 1px solid var(--border);
  font-size: 1.6rem;
}
.review-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.review-content p { margin: 0 0 1.1em; color: var(--text); }

.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 30px 0;
}
@media (max-width: 600px) { .proscons { grid-template-columns: 1fr; } }

.pros-box, .cons-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.pros-box { border-left: 4px solid var(--success); }
.cons-box { border-left: 4px solid var(--danger); }
.pros-box h3, .cons-box h3 { margin: 0 0 12px; font-size: 1.05rem; }
.pros-box ul, .cons-box ul { margin: 0; padding-left: 20px; }
.pros-box li, .cons-box li { margin-bottom: 6px; font-size: 0.95rem; }
.pros-box li::marker { color: var(--success); }
.cons-box li::marker { color: var(--danger); }

/* ───── Review sidebar ───── */
.review-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.review-card .big-rating {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin: 4px 0 4px;
}
.review-card .stars-big { font-size: 1.3rem; margin-bottom: 4px; }
.review-card .of-five { color: var(--text-light); font-size: 0.85rem; margin-bottom: 16px; }
.review-card .stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.review-card .stat:last-of-type { border-bottom: none; margin-bottom: 16px; }
.review-card .stat span { color: var(--text-muted); }
.review-card .stat strong { color: var(--text); }
.review-card .cta-btn { width: 100%; margin-top: 8px; }

/* ───── Article page ───── */
.article-layout {
  padding: 50px 0;
}
.article-header { margin-bottom: 30px; }
.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.article-meta .dot { margin: 0 8px; opacity: 0.5; }
.article-body {
  font-size: 1.08rem;
  line-height: 1.78;
}
.article-body h2 {
  margin-top: 1.8em;
  font-size: 1.5rem;
}
.article-body p { margin-bottom: 1.1em; }
.related-cta {
  margin: 40px 0;
  padding: 26px;
  background: var(--brand-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-light);
}
.related-cta h3 { margin: 0 0 8px; color: var(--brand-dark); }
.related-cta p { margin: 0 0 14px; color: var(--text); }

/* ───── Category page ───── */
.category-intro { padding: 50px 0 30px; }
.guide-section { padding: 30px 0; }
.guide-section h2 { margin-bottom: 14px; }
.guide-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.guide-block h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--brand-dark); }
.guide-block p  { margin: 0; }

.faq-section { padding: 30px 0; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { color: var(--brand); }
.faq-item p { margin: 12px 0 0; color: var(--text-muted); }

/* ───── Quiz ───── */
.quiz-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px;
}
.quiz-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.quiz-progress {
  height: 6px;
  background: var(--bg-mid);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  width: 0%;
  transition: width 0.3s;
}
.quiz-step h2 { font-size: 1.5rem; margin-bottom: 24px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  text-align: left;
  width: 100%;
  transition: border-color 0.15s, background 0.15s, transform 0.05s;
}
.quiz-option:hover { border-color: var(--brand-light); background: var(--brand-soft); }
.quiz-option.selected { border-color: var(--brand); background: var(--brand-soft); }
.quiz-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}
.quiz-result-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.quiz-result-card .result-rank {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
  flex-shrink: 0;
}
.quiz-result-card .result-body { flex: 1; }
.quiz-result-card h4 { margin: 0 0 4px; }
.quiz-result-card p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

/* ───── Static / legal pages ───── */
.legal-content {
  padding: 50px 0;
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h1 { margin-bottom: 8px; }
.legal-content .updated { color: var(--text-light); font-size: 0.88rem; margin-bottom: 30px; }
.legal-content h2 { margin-top: 1.8em; font-size: 1.3rem; }
.legal-content p, .legal-content li { font-size: 1rem; line-height: 1.7; }

/* ───── Footer ───── */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 50px 0 30px;
  margin-top: 60px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a {
  color: #cbd5e1;
  font-size: 0.92rem;
  text-decoration: none;
}
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-grid p { font-size: 0.92rem; color: #94a3b8; margin: 0 0 12px; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ───── Utilities ───── */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}

/* ───── Pretty-link redirect page ───── */
.redirect-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft);
}
.redirect-box {
  text-align: center;
  padding: 30px;
}
.redirect-box .spinner {
  display: inline-block;
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin-bottom: 14px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.redirect-box p { color: var(--text-muted); margin: 0; }
