/* =====================================================
   E-Commerce Pro Tool - Complete Stylesheet
   Dark Theme + Glassmorphism + Premium Animations
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ============ CSS Variables / Design Tokens ============ */
:root {
  --bg-primary: #0a0b0f;
  --bg-secondary: #0f1117;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-strong: rgba(255, 255, 255, 0.08);
  
  --accent-primary: #6c63ff;
  --accent-secondary: #ff6584;
  --accent-green: #00d68f;
  --accent-orange: #ffaa00;
  --accent-blue: #00b4d8;
  --accent-red: #ff4757;
  
  --gradient-primary: linear-gradient(135deg, #6c63ff 0%, #a855f7 50%, #ec4899 100%);
  --gradient-secondary: linear-gradient(135deg, #00b4d8 0%, #00d68f 100%);
  --gradient-card: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(168, 85, 247, 0.05));
  --gradient-glow: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  
  --border-primary: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(108, 99, 255, 0.3);
  
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.2);
  --shadow-button: 0 4px 24px rgba(108, 99, 255, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-med: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: #a855f7; }

/* ============ Background Orbs Animation ============ */
.bg-orbs {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 15s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.15), transparent);
  top: -200px; left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12), transparent);
  top: 30%; right: -150px;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.1), transparent);
  bottom: -100px; left: 30%;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

/* ============ Layout ============ */
.app-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ============ Navigation ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-primary);
}

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

.logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-glass);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  padding: 4px;
}

.nav-tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-med);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.nav-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-button);
}

.nav-tab i { font-size: 12px; }

.nav-badge {
  background: var(--accent-green);
  color: #000;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* ============ Main Content ============ */
.main-content {
  padding-top: 68px;
}

/* ============ Pages / Tabs ============ */
.page {
  display: none;
  animation: pageIn 0.4s ease;
}

.page.active {
  display: block;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Hero Section ============ */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #a78bfa;
  margin-bottom: 32px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(108, 99, 255, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.hero-title .line-1 { color: var(--text-primary); }
.hero-title .line-2 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-med);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-med);
}

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

/* Feature Cards on Hero */
.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  width: 100%;
  margin-top: 72px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-med);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-icon.purple { background: rgba(108, 99, 255, 0.15); }
.feature-icon.pink { background: rgba(236, 72, 153, 0.15); }
.feature-icon.green { background: rgba(0, 214, 143, 0.15); }
.feature-icon.blue { background: rgba(0, 180, 216, 0.15); }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-arrow {
  position: absolute;
  bottom: 20px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  transition: all var(--transition-med);
}

.feature-card:hover .feature-arrow {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translate(2px, -2px);
}

/* ============ Section Styles ============ */
.section {
  padding: 48px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 36px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 10px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ============ Glass Card ============ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all var(--transition-med);
}

.glass-card:hover {
  border-color: var(--border-accent);
}

/* ============ Input Styles ============ */
.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 14px 16px 14px 44px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 14px;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-input::placeholder { color: var(--text-muted); }

.form-input-plain {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 14px;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input-plain:focus {
  border-color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-input-plain::placeholder { color: var(--text-muted); }

.form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 14px;
  transition: all var(--transition-fast);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-select option { background: #1a1b26; color: var(--text-primary); }

.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

/* ============ Buttons ============ */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-med);
  box-shadow: var(--shadow-button);
  width: 100%;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.5);
}

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

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

.btn-action.green {
  background: linear-gradient(135deg, #00d68f, #00b4d8);
  box-shadow: 0 4px 24px rgba(0, 214, 143, 0.3);
}

.btn-action.green:hover {
  box-shadow: 0 8px 32px rgba(0, 214, 143, 0.4);
}

.btn-action.orange {
  background: linear-gradient(135deg, #ffaa00, #ff6584);
  box-shadow: 0 4px 24px rgba(255, 170, 0, 0.3);
}

.btn-action.sm {
  padding: 10px 20px;
  font-size: 13px;
  width: auto;
}

/* ============ Platform Badges ============ */
.platform-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border-primary);
  background: var(--bg-glass);
  color: var(--text-secondary);
}

