/* ============================================
   WikiHowCrypto.vip - Main Stylesheet
   Clean White Design with Red Accents
   ============================================ */

/* CSS Variables */
:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f3f4;
  --bg-card: #ffffff;

  --accent-red: #e53935;
  --accent-red-dark: #c62828;
  --accent-red-light: #ff6659;
  --accent-blue: #1a237e;
  --accent-blue-light: #3949ab;

  --success: #43a047;
  --warning: #ff9800;
  --danger: #e53935;
  --info: #2196f3;

  --text-primary: #212121;
  --text-secondary: #616161;
  --text-muted: #9e9e9e;
  --text-white: #ffffff;

  --border-color: #e0e0e0;
  --border-light: #f0f0f0;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.08);

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

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

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

a {
  color: var(--accent-red);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-red-dark);
}

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

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

/* ============================================
   Header
   ============================================ */
.header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
}

.logo-accent {
  color: var(--accent-red);
}

/* Navigation */
.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-red);
  background: var(--bg-secondary);
}

.nav-link i {
  font-size: 1.2rem;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.dropdown-toggle .ph-caret-down {
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.nav-dropdown:hover .dropdown-toggle .ph-caret-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-normal);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
}

.dropdown-menu a:hover {
  background: var(--bg-secondary);
  color: var(--accent-red);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
}

.mobile-menu a:hover {
  background: var(--bg-secondary);
  color: var(--accent-red);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229,57,53,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge i {
  color: var(--accent-red);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-title .highlight {
  color: var(--accent-red);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(229,57,53,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229,57,53,0.4);
  color: white;
}

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

.btn-secondary:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* Ripple Effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================
   Cards Grid
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-red);
  opacity: 0;
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(229,57,53,0.1) 0%, rgba(229,57,53,0.05) 100%);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent-red);
  margin-bottom: 1.25rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Difficulty Badges */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.difficulty-easy {
  background: rgba(67,160,71,0.1);
  color: var(--success);
}

.difficulty-medium {
  background: rgba(255,152,0,0.1);
  color: var(--warning);
}

.difficulty-hard {
  background: rgba(229,57,53,0.1);
  color: var(--danger);
}

/* ============================================
   Article / Guide Page
   ============================================ */
.article-page {
  padding: 2rem 0 4rem;
}

.article-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.article-main {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
}

/* Progress Bar */
.progress-container {
  background: var(--bg-secondary);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.progress-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-red-light) 100%);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.progress-text strong {
  color: var(--accent-red);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb span {
  color: var(--text-muted);
}

.breadcrumb span:last-child {
  color: var(--text-secondary);
}

/* Article Header */
.article-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.article-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============================================
   Step Cards (Main Feature!)
   ============================================ */
.steps-container {
  counter-reset: step-counter;
  margin-top: 0;
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  gap: 1.25rem;
  counter-increment: step-counter;
}

.step-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-red);
}

.step-card.completed {
  background: rgba(67,160,71,0.04);
  border-color: var(--success);
}

/* Checkbox on the left */
.step-checkbox {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  position: relative;
  margin-top: 0.25rem;
}

.step-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.step-checkbox label {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--bg-primary);
}

.step-checkbox:hover label {
  border-color: var(--accent-red);
}

.step-checkbox label .checkmark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  transition: var(--transition-fast);
}

.step-checkbox input:checked + label {
  background: var(--success);
  border-color: var(--success);
}

.step-checkbox input:checked + label .checkmark {
  background: white;
}

.step-card.completed .step-checkbox label {
  background: var(--success);
  border-color: var(--success);
}

/* Step content */
.step-content {
  flex: 1;
  min-width: 0;
}

