/* ================================================
   LEADRADAR — MAIN STYLESHEET
   Dark Glassmorphism | Electric Violet + Cyan
   ================================================ */

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

/* ── DESIGN TOKENS ── */
:root {
  --bg-deep:         #060714;
  --bg-base:         #0A0B1E;
  --bg-surface:      rgba(255, 255, 255, 0.025);
  --bg-surface-2:    rgba(255, 255, 255, 0.055);
  --bg-hover:        rgba(255, 255, 255, 0.08);

  --border:          rgba(255, 255, 255, 0.08);
  --border-glow:     rgba(124, 58, 237, 0.35);
  --border-cyan:     rgba(6, 182, 212, 0.3);

  --violet:          #7C3AED;
  --violet-light:    #A78BFA;
  --violet-dark:     #5B21B6;
  --cyan:            #06B6D4;
  --cyan-light:      #67E8F9;
  --cyan-dark:       #0891B2;
  --amber:           #F59E0B;
  --emerald:         #10B981;
  --rose:            #EF4444;

  --text-primary:    #F1F5F9;
  --text-secondary:  #94A3B8;
  --text-muted:      #475569;

  --grad-primary:    linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
  --grad-violet:     linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  --grad-card:       linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(6,182,212,0.1) 100%);
  --grad-text:       linear-gradient(120deg, #A78BFA, #67E8F9);
  --grad-bg:         radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,0.18) 0%, transparent 70%),
                     radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6,182,212,0.1) 0%, transparent 60%),
                     radial-gradient(ellipse 40% 30% at 20% 80%, rgba(124,58,237,0.08) 0%, transparent 50%);

  --shadow-card:     0 4px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.05) inset;
  --shadow-glow:     0 0 40px rgba(124,58,237,0.3);
  --shadow-cyan:     0 0 40px rgba(6,182,212,0.25);

  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-xl:       28px;
  --radius-full:     9999px;

  --nav-height:      70px;
  --transition:      all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-base);
  background-image: var(--grad-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--violet-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

/* ── ANIMATED BG DOTS ── */
.bg-dots {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: shiftDots 60s linear infinite;
}
@keyframes shiftDots {
  0% { transform: translateY(0); }
  100% { transform: translateY(-36px); }
}

/* ── NOISE TEXTURE ── */
.bg-noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  display: flex; align-items: center;
  padding: 0 2rem;
  background: rgba(6, 7, 20, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  width: 100%; max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(124,58,237,0.5);
}
.nav-logo .logo-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 1rem; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-link.active { color: var(--violet-light); background: rgba(124,58,237,0.12); }
.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 600; color: white;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(124,58,237,0.35);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 30px rgba(124,58,237,0.5); }

/* ── MAIN CONTENT WRAPPER ── */
.main { position: relative; z-index: 1; padding-top: var(--nav-height); }

/* ── HERO ── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center;
  padding: 4rem 2rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 420px; gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.12); border: 1px solid rgba(124, 58, 237, 0.3);
  font-size: 0.8rem; font-weight: 600; color: var(--violet-light);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}
.hero-badge .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulse 2s infinite; }
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -2px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero-title .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 520px;
  margin-bottom: 2.5rem; line-height: 1.8;
  animation: fadeInUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s ease both;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.875rem 1.75rem; border-radius: var(--radius-full);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); border: none; outline: none;
}
.btn-primary {
  background: var(--grad-primary); color: white;
  box-shadow: 0 0 30px rgba(124,58,237,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(124,58,237,0.55); }
.btn-secondary {
  background: var(--bg-surface-2); color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: rgba(255,255,255,0.15); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-danger { background: rgba(239,68,68,0.15); color: var(--rose); border: 1px solid rgba(239,68,68,0.25); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-success { background: rgba(16,185,129,0.15); color: var(--emerald); border: 1px solid rgba(16,185,129,0.25); }
.btn-success:hover { background: rgba(16,185,129,0.25); }

/* ── HERO STATS ── */
.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem;
  animation: fadeInUp 0.6s 0.4s ease both;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -1px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat .lbl { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── RADAR VISUAL ── */
.radar-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  animation: fadeInRight 0.8s 0.2s ease both;
}
#radarCanvas { border-radius: 50%; }