.platform-badge.amazon { border-color: rgba(255, 170, 0, 0.3); color: #ffaa00; }
.platform-badge.ebay { border-color: rgba(0, 180, 216, 0.3); color: var(--accent-blue); }
.platform-badge.walmart { border-color: rgba(0, 214, 143, 0.3); color: var(--accent-green); }
.platform-badge.aliexpress { border-color: rgba(255, 65, 54, 0.3); color: #ff4136; }

/* ============ Loading Spinner ============ */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 20px;
}

.spinner {
  width: 52px; height: 52px;
  border: 3px solid var(--border-primary);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  color: var(--text-secondary);
  font-size: 14px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ============ Product Card Result ============ */
.product-result {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-result-header {
  padding: 20px 28px;
  background: rgba(108, 99, 255, 0.06);
  border-bottom: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-result-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-body {
  padding: 28px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
}

.product-image-box {
  width: 200px; height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-glass);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image-box .no-img {
  font-size: 48px;
  color: var(--text-muted);
}

.product-info h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-glass);
  border: 1px solid var(--border-primary);
}

.meta-chip.price { color: var(--accent-green); border-color: rgba(0, 214, 143, 0.3); }
.meta-chip.rating { color: var(--accent-orange); border-color: rgba(255, 170, 0, 0.3); }
.meta-chip.reviews { color: var(--accent-blue); border-color: rgba(0, 180, 216, 0.3); }
.meta-chip.brand { color: #a78bfa; border-color: rgba(167, 139, 250, 0.3); }

.product-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  max-height: 100px;
  overflow: hidden;
  position: relative;
}

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

/* ============ Comparison Section ============ */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.compare-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.compare-product-card h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.compare-product-card.product-a { border-top: 3px solid var(--accent-primary); }
.compare-product-card.product-b { border-top: 3px solid var(--accent-secondary); }

/* Similarity Score */
.similarity-score {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  margin-bottom: 32px;
  animation: slideUp 0.4s ease;
}

.score-circle {
  width: 140px; height: 140px;
  margin: 0 auto 24px;
  position: relative;
}

.score-circle svg {
  transform: rotate(-90deg);
  width: 140px; height: 140px;
}

.score-circle .bg-circle {
  fill: none;
  stroke: var(--border-primary);
  stroke-width: 10;
}

.score-circle .progress-circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 377;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.score-label-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.score-verdict {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.score-verdict.high { color: var(--accent-green); }
.score-verdict.medium { color: var(--accent-orange); }
.score-verdict.low { color: var(--accent-red); }

/* Comparison Table */
.comparison-table {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: slideUp 0.5s ease;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  background: rgba(108, 99, 255, 0.08);
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-primary);
}

.comparison-table td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: top;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255,255,255,0.02); }

.comparison-table .attr-name {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 140px;
}

.match-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.match-indicator.match { background: rgba(0, 214, 143, 0.12); color: var(--accent-green); }
.match-indicator.mismatch { background: rgba(255, 71, 87, 0.12); color: var(--accent-red); }
.match-indicator.partial { background: rgba(255, 170, 0, 0.12); color: var(--accent-orange); }

/* ============ Revenue Calculator ============ */
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.calc-results {
  position: sticky;
  top: 80px;
}

.result-box {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 20px;
}

.result-box h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.result-row:last-child { border-bottom: none; }

.result-row .label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-row .value {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-display);
}

