/* ================================================================
   BabiaByte (babiabyte.com) — Rose Theme Stylesheet
   Brand: #e11d48 (rose), hover #be123c, bg #f8fafc
   Light pink: #fff1f2, border #fecdd3
   Radius: 8px, Font: Inter + system
   ================================================================ */

/* ── Reset & Base ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: #e11d48;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #be123c;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: #1e293b;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

ul, ol {
  padding-left: 1.5rem;
}

/* ── Container ─────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn--primary {
  background: #e11d48;
  color: #fff;
  border-color: #e11d48;
}

.btn--primary:hover {
  background: #be123c;
  border-color: #be123c;
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: #e11d48;
  border-color: #e11d48;
}

.btn--outline:hover {
  background: #e11d48;
  color: #fff;
}

.btn--white {
  background: #fff;
  color: #e11d48;
  border-color: #fff;
}

.btn--white:hover {
  background: #fff1f2;
  border-color: #fff1f2;
  color: #be123c;
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.btn--sm {
  padding: 6px 16px;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* ── Header — Centered Logo with Glassmorphism ─────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(254, 205, 211, 0.4);
  transition: all 0.3s ease;
  height: 64px;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  border-bottom-color: #fecdd3;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

/* Left nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 16px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-link:hover {
  color: #e11d48;
  background: #fff1f2;
}

.nav-link--active {
  color: #e11d48;
  background: #fff1f2;
  font-weight: 600;
}

/* Center logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  text-decoration: none;
  z-index: 2;
}

.site-logo__img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: contain;
}

.site-logo__text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

.site-logo:hover .site-logo__text {
  color: #e11d48;
}

/* Right actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select {
  padding: 5px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.8125rem;
  color: #475569;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.lang-select:hover {
  border-color: #e11d48;
}

.lang-select:focus {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.header-cta {
  display: inline-flex;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.open {
  display: block;
  opacity: 1;
}

/* ── Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 0;
  font-size: 0.8125rem;
  color: #64748b;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #e11d48;
}

.breadcrumb__sep {
  margin: 0 8px;
  color: #cbd5e1;
}

.breadcrumb__current {
  color: #1e293b;
  font-weight: 500;
}

/* ── Featured Section (Homepage Hero) ──────────────────────────── */
.featured {
  padding: 0;
  margin-bottom: 0;
}

.featured__card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 0;
  padding: 80px 0;
  margin: 0 calc(-50vw + 50%);
  width: 100vw;
  position: relative;
  overflow: hidden;
}

.featured__card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.featured__card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.featured__content {
  position: relative;
  z-index: 1;
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 0 20px;
}

.featured__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.featured__title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.featured__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 560px;
}

.featured__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero fallback (when no posts) */
.hero {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  padding: 80px 0;
  text-align: center;
}

.hero__content {
  max-width: 600px;
  margin: 0 auto;
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.hero__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}

.hero__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Category Tabs ─────────────────────────────────────────────── */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 4px;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cat-tab:hover {
  color: #e11d48;
  border-color: #fecdd3;
  background: #fff1f2;
}

.cat-tab--active {
  color: #fff;
  background: #e11d48;
  border-color: #e11d48;
}

.cat-tab--active:hover {
  color: #fff;
  background: #be123c;
  border-color: #be123c;
}

.cat-tab svg {
  flex-shrink: 0;
}

/* ── Section Head ──────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.section-head__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.section-head__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #e11d48;
  white-space: nowrap;
}

.section-head__link:hover {
  color: #be123c;
}

/* ── Home Posts Section ────────────────────────────────────────── */
.home-posts {
  padding: 56px 0;
}

/* ── Post Grid ─────────────────────────────────────────────────── */
.post-grid {
  display: grid;
  gap: 20px;
}

.post-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Post Card — with left color border ────────────────────────── */
.post-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 4px solid #e11d48;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-left-color: #be123c;
}

