/* =============================================
   CYBER-SCANNER — стиль сайта + кибер-акценты
   ============================================= */

/* Main site variables (mirrored for standalone page) */
:root {
  --bg: #06060d;
  --surface: #0d0d1a;
  --surface-hover: #141428;
  --border: #1e1e35;
  --text: #edeff5;
  --text-dim: #9090aa;
  --text-faint: #606078;
  --radius: 12px;
  --radius-sm: 8px;
  --cyan: #00d4ff;
  --purple: #7c3aed;
  --red: #ff4466;
  --orange: #ff8c42;
  --yellow: #ffc940;
  --green: #22c55e;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0,212,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(124,58,237,0.06) 0%, transparent 50%);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 10px 0 4px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--cyan); }

/* Hero */
.scanner-hero {
  text-align: center;
  padding: 20px 0 32px;
}
.hero-icon {
  font-size: 3rem;
  color: var(--cyan);
  margin-bottom: 12px;
  filter: drop-shadow(0 0 20px rgba(0,212,255,0.3));
}
.scanner-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.hero-sub {
  color: var(--text-dim);
  font-size: 1rem;
  margin-top: 6px;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.hero-badges span {
  font-size: 0.82rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-badges i { color: var(--green); font-size: 0.75rem; }

/* Input section */
.scan-input-section {
  margin-bottom: 28px;
}
.input-row {
  display: flex;
  gap: 10px;
}
.input-wrapper {
  flex: 1;
  position: relative;
}
.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 0.9rem;
}
.scan-input {
  width: 100%;
  padding: 16px 16px 16px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: border 0.2s, box-shadow 0.2s;
}
.scan-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.scan-input::placeholder { color: var(--text-faint); }

.scan-btn {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s;
}
.scan-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,212,255,0.3); }
.scan-btn:active { transform: translateY(0); }
.scan-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.quick-scans {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.quick-scans button {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-dim);
  padding: 4px 14px;
  font-size: 0.76rem;
  cursor: pointer;
  transition: border 0.2s, color 0.2s;
}
.quick-scans button:hover { border-color: var(--cyan); color: var(--cyan); }

/* Section label */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 12px;
}

/* Modules */
.modules-section { margin-bottom: 28px; }
.modules-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.module-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.module-chip i { font-size: 0.75rem; }
.module-chip:hover { border-color: var(--cyan); color: #fff; }
.module-chip.active {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.08);
  color: var(--cyan);
}