.result-row.total-row {
  background: rgba(108, 99, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  margin: 8px -4px;
  border-bottom: none;
}

.result-row.total-row .label { font-weight: 700; color: var(--text-primary); font-size: 14px; }
.result-row.total-row .value { font-size: 22px; }

.profit-display {
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 28px;
  text-align: center;
}

.profit-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.profit-amount {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 4px;
  transition: color var(--transition-med);
}

.profit-amount.positive { color: var(--accent-green); }
.profit-amount.negative { color: var(--accent-red); }

.profit-margin {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.profit-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.profit-stat {
  background: var(--bg-glass);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.profit-stat .stat-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profit-stat .stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Platform fee presets */
.platform-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.preset-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-primary);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.preset-btn.active {
  background: rgba(108, 99, 255, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Number Input */
.number-input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.number-input-group:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.input-prefix, .input-suffix {
  padding: 0 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255,255,255,0.02);
  height: 100%;
  display: flex;
  align-items: center;
}

.input-prefix { border-right: 1px solid var(--border-primary); }
.input-suffix { border-left: 1px solid var(--border-primary); }

.number-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 12px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.number-input::placeholder { color: var(--text-muted); }

/* ============ Alerts / Messages ============ */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideUp 0.3s ease;
}

.alert-error {
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.2);
  color: #ff6b6b;
}

.alert-success {
  background: rgba(0, 214, 143, 0.08);
  border: 1px solid rgba(0, 214, 143, 0.2);
  color: var(--accent-green);
}

.alert-info {
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.2);
  color: var(--accent-blue);
}

/* ============ Stats Bar ============ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: -10px 24px 40px;
  padding: 0 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition-med);
}

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

.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.stat-icon.purple { background: rgba(108, 99, 255, 0.15); color: var(--accent-primary); }
.stat-icon.pink { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.stat-icon.green { background: rgba(0, 214, 143, 0.15); color: var(--accent-green); }
.stat-icon.orange { background: rgba(255, 170, 0, 0.15); color: var(--accent-orange); }

.stat-info .stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-info .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ Toggle Switch ============ */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-med);
}

.toggle-slider:before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition-med);
}

.toggle input:checked + .toggle-slider { background: var(--accent-primary); }
.toggle input:checked + .toggle-slider:before { transform: translateX(20px); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .calculator-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .product-body { grid-template-columns: 1fr; }
  .product-image-box { width: 100%; height: 220px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .hero-features { grid-template-columns: 1fr 1fr; }
  .nav-tabs { gap: 2px; }
  .nav-tab { padding: 7px 12px; font-size: 12px; }
}

@media (max-width: 600px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .hero-features { grid-template-columns: 1fr; }
  .comparison-table { overflow-x: auto; }
  .comparison-table table { min-width: 500px; }
  .profit-stats { grid-template-columns: 1fr 1fr; }
  .nav-tabs { display: none; }
}

/* ============ Tooltip ============ */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 50, 0.95);
  color: var(--text-primary);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  border: 1px solid var(--border-primary);
  z-index: 100;
}

.tooltip:hover::after { opacity: 1; }

/* ============ Copy Button ============ */
.copy-btn {
  background: none;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ============ Progress Bar ============ */
.progress-bar-container {
  height: 6px;
  background: var(--border-primary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 8px 0;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

/* ============ Mobile Nav ============ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(10, 11, 15, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-primary);
  padding: 8px 16px 12px;
}

@media (max-width: 600px) {
  .mobile-nav { display: flex; justify-content: space-around; }
  .main-content { padding-bottom: 80px; }
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

.mobile-nav-btn i { font-size: 18px; }
.mobile-nav-btn.active { color: var(--accent-primary); }

/* ============ Product Hunter ============ */
.hunter-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.platform-toggle {
  cursor: pointer;
  display: block;
}

.platform-toggle input { display: none; }

.platform-toggle-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-glass);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-med);
  position: relative;
}

.platform-toggle-inner:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.platform-toggle input:checked + .platform-toggle-inner {
  border-color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(108,99,255,0.2), inset 0 0 20px rgba(108,99,255,0.05);
}

.platform-toggle-icon { font-size: 26px; }

.platform-toggle-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
  font-family: var(--font-display);
}

