/* ============================================================
   CyberIntel™ — Resilient Privacy Inc.
   Theme: Claude — Warm Cream + Coral
   © 2026 All rights reserved.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Claude palette */
  --bg:           #F0EDE6;
  --bg-card:      #FFFFFF;
  --bg-alt:       #EAE6DE;
  --bg-input:     #FFFFFF;
  --border:       #E0DBD3;
  --border-dark:  #C9C3BB;

  /* Text */
  --text:         #1A1814;
  --text-2:       #44403A;
  --text-3:       #78716C;
  --text-4:       #A8A29E;

  /* Claude coral accent */
  --accent:       #C96442;
  --accent-dark:  #B05535;
  --accent-light: #FDF0EB;
  --accent-border:#F0C4B0;

  /* Semantic colours — warm toned */
  --red:          #C0392B;
  --red-bg:       #FDF2F0;
  --red-border:   #F5C4BE;
  --orange:       #C67B2A;
  --orange-bg:    #FDF6EE;
  --orange-border:#F0D4A8;
  --green:        #2D7D52;
  --green-bg:     #F0F9F4;
  --green-border: #A8D9BE;
  --blue:         #2C5F8A;
  --blue-bg:      #EFF5FC;
  --blue-border:  #A8C4E0;
  --purple:       #6B4A9E;
  --purple-bg:    #F5F0FC;
  --purple-border:#C4AEED;

  /* Layout */
  --radius:       6px;
  --radius-lg:    10px;
  --radius-xl:    14px;
  --shadow-sm:    0 1px 3px rgba(26,24,20,0.07), 0 1px 2px rgba(26,24,20,0.04);
  --shadow:       0 4px 14px rgba(26,24,20,0.09), 0 2px 4px rgba(26,24,20,0.05);
  --shadow-lg:    0 12px 32px rgba(26,24,20,0.12), 0 4px 8px rgba(26,24,20,0.06);
  --transition:   0.16s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::selection { background: #F0C4B0; color: var(--accent-dark); }

/* Typography */
h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.2;
}
h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}
h3 { font-size: 1rem; font-weight: 600; color: var(--text); }
h4 { font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
p  { color: var(--text-3); line-height: 1.75; }
a  { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
code, .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text-2);
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hidden { display: none !important; }

/* ── Navigation ── */
nav {
  position: sticky; top: 0; z-index: 900;
  background: rgba(240,237,230,0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2rem); height: 58px;
  max-width: 1320px; margin: 0 auto;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem; font-weight: 600;
  color: var(--text); letter-spacing: -0.02em;
}
.brand-mark {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; /* asterisk emoji */
}
.nav-links { display: flex; align-items: center; gap: 0.125rem; list-style: none; }
.nav-links a {
  color: var(--text-3); font-size: 0.875rem; font-weight: 500;
  padding: 0.4rem 0.875rem; border-radius: 6px;
  transition: all var(--transition);
}
.nav-links a:hover { background: var(--border); color: var(--text); }
.nav-links a.active { background: var(--accent-light); color: var(--accent); font-weight: 600; border: 1px solid var(--accent-border); }
.nav-links .live-link {
  background: var(--red-bg) !important;
  color: var(--red) !important;
  border: 1px solid var(--red-border);
  font-weight: 600 !important;
}
.nav-links .live-link:hover { background: #FAE0DC !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text-2); border-radius: 1px; transition: all 0.2s; }
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--bg); z-index: 950;
  flex-direction: column; align-items: flex-start;
  padding: 5rem 2rem 2rem; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.05rem; font-weight: 500; color: var(--text);
  padding: 0.875rem 0; width: 100%; border-bottom: 1px solid var(--border);
}
.mobile-menu .close-btn { position: absolute; top: 1rem; right: 1.5rem; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-3); }

/* ── Hero ── */
.hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); background: var(--accent-light);
  border: 1px solid var(--accent-border); padding: 4px 12px; border-radius: 20px;
  margin-bottom: 1.25rem;
}
.live-pulse { width: 7px; height: 7px; background: var(--red); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }
.hero h1 span { color: var(--accent); }
.hero-desc { font-size: clamp(0.95rem, 1.6vw, 1.05rem); max-width: 540px; margin: 0.875rem 0 2rem; color: var(--text-3); }

