/* =============================================================================
   CYBERGAZE DASHBOARD — Professional Cybersecurity UI v2
   Enhanced: scan result cards, AI reports, stats dashboard, OSINT panel
   ============================================================================= */

/* =============================================================================
   0. SCAN TYPE SELECTOR CARDS
   ============================================================================= */

.scan-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.scan-type-card {
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 12px 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: left;
  user-select: none;
}
.scan-type-card:hover {
  border-color: rgba(0, 255, 157, 0.25);
  background: rgba(0, 255, 157, 0.03);
}
.scan-type-card.selected {
  border-color: rgba(0, 255, 157, 0.55);
  background: rgba(0, 255, 157, 0.05);
  box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.2), 0 0 18px rgba(0, 255, 157, 0.06);
}
.scan-type-card.selected::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #00ff9d, transparent);
}

.scan-type-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.scan-type-badge--free       { background: rgba(0,255,157,0.12); color: #00ff9d; border: 1px solid rgba(0,255,157,0.3); }
.scan-type-badge--pro        { background: rgba(168,85,247,0.12); color: #a855f7; border: 1px solid rgba(168,85,247,0.3); }
.scan-type-badge--enterprise { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }

.scan-type-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 4px;
  display: block;
}
.scan-type-desc {
  font-size: 0.67rem;
  color: #6b7280;
  line-height: 1.4;
}
.scan-type-eta {
  font-size: 0.6rem;
  color: #4b5563;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  margin-top: 2px;
}

.scan-type-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.scan-type-card.selected .scan-type-check {
  background: #00ff9d;
  border-color: #00ff9d;
}
.scan-type-check svg { display: none; }
.scan-type-card.selected .scan-type-check svg { display: block; }

/* Scan type label shown in results */
.scan-type-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.2);
  color: #00ff9d;
  margin-bottom: 14px;
}
.scan-type-result-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00ff9d;
}

/* =============================================================================
   0b. CONSENT MODAL
   ============================================================================= */

.consent-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.consent-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.consent-modal {
  background: rgb(8, 14, 28);
  border: 1px solid rgba(0, 255, 157, 0.18);
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 0 0 1px rgba(0,255,157,0.06), 0 24px 60px rgba(0,0,0,0.7);
  transform: translateY(10px);
  transition: transform 0.25s ease;
  position: relative;
}
.consent-overlay.open .consent-modal {
  transform: translateY(0);
}

.consent-modal-icon {
  width: 44px; height: 44px;
  background: rgba(0,255,157,0.08);
  border: 1px solid rgba(0,255,157,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: #00ff9d;
}

.consent-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 12px;
}

.consent-modal-body {
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.65;
  margin-bottom: 20px;
  border-left: 2px solid rgba(245,158,11,0.4);
  padding-left: 12px;
}

.consent-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  cursor: pointer;
}
.consent-checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #00ff9d;
  flex-shrink: 0;
  cursor: pointer;
}
.consent-checkbox-label {
  font-size: 0.78rem;
  color: #d1d5db;
  cursor: pointer;
}