.platform-toggle-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-toggle-check {
  position: absolute;
  top: 10px; right: 12px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-med);
}

.platform-toggle input:checked + .platform-toggle-inner .platform-toggle-check {
  opacity: 1;
  transform: scale(1);
}

/* Product Chips */
.product-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 4px;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  animation: slideUp 0.25s ease;
}

.product-chip .chip-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  line-height: 1;
  transition: color var(--transition-fast);
}

.product-chip .chip-remove:hover { color: var(--accent-red); }

/* Hunter Progress */
.hunter-progress {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
  animation: slideUp 0.3s ease;
}

.hunter-progress-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hunter-progress-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hunter-progress-bar {
  height: 8px;
  background: var(--border-primary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.hunter-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
  position: relative;
  overflow: hidden;
}

.hunter-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  to { left: 100%; }
}

.hunter-progress-items {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hunter-progress-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-med);
}

.hunter-progress-item.done {
  color: var(--accent-green);
  border-color: rgba(0,214,143,0.3);
  background: rgba(0,214,143,0.06);
}

.hunter-progress-item.searching {
  color: var(--accent-primary);
  border-color: rgba(108,99,255,0.3);
  animation: pulse 1s infinite;
}

/* Hunter Results Table */
.hunter-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.hunter-results-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.hunter-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: slideUp 0.4s ease;
}

.hunter-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.hunter-table th {
  background: rgba(108, 99, 255, 0.08);
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-primary);
  white-space: nowrap;
}

.hunter-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}

.hunter-table tr:last-child td { border-bottom: none; }
.hunter-table tr:hover td { background: rgba(255,255,255,0.02); }

.hunter-table .product-name-cell {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 180px;
}

.hunter-table .product-name-cell .source-tag {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-result-cell {
  min-width: 160px;
}

.platform-result-found {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.platform-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  font-family: monospace;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.platform-id-badge:hover { opacity: 0.8; }

.platform-id-badge.amazon { background: rgba(255,170,0,0.12); color: #ffaa00; border: 1px solid rgba(255,170,0,0.25); }
.platform-id-badge.ebay { background: rgba(0,180,216,0.12); color: var(--accent-blue); border: 1px solid rgba(0,180,216,0.25); }
.platform-id-badge.walmart { background: rgba(0,214,143,0.12); color: var(--accent-green); border: 1px solid rgba(0,214,143,0.25); }
.platform-id-badge.aliexpress { background: rgba(255,65,54,0.12); color: #ff4136; border: 1px solid rgba(255,65,54,0.25); }

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.platform-link:hover { color: #a78bfa; text-decoration: underline; }

.not-found-cell {
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
}

.sku-cell {
  font-family: monospace;
  font-size: 12px;
  color: #a78bfa;
  background: rgba(167,139,250,0.08);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  border: 1px solid rgba(167,139,250,0.2);
}

/* Hunter summary bar */
.hunter-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.hunter-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
}

.hunter-summary-card .h-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.hunter-summary-card .h-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .hunter-table-wrapper { overflow-x: auto; }
  .hunter-table { min-width: 700px; }
  .hunter-platforms { grid-template-columns: 1fr 1fr; }
}

/* ============ SITE FOOTER ============ */
.site-footer {
  background: rgba(6, 7, 10, 0.95);
  border-top: 1px solid var(--border-primary);
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
}

.footer-brand { max-width: 420px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-owner {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-link-main {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-link-main:hover { color: #a78bfa; text-decoration: underline; }

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

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

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.footer-link:hover { color: var(--accent-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-primary);
  background: rgba(0,0,0,0.3);
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-copy a { color: var(--text-secondary); text-decoration: none; }
.footer-copy a:hover { color: var(--accent-primary); }

.footer-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* FAQ Details */
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item[open] summary i { transform: rotate(180deg); }
details.faq-item summary:hover { background: rgba(255,255,255,0.02); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .footer-links-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .main-content { padding-bottom: 80px; }
}


