/* ==========================================================================
   WebToCSV Pro - Design System & Modern Dark Theme
   ========================================================================== */

:root {
  /* Color Tokens */
  --bg-dark: #0a0d14;
  --bg-card: rgba(16, 22, 34, 0.75);
  --bg-card-hover: rgba(23, 31, 48, 0.85);
  --bg-input: #121826;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.3);

  /* Brand Accents */
  --accent-primary: #6366f1; /* Indigo */
  --accent-primary-hover: #4f46e5;
  --accent-secondary: #06b6d4; /* Cyan */
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Text Colors */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  --glow-primary: 0 0 25px rgba(99, 102, 241, 0.25);
  --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.25);

  /* Typography & Radius */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body.dark-theme {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Glowing Blurs */
.bg-blur {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
}

.blur-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
}

.blur-2 {
  top: 30%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
}

.blur-3 {
  bottom: -10%;
  left: 20%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

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

a:hover {
  color: #38bdf8;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none !important; }

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--glow-primary);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-secondary);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: #ffffff;
}

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

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-md {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-xl {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn-xs {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-warning {
  background: linear-gradient(135deg, var(--accent-amber), #d97706);
  color: #ffffff;
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-rose), #e11d48);
  color: #ffffff;
}

.btn-purple {
  background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-highlight);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-primary);
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

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

.btn-pulse {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Card System & Glassmorphism */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transition: border-color var(--transition-normal);
}

.glow-card {
  position: relative;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(6, 182, 212, 0.4), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 40px 0;
}

.hero-header {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: 3rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(to right, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Converter Tool Component */
.converter-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* URL Input Group */
.url-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 18px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
  transition: border-color var(--transition-fast);
}

.input-wrapper:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.protocol-prefix {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-dim);
  user-select: none;
}

.form-control {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 8px 12px;
}

.form-control::placeholder {
  color: var(--text-dim);
}

/* Dual Purpose Mode Selector */
.extraction-mode-container {
  margin-top: 24px;
  margin-bottom: 24px;
}

.mode-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.mode-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(16, 22, 34, 0.7);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-normal);
}

.mode-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(22, 30, 46, 0.8);
  transform: translateY(-2px);
}

.mode-card.active {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.mode-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.mode-card.active .mode-card-icon {
  background: var(--accent-primary);
  color: #ffffff;
}

.mode-card-content {
  flex: 1;
}

.mode-card-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.mode-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.mode-card-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.mode-card.active .mode-card-badge {
  background: var(--accent-primary);
  color: #ffffff;
}

/* Config Grid */
.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.config-box {
  background: rgba(10, 13, 20, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.config-header h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Checkbox Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.custom-checkbox:hover {
  color: #ffffff;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
}

.checkbox-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all var(--transition-fast);
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-box {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.checkbox-box i {
  width: 14px;
  height: 14px;
}

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.form-select:focus {
  border-color: var(--accent-primary);
}

.format-chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-checkbox {
  cursor: pointer;
}

.chip-checkbox input { display: none; }

.chip-checkbox span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.chip-checkbox input:checked + span {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-secondary);
  color: #67e8f9;
}

.media-options {
  display: flex;
  gap: 20px;
}

/* Authorization Bar */
.authorization-bar {
  display: flex;
  gap: 16px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 20px;
}

.auth-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-content h4 {
  font-size: 1rem;
  color: #fef08a;
  margin-bottom: 4px;
}

.auth-content p {
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.auth-checkbox {
  color: #ffffff;
}

/* Real-Time Dashboard Section */
.dashboard-section {
  padding: 40px 0 60px 0;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dashboard-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pulse-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 12px var(--accent-amber);
}

.pulse-indicator.active {
  background: var(--accent-emerald);
  box-shadow: 0 0 16px var(--accent-emerald);
  animation: pulse 1.5s infinite;
}

.pulse-indicator.stopped {
  background: var(--accent-rose);
  box-shadow: 0 0 12px var(--accent-rose);
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

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

/* Progress Container */
.progress-container {
  padding: 20px;
  margin-bottom: 24px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary), var(--accent-emerald));
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.icon-blue { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.icon-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.icon-purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.icon-amber { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.icon-cyan { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.icon-red { background: rgba(244, 63, 94, 0.2); color: #fb7185; }

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Chart & Console Layout */
.dashboard-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.chart-card, .console-card {
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-header h3 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
}

.console-stream {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  height: 220px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-line {
  line-height: 1.4;
  word-break: break-all;
}

.log-info { color: #93c5fd; }
.log-success { color: #6ee7b7; }
.log-warn { color: #fde047; }
.log-error { color: #fca5a5; }

/* Extracted Data Table Component */
.data-table-card {
  padding: 24px;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.85rem;
  width: 180px;
}

.export-btn-group {
  display: flex;
  gap: 8px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.data-table th {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-thumbnail {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
}

.empty-state {
  padding: 40px !important;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

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

.table-footer {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 12px;
}

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

/* Sections Common Styling */
.section {
  padding: 80px 0;
}

.alt-bg {
  background: rgba(10, 13, 20, 0.4);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

/* Steps Grid (How It Works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: transform var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 16px;
  right: 20px;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.875rem;
}

/* Platforms Grid (Supported Websites) */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.platform-card {
  background: rgba(16, 22, 34, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.platform-card:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.platform-card i {
  color: var(--accent-secondary);
}

/* Extracted Data Fields Grid */
.data-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.field-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.field-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.field-category-header h3 {
  font-size: 1.1rem;
}

.field-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.field-list li i {
  width: 16px;
  height: 16px;
  color: var(--accent-emerald);
}

/* Export Formats Grid */
.export-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.export-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: transform var(--transition-fast);
}

.export-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.export-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  color: #ffffff;
}

.csv-color { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.xlsx-color { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.json-color { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.xml-color { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.db-color { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.sql-color { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.woo-color { background: rgba(147, 51, 234, 0.2); color: #c084fc; }
.shopify-color { background: rgba(132, 204, 22, 0.2); color: #a3e635; }

.export-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.export-card p {
  font-size: 0.825rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.feature-item i {
  width: 32px;
  height: 32px;
  color: var(--accent-secondary);
  margin-bottom: 12px;
}

.feature-item h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.85rem;
}

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-card {
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover { color: #ffffff; }

.modal-body {
  padding: 24px;
}

.download-options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.download-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.csv-bg { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.xlsx-bg { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.json-bg { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.sql-bg { background: rgba(168, 85, 247, 0.2); color: #c084fc; }

.download-details {
  flex: 1;
}

.download-details h4 {
  font-size: 0.925rem;
}

.download-details p {
  font-size: 0.775rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background: #07090e;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 4px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .config-grid, .dashboard-details-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid, .platforms-grid, .export-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .data-fields-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid, .platforms-grid, .export-grid, .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .cta-input-box { flex-direction: column; }
  .input-wrapper { flex-direction: column; align-items: stretch; padding: 12px; gap: 8px; }
  .protocol-prefix { text-align: center; }
}