.consent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.consent-cancel-btn {
  padding: 9px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #9ca3af;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.consent-cancel-btn:hover {
  border-color: rgba(255,255,255,0.25);
  color: #e5e7eb;
}
.consent-continue-btn {
  padding: 9px 22px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #00ff9d, #00c97a);
  color: #0a0f1e;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.consent-continue-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.consent-continue-btn:not(:disabled):hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =============================================================================
   1. SCAN SCORE CARDS  (SSL / Headers / Vulnerabilities)
   ============================================================================= */

.scan-score-card {
  background: rgba(8, 14, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 22px 16px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}
.scan-score-card:hover {
  border-color: rgba(0, 255, 157, 0.22);
  box-shadow: 0 0 28px rgba(0, 255, 157, 0.05), 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.card-accent-top {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  border-radius: 9999px 9999px 0 0;
}
.card-accent-top--blue  { background: linear-gradient(90deg, transparent 0%, #00b4ff 50%, transparent 100%); }
.card-accent-top--purple{ background: linear-gradient(90deg, transparent 0%, #a855f7 50%, transparent 100%); }
.card-accent-top--red   { background: linear-gradient(90deg, transparent 0%, #ef4444 50%, transparent 100%); }
.card-accent-top--green { background: linear-gradient(90deg, transparent 0%, #00ff9d 50%, transparent 100%); }

.scan-score-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  border: 1px solid;
}

.scan-score-value {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.scan-score-label {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4b5563;
  margin-top: 10px;
}

.score-bar-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  overflow: hidden;
  margin: 10px 0 4px;
}
.score-bar-fill {
  height: 100%;
  border-radius: 9999px;
  width: 0%;
  transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.score-bar-fill--ssl     { background: linear-gradient(90deg, #0077cc, #00b4ff); }
.score-bar-fill--headers { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.score-bar-fill--vuln    { background: linear-gradient(90deg, #b45309, #f59e0b); }

.score-bar-pct {
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  color: #374151;
  min-height: 14px;
}


/* =============================================================================
   2. FILE ANALYZER — Enhanced Risk Card
   ============================================================================= */

.re-risk-enhanced {
  padding: 20px 24px 14px;
}
.re-risk-enhanced .re-risk-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

/* Risk circle score ring */
.re-risk-ring {
  width: 80px; height: 80px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 3px solid;
  position: relative;
}
.re-risk-ring .re-score-num {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 1.6rem; font-weight: 800; line-height: 1;
}
.re-risk-ring .re-score-sub {
  font-size: 0.48rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: #6b7280; margin-top: 2px;
}
.re-risk-ring--high   { border-color: rgba(239, 68, 68, 0.6);  background: rgba(239,68,68,0.06); }
.re-risk-ring--medium { border-color: rgba(245,158,11, 0.6);  background: rgba(245,158,11,0.06); }
.re-risk-ring--low    { border-color: rgba(0,255,157, 0.5);   background: rgba(0,255,157,0.06);  }

.re-verdict-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 16px; border-radius: 9999px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid;
}
.re-verdict-badge--high   { color: #ef4444; border-color: rgba(239,68,68,0.4);  background: rgba(239,68,68,0.08); }
.re-verdict-badge--medium { color: #f59e0b; border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.08); }
.re-verdict-badge--low    { color: #00ff9d; border-color: rgba(0,255,157,0.4);  background: rgba(0,255,157,0.08); }

.re-risk-progress-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
  overflow: hidden;
  margin: 0 24px 16px;
}
.re-risk-progress-fill {
  height: 100%;
  border-radius: 9999px;
  width: 0%;
  transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.re-risk-progress-fill--high   { background: linear-gradient(90deg, #b91c1c, #ef4444); }
.re-risk-progress-fill--medium { background: linear-gradient(90deg, #d97706, #f59e0b); }
.re-risk-progress-fill--low    { background: linear-gradient(90deg, #059669, #00ff9d); }


/* =============================================================================
   3. AI SECURITY REPORT — Enhanced Block
   ============================================================================= */

.ai-report-v2 {
  background: linear-gradient(135deg,
    rgba(0, 12, 35, 0.97) 0%,
    rgba(0, 5, 18, 0.99) 100%);
  border: 1px solid rgba(0, 180, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.ai-report-v2::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,180,255,0.5), transparent);
}

.ai-report-v2-header {
  background: rgba(0, 20, 50, 0.7);
  border-bottom: 1px solid rgba(0, 180, 255, 0.12);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
}
.ai-brain-wrap {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(0, 180, 255, 0.1);
  border: 1px solid rgba(0, 180, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
}
.ai-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #00ff9d;
  animation: aiLivePulse 2s ease-in-out infinite;
  margin-left: auto;
}
@keyframes aiLivePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,255,157,0.5); }
  50%       { opacity: 0.6; box-shadow: 0 0 0 5px rgba(0,255,157,0); }
}

.ai-section-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 10px;
}
.ai-section-card:last-child { margin-bottom: 0; }

.ai-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 10px; padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-bullet-v2 {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.78rem; color: #d1d5db; line-height: 1.55;
}
.ai-bullet-v2:last-child { border-bottom: none; padding-bottom: 0; }
.ai-bullet-icon { flex-shrink: 0; margin-top: 2px; }


/* =============================================================================
   4. DASHBOARD — Platform Stats v2
   ============================================================================= */

.live-indicator {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 255, 157, 0.07);
  border: 1px solid rgba(0, 255, 157, 0.2);
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #00ff9d;
}
.live-indicator-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00ff9d;
  animation: liveDotBlink 1.4s ease-in-out infinite;
}
@keyframes liveDotBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}


/* =============================================================================
   5. RECENT SCANS WIDGET
   ============================================================================= */

#recent-scans-widget {
  background: rgba(8, 14, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
#recent-scans-widget::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,157,0.35), transparent);
}

.rsw-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.25);
}
.rsw-title {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #9ca3af; display: flex; align-items: center; gap: 7px;
}

.rsw-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease;
  animation: rswRowIn 0.35s ease both;
}
.rsw-row:last-child { border-bottom: none; }
.rsw-row:hover { background: rgba(0, 255, 157, 0.02); }
@keyframes rswRowIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.rsw-verdict {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 9999px;
  font-size: 0.59rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid; white-space: nowrap; flex-shrink: 0;
}
.rsw-verdict--safe       { color: #2ecc71; border-color: rgba(46,204,113,0.3);  background: rgba(46,204,113,0.07); }
.rsw-verdict--suspicious { color: #f1c40f; border-color: rgba(241,196,15,0.3); background: rgba(241,196,15,0.07); }
.rsw-verdict--malicious  { color: #e74c3c; border-color: rgba(231,76,60,0.3);  background: rgba(231,76,60,0.07); }
.rsw-verdict--unknown    { color: #6b7280; border-color: rgba(107,114,128,0.25); background: rgba(107,114,128,0.06); }

.rsw-target {
  flex: 1; min-width: 0;
  font-size: 0.75rem; color: #d1d5db;
  font-family: 'Fira Code', monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rsw-time {
  font-size: 0.62rem; color: #374151;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap; flex-shrink: 0;
}
.rsw-score {
  font-size: 0.7rem; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0; min-width: 28px; text-align: right;
}
.rsw-type-badge {
  font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #374151; flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 2px 6px;
}

.rsw-empty {
  padding: 28px 18px;
  text-align: center;
  font-size: 0.75rem; color: #374151;
  font-family: 'Fira Code', monospace;
}


/* =============================================================================
   6. SCAN DETAILS LIST — Enhanced Rows
   ============================================================================= */

.detail-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 12px;
  border-radius: 0 8px 8px 0;
  border-left: 2px solid;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 5px;
  animation: detailIn 0.3s ease both;
}
@keyframes detailIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}
.detail-item--info    { border-left-color: rgba(0, 180, 255, 0.5); }
.detail-item--warning { border-left-color: rgba(245, 158, 11, 0.5); }
.detail-item--error   { border-left-color: rgba(239, 68, 68, 0.5); }

.detail-badge {
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px;
  flex-shrink: 0; margin-top: 1px;
}
.detail-badge--info    { background: rgba(0,180,255,0.12); color: #00b4ff; }
.detail-badge--warning { background: rgba(245,158,11,0.12); color: #f59e0b; }
.detail-badge--error   { background: rgba(239,68,68,0.12);  color: #ef4444; }

.detail-msg { font-size: 0.75rem; color: #9ca3af; line-height: 1.5; }


/* =============================================================================
   7. SECURITY SCAN INPUT — Upgraded style
   ============================================================================= */

.sec-scan-input-v2 {
  background: rgba(5, 10, 22, 0.92);
  border: 1px solid rgba(0, 255, 157, 0.14);
  border-radius: 12px;
  padding: 5px 5px 5px 16px;
  display: flex; align-items: center; gap: 4px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.sec-scan-input-v2:focus-within {
  border-color: rgba(0, 255, 157, 0.38);
  box-shadow: 0 0 0 3px rgba(0,255,157,0.07), 0 0 22px rgba(0,255,157,0.05);
}
.sec-scan-input-v2 input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #e5e7eb; font-size: 14px; min-width: 0;
}
.sec-scan-input-v2 input::placeholder { color: #374151; }

.sec-scan-btn-v2 {
  background: linear-gradient(135deg, #0077cc 0%, #00ff9d 100%);
  color: #050505; font-weight: 700; font-size: 13px;
  padding: 10px 22px; border-radius: 8px; border: none;
  cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
}
.sec-scan-btn-v2:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,255,157,0.2);
}
.sec-scan-btn-v2:active { transform: translateY(0); filter: brightness(0.95); }
.sec-scan-btn-v2:disabled {
  background: rgba(0,255,157,0.1);
  color: #4b5563; cursor: not-allowed; filter: none; transform: none;
  box-shadow: none;
}


/* =============================================================================
   8. VERDICT DISPLAY — Big verdict in result panels
   ============================================================================= */

.verdict-display {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 12px; border: 1px solid;
  margin-bottom: 18px;
}
.verdict-icon-circle {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; border: 2px solid; flex-shrink: 0;
}
.verdict-score-num {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 2.8rem; font-weight: 800; line-height: 1; letter-spacing: -2px;
}
.verdict-type-label {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #6b7280; margin-top: 3px;
}

.verdict--safe        { background: rgba(0,255,157,0.05);  border-color: rgba(0,255,157,0.22); }
.verdict--suspicious  { background: rgba(241,196,15,0.05); border-color: rgba(241,196,15,0.22); }
.verdict--malicious   { background: rgba(231,76,60,0.05);  border-color: rgba(231,76,60,0.22); }

.verdict-score--safe       { color: #2ecc71; }
.verdict-score--suspicious { color: #f1c40f; }
.verdict-score--malicious  { color: #e74c3c; }


/* =============================================================================
   9. OSINT PANEL — Enhanced Stat Cards
   ============================================================================= */

/* Override the default osint-stat-card when inside osint-stat-cards container */
#osint-stat-cards .osint-stat-card {
  background: rgba(8, 14, 28, 0.88);
  border: 1px solid rgba(0, 255, 157, 0.1);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  position: relative; overflow: hidden;
}
#osint-stat-cards .osint-stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,157,0.25), transparent);
}
#osint-stat-cards .osint-stat-card:hover {
  border-color: rgba(0, 255, 157, 0.28);
  box-shadow: 0 0 18px rgba(0, 255, 157, 0.06);
  transform: translateY(-2px);
}
#osint-stat-cards .osint-stat-card > div:first-child {
  font-size: 1.8rem;
}


/* =============================================================================
   10. GLOW UTILITY CLASSES
   ============================================================================= */

.glow-green  { text-shadow: 0 0 8px rgba(0,255,157,0.6), 0 0 18px rgba(0,255,157,0.3); }
.glow-blue   { text-shadow: 0 0 8px rgba(0,180,255,0.6), 0 0 18px rgba(0,180,255,0.3); }
.glow-red    { text-shadow: 0 0 8px rgba(231,76,60,0.6),  0 0 18px rgba(231,76,60,0.3);  }
.glow-yellow { text-shadow: 0 0 8px rgba(241,196,15,0.6), 0 0 18px rgba(241,196,15,0.3); }

.border-glow-green  { box-shadow: 0 0 0 1px rgba(0,255,157,0.3), 0 0 15px rgba(0,255,157,0.1); }
.border-glow-blue   { box-shadow: 0 0 0 1px rgba(0,180,255,0.3), 0 0 15px rgba(0,180,255,0.1); }
.border-glow-red    { box-shadow: 0 0 0 1px rgba(231,76,60,0.3),  0 0 15px rgba(231,76,60,0.1); }
.border-glow-yellow { box-shadow: 0 0 0 1px rgba(241,196,15,0.3), 0 0 15px rgba(241,196,15,0.1); }


/* =============================================================================
   11. THREAT LEVEL BAR
   ============================================================================= */

.threat-bar {
  display: flex; gap: 3px; height: 7px; border-radius: 9999px; overflow: hidden;
  margin: 6px 0;
}
.threat-bar-seg {
  flex: 1; border-radius: 9999px;
  transition: opacity 0.4s ease;
}
.threat-bar-seg--safe     { background: #2ecc71; }
.threat-bar-seg--medium   { background: #f1c40f; }
.threat-bar-seg--high     { background: #e74c3c; }
.threat-bar-seg--inactive { background: rgba(255,255,255,0.05); }


/* =============================================================================
   12. LOADING SHIMMER
   ============================================================================= */

@keyframes shimmerAnim {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.shimmer-line {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.02) 25%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.02) 75%);
  background-size: 400px 100%;
  animation: shimmerAnim 1.6s linear infinite;
}


/* =============================================================================
   13. PLATFORM STATS — Enhanced ticker bar
   ============================================================================= */

.stats-section-title {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 4px;
}

/* Upgrade existing stat-glass-card slightly */
.stat-glass-card {
  background: rgba(8, 14, 28, 0.9) !important;
}
.stat-glass-card:hover {
  border-color: rgba(255,255,255,0.12) !important;
}


/* =============================================================================
   14. FILE METADATA CARDS
   ============================================================================= */

.meta-card {
  background: rgba(5, 10, 22, 0.88);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 14px 16px;
}
.meta-card-label {
  font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: #374151; margin-bottom: 5px;
}
.meta-card-value {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem; color: #e5e7eb; word-break: break-all;
}


/* =============================================================================
   15. RESPONSIVE ADJUSTMENTS
   ============================================================================= */

@media (max-width: 480px) {
  .scan-score-value    { font-size: 1.9rem; }
  .re-risk-ring        { width: 62px; height: 62px; }
  .re-risk-ring .re-score-num { font-size: 1.25rem; }
  .verdict-score-num   { font-size: 2rem; }
  .verdict-icon-circle { width: 44px; height: 44px; font-size: 1.2rem; }
}


/* =============================================================================
   PREMIUM CYBERPUNK REDESIGN v3
   Dark SaaS UI — Vercel × Linear × Supabase × Detectify aesthetic
   Colors: #030508 bg / #00f0ff cyan / #00ff9c green / #7c3aed purple
   ============================================================================= */

/* ── 0. CSS Variables ── */
:root {
  --cg-bg:          #030508;
  --cg-panel:       #06090f;
  --cg-cyan:        #00f0ff;
  --cg-green:       #00ff9c;
  --cg-purple:      #7c3aed;
  --cg-text:        #e5e7eb;
  --cg-muted:       #9ca3af;
  --cg-border:      rgba(255,255,255,0.06);
  --cg-card:        rgba(255,255,255,0.02);
  --cg-hover-border:rgba(0,255,156,0.28);
  --cg-glow-green:  rgba(0,255,156,0.25);
  --cg-glow-cyan:   rgba(0,240,255,0.25);
  --cg-glow-purple: rgba(124,58,237,0.25);
}

/* ── 1. Global Body & Grid Background ── */
body {
  background-color: var(--cg-bg) !important;
  color: var(--cg-text) !important;
}

/* Subtle cyber grid overlay — sits between matrix canvas (z:-10) and content */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ── 2. Navigation ── */
nav {
  background: rgba(3, 5, 8, 0.94) !important;
  border-bottom: 1px solid rgba(0, 240, 255, 0.07) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}

/* Nav links */
nav a.text-gray-300:hover,
nav button.text-gray-300:hover {
  color: var(--cg-cyan) !important;
}
nav a.text-cyber-primary {
  color: var(--cg-green) !important;
}

/* Mobile menu */
#mobile-menu > div {
  background: rgba(3, 5, 8, 0.97) !important;
  border-top: 1px solid rgba(255,255,255,0.04) !important;
}

/* ── 3. Logo glow enhancement ── */
.cyber-logo-text span {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  text-shadow:
    0 0 2px #eaffff,
    0 0 10px var(--cg-cyan),
    0 0 20px rgba(0,240,255,0.45) !important;
}
.cyber-logo-text span:hover {
  text-shadow:
    0 0 2px #ffffff,
    0 0 12px var(--cg-cyan),
    0 0 24px rgba(0,240,255,0.6) !important;
}

/* ── 4. Hero headings ── */
h1 .text-cyber-primary,
.text-cyber-primary {
  color: var(--cg-green) !important;
}
.text-cyber-secondary {
  color: var(--cg-cyan) !important;
}

/* Hero h1 title glow */
h1 .text-cyber-primary {
  text-shadow: 0 0 24px rgba(0,255,156,0.5), 0 0 48px rgba(0,255,156,0.25);
}
h1 .text-cyber-secondary {
  text-shadow: 0 0 24px rgba(0,240,255,0.5), 0 0 48px rgba(0,240,255,0.25);
}

/* ── 5. Cyber Cards — glassmorphism premium ── */
.cyber-card {
  background: var(--cg-card) !important;
  border: 1px solid var(--cg-border) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease !important;
}
.cyber-card:hover {
  border-color: var(--cg-hover-border) !important;
  box-shadow:
    0 0 0 1px rgba(0,255,156,0.08),
    0 0 28px rgba(0,255,156,0.06),
    0 12px 40px rgba(0,0,0,0.45) !important;
  transform: translateY(-4px) scale(1.02) !important;
}
.cyber-card:hover::before { opacity: 0.3 !important; }

/* Modals must NOT get the card hover effect */
.ethics-modal-box:hover,
.result-modal-box:hover,
#auth-modal > div:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: rgba(0,240,255,0.1) !important;
}
.ethics-modal-box:hover::before,
.result-modal-box:hover::before,
#auth-modal > div:hover::before {
  opacity: 0 !important;
}

/* ── 6. Cyber Buttons ── */
.cyber-btn {
  background: transparent !important;
  border: 1px solid rgba(0,255,156,0.38) !important;
  color: var(--cg-green) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, color 0.25s !important;
}
.cyber-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,255,156,0.07) 0%, rgba(0,240,255,0.07) 100%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.cyber-btn:hover {
  border-color: rgba(0,255,156,0.75) !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(0,255,156,0.22), 0 0 36px rgba(0,255,156,0.1) !important;
}
.cyber-btn:hover::after { opacity: 1; }
.cyber-btn:active { transform: translateY(1px); }
.cyber-btn:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* ── 7. Platform Stat Cards ── */
.stat-glass-card {
  background: var(--cg-panel) !important;
  border: 1px solid var(--cg-border) !important;
  border-radius: 14px !important;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s !important;
}
.stat-glass-card:hover {
  border-color: rgba(255,255,255,0.1) !important;
  box-shadow: 0 0 28px rgba(0,255,156,0.05), 0 8px 24px rgba(0,0,0,0.3) !important;
  transform: translateY(-4px) !important;
}

/* Glowing stat numbers */
.stat-number {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  font-size: 2.1rem !important;
  font-weight: 800 !important;
  letter-spacing: -1px;
}
#stat-scans      { text-shadow: 0 0 18px rgba(0,255,157,0.65), 0 0 36px rgba(0,255,157,0.3); }
#stat-scanners   { text-shadow: 0 0 18px rgba(0,180,255,0.65), 0 0 36px rgba(0,180,255,0.3); }
#stat-domains    { text-shadow: 0 0 18px rgba(168,85,247,0.65), 0 0 36px rgba(168,85,247,0.3); }
#stat-vulns      { text-shadow: 0 0 18px rgba(245,158,11,0.65), 0 0 36px rgba(245,158,11,0.3); }
#stat-risk       { text-shadow: 0 0 18px rgba(239,68,68,0.65), 0 0 36px rgba(239,68,68,0.3); }

/* ── 8. Scan Score Cards ── */
.scan-score-card {
  background: var(--cg-panel) !important;
  border: 1px solid var(--cg-border) !important;
}
.scan-score-card:hover {
  border-color: rgba(0,255,156,0.2) !important;
  box-shadow: 0 0 22px rgba(0,255,156,0.05), 0 8px 24px rgba(0,0,0,0.35) !important;
  transform: translateY(-3px) !important;
}
.scan-score-value {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  font-size: 2.5rem !important;
  font-weight: 800 !important;
}
/* Glow each score value by its color */
#res-ssl-score     { text-shadow: 0 0 16px rgba(0,180,255,0.7); }
#res-headers-score { text-shadow: 0 0 16px rgba(168,85,247,0.7); }
#res-vuln-count    { text-shadow: 0 0 16px rgba(245,158,11,0.7); }

/* ── 9. Section heading glows ── */
h2.text-cyber-primary,
.text-cyber-primary.text-3xl {
  text-shadow: 0 0 24px rgba(0,255,156,0.4), 0 0 48px rgba(0,255,156,0.18);
}
h2.text-cyber-secondary {
  text-shadow: 0 0 24px rgba(0,240,255,0.4), 0 0 48px rgba(0,240,255,0.18);
}
.global-title {
  text-shadow: 0 0 32px rgba(0,255,157,0.5), 0 0 64px rgba(0,255,157,0.25) !important;
}

/* ── 10. Section backgrounds ── */
section.bg-cyber-dark,
.bg-cyber-dark.bg-opacity-50 {
  background-color: rgba(6, 9, 15, 0.55) !important;
}

/* ── 11. Auth / Ethics / Result Modals ── */
#auth-modal > div,
.ethics-modal-box,
.result-modal-box {
  background: rgba(6, 9, 15, 0.97) !important;
  border: 1px solid rgba(0,240,255,0.1) !important;
  box-shadow:
    0 0 0 1px rgba(0,240,255,0.05),
    0 32px 80px rgba(0,0,0,0.85),
    0 0 60px rgba(0,240,255,0.04) !important;
}

/* Modal header divider */
#auth-modal .border-b,
.ethics-modal-box .border-b,
.result-modal-box .border-b {
  border-color: rgba(255,255,255,0.06) !important;
}
#auth-modal .border-t,
.ethics-modal-box .border-t {
  border-color: rgba(255,255,255,0.06) !important;
}

/* ── 12. Input Fields ── */
input[type="text"].bg-cyber-dark,
input[type="email"].bg-cyber-dark,
input[type="password"].bg-cyber-dark,
#auth-username,
#auth-email,
#auth-password,
#forgot-email,
#website-url,
#re-bot-input {
  background: rgba(3, 5, 8, 0.9) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: var(--cg-text) !important;
  transition: border-color 0.25s, box-shadow 0.25s !important;
}
input[type="text"].bg-cyber-dark:focus,
input[type="email"].bg-cyber-dark:focus,
input[type="password"].bg-cyber-dark:focus,
#auth-username:focus,
#auth-email:focus,
#auth-password:focus,
#forgot-email:focus,
#website-url:focus,
#re-bot-input:focus {
  border-color: rgba(0,255,156,0.38) !important;
  box-shadow: 0 0 0 2px rgba(0,255,156,0.08) !important;
  outline: none !important;
}

/* ── 13. Terminal enhancements ── */
.terminal {
  background: rgba(3, 5, 8, 0.92) !important;
  border: 1px solid rgba(0,255,157,0.14) !important;
  box-shadow:
    0 0 60px rgba(0,255,157,0.05),
    0 24px 48px rgba(0,0,0,0.6) !important;
  border-radius: 14px !important;
}
.terminal-header {
  background: rgba(0, 8, 8, 0.8) !important;
  border-bottom: 1px solid rgba(0,255,157,0.1) !important;
}

/* ── 14. Pricing Cards ── */
.pricing-card {
  background: var(--cg-panel) !important;
  border-color: var(--cg-border) !important;
  border-radius: 16px !important;
  transition: border-color 0.3s, box-shadow 0.3s !important;
}
.pricing-card:hover {
  border-color: rgba(0,255,156,0.28) !important;
  box-shadow: 0 0 32px rgba(0,255,156,0.06), 0 16px 48px rgba(0,0,0,0.4) !important;
}
.pricing-card.featured {
  border-color: rgba(0,240,255,0.38) !important;
  box-shadow: 0 0 40px rgba(0,240,255,0.08), 0 16px 48px rgba(0,0,0,0.4) !important;
}
.pricing-price {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  font-weight: 800 !important;
}
.pricing-price.free-color { text-shadow: 0 0 20px rgba(0,255,157,0.5); }
.pricing-price.pro-color  { text-shadow: 0 0 20px rgba(0,240,255,0.5); }
.pricing-price.ent-color  { text-shadow: 0 0 20px rgba(180,100,255,0.5); }

.pricing-cta.pro-btn {
  background: linear-gradient(135deg, #0066bb, #00c8f0) !important;
  box-shadow: 0 4px 20px rgba(0,180,255,0.28);
}
.pricing-cta.pro-btn:hover {
  box-shadow: 0 8px 32px rgba(0,180,255,0.42) !important;
}
.pricing-cta.ent-btn {
  background: linear-gradient(135deg, #5500bb, #a040e8) !important;
  box-shadow: 0 4px 20px rgba(160,64,232,0.28);
}
.pricing-cta.ent-btn:hover {
  box-shadow: 0 8px 32px rgba(160,64,232,0.42) !important;
}
.pricing-cta.free-btn {
  background: rgba(0,255,157,0.06) !important;
  border: 1px solid rgba(0,255,157,0.32) !important;
  color: var(--cg-green) !important;
}
.pricing-cta.free-btn:hover {
  box-shadow: 0 4px 16px rgba(0,255,157,0.2) !important;
  background: rgba(0,255,157,0.12) !important;
}

/* ── 15. Consent Modal ── */
.consent-modal {
  background: rgba(6, 9, 15, 0.98) !important;
  border-color: rgba(0,255,157,0.18) !important;
  box-shadow: 0 0 0 1px rgba(0,255,157,0.07), 0 24px 60px rgba(0,0,0,0.85) !important;
}

/* ── 16. Footer ── */
footer {
  background: rgba(3, 5, 8, 0.95) !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
}
footer h3.text-cyber-primary {
  text-shadow: 0 0 12px rgba(0,255,156,0.4);
}

/* ── 17. Scan Progress Panel ── */
#scan-progress-panel {
  background: rgba(6, 9, 15, 0.92) !important;
  border-color: rgba(0,255,157,0.1) !important;
}

/* ── 18. Recent Scans Widget ── */
#recent-scans-widget {
  background: rgba(6, 9, 15, 0.92) !important;
  border-color: var(--cg-border) !important;
}
#recent-scans-widget::before {
  background: linear-gradient(90deg, transparent, rgba(0,255,157,0.28), transparent) !important;
}
.rsw-row:hover { background: rgba(0,255,157,0.025) !important; }

/* ── 19. AI Report v2 ── */
.ai-report-v2 {
  background: linear-gradient(135deg,
    rgba(3, 8, 20, 0.97) 0%,
    rgba(3, 5, 12, 0.99) 100%) !important;
  border-color: rgba(0,180,255,0.18) !important;
  box-shadow: 0 0 0 1px rgba(0,180,255,0.06) !important;
}
.ai-report-v2-header {
  background: rgba(0,15,40,0.75) !important;
}

/* ── 20. OSINT Stat Cards enhancement ── */
#osint-stat-cards .osint-stat-card {
  background: rgba(6, 9, 15, 0.9) !important;
  border-color: rgba(0,255,157,0.1) !important;
}
#osint-stat-cards .osint-stat-card:hover {
  border-color: rgba(0,255,157,0.3) !important;
  box-shadow: 0 0 18px rgba(0,255,157,0.07) !important;
  transform: translateY(-2px) !important;
}

/* ── 21. Scan type cards ── */
.scan-type-card {
  background: rgba(6, 9, 15, 0.88) !important;
  border-color: var(--cg-border) !important;
}
.scan-type-card:hover {
  border-color: rgba(0,255,157,0.22) !important;
  background: rgba(0,255,157,0.025) !important;
}
.scan-type-card.selected {
  border-color: rgba(0,255,157,0.52) !important;
  background: rgba(0,255,157,0.04) !important;
  box-shadow: 0 0 0 1px rgba(0,255,157,0.18), 0 0 20px rgba(0,255,157,0.06) !important;
}

/* ── 22. Detail items ── */
.detail-item {
  background: rgba(3, 5, 8, 0.6) !important;
}

/* ── 23. Page-level fade-in ── */
@keyframes cyberPageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
section {
  animation: cyberPageIn 0.5s ease both;
}

/* ── 24. Hero section ── */
.hero-subtitle { color: #c4c9d4 !important; }

/* ── 25. Scrollbar styling ── */
::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: rgba(3,5,8,0.8); }
::-webkit-scrollbar-thumb  { background: rgba(0,255,157,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,255,157,0.4); }

/* ── 26. Typography utility ── */
.font-mono,
code,
.terminal-body,
.rsw-target,
.rsw-time {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
}

/* ── 27. Live indicator enhancement ── */
.live-indicator {
  background: rgba(0,255,157,0.06) !important;
  border-color: rgba(0,255,157,0.18) !important;
}

/* ── 28. Tag pills in OSINT cards ── */
.text-cyber-secondary.bg-cyber-dark {
  background: rgba(0,240,255,0.06) !important;
  border: 1px solid rgba(0,240,255,0.12);
  color: var(--cg-cyan) !important;
  border-radius: 6px;
}

/* ── 29. Drop zone ── */
#re-dropzone {
  border-color: rgba(255,255,255,0.1) !important;
  background: rgba(3,5,8,0.6);
  transition: border-color 0.25s, background 0.25s !important;
}
#re-dropzone:hover,
#re-dropzone.border-cyber-primary {
  border-color: rgba(0,255,157,0.4) !important;
  background: rgba(0,255,157,0.025) !important;
}

/* ── 30. Scan error banner ── */
#scan-error {
  background: rgba(239,68,68,0.07) !important;
  border-color: rgba(239,68,68,0.35) !important;
}

/* ── 31. Google sign-in button ── */
#google-signin-btn {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: #e5e7eb !important;
  border-radius: 8px !important;
}
#google-signin-btn:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.18) !important;
}

/* ── 32. Auth form divider ── */
#auth-modal .flex-1.h-px { background: rgba(255,255,255,0.06) !important; }

/* ── 33. Result modal body ── */
#result-modal > div {
  background: rgba(0,0,0,0.7) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
.result-modal-box {
  animation: modalFadeIn 0.25s ease-out forwards;
}

/* ── 34. Pricing section title ── */
h2[style*="#00eaff"] {
  text-shadow: 0 0 28px rgba(0,234,255,0.45), 0 0 56px rgba(0,234,255,0.2) !important;
}

/* ── 35. Platform stats heading ── */
h2[style*="#00ff9d"] {
  text-shadow: 0 0 24px rgba(0,255,157,0.45), 0 0 48px rgba(0,255,157,0.2) !important;
}

/* ── 36. Common security check icons ── */
.bg-cyber-primary.rounded-full {
  background: rgba(0,255,157,0.15) !important;
  border: 1px solid rgba(0,255,157,0.3) !important;
  box-shadow: 0 0 8px rgba(0,255,157,0.15);
}
.bg-cyber-secondary.rounded-full {
  background: rgba(0,240,255,0.15) !important;
  border: 1px solid rgba(0,240,255,0.3) !important;
  box-shadow: 0 0 8px rgba(0,240,255,0.15);
}

/* ── 37. Ethics contact card ── */
.bg-cyber-dark.bg-opacity-60.border.border-gray-800.rounded-md {
  background: rgba(3,5,8,0.8) !important;
  border-color: rgba(255,255,255,0.06) !important;
}

/* ── 38. Bot input send button ── */
#re-bot-send {
  background: var(--cg-green) !important;
  color: #030508 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  transition: filter 0.2s, transform 0.15s !important;
}
#re-bot-send:hover {
  filter: brightness(1.12) !important;
  transform: translateY(-1px) !important;
}

/* ── 39. Upgrade link in AI bot panel ── */
a.inline-block.bg-green-500 {
  background: linear-gradient(135deg, #00b870, #00ff9c) !important;
  color: #030508 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(0,255,157,0.3) !important;
  border-radius: 8px !important;
}
a.inline-block.bg-green-500:hover {
  filter: brightness(1.1) !important;
  box-shadow: 0 6px 24px rgba(0,255,157,0.4) !important;
}

/* ── 40. Telegram bot analyze link ── */
a.border-cyber-primary.text-cyber-primary {
  border-color: rgba(0,255,157,0.35) !important;
  color: var(--cg-green) !important;
  background: transparent !important;
  border-radius: 8px !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}
a.border-cyber-primary.text-cyber-primary:hover {
  background: rgba(0,255,157,0.08) !important;
  box-shadow: 0 0 14px rgba(0,255,157,0.18) !important;
}

/* ── 41. Scan result lock overlay ── */
.result-lock-banner {
  background: rgba(3,5,8,0.82) !important;
  backdrop-filter: blur(6px) !important;
}
.result-lock-banner button {
  background: linear-gradient(135deg, #0066bb, #00c8f0) !important;
  box-shadow: 0 4px 16px rgba(0,180,255,0.3) !important;
  border-radius: 8px !important;
}

/* ── 42. Reduced motion compliance ── */
@media (prefers-reduced-motion: reduce) {
  section { animation: none !important; }
  body::before { display: none !important; }
}

/* ── 43. Responsive stat number size ── */
@media (max-width: 640px) {
  .stat-number { font-size: 1.7rem !important; }
}


/* =============================================================================
   44. PREMIUM FILE ANALYZER — SOC Dashboard v2
   VirusTotal × CrowdStrike × AlienVault aesthetic
   ============================================================================= */

/* ── Risk ring glow animation ── */
.re-risk-ring--high   { animation: ringGlowHigh 2.5s ease-in-out infinite; }
.re-risk-ring--medium { animation: ringGlowMed  2.5s ease-in-out infinite; }
.re-risk-ring--low    { animation: ringGlowLow  3.5s ease-in-out infinite; }

@keyframes ringGlowHigh {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50%       { box-shadow: 0 0 18px 4px rgba(239,68,68,0.35); }
}
@keyframes ringGlowMed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
  50%       { box-shadow: 0 0 14px 3px rgba(245,158,11,0.3); }
}
@keyframes ringGlowLow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,157,0); }
  50%       { box-shadow: 0 0 10px 2px rgba(0,255,157,0.2); }
}

/* ── Severity summary counter cards ── */
.sev-counters {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 8px;
  margin-bottom: 0;
}
.sev-card {
  border-radius: 10px; padding: 10px 12px;
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid;
}
.sev-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem; font-weight: 800; line-height: 1;
}
.sev-card-label {
  font-size: 0.52rem; text-transform: uppercase;
  letter-spacing: 0.12em; margin-top: 3px;
}
.sev-card--critical { background: rgba(239,68,68,0.08);  border-color: rgba(239,68,68,0.3);  }
.sev-card--high     { background: rgba(249,115,22,0.08); border-color: rgba(249,115,22,0.3); }
.sev-card--medium   { background: rgba(245,158,11,0.07); border-color: rgba(245,158,11,0.25);}
.sev-card--low      { background: rgba(34,197,94,0.06);  border-color: rgba(34,197,94,0.2);  }
.sev-card--critical .sev-card-num  { color: #ef4444; }
.sev-card--critical .sev-card-label{ color: #b91c1c; }
.sev-card--high .sev-card-num      { color: #f97316; }
.sev-card--high .sev-card-label    { color: #c2410c; }
.sev-card--medium .sev-card-num    { color: #f59e0b; }
.sev-card--medium .sev-card-label  { color: #b45309; }
.sev-card--low .sev-card-num       { color: #22c55e; }
.sev-card--low .sev-card-label     { color: #15803d; }

/* ── Entropy bar ── */
.entropy-bar-wrap {
  height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 9999px; overflow: hidden; flex: 1;
}
.entropy-bar-fill {
  height: 100%; border-radius: 9999px;
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}
.entropy-bar-fill--safe    { background: linear-gradient(90deg,#059669,#00ff9d); }
.entropy-bar-fill--warning { background: linear-gradient(90deg,#b45309,#f59e0b); }
.entropy-bar-fill--danger  { background: linear-gradient(90deg,#b91c1c,#ef4444); }

/* ── YARA hit row ── */
.yara-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  background: rgba(0,0,0,0.25); margin-bottom: 6px;
}
.yara-row:last-child { margin-bottom: 0; }
.yara-sev-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.yara-sev-dot--critical { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.6); }
.yara-sev-dot--high     { background: #f97316; box-shadow: 0 0 6px rgba(249,115,22,0.5); }
.yara-sev-dot--medium   { background: #f59e0b; box-shadow: 0 0 4px rgba(245,158,11,0.4); }
.yara-rule-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; color: #d1d5db; flex: 1;
}
.yara-count {
  font-size: 0.65rem; color: #6b7280;
  font-family: monospace;
}
.yara-badge {
  font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px;
}
.yara-badge--critical { background: rgba(239,68,68,0.15); color: #ef4444; }
.yara-badge--high     { background: rgba(249,115,22,0.15); color: #f97316; }
.yara-badge--medium   { background: rgba(245,158,11,0.12); color: #f59e0b; }

/* ── IOC list ── */
.ioc-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ioc-item:last-child { border-bottom: none; }
.ioc-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; color: #93c5fd; flex: 1;
  word-break: break-all;
}
.ioc-copy-btn {
  flex-shrink: 0; padding: 2px 8px;
  font-size: 0.55rem; font-weight: 600;
  border-radius: 4px; cursor: pointer;
  border: 1px solid rgba(0,180,255,0.3);
  background: rgba(0,180,255,0.08); color: #60a5fa;
  transition: all 0.15s;
}
.ioc-copy-btn:hover { background: rgba(0,180,255,0.18); color: #93c5fd; }
.ioc-copy-btn.copied { border-color: rgba(0,255,157,0.4); color: #00ff9d; background: rgba(0,255,157,0.08); }

/* ── Capability badge ── */
.cap-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid; margin: 3px;
}
.cap-badge--critical { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.35);  color: #fca5a5; }
.cap-badge--high     { background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.35); color: #fdba74; }
.cap-badge--medium   { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3);  color: #fcd34d; }
.cap-badge--low      { background: rgba(0,255,157,0.06); border-color: rgba(0,255,157,0.25);  color: #86efac; }

/* ── Terminal section ── */
.re-terminal {
  background: #020408; border: 1px solid rgba(0,255,157,0.12);
  border-radius: 10px; overflow: hidden;
}
.re-terminal-header {
  background: rgba(0,0,0,0.5); border-bottom: 1px solid rgba(0,255,157,0.1);
  padding: 8px 14px; display: flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none;
}
.re-terminal-dot { width:10px;height:10px;border-radius:50%; flex-shrink:0; }
.re-terminal-body {
  padding: 12px 16px; font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.7rem; color: #00ff9d; line-height: 1.8;
  max-height: 220px; overflow-y: auto;
}
.re-terminal-body::-webkit-scrollbar { width: 4px; }
.re-terminal-body::-webkit-scrollbar-track { background: transparent; }
.re-terminal-body::-webkit-scrollbar-thumb { background: rgba(0,255,157,0.2); border-radius: 4px; }

/* ── MITRE ATT&CK card ── */
.mitre-card {
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 10px; padding: 12px 14px;
  margin-bottom: 8px;
}
.mitre-card:last-child { margin-bottom: 0; }
.mitre-technique-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 700;
  color: #a78bfa; letter-spacing: 0.08em;
}
.mitre-tactic {
  font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: #7c3aed;
  background: rgba(124,58,237,0.15); padding: 2px 8px;
  border-radius: 4px; margin-left: 8px;
}
.mitre-desc {
  font-size: 0.72rem; color: #9ca3af; margin-top: 6px; line-height: 1.5;
}

/* ── Export action buttons ── */
.re-export-bar {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 24px 0;
}
.re-export-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
  font-size: 0.7rem; font-weight: 600; transition: all 0.2s;
  border: 1px solid;
}
.re-export-btn--json {
  background: rgba(0,180,255,0.08); border-color: rgba(0,180,255,0.3);
  color: #60a5fa;
}
.re-export-btn--json:hover { background: rgba(0,180,255,0.15); }
.re-export-btn--ioc {
  background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3);
  color: #fca5a5;
}
.re-export-btn--ioc:hover { background: rgba(239,68,68,0.14); }

/* ── Loading stage indicators ── */
.re-stage-list {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 16px; text-align: left;
}
.re-stage-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.72rem; color: #4b5563;
  font-family: 'JetBrains Mono', monospace;
  transition: color 0.3s;
}
.re-stage-item.active  { color: #00ff9d; }
.re-stage-item.done    { color: #374151; }
.re-stage-item .re-stage-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.re-stage-item.active .re-stage-dot {
  animation: stagePulse 0.8s ease-in-out infinite;
}
@keyframes stagePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}

/* ── Collapsible toggle ── */
.re-collapsible-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.62rem; color: #6b7280; cursor: pointer;
  margin-top: 6px; user-select: none;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.re-collapsible-toggle:hover { color: #9ca3af; }

/* ── Copy hash inline button ── */
.hash-copy {
  font-size: 0.6rem; padding: 1px 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  border-radius: 4px; cursor: pointer;
  color: #6b7280; transition: all 0.15s;
  margin-left: 6px; flex-shrink: 0;
}
.hash-copy:hover { color: #d1d5db; border-color: rgba(255,255,255,0.2); }

/* Raw findings terminal rows */
.re-findings-body { padding: 4px 0; max-height: 320px; overflow-y: auto; }
.finding-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 3px 12px; font-family: 'Fira Code', 'Courier New', monospace; font-size: 0.72rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.finding-row:last-child { border-bottom: none; }
.finding-sev  { font-weight: 700; flex-shrink: 0; }
.finding-pattern { color: #e2e8f0; font-weight: 600; flex-shrink: 0; }
.finding-desc { color: #9ca3af; word-break: break-word; }
.finding-count { color: #6b7280; flex-shrink: 0; margin-left: auto; }

@media (max-width: 480px) {
  .sev-counters { grid-template-columns: repeat(2,1fr); }
  .re-export-bar { padding: 12px 16px 0; }
}