/* Progress */
.progress-section {
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.progress-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
}
.progress-pct {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.progress-track {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s ease;
}
.progress-scanline {
  position: absolute;
  top: 0; left: -100%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: scanline 1.5s infinite;
}
@keyframes scanline {
  0% { left: -40%; } 100% { left: 100%; }
}
.progress-log {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  max-height: 120px;
  overflow-y: auto;
}
.progress-log .log-line { padding: 2px 0; }
.progress-log .log-line:before { content: '> '; color: var(--cyan); }

/* Results */
.results-section {
  margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.results-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.results-header-bar h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.results-header-bar h3:before { content: '\f132'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--cyan); font-size: 1.1rem; }
.results-actions { display: flex; gap: 8px; align-items: center; }

/* Grade badge */
.grade-badge {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900;
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.04);
  border: 3px solid var(--border);
  color: var(--text-faint);
  transition: all 0.4s;
  margin-right: 6px;
}
.grade-badge.Aplus, .grade-badge.A { border-color: #22c55e; color: #22c55e; box-shadow: 0 0 16px rgba(34,197,94,0.3); }
.grade-badge.B { border-color: #a3e635; color: #a3e635; box-shadow: 0 0 12px rgba(163,230,53,0.2); }
.grade-badge.C { border-color: #facc15; color: #facc15; box-shadow: 0 0 12px rgba(250,204,21,0.2); }
.grade-badge.D { border-color: #f97316; color: #f97316; box-shadow: 0 0 14px rgba(249,115,22,0.25); }
.grade-badge.F { border-color: #ef4444; color: #ef4444; box-shadow: 0 0 16px rgba(239,68,68,0.35); animation: pulse-grade 1.5s infinite; }
@keyframes pulse-grade { 0%,100% { box-shadow: 0 0 16px rgba(239,68,68,0.35); } 50% { box-shadow: 0 0 28px rgba(239,68,68,0.6); } }

.btn-sm {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-hover);
  color: var(--text-dim);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-sm:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.76rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.results-meta {
  display: flex;
  gap: 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.results-meta span { display: flex; align-items: center; gap: 6px; }
.results-meta i { color: var(--text-faint); }

.results-layout {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  min-height: 300px;
}

/* Stats panel */
.results-stats {
  padding: 20px;
  border-right: 1px solid var(--border);
}
.results-stats .stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.results-stats .stat-row .stat-val { font-weight: 700; font-family: var(--font-mono); }
.stat-critical { color: var(--red); }
.stat-high { color: var(--orange); }
.stat-medium { color: var(--yellow); }
.stat-low { color: var(--green); }
.stat-passed { color: var(--cyan); }

/* Vulns panel */
.results-vulns {
  padding: 20px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vuln-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid;
  background: rgba(255,255,255,0.02);
}
.vuln-card.critical { border-color: var(--red); background: rgba(255,68,102,0.06); }
.vuln-card.high { border-color: var(--orange); background: rgba(255,140,66,0.06); }
.vuln-card.medium { border-color: var(--yellow); background: rgba(255,201,64,0.06); }
.vuln-card.low { border-color: var(--green); background: rgba(34,197,94,0.06); }
.vuln-card.info { border-color: var(--cyan); background: rgba(0,212,255,0.04); }

.vuln-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.vuln-card-title { font-size: 0.82rem; font-weight: 700; }
.vuln-card-sev {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}
.vuln-card-sev.critical { background: var(--red); color: #fff; }
.vuln-card-sev.high { background: var(--orange); color: #000; }
.vuln-card-sev.medium { background: var(--yellow); color: #000; }
.vuln-card-sev.low { background: var(--green); color: #000; }
.vuln-card-sev.info { background: var(--cyan); color: #000; }
.vuln-card-desc { font-size: 0.78rem; color: var(--text-dim); line-height: 1.4; }
.vuln-card-fix { font-size: 0.74rem; color: var(--green); margin-top: 6px; }
.vuln-empty {
  color: var(--text-faint);
  font-size: 0.85rem;
  text-align: center;
  padding: 30px 0;
}

/* Tech panel */
.results-tech {
  padding: 20px;
}
.results-tech h4 {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.tech-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  margin: 0 6px 8px 0;
}

/* Error toast */
.error-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,68,102,0.15);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 24px;
  color: #ff8899;
  font-size: 0.85rem;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

/* History */
.history-section {
  margin-bottom: 40px;
}
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border 0.2s;
}
.history-item:hover { border-color: var(--cyan); }
.history-item .hi-url {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
}
.history-item .hi-meta {
  font-size: 0.72rem;
  color: var(--text-faint);
  display: flex;
  gap: 12px;
}
.history-item .hi-badge {
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.history-empty {
  color: var(--text-faint);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}

/* Utilities */
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .scanner-hero h1 { font-size: 1.6rem; }
  .input-row { flex-direction: column; }
  .scan-btn { justify-content: center; }
  .results-layout { grid-template-columns: 1fr; }
  .results-stats { border-right: none; border-bottom: 1px solid var(--border); }
  .results-vulns { border-right: none; }
  .modules-grid { gap: 6px; }
  .module-chip { padding: 8px 14px; font-size: 0.76rem; }
}

/* =============================================
   SITE NAV & FOOTER (from main styles.css)
   ============================================= */
:root {
  --magenta: #ff2d7b;
  --ease-out: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  padding: 10px 20px; border-radius: 6px;
  background: var(--cyan); color: #000; font-weight: 700;
  text-decoration: none; font-size: 0.88rem;
}
.skip-link:focus { top: 16px; }

.site-nav {
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  background: rgba(6,6,13,0.72);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  margin-bottom: 24px;
}
.nav-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 50px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.15rem; font-weight: 900; letter-spacing: 0.14em;
  color: #fff; text-decoration: none; text-transform: uppercase;
  position: relative; transition: color 0.3s;
}
.nav-logo:hover { color: var(--cyan); }
.nav-logo::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 100%; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--purple));
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  color: var(--text-dim); text-decoration: none;
  padding: 8px 18px; border-radius: 50px;
  font-size: 0.88rem; font-weight: 500;
  transition: all 0.25s;
  border: 1px solid transparent;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-link.active {
  color: var(--cyan);
  background: rgba(0,212,255,0.07);
  border-color: rgba(0,212,255,0.22);
}
.nav-social {
  display: flex; gap: 14px; align-items: center;
  margin-left: 18px; padding-left: 18px;
  border-left: 1px solid var(--border);
}
.nav-social a { color: var(--text-dim); font-size: 1.15rem; transition: color 0.25s; }
.nav-social a:hover { color: #fff; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0; margin-top: 40px; text-align: center;
}
.footer-content {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap; font-size: 0.84rem; color: var(--text-faint);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-dim); text-decoration: none; transition: color 0.25s; }
.footer-links a:hover { color: #fff; }

@media (max-width: 768px) {
  .nav-inner { height: auto; flex-direction: column; gap: 8px; padding: 10px 0; }
  .nav-links { overflow-x: auto; padding-bottom: 4px; }
  .nav-link { padding: 6px 14px; font-size: 0.8rem; white-space: nowrap; flex-shrink: 0; }
  .nav-social { display: none; }
  .footer-content { flex-direction: column; gap: 14px; }
}
