.help-main {
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 40px 24px;
}

.help-hero {
  text-align: center;
  margin-bottom: 48px;
  padding: 60px 24px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg-secondary) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.help-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.05;
  animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(10%, 10%) scale(1.1);
  }
}

.help-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  position: relative;
  transition: color 0.3s ease;
}

.help-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  transition: color 0.3s ease;
}

.help-nav {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 64px;
  z-index: 10;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-link {
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: var(--bg-secondary);
  color: var(--accent);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.help-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.help-section {
  scroll-margin-top: 120px;
}

.section-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: inline-block;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.help-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.help-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.help-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.help-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  transition: color 0.3s ease;
}

.help-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 12px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.help-card p:last-child {
  margin-bottom: 0;
}

.help-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.help-card ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.help-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.help-card ul li:hover::before {
  transform: translateX(4px);
}

.help-card code {
  background: var(--bg-secondary);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--border);
  font-weight: 600;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.feature-item:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: translateX(4px);
}

.feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: start;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.step-content {
  flex: 1;
}

.step-content strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.step-content p {
  margin: 0;
}

.view-explanation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.view-item {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.view-item:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.view-item h4 {
  margin-bottom: 12px;
  color: var(--accent);
}

.overdue-text {
  color: var(--danger);
}

.today-text {
  color: var(--warning);
}

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

.normal-text {
  color: var(--accent);
}

.filter-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.filter-badge {
  padding: 8px 16px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--accent);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.filter-badge:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.05);
}

.mt-2 {
  margin-top: 16px;
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 8px;
  transition: transform 0.2s ease;
}

.priority-badge:hover {
  transform: scale(1.1);
}

.priority-badge.high {
  background: var(--danger-light);
  color: var(--danger);
}

.priority-badge.medium {
  background: var(--warning-light);
  color: var(--warning);
}

.priority-badge.low {
  background: var(--success-light);
  color: var(--success);
}

.theme-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.theme-option {
  padding: 18px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.theme-option:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.theme-option strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.theme-option p {
  margin: 0;
  font-size: 14px;
}

.privacy-note {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--accent-light);
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  margin-top: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.privacy-note:hover {
  transform: translateX(4px);
}

.privacy-note svg {
  flex-shrink: 0;
  color: var(--accent);
}

.privacy-note strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.privacy-note p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.troubleshoot-item {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.troubleshoot-item:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: translateX(4px);
}

.troubleshoot-item:last-child {
  margin-bottom: 0;
}

.troubleshoot-item strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.help-footer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 60px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  transition: color 0.3s ease;
}

.footer-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-btn {
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .help-main {
    padding: 24px 16px;
  }

  .help-hero {
    padding: 40px 20px;
    margin-bottom: 32px;
  }

  .help-title {
    font-size: 32px;
  }

  .help-subtitle {
    font-size: 16px;
  }

  .help-nav {
    position: static;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link {
    font-size: 13px;
    padding: 8px 16px;
  }

  .section-icon {
    font-size: 36px;
  }

  .help-section h2 {
    font-size: 28px;
  }

  .help-card {
    padding: 20px;
  }

  .help-card h3 {
    font-size: 18px;
  }

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

  .view-explanation {
    grid-template-columns: 1fr;
  }

  .theme-demo {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
  }

  .footer-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .help-title {
    font-size: 26px;
  }

  .help-subtitle {
    font-size: 14px;
  }

  .help-section h2 {
    font-size: 24px;
  }

  .help-card {
    padding: 16px;
  }

  .step {
    gap: 12px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .help-footer {
    padding: 24px 20px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Print Styles */
@media print {
  .topbar,
  .help-nav,
  .footer-links,
  #settings,
  #settingsBackdrop {
    display: none !important;
  }

  .help-card {
    page-break-inside: avoid;
  }
}