.step-content .step-number {
  display: inline-block;
  background: var(--accent-red);
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-card.completed .step-content .step-number {
  background: var(--success);
}

.step-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.step-content > p:first-of-type {
  margin-top: 0;
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 1rem 0;
}

.step-content p:last-child {
  margin-bottom: 0;
}

.step-content ul,
.step-content ol {
  margin: 0 0 1.25rem 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.step-content ul:last-child,
.step-content ol:last-child {
  margin-bottom: 0;
}

.step-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.step-content li:last-child {
  margin-bottom: 0;
}

.step-content li strong {
  color: var(--text-primary);
}

.step-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
}

.step-content h4:first-child {
  margin-top: 0;
}

/* Tables inside step content */
.step-content .comparison-table {
  margin: 1.25rem 0;
}

.step-content .comparison-table:last-child {
  margin-bottom: 0;
}

/* Intro text */
.intro-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
}

/* Info box before steps */
.article-main > .info-box {
  margin: 0 0 2rem 0;
}

/* ============================================
   Info Boxes
   ============================================ */
.info-box {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--border-radius);
  margin: 0;
}

.info-box.tip {
  background: rgba(33,150,243,0.08);
  border-left: 4px solid var(--info);
}

.info-box.warning {
  background: rgba(255,152,0,0.08);
  border-left: 4px solid var(--warning);
}

.info-box.danger {
  background: rgba(229,57,53,0.08);
  border-left: 4px solid var(--danger);
}

.info-box.success {
  background: rgba(67,160,71,0.08);
  border-left: 4px solid var(--success);
}

.info-box.info {
  background: rgba(33,150,243,0.08);
  border-left: 4px solid var(--info);
}

.info-box.info .info-box-icon {
  color: var(--info);
}

.info-box-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-box.tip .info-box-icon { color: var(--info); }
.info-box.warning .info-box-icon { color: var(--warning); }
.info-box.danger .info-box-icon { color: var(--danger); }
.info-box.success .info-box-icon { color: var(--success); }

.info-box-content strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.info-box-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Info box inside step content */
.step-content .info-box {
  margin: 1.5rem 0;
}

.step-content .info-box:last-child {
  margin-bottom: 0;
}

.step-content .info-box:first-child {
  margin-top: 0;
}

/* ============================================
   Comparison Tables
   ============================================ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.comparison-table thead {
  background: var(--bg-secondary);
}

.comparison-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
}

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

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--bg-secondary);
}

.comparison-table td strong {
  color: var(--text-primary);
}

/* ============================================
   Article Layout with Sidebar
   ============================================ */
.section-page .container {
  display: block;
}

.section-page .article-main {
  max-width: 800px;
  margin: 0 auto;
}

/* Section listing pages (with cards-grid) - full width */
.section-page .section-header {
  max-width: 100%;
}

.section-page .cards-grid {
  max-width: 100%;
}

/* Article Sidebar */
.article-sidebar {
  display: none; /* Hidden by default, shown on large screens */
}

@media (min-width: 1100px) {
  /* Only apply sidebar layout for article pages, NOT listing pages */
  .section-page .container:has(.article-sidebar) {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
  }

  .section-page .article-main {
    max-width: none;
  }

  .article-sidebar {
    display: block;
    position: sticky;
    top: 90px;
  }

  /* Listing pages stay block layout */
  .section-page .container:has(.section-header):has(.cards-grid) {
    display: block;
  }

  .sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  .sidebar-section h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .sidebar-section h4 i {
    color: var(--accent-red);
  }

  .toc-list,
  .related-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .toc-list li,
  .related-list li {
    margin-bottom: 0.25rem;
  }

  .toc-list a,
  .related-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
  }

  .toc-list a:hover,
  .related-list a:hover {
    background: var(--bg-secondary);
    color: var(--accent-red);
  }
}

/* ============================================
   Article Navigation
   ============================================ */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.article-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-fast);
  flex: 1;
  max-width: 45%;
}

.article-nav a:hover {
  background: var(--accent-red);
  color: white;
}

.article-nav .nav-prev {
  justify-content: flex-start;
}

.article-nav .nav-next {
  justify-content: flex-end;
  margin-left: auto;
}

.article-nav a i {
  font-size: 1.1rem;
}

/* ============================================
   Completion Message
   ============================================ */
.completion-message {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(67,160,71,0.1) 0%, rgba(67,160,71,0.05) 100%);
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--success);
  margin: 2rem 0;
}