/* ── SECTION ── */
.section { position: relative; z-index: 1; padding: 5rem 2rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block; padding: 4px 14px; border-radius: var(--radius-full);
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.25);
  font-size: 0.75rem; font-weight: 700; color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800; letter-spacing: -1.5px;
}
.section-title .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-sub { font-size: 1rem; color: var(--text-secondary); margin-top: 0.75rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── CATEGORY GRID ── */
.categories { max-width: 1280px; margin: 0 auto; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.category-card {
  position: relative; padding: 1.5rem;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer; transition: var(--transition);
  overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.category-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-card); opacity: 0;
  transition: var(--transition);
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.category-card:hover::before { opacity: 1; }
.category-card .cat-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  position: relative;
}
.category-card .cat-name { font-size: 0.95rem; font-weight: 600; }
.category-card .cat-count { font-size: 0.78rem; color: var(--text-muted); }
.category-card.selected {
  border-color: var(--violet);
  background: rgba(124,58,237,0.1);
  box-shadow: 0 0 30px rgba(124,58,237,0.2);
}

/* ── GLASS CARD ── */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

/* ── SEARCH PANEL ── */
.search-panel { max-width: 900px; margin: 0 auto 2rem; padding: 2rem; }
.search-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1rem; align-items: end;
}
@media (max-width: 768px) { .search-form-grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.form-input, .form-select {
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary); font-size: 0.95rem;
  transition: var(--transition);
  outline: none; appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
  background: rgba(255,255,255,0.07);
}
.form-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2394A3B8' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l3-3 3 3M7 13l3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 2.5rem; }
.form-select option { background: #1a1b3e; }
.form-toggle { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); cursor: pointer; }
.form-toggle input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; background: rgba(255,255,255,0.1); border-radius: 11px; position: relative; cursor: pointer; transition: var(--transition); border: 1px solid var(--border); }
.form-toggle input[type="checkbox"]:checked { background: var(--grad-primary); border-color: transparent; }
.form-toggle input[type="checkbox"]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: white; border-radius: 50%; transition: var(--transition); }
.form-toggle input[type="checkbox"]:checked::after { transform: translateX(18px); }

/* ── SEARCH LOG ── */
.search-log-wrap { max-width: 900px; margin: 0 auto; }
.search-status {
  padding: 1.5rem 2rem;
  display: flex; align-items: center; gap: 1rem;
  border-bottom: 1px solid var(--border);
}
.status-indicator { width: 10px; height: 10px; border-radius: 50%; background: var(--emerald); animation: pulse 1.5s infinite; }
.status-indicator.idle { background: var(--text-muted); animation: none; }
.status-indicator.searching { background: var(--amber); }
.log-container {
  padding: 1rem 2rem; min-height: 200px; max-height: 300px; overflow-y: auto;
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
}
.log-line { padding: 2px 0; color: var(--text-muted); }
.log-line.found { color: var(--emerald); }
.log-line.error { color: var(--rose); }
.log-line.info { color: var(--cyan); }
.log-line.warn { color: var(--amber); }

/* ── PROGRESS BAR ── */
.progress-bar-wrap {
  padding: 0.5rem 2rem 1rem;
}
.progress-bar {
  height: 4px; background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full); overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--grad-primary);
  border-radius: var(--radius-full);
  width: 0%; transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(124,58,237,0.6);
}