/* ── Stats Bar ── */
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 0.875rem; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--border-dark); }
.stat-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-4); margin-bottom: 0.375rem; }
.stat-value { font-family: 'JetBrains Mono', monospace; font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-weight: 700; color: var(--text); line-height: 1.1; }
.stat-value.red    { color: var(--red); }
.stat-value.coral  { color: var(--accent); }
.stat-value.orange { color: var(--orange); }

/* ── Section Headers ── */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem; }
.section-head h2 { display: flex; align-items: center; gap: 0.625rem; }
.sec-icon { width: 28px; height: 28px; background: var(--accent-light); border: 1px solid var(--accent-border); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; flex-shrink: 0; }
.updated-badge { font-size: 0.68rem; color: var(--text-4); background: var(--bg-alt); border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; font-family: 'JetBrains Mono', monospace; }

/* ── Cards ── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.card:hover { box-shadow: var(--shadow); }
.card-header { padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.card-body { padding: 1.25rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.25rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--transition); white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,100,66,0.3); color: white; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.78rem; }

/* ── Tags / Chips ── */
.tag { display: inline-flex; align-items: center; font-size: 0.67rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.04em; }
.tag-ransomware { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }
.tag-apt        { background: var(--purple-bg); color: var(--purple); border: 1px solid var(--purple-border); }
.tag-zero-day   { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-border); }
.tag-phishing   { background: var(--blue-bg);   color: var(--blue);   border: 1px solid var(--blue-border); }
.tag-malware    { background: var(--red-bg);    color: #9A3412;        border: 1px solid #F0C4A8; }
.tag-vulnerability { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.tag-exploit    { background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent-border); }
.tag-breach     { background: var(--orange-bg); color: #92400E; border: 1px solid var(--orange-border); }
.tag-ddos       { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }
.tag-botnet     { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-border); }

.sev { font-family: 'JetBrains Mono', monospace; font-size: 0.67rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.sev-critical { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }
.sev-high     { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-border); }
.sev-medium   { background: var(--orange-bg); color: #92400E;       border: 1px solid var(--orange-border); }
.sev-low      { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }

/* ── News ── */
.news-toolbar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-pill {
  font-size: 0.775rem; font-weight: 500; padding: 5px 14px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-3);
  border-radius: 20px; cursor: pointer; transition: all var(--transition);
}
.filter-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.filter-pill.active { border-color: var(--accent); color: var(--accent); background: var(--accent-light); font-weight: 600; }
.search-wrap {
  margin-left: auto; display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.4rem 0.875rem;
  transition: border-color var(--transition);
}
.search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,100,66,0.1); }
.search-wrap input { background: none; border: none; outline: none; font-size: 0.875rem; color: var(--text); width: clamp(120px, 18vw, 200px); font-family: 'Inter', sans-serif; }
.search-wrap input::placeholder { color: var(--text-4); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,310px), 1fr)); gap: 1rem; }
.news-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; cursor: pointer; transition: all var(--transition);
  display: flex; flex-direction: column; gap: 0.75rem; box-shadow: var(--shadow-sm);
}
.news-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.news-source { font-size: 0.68rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.news-date { font-size: 0.68rem; color: var(--text-4); font-family: 'JetBrains Mono', monospace; }
.news-card h3 { font-size: 0.925rem; font-weight: 600; color: var(--text); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card p { font-size: 0.82rem; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.65; }
.news-card-footer { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.5rem; border-top: 1px solid var(--border); align-items: center; }
.read-hint { font-size: 0.7rem; color: var(--accent); font-weight: 600; margin-left: auto; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(26,24,20,0.45);
  z-index: 2000; display: none; align-items: center; justify-content: center;
  padding: 1rem; backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); max-width: 700px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.2s ease;
}
@keyframes modal-in { from{opacity:0;transform:scale(0.97) translateY(8px)} to{opacity:1;transform:scale(1) translateY(0)} }
.modal-header {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem;
  border-bottom: 1px solid var(--border); position: sticky; top: 0;
  background: var(--bg-card); z-index: 1;
}
.modal-header-content { flex: 1; min-width: 0; }
.modal-source-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.625rem; }
.modal-title { font-family: 'Source Serif 4', serif; font-size: 1.1rem; font-weight: 600; color: var(--text); line-height: 1.45; }
.modal-close {
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-3);
  cursor: pointer; padding: 5px 9px; border-radius: 6px; flex-shrink: 0;
  transition: all var(--transition); line-height: 1; font-size: 1rem;
}
.modal-close:hover { background: var(--red-bg); color: var(--red); border-color: var(--red-border); }
.modal-body { padding: 1.5rem; }
.modal-body p { font-size: 0.95rem; line-height: 1.85; color: var(--text-2); white-space: pre-line; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg-alt); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.modal-footer p { font-size: 0.75rem; color: var(--text-4); margin: 0; }