.completion-message.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.completion-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.completion-icon i {
  font-size: 2.5rem;
  color: white;
}

.completion-message h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 0.75rem;
}

.completion-message p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

.completion-message .btn {
  margin-top: 0.5rem;
}

/* ============================================
   Content Section (for non-step pages)
   ============================================ */
.content-section {
  color: var(--text-secondary);
  line-height: 1.7;
}

.content-section h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-secondary);
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.content-section p {
  margin: 0 0 1rem 0;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section ul,
.content-section ol {
  margin: 0 0 1.25rem 0;
  padding-left: 1.5rem;
}

.content-section ul:last-child,
.content-section ol:last-child {
  margin-bottom: 0;
}

.content-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.content-section li:last-child {
  margin-bottom: 0;
}

.content-section li strong {
  color: var(--text-primary);
}

.content-section a {
  color: var(--accent-red);
  text-decoration: underline;
  text-decoration-color: rgba(229,57,53,0.3);
  text-underline-offset: 2px;
}

.content-section a:hover {
  text-decoration-color: var(--accent-red);
}

/* Info boxes in content section */
.content-section .info-box {
  margin: 1.5rem 0;
}

.content-section .info-box:last-child {
  margin-bottom: 0;
}

/* Tables in content section */
.content-section .comparison-table {
  margin: 1.5rem 0;
}

/* ============================================
   Glossary Terms
   ============================================ */
.glossary-term {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition-fast);
}

.glossary-term:hover {
  border-color: var(--accent-red);
  box-shadow: var(--shadow-sm);
}

.glossary-term:last-child {
  margin-bottom: 0;
}

.glossary-term h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-red);
  margin: 0 0 0.5rem 0;
}

.glossary-term p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.sidebar-links a:hover {
  background: var(--bg-secondary);
  color: var(--accent-red);
}

.sidebar-links a i {
  color: var(--accent-red);
}

/* ============================================
   Section Pages
   ============================================ */
.section-page {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-title i {
  color: var(--accent-red);
  margin-right: 0.5rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--text-primary);
  color: var(--text-white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand .logo-icon {
  background: var(--accent-red);
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: white;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding: 0.4rem 0;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-red);
  padding-left: 0.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-disclaimer {
  background: rgba(255,255,255,0.05);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
}

.footer-disclaimer p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-meta p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--accent-red);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--bg-card);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-normal);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top i {
  color: var(--accent-red);
  font-size: 1.25rem;
  z-index: 1;
}

.progress-ring {
  position: absolute;
  transform: rotate(-90deg);
}

.progress-ring-circle {
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  transition: stroke-dashoffset 0.1s ease;
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast i {
  color: var(--success);
  font-size: 1.25rem;
}

/* ============================================
   Confetti Canvas
   ============================================ */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

/* ============================================
   Copy Button
   ============================================ */
.copy-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.copy-btn:hover {
  background: var(--accent-red);
  color: white;
  border-color: var(--accent-red);
}

/* Code blocks */
.code-block {
  background: var(--text-primary);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin: 1rem 0;
  position: relative;
  overflow-x: auto;
}

.code-block code {
  color: #f8f8f2;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
}

.code-block .copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease infinite;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .article-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

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

@media (max-width: 768px) {
  .nav-main {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .article-main {
    padding: 1.5rem;
  }

  .article-title {
    font-size: 1.75rem;
  }

  /* Step card mobile */
  .step-card {
    flex-direction: column;
    gap: 0.75rem;
  }

  .step-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .step-content {
    padding-right: 50px;
  }

  /* Article nav mobile */
  .article-nav {
    flex-direction: column;
  }

  .article-nav a {
    max-width: 100%;
  }

  .article-nav .nav-next {
    margin-left: 0;
  }

  /* Comparison table mobile */
  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-meta {
    flex-direction: column;
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .progress-container {
    margin: -1.5rem -1.5rem 1.5rem;
  }

  .progress-bar {
    margin: 0 1.5rem;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.visible { display: block; }
