/* ═══════════════════════════════════════════════════
   SecureHub.ai — Dark Theme Stylesheet
   ═══════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #1e1f2e;
  color: #ededed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(99,102,241,0.3); }
img, svg { display: block; max-width: 100%; }

/* ── Navigation ───────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  background: rgba(30,31,46,0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__inner {
  max-width: 1400px; margin: 0 auto; padding: 0 1.5rem;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.nav__logo-icon {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 0.5rem;
  background: transparent;
}
.nav__logo-icon svg { width: 36px; height: 36px; }
.nav__logo-text {
  color: #fff; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; font-size: 1.25rem; margin-top: 0.125rem;
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  color: #9ca3af; font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s; text-decoration: none;
}
.nav__link:hover { color: #fff; }
.nav__link--icon { display: flex; align-items: center; gap: 0.5rem; }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__btn { font-size: 0.875rem; text-decoration: none; cursor: pointer; transition: all 0.2s; }
.nav__btn--outline {
  background: #fff; color: #000; padding: 0.375rem 1rem;
  border-radius: 9999px; font-weight: 500; border: none;
}
.nav__btn--outline:hover { background: #e5e7eb; }
.nav__btn--ghost {
  background: transparent; color: #9ca3af; border: none;
  padding: 0.375rem 0.75rem; border-radius: 0.5rem;
}
.nav__btn--ghost:hover { color: #fff; }
.nav__btn--github {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.05); color: #d1d5db;
  padding: 0.4375rem 0.875rem; border-radius: 0.375rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.12); font-size: 0.8125rem;
}
.nav__btn--github:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav__btn--github svg { flex-shrink: 0; }
.nav__user { font-size: 0.875rem; color: #9ca3af; }
.nav__logout-form { display: inline; }
.nav__hamburger {
  display: none; background: none; border: none; color: #9ca3af;
  cursor: pointer; padding: 0.25rem;
}
.nav__mobile {
  display: none; background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.5rem; flex-direction: column; gap: 0.25rem;
}
.nav__mobile--open { display: flex; }
.nav__mobile-link {
  display: block; padding: 0.5rem 0; font-size: 0.875rem;
  color: #d1d5db; text-decoration: none;
}
.nav__mobile-link:hover { color: #fff; }
.nav__mobile-link--btn {
  background: transparent; border: none; text-align: left;
  width: 100%; cursor: pointer; font: inherit;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative; max-width: 1400px; margin: 0 auto 3rem;
  padding: 6rem 1.5rem 0;
}
.hero > section,
.hero {
  position: relative;
}
.marketplace .hero {
  padding-top: 6rem;
}
.hero::after {
  content: ''; position: absolute; inset: 6rem 1.5rem 0; z-index: 0;
  border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, #1c1c21, #121214);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  pointer-events: none;
}
.hero__glow {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(120px); z-index: 1;
}
.hero__glow--1 {
  top: 0; right: 0; width: 500px; height: 500px;
  background: rgba(99,102,241,0.15);
  transform: translateX(25%) translateY(-25%);
}
.hero__glow--2 {
  bottom: 0; left: 0; width: 400px; height: 400px;
  background: rgba(168,85,247,0.1);
  transform: translateX(-25%) translateY(25%);
}
.hero__inner {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; gap: 3rem;
  align-items: center; justify-content: space-between;
  padding: 2rem 2rem 2.5rem;
}
.hero__content { flex: 1; width: 100%; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; font-size: 0.75rem; font-weight: 700;
  color: #a5b4fc; background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2); border-radius: 9999px;
  margin-bottom: 1.5rem;
}
.hero__badge svg { width: 16px; height: 16px; flex-shrink: 0; }
.hero__title {
  font-size: 2.25rem; font-weight: 800; color: #fff;
  letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 1.5rem;
}
.hero__title-gradient {
  background: linear-gradient(90deg, #818cf8, #a855f7, #ec4899);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__subtitle {
  color: #d1d5db; font-size: 1.125rem; max-width: 42rem; line-height: 1.7;
  background: linear-gradient(135deg, rgba(30,31,46,0.6), rgba(40,42,58,0.8));
  border-radius: 0.75rem; padding: 1.25rem 1.5rem; margin-top: 1.25rem;
  border: 1px solid rgba(255,255,255,0.04);
}
.hero__search-wrap { width: 100%; flex-shrink: 0; }
.hero__search {
  background: rgba(39,39,42,0.6); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 0.5rem;
  padding: 0.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  display: flex; align-items: center;
  transition: all 0.3s;
}
.hero__search:focus-within {
  border-color: rgba(99,102,241,0.5);
  background: rgba(39,39,42,0.9);
  box-shadow: 0 0 30px rgba(99,102,241,0.15);
}
.hero__search-icon {
  width: 24px; height: 24px; color: #818cf8; margin-left: 1rem; flex-shrink: 0;
}
.hero__search-form { flex: 1; }
.hero__search-input {
  width: 100%; background: transparent; border: none; outline: none;
  color: #fff; padding: 1rem; font-size: 1.125rem; font-family: inherit;
}
.hero__search-input::placeholder { color: #9ca3af; }
.hero__search-kbd {
  display: none; align-items: center; gap: 0.25rem; flex-shrink: 0;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  padding: 0.25rem 0.5rem; border-radius: 0.375rem;
  font-size: 0.75rem; color: #9ca3af; font-family: 'JetBrains Mono', monospace;
  margin-right: 0.75rem;
}
.hero__tags {
  margin-top: 1.25rem; display: flex; flex-wrap: wrap;
  align-items: center; gap: 0.5rem; padding: 0 0.5rem;
}
.hero__tags-label { font-size: 0.75rem; color: #9ca3af; font-weight: 500; margin-right: 0.25rem; }
.hero__tag {
  font-size: 0.75rem; cursor: pointer; padding: 0.375rem 0.75rem;
  border-radius: 9999px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05); color: #d1d5db;
  transition: all 0.2s; text-decoration: none;
}
.hero__tag:hover { color: #fff; background: rgba(255,255,255,0.08); }
.hero__tag--accent {
  color: #a5b4fc; background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.2);
}
.hero__tag--accent:hover { color: #fff; background: rgba(99,102,241,0.2); }

/* ── Market Layout ────────────────────────────────── */
.market { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.market__layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.market__main { min-width: 0; }
.market__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.market__tab {
  padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem;
  font-weight: 500; color: #d1d5db; background: #111111;
  border: 1px solid rgba(255,255,255,0.08); transition: all 0.2s;
  text-decoration: none; cursor: pointer;
}
.market__tab:hover { color: #fff; }
.market__tab--active {
  background: #fff; color: #000; font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3); border-color: transparent;
}

/* ── Skills Grid ──────────────────────────────────── */
.skills-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.skill-card {
  background: #0f0f11; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.5rem; padding: 1.25rem; display: flex; flex-direction: column;
  transition: all 0.3s; position: relative; overflow: hidden;
  text-decoration: none; color: inherit; cursor: pointer;
}
.skill-card:hover { border-color: rgba(99,102,241,0.3); }
.skill-card__glow {
  position: absolute; top: -2.5rem; right: -2.5rem; width: 8rem; height: 8rem;
  border-radius: 50%; filter: blur(48px); pointer-events: none; transition: all 0.3s;
}
.skill-card__glow--ok { background: rgba(99,102,241,0.1); }
.skill-card:hover .skill-card__glow--ok { background: rgba(99,102,241,0.2); }
.skill-card__glow--bad { background: rgba(244,63,94,0.1); }
.skill-card__header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.75rem; position: relative; z-index: 10;
}
.skill-card__type {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #818cf8; margin-bottom: 0.25rem; display: block;
}
.skill-card__name { font-size: 1.125rem; font-weight: 700; color: #fff; line-height: 1.3; }
.skill-card__author { font-size: 0.75rem; color: #6b7280; margin-top: 0.25rem; }
.skill-card__badge {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  padding: 0.5rem; border-radius: 0.5rem; border: 1px solid;
}
.skill-card__badge--ok {
  background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); color: #34d399;
}
.skill-card__badge--bad {
  background: rgba(244,63,94,0.1); border-color: rgba(244,63,94,0.2); color: #fb7185;
}
.skill-card__desc {
  font-size: 0.875rem; color: #9ca3af; margin-bottom: 1.25rem;
  flex-grow: 1; position: relative; z-index: 10; line-height: 1.6;
}
.skill-card__rating {
  display: flex; align-items: center; gap: 0.25rem;
  margin-bottom: 0.75rem; position: relative; z-index: 10;
}
.skill-card__rating-text { font-size: 0.75rem; color: #6b7280; margin-left: 0.25rem; }
.skill-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem; margin-bottom: 0.75rem; position: relative; z-index: 10;
}
.skill-card__downloads { color: #6b7280; display: flex; align-items: center; gap: 0.25rem; }
.skill-card__downloads svg { flex-shrink: 0; }
.skill-card__threat {
  font-family: 'JetBrains Mono', monospace; padding: 0.125rem 0.5rem;
  border-radius: 0.25rem; font-size: 10px; text-transform: uppercase;
  border: 1px solid;
}
.skill-card__threat--low {
  background: rgba(16,185,129,0.05); color: #34d399; border-color: rgba(16,185,129,0.1);
}
.skill-card__threat--medium {
  background: rgba(245,158,11,0.05); color: #fbbf24; border-color: rgba(245,158,11,0.1);
}
.skill-card__threat--high {
  background: rgba(244,63,94,0.05); color: #fb7185; border-color: rgba(244,63,94,0.1);
}
.skill-card__action {
  display: block; width: 100%; padding: 0.625rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 600; text-align: center;
  transition: all 0.2s; border: 1px solid; position: relative; z-index: 10;
}
.skill-card__action--install {
  background: rgba(255,255,255,0.05); color: #d1d5db;
  border-color: rgba(255,255,255,0.1);
}
.skill-card__action--install:hover {
  background: #6366f1; color: #fff; border-color: #6366f1;
}
.skill-card__action--blocked {
  background: rgba(244,63,94,0.1); color: #fb7185;
  border-color: rgba(244,63,94,0.2); cursor: not-allowed;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; width: 100%;
}

/* ── Stars ────────────────────────────────────────── */
.star { color: #3f3f46; font-size: 1rem; line-height: 1; }
.star--filled { color: #f59e0b; }
.star--sm { font-size: 0.875rem; }
.star--interactive { cursor: pointer; transition: color 0.15s; }

/* ── Live Security Feed ───────────────────────────── */
.feed {
  position: sticky; top: 96px; background: #0a0a0c;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 0.5rem;
  overflow: hidden; display: flex; flex-direction: column;
  height: calc(100vh - 120px); min-height: 500px;
}
.feed__header {
  padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05);
  background: #0f0f11; display: flex; align-items: center;
  justify-content: space-between; z-index: 10;
}
.feed__header-left { display: flex; align-items: center; gap: 0.5rem; }
.feed__pulse { width: 16px; height: 16px; color: #f43f5e; animation: pulse 2s infinite; }
.feed__title { color: #fff; font-weight: 600; font-size: 0.875rem; }
.feed__dot { position: relative; display: flex; width: 0.5rem; height: 0.5rem; }
.feed__dot-ping {
  animation: ping 1s cubic-bezier(0,0,0.2,1) infinite;
  position: absolute; display: inline-flex; width: 100%; height: 100%;
  border-radius: 50%; background: #fb7185; opacity: 0.75;
}
.feed__dot-core {
  position: relative; display: inline-flex; border-radius: 50%;
  width: 0.5rem; height: 0.5rem; background: #f43f5e;
}
.feed__body { padding: 1rem; overflow-y: auto; flex-grow: 1; }
.feed__body::-webkit-scrollbar { width: 4px; }
.feed__body::-webkit-scrollbar-track { background: transparent; }
.feed__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.feed__item {
  display: flex; gap: 0.75rem; align-items: flex-start;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  margin-bottom: 1rem; line-height: 1.5;
}
.feed__item--fade-in { animation: feedFadeIn 0.5s ease; }
.feed__time { color: #4b5563; flex-shrink: 0; margin-top: 0.125rem; }
.feed__text { line-height: 1.5; }
.feed__item--verify .feed__text { color: #34d399; }
.feed__item--alert .feed__text { color: #fb7185; font-weight: 700; }
.feed__item--patch .feed__text { color: #60a5fa; }
.feed__item--scan .feed__text { color: #fbbf24; }
.feed__item--system .feed__text { color: #818cf8; }
.feed__footer {
  padding: 0.75rem; border-top: 1px solid rgba(255,255,255,0.05);
  background: #0f0f11; text-align: center;
}
.feed__footer p {
  font-size: 10px; color: #6b7280; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700;
}

/* ── Skill Detail ─────────────────────────────────── */
.detail { padding: 6rem 1.5rem 4rem; max-width: 1400px; margin: 0 auto; }
.detail__inner { }
.detail__breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: #9ca3af; margin-bottom: 1.5rem;
}
.detail__breadcrumb a { color: #818cf8; transition: color 0.2s; }
.detail__breadcrumb a:hover { color: #fff; }
.detail__breadcrumb svg { flex-shrink: 0; color: #4b5563; }
.detail__layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.detail__header { margin-bottom: 2rem; }
.detail__badge-wrap { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.detail__shield {
  padding: 0.75rem; border-radius: 0.5rem; display: flex;
  align-items: center; justify-content: center; border: 1px solid;
}
.detail__shield--ok {
  background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); color: #34d399;
}
.detail__shield--bad {
  background: rgba(244,63,94,0.1); border-color: rgba(244,63,94,0.2); color: #fb7185;
}
.detail__type {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 700; color: #818cf8;
}
.detail__title { font-size: 1.875rem; font-weight: 700; color: #fff; }
.detail__author { font-size: 0.875rem; color: #9ca3af; }
.detail__status-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 0.5rem;
}
.detail__status {
  font-size: 0.75rem; font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; padding: 0.25rem 0.5rem;
  border-radius: 0.25rem; border: 1px solid;
}
.detail__status--active { background: rgba(16,185,129,0.1); color: #34d399; border-color: rgba(16,185,129,0.2); }
.detail__status--delisted { background: rgba(244,63,94,0.1); color: #fb7185; border-color: rgba(244,63,94,0.2); }
.detail__status--quarantined { background: rgba(245,158,11,0.1); color: #fbbf24; border-color: rgba(245,158,11,0.2); }
.detail__threat--low { background: rgba(16,185,129,0.05); color: #34d399; border: 1px solid rgba(16,185,129,0.1); font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; padding: 0.25rem 0.5rem; border-radius: 0.25rem; text-transform: uppercase; }
.detail__threat--medium { background: rgba(245,158,11,0.05); color: #fbbf24; border: 1px solid rgba(245,158,11,0.1); font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; padding: 0.25rem 0.5rem; border-radius: 0.25rem; text-transform: uppercase; }
.detail__threat--high { background: rgba(244,63,94,0.05); color: #fb7185; border: 1px solid rgba(244,63,94,0.1); font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; padding: 0.25rem 0.5rem; border-radius: 0.25rem; text-transform: uppercase; }
.detail__downloads { font-size: 0.875rem; color: #9ca3af; display: flex; align-items: center; gap: 0.25rem; }
.detail__card {
  background: #0f0f11; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.5rem; padding: 1.5rem; margin-bottom: 1.5rem;
}
.detail__card h2 { font-size: 1.125rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.detail__card h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.75rem; }
.detail__card p { color: #d1d5db; line-height: 1.7; }
.detail__muted { font-size: 0.875rem; color: #6b7280; }
.detail__rating-summary { display: flex; align-items: center; gap: 1rem; }
.detail__rating-big { font-size: 2.5rem; font-weight: 700; color: #fff; }
.detail__stars { display: flex; gap: 0.25rem; }
.detail__rating-count { font-size: 0.875rem; color: #9ca3af; }
.detail__scan {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem; border-radius: 0.5rem; margin-bottom: 0.5rem; border: 1px solid;
}
.detail__scan--passed { background: rgba(16,185,129,0.05); border-color: rgba(16,185,129,0.1); }
.detail__scan--failed { background: rgba(244,63,94,0.05); border-color: rgba(244,63,94,0.1); }
.detail__scan-status { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.875rem; }
.detail__scan--passed .detail__scan-status { color: #34d399; }
.detail__scan--failed .detail__scan-status { color: #fb7185; }
.detail__scan-vulns { font-size: 0.75rem; color: #9ca3af; }
.detail__scan-date { font-size: 0.75rem; color: #6b7280; font-family: 'JetBrains Mono', monospace; }
.detail__review { border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 1rem; margin-bottom: 1rem; }
.detail__review:last-child { border-bottom: none; margin-bottom: 0; }
.detail__review-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.detail__review-name { font-weight: 500; color: #fff; font-size: 0.875rem; }
.detail__review-stars { display: flex; }
.detail__review-date { font-size: 0.75rem; color: #6b7280; font-family: 'JetBrains Mono', monospace; margin-left: auto; }
.detail__review-comment { font-size: 0.875rem; color: #d1d5db; line-height: 1.6; }
.detail__review-form { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); }
.detail__review-form h3 { margin-bottom: 1rem; }
.detail__form-row { margin-bottom: 1rem; }
.detail__form-row label { display: block; font-size: 0.875rem; font-weight: 500; color: #d1d5db; margin-bottom: 0.5rem; }
.detail__star-select { display: flex; gap: 0.25rem; }
.detail__star-label { cursor: pointer; }
.detail__star-label input { display: none; }
.detail__form-row textarea {
  width: 100%; background: #1a1a1e; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem; padding: 0.75rem; font-size: 0.875rem; color: #fff;
  resize: vertical; outline: none; font-family: inherit; transition: border-color 0.2s;
}
.detail__form-row textarea:focus { border-color: #6366f1; }
.detail__sidebar { }
.detail__dl { }
.detail__dl dt { font-size: 0.75rem; color: #6b7280; text-transform: uppercase; margin-bottom: 0.25rem; }
.detail__dl dd { font-size: 0.875rem; color: #fff; margin-bottom: 0.75rem; }

/* ── Scanner ──────────────────────────────────────── */
.scanner {
  padding: 8rem 1.5rem 4rem; max-width: 800px; margin: 0 auto;
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
}
.scanner__inner { text-align: center; }
.scanner__icon {
  width: 4rem; height: 4rem; border-radius: 0.5rem; background: rgba(99,102,241,0.1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
  box-shadow: 0 0 30px rgba(99,102,241,0.2); color: #818cf8;
}
.scanner__title { font-size: 2.25rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.scanner__subtitle {
  color: #9ca3af; font-size: 1.125rem; margin-bottom: 2.5rem;
  max-width: 42rem; margin-left: auto; margin-right: auto;
}
.scanner__box {
  background: #111111; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.625rem; padding: 2rem; position: relative; overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.scanner__box-glow {
  position: absolute; top: 0; right: 0; width: 16rem; height: 16rem;
  background: rgba(99,102,241,0.05); border-radius: 50%;
  filter: blur(100px); pointer-events: none;
}
.scanner__state { text-align: center; }
.scanner__dropzone {
  width: 100%; border: 2px dashed rgba(255,255,255,0.1); border-radius: 0.5rem;
  padding: 2.5rem; text-align: center; cursor: pointer; margin-bottom: 2rem;
  transition: all 0.2s; color: #6b7280;
}
.scanner__dropzone:hover {
  background: rgba(255,255,255,0.02); border-color: rgba(99,102,241,0.5);
}
.scanner__dropzone svg { margin: 0 auto 1rem; }
.scanner__drop-title { color: #fff; font-weight: 500; margin-bottom: 0.25rem; }
.scanner__drop-sub { font-size: 0.875rem; color: #6b7280; }
.scanner__progress-info {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 1rem; font-family: 'JetBrains Mono', monospace;
}
.scanner__progress-label { color: #818cf8; font-size: 0.875rem; display: block; }
.scanner__progress-sub { color: #6b7280; font-size: 0.75rem; display: block; }
.scanner__progress-pct { font-size: 2.5rem; font-weight: 300; color: #fff; }
.scanner__bar {
  height: 0.5rem; width: 100%; background: #000; border-radius: 9999px;
  overflow: hidden; border: 1px solid rgba(255,255,255,0.05);
}
.scanner__bar-fill {
  height: 100%; background: #6366f1; border-radius: 9999px;
  box-shadow: 0 0 15px #6366f1; transition: width 250ms linear;
}
.scanner__pass-icon {
  width: 5rem; height: 5rem; border-radius: 50%; background: rgba(16,185,129,0.1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
  border: 1px solid rgba(16,185,129,0.2); color: #34d399;
}
.scanner__pass-title { font-size: 1.875rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.scanner__pass-sub {
  color: rgba(52,211,153,0.8); margin-bottom: 2rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.875rem;
}
.scanner__publish-form { text-align: left; }
.scanner__form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.scanner__form-row { display: flex; flex-direction: column; }
.scanner__form-row--full { grid-column: span 2; }
.scanner__form-row label { font-size: 0.875rem; font-weight: 500; color: #d1d5db; margin-bottom: 0.5rem; }
.scanner__form-row input,
.scanner__form-row select,
.scanner__form-row textarea {
  background: #1a1a1e; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem; padding: 0.75rem; font-size: 0.875rem;
  color: #fff; outline: none; font-family: inherit; transition: border-color 0.2s;
}
.scanner__form-row input:focus,
.scanner__form-row select:focus,
.scanner__form-row textarea:focus { border-color: #6366f1; }
.scanner__form-row select { appearance: auto; }
.scanner__actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }

/* ── Dashboard ────────────────────────────────────── */
.dashboard { padding: 6rem 1.5rem 4rem; max-width: 1400px; margin: 0 auto; }
.dashboard__inner { }
.dashboard__title { font-size: 1.875rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.dashboard__subtitle { color: #9ca3af; margin-bottom: 2rem; }
.dashboard__stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin-bottom: 2rem;
}
.dashboard__stat {
  background: #0f0f11; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.5rem; padding: 1rem; text-align: center;
}
.dashboard__stat-value { font-size: 1.5rem; font-weight: 700; color: #fff; display: block; }
.dashboard__stat-label { font-size: 0.75rem; color: #6b7280; text-transform: uppercase; }
.dashboard__stat--ok .dashboard__stat-value { color: #34d399; }
.dashboard__stat--warn .dashboard__stat-value { color: #fbbf24; }
.dashboard__stat--danger .dashboard__stat-value { color: #fb7185; }
.dashboard__card {
  background: #0f0f11; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.5rem; padding: 1.5rem;
}
.dashboard__card h2 { font-size: 1.125rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.dashboard__table-wrap { overflow-x: auto; }
.dashboard__table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.dashboard__table th {
  text-align: left; font-size: 0.75rem; color: #6b7280; text-transform: uppercase;
  padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.05); white-space: nowrap;
}
.dashboard__table td {
  padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.03);
  color: #d1d5db; white-space: nowrap;
}
.dashboard__table a { color: #818cf8; }
.dashboard__table a:hover { color: #fff; }
.dashboard__inline-form { display: inline; }
.dashboard__toggle {
  background: #1a1a1e; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.25rem; padding: 0.25rem 0.5rem; font-size: 0.75rem;
  cursor: pointer; color: #9ca3af; font-family: inherit;
}
.dashboard__toggle--on {
  background: rgba(16,185,129,0.2); color: #34d399; border-color: rgba(16,185,129,0.3);
}
.dashboard__actions { display: flex; gap: 0.25rem; }
.dashboard__action-btn {
  width: 1.75rem; height: 1.75rem; border-radius: 0.25rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid; font-size: 0.75rem; cursor: pointer;
  background: transparent; transition: all 0.2s; font-family: inherit;
}
.dashboard__action-btn--ok { border-color: rgba(16,185,129,0.3); color: #34d399; }
.dashboard__action-btn--ok:hover { background: rgba(16,185,129,0.1); }
.dashboard__action-btn--warn { border-color: rgba(245,158,11,0.3); color: #fbbf24; }
.dashboard__action-btn--warn:hover { background: rgba(245,158,11,0.1); }
.dashboard__action-btn--danger { border-color: rgba(244,63,94,0.3); color: #fb7185; }
.dashboard__action-btn--danger:hover { background: rgba(244,63,94,0.1); }
.dashboard__action-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Auth ─────────────────────────────────────────── */
.auth {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 4rem 1.5rem;
}
.auth__card {
  background: #0f0f11; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.5rem; padding: 2rem; width: 100%; max-width: 400px;
}
.auth__title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.auth__subtitle { font-size: 0.875rem; color: #9ca3af; margin-bottom: 1.5rem; }
.auth__error {
  background: rgba(244,63,94,0.1); border: 1px solid rgba(244,63,94,0.2);
  color: #fb7185; font-size: 0.875rem; padding: 0.75rem;
  border-radius: 0.5rem; margin-bottom: 1rem;
}
.auth__field { margin-bottom: 1rem; }
.auth__field label {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: #d1d5db; margin-bottom: 0.5rem;
}
.auth__field input {
  width: 100%; background: #1a1a1e; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem; padding: 0.75rem; font-size: 0.875rem;
  color: #fff; outline: none; font-family: inherit; transition: border-color 0.2s;
}
.auth__field input:focus { border-color: #6366f1; }
.auth__footer-text { font-size: 0.875rem; color: #9ca3af; text-align: center; margin-top: 1rem; }
.auth__demo {
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.75rem; color: #6b7280; line-height: 1.8;
}
.auth__demo strong { color: #9ca3af; }

/* ── Docs ─────────────────────────────────────────── */
.docs { padding: 8rem 1.5rem 4rem; max-width: 900px; margin: 0 auto; text-align: center; }
.docs__icon { color: #4b5563; margin: 0 auto 1.5rem; }
.docs__icon svg { margin: 0 auto; }
.docs__title { font-size: 2.25rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.docs__subtitle { color: #b8bcc8; font-size: 1.125rem; margin-bottom: 2.5rem; line-height: 1.8; }
.docs__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; text-align: left; }
.docs__card {
  background: #141525; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.5rem; padding: 2rem;
}
.docs__card h3 { font-size: 1.125rem; font-weight: 600; color: #fff; margin-bottom: 0.625rem; }
.docs__card p { font-size: 1rem; color: #b8bcc8; margin-bottom: 1rem; line-height: 1.7; }
.docs__code {
  display: block; background: #000; border-radius: 0.5rem; padding: 0.75rem;
  font-size: 0.75rem; font-family: 'JetBrains Mono', monospace;
  color: #818cf8; overflow-x: auto;
}

/* ── Docs: SkillBOM Specification ─────────────────── */
.docs__spec { text-align: left; margin-top: 0; }
.docs__spec-header { text-align: center; margin-bottom: 3rem; }
.docs__spec-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem; font-size: 0.75rem; font-weight: 700;
  color: #a5b4fc; background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2); border-radius: 9999px;
  margin-bottom: 1rem;
}
.docs__spec-badge svg { flex-shrink: 0; }
.docs__spec-title { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.docs__spec-subtitle { font-size: 1.125rem; color: #d1d5db; margin-bottom: 0.75rem; }
.docs__spec-lead { font-size: 0.9375rem; color: #9ca3af; max-width: 40rem; margin: 0 auto; line-height: 1.7; }

.docs__spec-section {
  background: #141525; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.5rem; padding: 2.5rem; margin-bottom: 1.25rem;
}
.docs__spec-section h3 {
  font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 1.25rem;
  padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.docs__spec-section h4 { font-size: 1.125rem; font-weight: 600; color: #e2e8f0; margin: 2rem 0 1rem; }
.docs__spec-section h5 { font-size: 0.8125rem; font-weight: 600; color: #a5b4fc; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.docs__spec-section p { font-size: 1rem; color: #b8bcc8; line-height: 1.8; margin-bottom: 1rem; }
.docs__spec-section strong { color: #e2e8f0; }
.docs__spec-section code {
  font-family: 'JetBrains Mono', monospace; font-size: 0.875rem;
  color: #a5b4fc; background: rgba(99,102,241,0.1); padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

.docs__spec-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.docs__spec-list li {
  font-size: 1rem; color: #b8bcc8; line-height: 1.8;
  padding: 0.5rem 0 0.5rem 1.75rem; position: relative;
}
.docs__spec-list li::before {
  content: ''; position: absolute; left: 0.375rem; top: 1rem;
  width: 6px; height: 6px; border-radius: 50%; background: #4b5563;
}
.docs__spec-list--risk li::before { background: #fb7185; }
ol.docs__spec-list { counter-reset: spec-counter; }
ol.docs__spec-list li {
  counter-increment: spec-counter; padding-left: 3rem;
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
ol.docs__spec-list li::before {
  content: counter(spec-counter); background: rgba(99,102,241,0.2); color: #818cf8;
  width: 1.75rem; height: 1.75rem; border-radius: 50%; font-size: 0.75rem;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  top: 0.85rem; left: 0;
}

.docs__spec-detail { font-size: 0.8125rem; color: #6b7280; margin: 0.5rem 0 1rem; }

.docs__spec-block {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
  border-radius: 0.375rem; padding: 1.25rem; margin-bottom: 1rem;
}
.docs__spec-block h4 { margin-top: 0; }

.docs__spec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.docs__spec-table-wrap { overflow-x: auto; margin: 0.75rem 0 1rem; }
.docs__spec-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.docs__spec-table th {
  text-align: left; font-size: 0.6875rem; color: #6b7280; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.625rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02);
}
.docs__spec-table td {
  padding: 0.625rem 0.75rem; color: #d1d5db;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.docs__spec-table td strong { color: #fff; }
.docs__spec-table code {
  font-size: 0.75rem; background: rgba(99,102,241,0.08); padding: 0.125rem 0.25rem;
  border-radius: 0.125rem;
}

.docs__spec-pre {
  background: #000; border: 1px solid rgba(255,255,255,0.05); border-radius: 0.375rem;
  padding: 1.25rem; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  color: #818cf8; overflow-x: auto; line-height: 1.6; margin: 0.75rem 0 1rem;
}

.docs__spec-grades { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.75rem 0 1.5rem; }
.docs__spec-grade {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1rem;
  border-radius: 0.375rem; font-size: 0.8125rem; color: #9ca3af;
  border: 1px solid rgba(255,255,255,0.04); background: rgba(255,255,255,0.02);
}
.docs__spec-grade span:first-child { font-weight: 800; font-size: 1rem; min-width: 1.5rem; }
.docs__spec-grade span:nth-child(2) {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  color: #6b7280; min-width: 3.5rem;
}
.docs__spec-grade--a span:first-child { color: #34d399; }
.docs__spec-grade--b span:first-child { color: #60a5fa; }
.docs__spec-grade--c span:first-child { color: #fbbf24; }
.docs__spec-grade--d span:first-child { color: #fb923c; }
.docs__spec-grade--f span:first-child { color: #fb7185; }

@media (max-width: 767px) {
  .docs__spec-cols { grid-template-columns: 1fr; gap: 1rem; }
  .docs__spec-section { padding: 1.25rem; }
}

/* ── Error Page ───────────────────────────────────── */
.error-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 1.5rem;
}
.error-page__title { font-size: 2.25rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.error-page__message { color: #9ca3af; margin-bottom: 2rem; }

/* ── Footer ───────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05); margin-top: auto;
  padding: 2rem 0; text-align: center;
}
.footer p { font-size: 0.75rem; color: #4b5563; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1rem; border-radius: 0.5rem; font-size: 0.875rem;
  font-weight: 600; transition: all 0.2s; cursor: pointer;
  border: none; font-family: inherit; text-decoration: none;
}
.btn--primary { background: #6366f1; color: #fff; }
.btn--primary:hover { background: #818cf8; }
.btn--white { background: #fff; color: #000; }
.btn--white:hover { background: #e5e7eb; }
.btn--ghost {
  background: transparent; border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,0.05); }
.btn--accent {
  background: #6366f1; color: #fff;
  box-shadow: 0 0 20px rgba(79,70,229,0.4);
}
.btn--accent:hover { background: #818cf8; }
.btn--danger { background: rgba(244,63,94,0.1); color: #fb7185; }
.btn--full { width: 100%; }
.btn--lg { padding: 1rem 2rem; font-size: 1.125rem; border-radius: 0.5rem; }

/* ── Utilities ────────────────────────────────────── */
.link { color: #818cf8; text-decoration: none; transition: color 0.2s; }
.link:hover { color: #fff; }
.badge {
  display: inline-block; padding: 0.125rem 0.5rem; border-radius: 0.25rem;
  font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; border: 1px solid;
}
.badge--type { background: rgba(99,102,241,0.1); color: #818cf8; border-color: rgba(99,102,241,0.2); }
.badge--threat-low { background: rgba(16,185,129,0.05); color: #34d399; border-color: rgba(16,185,129,0.1); }
.badge--threat-medium { background: rgba(245,158,11,0.05); color: #fbbf24; border-color: rgba(245,158,11,0.1); }
.badge--threat-high { background: rgba(244,63,94,0.05); color: #fb7185; border-color: rgba(244,63,94,0.1); }
.badge--status-active { background: rgba(16,185,129,0.1); color: #34d399; border-color: rgba(16,185,129,0.2); }
.badge--status-delisted { background: rgba(244,63,94,0.1); color: #fb7185; border-color: rgba(244,63,94,0.2); }
.badge--status-quarantined { background: rgba(245,158,11,0.1); color: #fbbf24; border-color: rgba(245,158,11,0.2); }

/* ── Animations ───────────────────────────────────── */
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes feedFadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Responsive ───────────────────────────────────── */
@media (min-width: 640px) {
  .hero__search-kbd { display: flex; }
}
@media (min-width: 768px) {
  .hero__title { font-size: 3rem; }
  .hero__inner { padding: 3rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard__stats { grid-template-columns: repeat(4, 1fr); }
  .scanner__box { padding: 3rem; }
  .feed__item { font-size: 12px; }
  .nav__hamburger { display: none; }
}
@media (min-width: 1024px) {
  .hero__title { font-size: 3.75rem; }
  .hero__inner { flex-direction: row; }
  .hero__search-wrap { width: 480px; }
  .market__layout { grid-template-columns: 8fr 4fr; }
  .detail__layout { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 1280px) {
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .market__layout { grid-template-columns: 9fr 3fr; }
  .dashboard__stats { grid-template-columns: repeat(7, 1fr); }
}
@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__actions { display: none; }
  .nav__hamburger { display: block; }
  .hero { padding-top: 5rem; }
  .hero::after { inset: 5rem 1rem 0; }
  .hero__title { font-size: 1.75rem; }
  .scanner__form-grid { grid-template-columns: 1fr; }
  .scanner__form-row--full { grid-column: span 1; }
  .docs__cards { grid-template-columns: 1fr; }
  .dashboard__stats { grid-template-columns: repeat(2, 1fr); }
  .feed { position: static; height: auto; min-height: auto; max-height: 400px; }
}