/* ── RESULT CARDS ── */
.results-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.result-card {
  display: grid; grid-template-columns: auto 1fr auto auto;
  gap: 1rem; align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.result-card:hover { border-color: var(--border-glow); background: rgba(124,58,237,0.04); }
.result-avatar {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; background: rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.result-info .biz-name { font-weight: 600; font-size: 0.95rem; }
.result-info .biz-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem; color: var(--cyan);
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
}
.result-info .biz-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.result-actions { display: flex; gap: 0.5rem; }

/* ── TABLE ── */
.leads-table-wrap { overflow-x: auto; }
.leads-table {
  width: 100%; border-collapse: collapse;
}
.leads-table th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-align: left; white-space: nowrap;
}
.leads-table td {
  padding: 0.875rem 1rem;
  font-size: 0.9rem; color: var(--text-primary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.leads-table tr:hover td { background: rgba(255,255,255,0.02); }
.leads-table .email-cell {
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--cyan);
}
.leads-table .copy-btn {
  opacity: 0; transition: var(--transition);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 0.8rem; padding: 2px 6px;
  border-radius: 4px;
}
.leads-table tr:hover .copy-btn { opacity: 1; }
.leads-table .copy-btn:hover { color: var(--violet-light); background: rgba(124,58,237,0.1); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 600;
}
.badge-violet { background: rgba(124,58,237,0.15); color: var(--violet-light); }
.badge-cyan { background: rgba(6,182,212,0.15); color: var(--cyan); }
.badge-amber { background: rgba(245,158,11,0.15); color: var(--amber); }
.badge-emerald { background: rgba(16,185,129,0.15); color: var(--emerald); }
.badge-rose { background: rgba(239,68,68,0.15); color: var(--rose); }

/* ── STATS CARDS ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem;
}
.stat-card {
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-glow); transform: translateY(-2px); }
.stat-card .stat-icon {
  width: 44px; height: 44px;
  background: rgba(124,58,237,0.1); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.stat-card .stat-num {
  font-size: 2rem; font-weight: 800; letter-spacing: -1px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card .stat-lbl { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; font-weight: 500; }

/* ── HOW IT WORKS ── */
.steps { max-width: 900px; margin: 0 auto; }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 2.5rem; left: calc(16.66% + 2rem); right: calc(16.66% + 2rem);
  height: 1px; background: linear-gradient(90deg, var(--violet), var(--cyan));
  opacity: 0.3;
}
.step-card { text-align: center; padding: 2rem 1.5rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad-primary);
  font-size: 1.25rem; font-weight: 800; color: white;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 30px rgba(124,58,237,0.4);
  position: relative;
}
.step-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* ── PAGE HEADER ── */
.page-header {
  padding: 3rem 2rem 2rem;
  max-width: 1280px; margin: 0 auto;
}
.page-title {
  font-size: 2rem; font-weight: 800; letter-spacing: -1px;
  display: flex; align-items: center; gap: 0.75rem;
}
.page-title .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-sub { font-size: 0.95rem; color: var(--text-secondary); margin-top: 0.5rem; }

/* ── FILTERS BAR ── */
.filters-bar {
  display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
  padding: 1rem 0; margin-bottom: 1.5rem;
}
.filter-chip {
  padding: 0.4rem 1rem; border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 500;
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.filter-chip:hover { border-color: rgba(124,58,237,0.3); color: var(--text-primary); }
.filter-chip.active { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.4); color: var(--violet-light); }

/* ── ADMIN ── */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - var(--nav-height)); }
.admin-sidebar {
  background: rgba(6,7,20,0.6); border-right: 1px solid var(--border);
  padding: 2rem 1rem; display: flex; flex-direction: column; gap: 0.25rem;
  backdrop-filter: blur(12px); position: sticky; top: var(--nav-height); height: calc(100vh - var(--nav-height));
}
.sidebar-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding: 0.5rem 0.75rem; }
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 0.75rem; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition); cursor: pointer;
}
.sidebar-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.sidebar-link.active { color: var(--violet-light); background: rgba(124,58,237,0.12); }
.sidebar-link .icon { font-size: 1.1rem; flex-shrink: 0; }
.admin-main { padding: 2rem; overflow-y: auto; }