/* Category-based left border colors */
.post-card[data-cat="账号创建"] { border-left-color: #e11d48; }
.post-card[data-cat="手机应用"] { border-left-color: #0891b2; }
.post-card[data-cat="出入金"] { border-left-color: #059669; }
.post-card[data-cat="交易实战"] { border-left-color: #d97706; }
.post-card[data-cat="合约期权"] { border-left-color: #7c3aed; }
.post-card[data-cat="安全防线"] { border-left-color: #2563eb; }
.post-card[data-cat="被动收入"] { border-left-color: #16a34a; }
.post-card[data-cat="故障排查"] { border-left-color: #dc2626; }

.post-card__tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.post-card__date {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-left: auto;
  white-space: nowrap;
}

.post-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  flex-grow: 1;
}

.post-card__title a {
  color: #1e293b;
  text-decoration: none;
}

.post-card__title a:hover {
  color: #e11d48;
}

.post-card__excerpt {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.post-card__read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Tag Pills ─────────────────────────────────────────────────── */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #e11d48;
  background: #fff1f2;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.tag-pill:hover {
  background: #fecdd3;
  color: #be123c;
}

.tag-pill--sm {
  padding: 2px 8px;
  font-size: 0.6875rem;
}

.tag-pill--light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.tag-pill--light:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ── FAQ Section ───────────────────────────────────────────────── */
.home-faq {
  padding: 56px 0;
  background: #fff;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.faq-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.2s;
}

.faq-card:hover {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #e11d48;
}

.faq-card__icon {
  flex-shrink: 0;
  color: #e11d48;
  opacity: 0.6;
}

.faq-card__q {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.faq-card__arrow {
  flex-shrink: 0;
  color: #cbd5e1;
  transition: all 0.2s;
}

.faq-card:hover .faq-card__arrow {
  color: #e11d48;
  transform: translateX(2px);
}

/* ── Bottom CTA — Rose Gradient ────────────────────────────────── */
.home-cta {
  padding: 56px 0;
}

.home-cta__box {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 50%, #9f1239 100%);
  border-radius: 8px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-cta__box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.home-cta__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.home-cta__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  position: relative;
}

.home-cta__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── Footer — Single row, dark ─────────────────────────────────── */
.site-footer {
  background: #0f172a;
  padding: 32px 0 24px;
  margin-top: auto;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-logo svg {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.footer-logo span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}

.footer-logo:hover span {
  color: #fecdd3;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8125rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
}

.footer-risk {
  padding-top: 0;
}

.footer-risk p {
  font-size: 0.6875rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* ── Mobile Bottom Nav ─────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  height: 56px;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.625rem;
  color: #64748b;
  text-decoration: none;
  padding: 4px 8px;
  transition: color 0.2s;
}

.mobile-nav__item svg {
  width: 20px;
  height: 20px;
}

.mobile-nav__item--active {
  color: #e11d48;
}

.mobile-nav__item:hover {
  color: #e11d48;
}

/* ── Page Wrapper ──────────────────────────────────────────────── */
.page-wrapper {
  padding: 32px 0 64px;
  min-height: 60vh;
}

/* ── Page Header ───────────────────────────────────────────────── */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.page-header__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.page-header__meta {
  font-size: 0.875rem;
  color: #64748b;
}

/* ── Tags Grid ─────────────────────────────────────────────────── */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tag-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-left: 4px solid #e11d48;
  border-radius: 8px;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.25s;
}

.tag-card:hover {
  border-color: #fecdd3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.tag-card__icon {
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #fff1f2;
  border-radius: 8px;
}

.tag-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.tag-card__count {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ── Tag Page Header ───────────────────────────────────────────── */
.tag-page-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.tag-page-header__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tag-page-header__count {
  font-size: 0.875rem;
  color: #64748b;
}

/* ── Post Page — Hero header with pink background ──────────────── */
.post-page {
  padding-bottom: 64px;
}

.post-hero {
  background: linear-gradient(180deg, #fff1f2 0%, #f8fafc 100%);
  padding: 0 0 40px;
}

.post-hero .breadcrumb {
  padding-top: 24px;
}

.post-hero__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.post-hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 800px;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.post-hero__meta svg {
  vertical-align: -2px;
}

.post-hero__sep {
  color: #cbd5e1;
}

.post-hero__desc {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
  max-width: 700px;
  margin: 0;
}

/* ── Post Body ─────────────────────────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
  align-items: start;
}

.post-article {
  min-width: 0;
}

.post-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-sidebar__card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.post-sidebar__cta {
  text-align: center;
}

.post-sidebar__cta strong {
  display: block;
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 6px;
}

.post-sidebar__cta p {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 12px;
}

.post-sidebar__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-link:hover {
  padding-left: 4px;
}

.sidebar-link__title {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.4;
}

.sidebar-link:hover .sidebar-link__title {
  color: #e11d48;
}

.sidebar-link__date {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

.post-sidebar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    position: static;
  }
}

.post-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
}

.post-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #fff1f2;
  color: #1e293b;
}

.post-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.post-body h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-body p {
  margin-bottom: 1.25rem;
}

.post-body a {
  color: #e11d48;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body a:hover {
  color: #be123c;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body li::marker {
  color: #e11d48;
}

/* Blockquote — rose left border */
.post-body blockquote {
  border-left: 4px solid #e11d48;
  background: #fff1f2;
  padding: 16px 20px;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  color: #475569;
  font-style: italic;
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Code */
.post-body code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: #e11d48;
}

.post-body pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Tables */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.post-body th,
.post-body td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.post-body th {
  background: #fff1f2;
  font-weight: 600;
  color: #1e293b;
}

.post-body tr:hover td {
  background: #fafbfc;
}

/* Images */
.post-body img {
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Headings anchors */
.post-body h2 a,
.post-body h3 a,
.post-body h4 a {
  color: inherit;
  text-decoration: none;
}

.post-body h2 a:hover,
.post-body h3 a:hover,
.post-body h4 a:hover {
  color: #e11d48;
}

/* HR */
.post-body hr {
  border: none;
  border-top: 2px solid #f1f5f9;
  margin: 2rem 0;
}

/* ── Post Inline CTA ───────────────────────────────────────────── */
.post-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fff1f2 0%, #fce7f3 100%);
  border: 1px solid #fecdd3;
  border-left: 4px solid #e11d48;
  border-radius: 8px;
  margin: 2.5rem 0;
}

.post-inline-cta__content strong {
  display: block;
  font-size: 1.0625rem;
  color: #1e293b;
  margin-bottom: 4px;
}

.post-inline-cta__content p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.post-inline-cta__buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Related Posts ─────────────────────────────────────────────── */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #f1f5f9;
}

.related-posts__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  display: block;
  padding: 20px;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-left: 4px solid #e11d48;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
}

.related-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.related-card__tags {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.related-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 8px;
}

.related-card:hover .related-card__title {
  color: #e11d48;
}

.related-card__date {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ── 404 Error Page ────────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: 80px 20px;
}

.error-page__code {
  font-size: 8rem;
  font-weight: 900;
  color: #fecdd3;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.error-page__desc {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 28px;
}

/* ── Download Page ─────────────────────────────────────────────── */
.dl-page {
  max-width: 900px;
  margin: 0 auto;
}

.dl-page-header {
  margin-bottom: 32px;
}

.dl-page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.dl-page-header__desc {
  font-size: 1rem;
  color: #64748b;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.dl-box {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-left: 4px solid #999;
  border-radius: 8px;
  padding: 28px;
}

.dl-grid .dl-box:first-child {
  border-left-color: #3DDC84;
}

.dl-grid .dl-box:last-child {
  border-left-color: #a2aaad;
}

.dl-box__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.dl-box__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #f8fafc;
  border-radius: 8px;
  flex-shrink: 0;
}

.dl-box__platform {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
}

.dl-box__sub {
  font-size: 0.75rem;
  color: #64748b;
}

.dl-box__desc {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 16px;
}

.dl-steps {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: #475569;
}

.dl-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #e11d48;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.dl-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
}

.dl-cta__content strong {
  display: block;
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 4px;
}

.dl-cta__content p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

/* ── About Page ────────────────────────────────────────────────── */
.about-page {
  max-width: 800px;
  margin: 0 auto;
}

.about-header {
  margin-bottom: 32px;
}

.about-header h1 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.about-header__desc {
  font-size: 1rem;
  color: #475569;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.about-stat {
  text-align: center;
  padding: 20px;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
}

.about-stat__num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #e11d48;
  margin-bottom: 4px;
}

.about-stat__label {
  font-size: 0.8125rem;
  color: #64748b;
}

.about-page h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 1.5rem;
}

.about-card {
  text-align: center;
  padding: 16px 12px;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
}

.about-card__icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.about-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
}

.about-principles {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.about-principle {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-left: 4px solid #e11d48;
  border-radius: 8px;
}

.about-principle strong {
  display: block;
  margin-bottom: 4px;
  color: #1e293b;
}

.about-principle p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.lang-cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.lang-card {
  display: inline-flex;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.lang-card:hover {
  border-color: #e11d48;
  color: #e11d48;
}

.lang-card.active {
  background: #e11d48;
  color: #fff;
  border-color: #e11d48;
}

.about-notice {
  padding: 20px 24px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  margin-bottom: 24px;
}

.about-notice strong {
  display: block;
  margin-bottom: 8px;
  color: #1e293b;
}

.about-notice p {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 8px;
}

.about-notice p:last-child {
  margin-bottom: 0;
}

.about-cta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ── Disclaimer Page ───────────────────────────────────────────── */
.disclaimer-page {
  max-width: 800px;
  margin: 0 auto;
}

.disclaimer-page h1 {
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.disclaimer-content {
  line-height: 1.8;
}

.disclaimer-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.disclaimer-content p {
  color: #475569;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* ── Empty State ───────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #94a3b8;
  font-size: 1rem;
}

/* ── Responsive — Tablet ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .post-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .tags-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .related-posts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured__title {
    font-size: 1.75rem;
  }

  .featured__card {
    padding: 56px 36px;
  }
}

/* ── Responsive — Mobile ───────────────────────────────────────── */
@media (max-width: 768px) {
  /* Header mobile layout */
  .site-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    z-index: 999;
    gap: 4px;
    overflow-y: auto;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    border-radius: 8px;
  }

  .site-logo {
    position: static;
    transform: none;
  }

  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Show mobile bottom nav */
  .mobile-nav {
    display: flex;
  }

  body {
    padding-bottom: 56px;
  }

  /* Featured section */
  .featured__card {
    padding: 48px 24px;
    margin: 0 -20px;
    border-radius: 0;
  }

  .featured__title {
    font-size: 1.5rem;
  }

  .featured__desc {
    font-size: 0.9375rem;
  }

  .featured__actions {
    flex-direction: column;
  }

  /* Hero */
  .hero {
    padding: 48px 0;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__btns {
    flex-direction: column;
    align-items: center;
  }

  /* Category tabs scroll horizontally */
  .cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    margin-bottom: 20px;
  }

  .cat-tabs::-webkit-scrollbar {
    display: none;
  }

  /* Post grid single col */
  .post-grid--3col {
    grid-template-columns: 1fr;
  }

  /* FAQ single col */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  /* Section head */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Home CTA */
  .home-cta__box {
    padding: 40px 24px;
  }

  .home-cta__title {
    font-size: 1.375rem;
  }

  .home-cta__btns {
    flex-direction: column;
    align-items: center;
  }

  /* Tags grid */
  .tags-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Post page */
  .post-hero__title {
    font-size: 1.5rem;
  }

  /* Related posts */
  .related-posts__grid {
    grid-template-columns: 1fr;
  }

  /* Download page */
  .dl-grid {
    grid-template-columns: 1fr;
  }

  .dl-cta {
    flex-direction: column;
    text-align: center;
  }

  /* Post inline CTA */
  .post-inline-cta {
    flex-direction: column;
    text-align: center;
  }

  .post-inline-cta__buttons {
    flex-direction: column;
    width: 100%;
  }

  .post-inline-cta__buttons .btn {
    width: 100%;
  }

  /* About page */
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ── Responsive — Small Mobile ─────────────────────────────────── */
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .container {
    padding: 0 16px;
  }

  .featured__card {
    padding: 36px 16px;
    margin: 0 -16px;
  }

  .featured__title {
    font-size: 1.25rem;
  }

  .post-card {
    padding: 16px;
  }

  .post-hero__title {
    font-size: 1.25rem;
  }

  .post-body h2 {
    font-size: 1.25rem;
  }

  .post-body h3 {
    font-size: 1.125rem;
  }

  .tags-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .error-page__code {
    font-size: 5rem;
  }

  .dl-box {
    padding: 20px;
  }

  .lang-cards {
    flex-direction: column;
  }

  .lang-card {
    text-align: center;
    justify-content: center;
  }
}

/* ── Print Styles ──────────────────────────────────────────────── */
@media print {
  .site-header,
  .site-footer,
  .mobile-nav,
  .nav-overlay,
  .home-cta,
  .post-inline-cta,
  .related-posts,
  .breadcrumb {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    padding: 0;
  }

  .post-body {
    font-size: 12pt;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ── Utility Classes ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-0 { padding-top: 0; }
.pt-2 { padding-top: 1rem; }
.pt-4 { padding-top: 2rem; }

.pb-0 { padding-bottom: 0; }
.pb-2 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }

.rounded { border-radius: 8px; }
.rounded-sm { border-radius: 4px; }
.rounded-lg { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.shadow { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.shadow-md { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease both;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease both;
}

.animate-slide-in {
  animation: slideInRight 0.4s ease both;
}

/* ── Selection Color ───────────────────────────────────────────── */
::selection {
  background: rgba(225, 29, 72, 0.15);
  color: #1e293b;
}

::-moz-selection {
  background: rgba(225, 29, 72, 0.15);
  color: #1e293b;
}

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ── Focus Visible ─────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #e11d48;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid #e11d48;
  outline-offset: 2px;
}

/* ── Misc Components ───────────────────────────────────────────── */

/* Tooltip-like pattern */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 8px;
  line-height: 1.4;
}

.badge--rose {
  background: #fff1f2;
  color: #e11d48;
}

.badge--green {
  background: #f0fdf4;
  color: #16a34a;
}

.badge--blue {
  background: #eff6ff;
  color: #2563eb;
}

.badge--amber {
  background: #fffbeb;
  color: #d97706;
}

.badge--purple {
  background: #faf5ff;
  color: #7c3aed;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid #f1f5f9;
  margin: 2rem 0;
}

.divider--thick {
  border-top-width: 2px;
}

.divider--rose {
  border-top-color: #fecdd3;
}

/* Card base */
.card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.25s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.card--bordered-left {
  border-left: 4px solid #e11d48;
}

/* Skeleton loader placeholder */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton--text {
  height: 1rem;
  width: 80%;
  margin-bottom: 0.75rem;
}

.skeleton--title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton--card {
  height: 200px;
  width: 100%;
}

/* Notice / Alert boxes */
.notice {
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notice--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.notice--warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.notice--danger {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.notice--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* List with icons */
.icon-list {
  list-style: none;
  padding: 0;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
}

.icon-list li:last-child {
  border-bottom: none;
}

.icon-list__icon {
  flex-shrink: 0;
  color: #e11d48;
  margin-top: 2px;
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
}

.step-dot--active {
  background: #e11d48;
  color: #fff;
}

.step-dot--done {
  background: #16a34a;
  color: #fff;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
}

.step-line--active {
  background: #e11d48;
}

/* Number counter */
.counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e11d48;
  color: #fff;
  border-radius: 12px;
}

/* Chip / tag-like element */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  cursor: default;
}

.chip--active {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.chip__close {
  display: inline-flex;
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.2s;
}

.chip__close:hover {
  color: #e11d48;
}

/* Progress bar */
.progress {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #e11d48, #f43f5e);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Avatar */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: #fff1f2;
  color: #e11d48;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.avatar--md {
  width: 40px;
  height: 40px;
  font-size: 0.875rem;
}

.avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 1.125rem;
}

/* Input */
.form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: #1e293b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

.form-input:hover {
  border-color: #cbd5e1;
}

.form-input:focus {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
}

/* Textarea */
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: #1e293b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}

.form-textarea:focus {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

/* Label */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

/* Form group */
.form-group {
  margin-bottom: 20px;
}

/* ── Back to top button ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #e11d48;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.3);
  transition: all 0.3s;
}

.back-to-top:hover {
  background: #be123c;
  transform: translateY(-2px);
}

.back-to-top.visible {
  display: flex;
}

/* ── Table of Contents ─────────────────────────────────────────── */
.toc {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-left: 4px solid #e11d48;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 2rem;
}

.toc__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.toc__list {
  list-style: none;
  padding: 0;
}

.toc__list li {
  margin-bottom: 6px;
}

.toc__list a {
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  padding: 2px 0;
}

.toc__list a:hover {
  color: #e11d48;
}

.toc__list--nested {
  padding-left: 16px;
  margin-top: 4px;
}

/* ── Accordion / Collapsible ───────────────────────────────────── */
.accordion {
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
}

.accordion__header:hover {
  background: #fff1f2;
}

.accordion__icon {
  width: 20px;
  height: 20px;
  color: #94a3b8;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.accordion.open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__body {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
}

.accordion.open .accordion__body {
  padding: 0 18px 18px;
  max-height: 1000px;
}

.accordion__body p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.7;
}

/* ── Testimonial / Quote card ──────────────────────────────────── */
.quote-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 24px;
  position: relative;
}

.quote-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 3rem;
  color: #fecdd3;
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-card__text {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
  padding-left: 24px;
  margin-bottom: 12px;
}

.quote-card__author {
  font-size: 0.8125rem;
  color: #94a3b8;
  padding-left: 24px;
}

/* ── Stat card ─────────────────────────────────────────────────── */
.stat-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.stat-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: #e11d48;
  margin-bottom: 4px;
}

.stat-card__label {
  font-size: 0.8125rem;
  color: #64748b;
}

/* ── Timeline ──────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fecdd3;
}

.timeline__item {
  position: relative;
  padding-bottom: 24px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: #e11d48;
  border-radius: 50%;
  border: 2px solid #fff;
}

.timeline__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.timeline__desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.6;
}

.timeline__date {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* ── Comparison table ──────────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

.comparison-table th {
  background: #fff1f2;
  color: #1e293b;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.875rem;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f8fafc;
  font-size: 0.875rem;
  color: #475569;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: #fafbfc;
}

/* ── Feature list ──────────────────────────────────────────────── */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
}

.feature-list__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff1f2;
  border-radius: 8px;
  color: #e11d48;
  flex-shrink: 0;
}

.feature-list__content h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.feature-list__content p {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
}

/* ── Pricing / Plan card ───────────────────────────────────────── */
.plan-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  transition: all 0.25s;
}

.plan-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.plan-card--featured {
  border-color: #e11d48;
  position: relative;
}

.plan-card--featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #e11d48;
  color: #fff;
  padding: 2px 16px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.plan-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-card__price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #e11d48;
  margin-bottom: 4px;
}

.plan-card__period {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.plan-card__features {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.plan-card__features li {
  padding: 6px 0;
  font-size: 0.875rem;
  color: #475569;
  border-bottom: 1px solid #f8fafc;
}

/* ── Floating action button ────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: #e11d48;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.3);
  transition: all 0.3s;
}

.fab:hover {
  background: #be123c;
  transform: scale(1.08);
}

/* ── Dropdown ──────────────────────────────────────────────────── */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  z-index: 50;
  display: none;
}

.dropdown.open .dropdown__menu {
  display: block;
}

.dropdown__item {
  display: block;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s;
}

.dropdown__item:hover {
  background: #fff1f2;
  color: #e11d48;
}

/* ── Tab panel ─────────────────────────────────────────────────── */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── Modal / Overlay ───────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 8px;
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.modal__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal__close:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.modal__body {
  padding: 24px;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
}

/* ── Breadcrumb enhanced ───────────────────────────────────────── */
.breadcrumb--card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 20px;
}

/* ── Dark mode support (media query only) ──────────────────────── */
@media (prefers-color-scheme: dark) {
  /* Placeholder — dark mode can be enabled later */
}
