/* CSS Variables for Theming */
:root {
  /* Light Mode (Default) */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e9ecef;
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --accent: #4361ee;
  --accent-hover: #3a56d4;
  --accent-light: rgba(67, 97, 238, 0.1);
  --danger: #dc3545;
  --danger-hover: #c82333;
  --success: #28a745;
  --border: #dee2e6;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --card-bg: #ffffff;
  --drop-zone-bg: #f1f3f5;
  --drop-zone-border: #adb5bd;
  --coffee-color: #ffdd00;
  --coffee-hover: #ffc800;
}

[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #2d2d2d;
  --text-primary: #e9ecef;
  --text-secondary: #adb5bd;
  --text-muted: #868e96;
  --accent: #5c7cfa;
  --accent-hover: #748ffc;
  --accent-light: rgba(92, 124, 250, 0.15);
  --border: #3d3d3d;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
  --card-bg: #252525;
  --drop-zone-bg: #2a2a2a;
  --drop-zone-border: #4d4d4d;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo i {
  font-size: 2rem;
  color: var(--accent);
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header Navigation */
.header-nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.icon-btn:hover {
  background-color: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.coffee-btn:hover {
  background-color: var(--coffee-color);
  color: #333;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 40px 20px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

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

.hero strong {
  color: var(--accent);
}

/* Why Section */
.why-section {
  margin: 40px 0;
}

.why-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.why-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.why-card h3:not(:first-child) {
  margin-top: 25px;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.why-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.why-card a:hover {
  text-decoration: underline;
}

/* Upload Section */
.upload-section {
  margin: 40px 0;
}

.drop-zone {
  background: var(--drop-zone-bg);
  border: 3px dashed var(--drop-zone-border);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.drop-zone i {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.drop-zone p {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.drop-zone span {
  color: var(--text-muted);
  display: block;
  margin-bottom: 15px;
}

.upload-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--accent);
  color: white;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Pages Section */
.pages-section {
  margin: 40px 0;
}

.pages-section.hidden {
  display: none;
}

.pages-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.pages-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.pages-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.action-btn:hover:not(:disabled) {
  background: var(--accent);
  color: white;
}

.action-btn.danger:hover:not(:disabled) {
  background: var(--danger);
  color: white;
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Pages Container */
.pages-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  min-height: 300px;
}

.page-card {
  position: relative;
  background: var(--bg-tertiary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: grab;
  transition: all 0.3s ease;
  aspect-ratio: 3/4;
}

.page-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.page-card.selected {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.page-card.sortable-chosen {
  opacity: 0.9;
  transform: scale(1.05);
  z-index: 100;
}

.page-card.sortable-ghost {
  opacity: 0.5;
  background: var(--accent-light);
  border: 3px dashed var(--accent);
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.5),
    0 0 60px var(--accent);
}

[data-theme="dark"] .page-card.sortable-ghost {
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.3),
    0 0 60px rgba(92, 124, 250, 0.6);
}

.page-card.sortable-drag {
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 255, 255, 0.2);
}

.page-card canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.page-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  font-size: 0.85rem;
}

.page-numbers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.new-page-number {
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
  background: #16a34a;
  padding: 3px 10px;
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.original-page-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  background: #d97706;
  padding: 3px 10px;
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.page-number {
  font-weight: 700;
  font-size: 1rem;
}

.page-source {
  font-size: 0.85rem;
  opacity: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e5e7eb;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.page-source i {
  font-size: 0.85rem;
  color: #93c5fd;
}

.page-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: var(--accent);
}

.page-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-card:hover .page-delete {
  opacity: 1;
}

.page-delete:hover {
  background: var(--danger);
  transform: scale(1.1);
}

/* Drag Handle */
.drag-handle {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 70%,
    transparent 100%
  );
  color: white;
  cursor: grab;
  z-index: 15;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  touch-action: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.page-card:hover .drag-handle {
  opacity: 1;
}

/* Mobile Reorder Buttons */
.page-reorder-btns {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 15;
}

.page-move-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(92, 124, 250, 0.9);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-move-btn:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.page-move-btn:active {
  transform: scale(0.95);
}

/* Show reorder buttons and drag handle on touch devices and mobile */
@media (hover: none) and (pointer: coarse) {
  .page-reorder-btns {
    display: flex;
  }

  .drag-handle {
    opacity: 1;
    width: 36px;
    background: linear-gradient(
      90deg,
      rgba(92, 124, 250, 0.85) 0%,
      rgba(92, 124, 250, 0.5) 60%,
      transparent 100%
    );
  }

  .page-card {
    touch-action: pan-y;
  }

  .page-delete {
    opacity: 1;
  }
}

/* Sortable fallback styles */
.sortable-fallback {
  opacity: 0.9;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Export Section */
.export-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.filename-input {
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  width: 220px;
  transition: border-color 0.3s ease;
}

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

.export-btn {
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.export-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.export-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-overlay.hidden {
  display: none;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--bg-tertiary);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay p {
  color: white;
  margin-top: 20px;
  font-size: 1.2rem;
}

/* Footer */
.footer {
  margin-top: 60px;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.footer p i {
  color: var(--danger);
}

.footer strong {
  color: var(--accent);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 20px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

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

  .pages-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pages-container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 15px;
  }

  .export-section {
    flex-direction: column;
  }

  .filename-input {
    width: 100%;
    max-width: 300px;
  }

  .drop-zone {
    padding: 40px 20px;
  }

  .drop-zone i {
    font-size: 3rem;
  }

  /* Show reorder buttons on mobile */
  .page-reorder-btns {
    display: flex;
  }

  .page-delete {
    opacity: 1;
  }

  .page-move-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .drag-handle {
    opacity: 1;
    width: 32px;
    background: linear-gradient(
      90deg,
      rgba(92, 124, 250, 0.85) 0%,
      rgba(92, 124, 250, 0.5) 60%,
      transparent 100%
    );
  }

  .page-card {
    touch-action: pan-y;
    cursor: default;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

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

  .action-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .why-card {
    padding: 20px;
  }

  /* Smaller reorder buttons on very small screens */
  .page-move-btn {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .page-reorder-btns {
    gap: 6px;
    right: 5px;
  }

  .drag-handle {
    width: 28px;
    font-size: 0.95rem;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Selection */
::selection {
  background: var(--accent);
  color: white;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-card {
  animation: fadeIn 0.3s ease forwards;
}

/* Zoom Controls */
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  padding: 5px 10px;
  border-radius: 8px;
}

.zoom-level {
  min-width: 50px;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.zoom-controls .action-btn {
  padding: 8px 12px;
}

/* Support Section */
.support-section {
  margin: 60px 0;
}

.support-card {
  background: linear-gradient(135deg, var(--card-bg), var(--bg-tertiary));
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.support-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.support-header i {
  font-size: 2.5rem;
  color: var(--coffee-color);
}

.support-header h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
}

.support-card > p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

.coffee-widget {
  margin: 30px 0;
}

.bmc-button img {
  height: 50px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.bmc-button img:hover {
  transform: scale(1.05);
}

.support-alternatives {
  margin-top: 20px;
}

.small-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.support-link:hover {
  text-decoration: underline;
}

/* Documentation Page Styles */
.documentation {
  padding: 20px 0;
}

.doc-hero {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
}

.doc-hero h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.doc-hero h2 i {
  color: var(--accent);
}

.doc-section {
  margin-bottom: 50px;
}

.doc-section.center {
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  color: var(--accent);
}

.doc-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.doc-card.highlight-card {
  background: linear-gradient(135deg, var(--accent-light), var(--card-bg));
  border-color: var(--accent);
}

.doc-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.doc-card h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.doc-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.doc-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.doc-card a:hover {
  text-decoration: underline;
}

/* Process Steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.process-step {
  display: flex;
  gap: 25px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 25px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateX(10px);
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-content h4 i {
  color: var(--accent);
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 15px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Data Flow */
.data-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  min-width: 120px;
}

.flow-item i {
  font-size: 2rem;
  color: var(--accent);
}

.flow-item span {
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  font-size: 0.9rem;
}

.flow-arrow {
  color: var(--accent);
  font-size: 1.5rem;
}

.flow-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 15px;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 10px;
  color: var(--success);
  font-weight: 500;
}

/* Don't List */
.dont-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.dont-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.dont-item i {
  color: var(--danger);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dont-item strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 5px;
}

.dont-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* File List */
.file-list {
  list-style: none;
  margin: 20px 0;
}

.file-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.file-list code {
  background: var(--bg-tertiary);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: "Consolas", monospace;
  color: var(--accent);
}

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: #24292e;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.github-btn:hover {
  background: #2c3440;
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--border);
}

.faq-item h4 {
  color: var(--text-primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.faq-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

.faq-item a {
  color: var(--accent);
  text-decoration: none;
}

.faq-item a:hover {
  text-decoration: underline;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
  text-decoration: none;
}

/* Responsive for new elements */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .process-step {
    flex-direction: column;
    align-items: flex-start;
  }

  .data-flow {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .zoom-controls {
    width: 100%;
    justify-content: center;
  }

  .support-card {
    padding: 25px;
  }

  .doc-hero h2 {
    font-size: 1.8rem;
    flex-direction: column;
  }
}