/* ── LOGIN ── */
.login-wrap {
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.login-card { width: 100%; max-width: 380px; padding: 3rem; }
.login-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.login-sub { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 2rem; }
.login-form { display: flex; flex-direction: column; gap: 1.25rem; }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.75rem; }
.toast {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1.25rem; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500;
  background: rgba(20, 20, 50, 0.95); border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: slideInRight 0.3s ease;
  min-width: 280px; max-width: 400px;
}
.toast.success { border-color: rgba(16,185,129,0.3); color: var(--emerald); }
.toast.error { border-color: rgba(239,68,68,0.3); color: var(--rose); }
.toast.info { border-color: rgba(6,182,212,0.3); color: var(--cyan); }
.toast.fade-out { animation: slideOutRight 0.3s ease forwards; }

/* ── EMPTY STATE ── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 5rem 2rem; text-align: center; color: var(--text-muted); gap: 1rem;
}
.empty-state .empty-icon { font-size: 3.5rem; opacity: 0.5; }
.empty-state .empty-title { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); }
.empty-state .empty-desc { font-size: 0.875rem; max-width: 320px; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 0.5rem; align-items: center; justify-content: center; padding: 1.5rem 0; }
.page-btn {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 500;
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.page-btn:hover { border-color: rgba(124,58,237,0.3); color: var(--text-primary); }
.page-btn.active { background: rgba(124,58,237,0.2); border-color: var(--violet); color: var(--violet-light); }

/* ── FOOTER ── */
.footer {
  position: relative; z-index: 1;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-logo { font-size: 1.2rem; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.75rem; }
.footer-text { font-size: 0.82rem; color: var(--text-muted); }
.footer-disclaimer { font-size: 0.75rem; color: var(--text-muted); max-width: 600px; margin: 1rem auto 0; opacity: 0.6; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 2rem 0; }

/* ── CHECKBOX TABLE ── */
.check-cell { width: 40px; }
.checkbox {
  width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid var(--border); background: transparent;
  appearance: none; cursor: pointer; transition: var(--transition);
}
.checkbox:checked {
  background: var(--grad-primary); border-color: transparent;
}
.checkbox:checked::after {
  content: '✓'; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 11px; font-weight: 700;
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.5); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.animate-in { animation: fadeInUp 0.5s ease both; }
.spin { animation: spin 0.8s linear infinite; }

/* ── LOADING ── */
.loading-spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ── COPY FEEDBACK ── */
.copied { color: var(--emerald) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .radar-visual { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; }
}
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .result-card { grid-template-columns: auto 1fr; }
  .result-actions { grid-column: 1 / -1; }
  .nav-links .nav-link:not(.nav-cta) { display: none; }
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.25rem; }
  .hero-title { letter-spacing: -1px; }
}

/* ── SCROLLABLE TAG LIST ── */
.tag-list { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.tag { padding: 2px 10px; border-radius: var(--radius-full); font-size: 0.75rem; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text-muted); }

/* ── SEARCH COUNT BADGE ── */
.count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--grad-primary); border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700; color: white;
}

/* ── TOOLTIP ── */
.has-tooltip { position: relative; }
.has-tooltip::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 0.72rem; background: rgba(6,7,20,0.95);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px;
  color: var(--text-secondary); opacity: 0; pointer-events: none; transition: var(--transition);
}
.has-tooltip:hover::after { opacity: 1; }

/* ── TOP FADE ── */
.top-fade {
  position: fixed; top: var(--nav-height); left: 0; right: 0; height: 60px;
  background: linear-gradient(to bottom, var(--bg-base), transparent);
  z-index: 10; pointer-events: none;
}