/* ── Map ── */
#map { width: 100%; height: clamp(300px, 45vw, 520px); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.leaflet-popup-content-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; background: var(--bg-card); }
thead { background: var(--bg-alt); }
th { text-align: left; padding: 0.75rem 1rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }
.mono-cell { font-family: 'JetBrains Mono', monospace; font-size: 0.79rem; color: var(--text-2); }

/* ── Attack Feed ── */
.feed-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.feed-box-header { padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--bg-alt); }
.feed-box-header span { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.live-dot { display: inline-block; width: 7px; height: 7px; background: var(--red); border-radius: 50%; margin-right: 6px; animation: pulse 1.5s infinite; }
.feed-scroll { max-height: 440px; overflow-y: auto; }
.feed-row {
  display: grid; grid-template-columns: 22px 140px 1fr 52px 80px;
  align-items: center; gap: 0.75rem;
  padding: 0.65rem 1.25rem; border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  animation: row-in 0.25s ease;
}
@keyframes row-in { from{opacity:0;transform:translateX(-5px)} to{opacity:1;transform:translateX(0)} }
.feed-row:hover { background: var(--bg); }
.feed-row:last-child { border-bottom: none; }
.feed-ip { font-family: 'JetBrains Mono', monospace; font-size: 0.79rem; color: var(--text); font-weight: 500; }
.feed-cat { font-size: 0.78rem; color: var(--text-3); }
.feed-score { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 700; color: var(--red); text-align: right; }
.feed-time { font-size: 0.7rem; color: var(--text-4); text-align: right; white-space: nowrap; }

/* ── Tabs ── */
.tab-nav { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; }
.tab-btn { padding: 0.6rem 1.25rem; font-size: 0.875rem; font-weight: 500; color: var(--text-3); cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all var(--transition); white-space: nowrap; font-family: 'Inter', sans-serif; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.vuln-tab { padding: 0.6rem 1.25rem; font-size: 0.875rem; font-weight: 500; color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all var(--transition); }
.vuln-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.vuln-tab-nav { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }

/* ── Vuln Cards ── */
.vuln-list { display: flex; flex-direction: column; gap: 0.625rem; }
.vuln-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color var(--transition); }
.vuln-card:hover { border-color: var(--border-dark); }
.vuln-card-header { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1.125rem; cursor: pointer; flex-wrap: wrap; }
.vuln-card-header:hover { background: var(--bg); }
.vuln-id { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.vuln-title { flex: 1; font-size: 0.875rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vuln-score { font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; font-weight: 800; min-width: 28px; text-align: right; }
.score-critical { color: var(--red); }
.score-high     { color: var(--orange); }
.score-medium   { color: #92400E; }
.score-low      { color: var(--green); }
.vuln-chevron { color: var(--text-4); flex-shrink: 0; transition: transform var(--transition); }
.vuln-chevron.open { transform: rotate(180deg); }
.vuln-detail { display: none; padding: 1rem 1.125rem; border-top: 1px solid var(--border); background: var(--bg); font-size: 0.875rem; color: var(--text-2); line-height: 1.75; }
.vuln-detail.open { display: block; }
.vuln-refs a { display: block; font-size: 0.78rem; color: var(--accent); margin-top: 0.25rem; word-break: break-all; }
.vuln-refs a:hover { text-decoration: underline; }

/* ── Scanner ── */
.scanner-form { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.scanner-input {
  flex: 1; min-width: min(100%, 280px);
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  padding: 0.65rem 1rem; border-radius: var(--radius); font-size: 0.875rem;
  outline: none; transition: all var(--transition); font-family: 'JetBrains Mono', monospace;
}
.scanner-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,100,66,0.12); }
.engine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px), 1fr)); gap: 0.875rem; margin-bottom: 1.5rem; }
.engine-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.125rem; box-shadow: var(--shadow-sm); }
.engine-name { font-size: 0.7rem; font-weight: 700; color: var(--text-3); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.08em; }
.engine-verdict { font-size: 0.875rem; font-weight: 700; padding: 4px 10px; border-radius: 5px; display: inline-block; }
.verdict-malicious { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }
.verdict-suspicious { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-border); }
.verdict-clean { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.verdict-unknown, .verdict-error { background: var(--bg-alt); color: var(--text-3); border: 1px solid var(--border); }
.engine-detail { font-size: 0.78rem; color: var(--text-3); margin-top: 0.4rem; line-height: 1.5; }
.risk-summary {
  background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius-xl);
  padding: 1.5rem 2rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 1.5rem; box-shadow: var(--shadow-sm);
}
.risk-score-num { font-family: 'JetBrains Mono', monospace; font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; line-height: 1; }
.risk-score-num.high   { color: var(--red); }
.risk-score-num.medium { color: var(--orange); }
.risk-score-num.low    { color: var(--green); }
.risk-info h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.risk-info p  { font-size: 0.875rem; color: var(--text-3); margin: 0; }

/* ── Lookup ── */
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,230px), 1fr)); gap: 0.875rem; margin-top: 1.25rem; }
.result-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow-sm); }
.result-label { font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-4); margin-bottom: 0.3rem; }
.result-value { font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; color: var(--text); word-break: break-all; font-weight: 500; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.375rem; }
.chip-port { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-border); font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.chip-vuln { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; padding: 2px 8px; border-radius: 4px; font-weight: 500; }

/* ── IOC ── */
.ioc-val { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text-2); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ioc-type { font-size: 0.67rem; background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent-border); padding: 2px 7px; border-radius: 4px; font-weight: 600; white-space: nowrap; }
.conf-bar { width: 52px; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.conf-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--accent)); border-radius: 3px; }

/* ── DShield ── */
.infocon { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.875rem; padding: 6px 16px; border-radius: var(--radius); }
.infocon-green  { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.infocon-yellow { background: var(--orange-bg); color: #854D0E;        border: 1px solid var(--orange-border); }
.infocon-orange { background: var(--orange-bg); color: var(--orange);  border: 1px solid var(--orange-border); }
.infocon-red    { background: var(--red-bg);    color: var(--red);     border: 1px solid var(--red-border); }

/* ── Subscribe ── */
.subscribe-section { background: var(--text); border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3rem); text-align: center; }
.subscribe-section h2 { color: white; font-family: 'Source Serif 4', serif; margin-bottom: 0.5rem; }
.subscribe-section > p { color: rgba(255,255,255,0.65); margin-bottom: 1.75rem; }
.subscribe-form { display: flex; gap: 0.75rem; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.subscribe-form input { flex: 1; min-width: 220px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 0.65rem 1rem; border-radius: var(--radius); font-size: 0.875rem; outline: none; transition: all var(--transition); font-family: 'Inter', sans-serif; }
.subscribe-form input::placeholder { color: rgba(255,255,255,0.4); }
.subscribe-form input:focus { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }
.btn-light { background: white; color: var(--text); font-weight: 700; border: none; }
.btn-light:hover { background: var(--bg); color: var(--accent); transform: translateY(-1px); }
.sub-msg { margin-top: 0.875rem; font-size: 0.875rem; color: rgba(255,255,255,0.8); }

/* ── Loading ── */
.loading { display: flex; align-items: center; gap: 0.75rem; color: var(--text-3); font-size: 0.875rem; padding: 2.5rem; justify-content: center; }
.spinner { width: 17px; height: 17px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.75s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ── Ransomware ── */
.group-name { font-weight: 600; color: var(--text); }
.active-dot { display: inline-block; width: 6px; height: 6px; background: var(--red); border-radius: 50%; margin-right: 5px; animation: pulse 2s infinite; }
.inactive-dot { display: inline-block; width: 6px; height: 6px; background: var(--text-4); border-radius: 50%; margin-right: 5px; }

/* ── Footer ── */
footer { background: var(--text); color: rgba(240,237,230,0.6); padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand-name { font-family: 'Source Serif 4', serif; font-size: 1.15rem; font-weight: 600; color: rgba(240,237,230,0.95); margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.footer-brand > p { font-size: 0.82rem; margin-bottom: 1rem; }
.footer-contacts a { display: block; font-size: 0.82rem; color: rgba(240,237,230,0.5); margin-bottom: 0.25rem; }
.footer-contacts a:hover { color: rgba(240,237,230,0.85); }
.footer-col h4 { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(240,237,230,0.35); margin-bottom: 0.875rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a { font-size: 0.875rem; color: rgba(240,237,230,0.5); }
.footer-col ul a:hover { color: rgba(240,237,230,0.85); }
.footer-credits { font-size: 0.75rem; color: rgba(240,237,230,0.35); line-height: 1.9; }
.footer-credits a { color: rgba(240,237,230,0.35); font-size: 0.75rem; }
.footer-credits a:hover { color: rgba(240,237,230,0.6); }
.footer-bottom { border-top: 1px solid rgba(240,237,230,0.1); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-size: 0.75rem; color: rgba(240,237,230,0.3); }

/* ── Exploit cards ── */
.exploit-list { display: flex; flex-direction: column; gap: 0.625rem; }
.exploit-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); transition: all var(--transition);
  display: flex; gap: 1rem; align-items: flex-start;
}
.exploit-card:hover { border-color: var(--border-dark); box-shadow: var(--shadow); }
.exploit-source-col { display: flex; flex-direction: column; gap: 0.4rem; flex-shrink: 0; min-width: 90px; }
.exploit-source { font-size: 0.67rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.exploit-date { font-size: 0.67rem; color: var(--text-4); font-family: 'JetBrains Mono', monospace; }
.exploit-body { flex: 1; min-width: 0; }
.exploit-title { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; line-height: 1.4; }
.exploit-summary { font-size: 0.8rem; color: var(--text-3); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.exploit-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.5rem; }
.etag { font-size: 0.66rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.etag-rce    { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }
.etag-sqli   { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-border); }
.etag-xss    { background: var(--blue-bg);   color: var(--blue);   border: 1px solid var(--blue-border); }
.etag-lpe    { background: var(--purple-bg); color: var(--purple); border: 1px solid var(--purple-border); }
.etag-dos    { background: var(--red-bg);    color: #9A3412;        border: 1px solid #F0C4A8; }
.etag-default{ background: var(--bg-alt);    color: var(--text-3); border: 1px solid var(--border); }

/* ── Grid utils ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,400px), 1fr)); gap: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 1200px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1024px) { .nav-links { display: none; } .hamburger { display: flex; } }
@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .feed-row { grid-template-columns: 22px 115px 1fr 46px; }
  .feed-time { display: none; }
  .engine-grid { grid-template-columns: 1fr 1fr; }
  .scanner-form { flex-direction: column; }
  .subscribe-form { flex-direction: column; align-items: stretch; }
  .risk-summary { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 0.625rem; }
  .stat-card { padding: 0.875rem; }
  .engine-grid { grid-template-columns: 1fr; }
  .feed-row { grid-template-columns: 20px 105px 1fr 42px; padding: 0.6rem 0.875rem; gap: 0.5rem; }
  .news-grid { grid-template-columns: 1fr; }
  th, td { padding: 0.6rem 0.75rem; font-size: 0.8rem; }
}