/* ── PREMIUM SEARCH PANEL ── */
.search-panel-premium {
  padding: 0 !important; overflow: hidden; border: 1px solid rgba(255,255,255,0.05);
}
.search-grid-layout {
  display: grid; grid-template-columns: 1fr 340px; min-height: 480px;
}
.search-scope-area {
  padding: 2rem; background: rgba(0,0,0,0.1); border-right: 1px solid var(--border);
}
.search-targeting-area {
  padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem;
  background: rgba(124,58,237,0.02);
}

.premium-label {
  display: flex; align-items: center; gap: 8px; font-size: 0.75rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted);
  font-weight: 700; margin-bottom: 1rem;
}
.premium-label i { font-style: normal; font-size: 1rem; }

.cat-pills-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem;
}
.cat-pill-premium {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 1.25rem; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}
.cat-pill-premium:hover {
  background: rgba(255,255,255,0.06); transform: translateY(-2px);
  border-color: rgba(124,58,237,0.3);
}
.cat-pill-premium .icon {
  font-size: 1.5rem; filter: grayscale(1); transition: 0.3s;
}
.cat-pill-premium .name {
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
}
.cat-pill-premium.active {
  background: var(--grad-card); border-color: rgba(124,58,237,0.5);
  box-shadow: 0 10px 30px rgba(124,58,237,0.2);
}
.cat-pill-premium.active .icon { filter: grayscale(0); transform: scale(1.1); }
.cat-pill-premium.active .name { color: var(--text-primary); }

.scan-footer-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem; background: rgba(0,0,0,0.3); border-top: 1px solid var(--border);
}

.pulse-btn {
  position: relative; animation: btn-pulse 2s infinite;
}
@keyframes btn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(124,58,237,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(124,58,237,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); }
}

.radar-telemetry {
  font-family: 'Courier New', monospace; font-size: 0.7rem; color: var(--violet-light);
  opacity: 0.5; position: absolute;
}

/* ── MULTI-SELECT & TAGS ── */
.toggle-group {
  display: flex; gap: 0.25rem; background: rgba(0,0,0,0.2);
  padding: 0.25rem; border-radius: var(--radius-md); border: 1px solid var(--border);
}
.toggle-btn {
  flex: 1; text-align: center; padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--text-secondary);
  transition: var(--transition);
}
.toggle-btn.active {
  background: var(--bg-surface); color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.08);
}
.tag-input-wrap {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  padding: 0.5rem 0.75rem; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  min-height: 48px; transition: var(--transition); cursor: text;
}
.tag-input-wrap:focus-within {
  border-color: rgba(124,58,237,0.5); box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
  background: rgba(255,255,255,0.07);
}
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  color: var(--violet-light); padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 500; white-space: nowrap;
}
.tag-chip-del { cursor: pointer; opacity: 0.6; transition: 0.2s; }
.tag-chip-del:hover { opacity: 1; color: var(--rose); }
.tag-input {
  flex: 1; min-width: 120px; background: transparent; border: none; outline: none;
  color: var(--text-primary); font-size: 0.95rem;
}

/* ── CATEGORY PILLS ── */
.cat-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.cat-pills { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.5rem; }
.cat-pill {
  display: flex; align-items: center; gap: 8px; padding: 0.6rem 0.8rem;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer; transition: var(--transition);
  color: var(--text-secondary); font-size: 0.8rem; font-weight: 500;
}
.cat-pill:hover { background: rgba(255,255,255,0.07); color: var(--text-primary); }
.cat-pill.active {
  background: var(--grad-card); border-color: rgba(124,58,237,0.4);
  color: var(--text-primary); box-shadow: 0 0 15px rgba(124,58,237,0.15);
}
.select-all-btn { cursor: pointer; font-size: 0.75rem; color: var(--violet-light); text-transform: uppercase; font-weight: 700; transition: 0.2s; border: none; background: transparent; }
.select-all-btn:hover { color: var(--cyan); }
