/* ═══════════════════════════════════════
   BEDROCK SAFEGUARD INC. — STYLES
   ═══════════════════════════════════════ */

:root {
  --bg-deep: #060a13;
  --bg-primary: #0B1120;
  --bg-card: #111a2e;
  --bg-card-hover: #162040;
  --navy: #1B2A4A;
  --navy-mid: #2C3E5A;
  --cyan: #00CFFF;
  --cyan-dim: rgba(0, 207, 255, 0.15);
  --cyan-glow: rgba(0, 207, 255, 0.4);
  --red: #ff3344;
  --red-dim: rgba(255, 51, 68, 0.15);
  --orange: #ff8800;
  --green: #00e676;
  --green-dim: rgba(0, 230, 118, 0.15);
  --text: #c8cdd8;
  --text-bright: #e8ecf4;
  --text-dim: #6b7894;
  --border: rgba(0, 207, 255, 0.08);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── SCANLINE OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 207, 255, 0.008) 2px,
    rgba(0, 207, 255, 0.008) 4px
  );
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6, 10, 19, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-logo span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-bright);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.nav-links > li {
  display: flex;
  align-items: center;
}

.nav-login-link {
  color: var(--cyan) !important;
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 6px;
  padding: 0.45rem 1rem !important;
  transition: all 0.2s;
}

.nav-login-link:hover {
  background: rgba(0, 207, 255, 0.1);
  border-color: var(--cyan);
}

.nav-auth .btn-primary {
  text-transform: none;
  letter-spacing: 0.3px;
  font-weight: 500;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-transform: none;
  transition: color 0.3s, background 0.3s;
  border-radius: 4px;
  display: flex;
  align-items: center;
  line-height: 1;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  background: var(--cyan-dim);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── NAV DROPDOWN ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown > a::after {
  content: '\25BE';
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.3s;
}

.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(11, 17, 32, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  z-index: 1001;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.3px;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown-menu li a:hover {
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-bg canvas { width: 100%; height: 100%; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 .accent { color: var(--cyan); }

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
}

.hero-stat .label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: #33d9ff;
  box-shadow: 0 0 30px var(--cyan-glow);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}

.btn-outline:hover {
  background: var(--cyan-dim);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SECTIONS ── */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 207, 255, 0.15);
  transform: translateY(-2px);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  font-size: 1.15rem;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── THREAT TICKER ── */
.ticker-bar {
  background: rgba(0, 207, 255, 0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  animation: ticker 60s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.ticker-content .threat-item {
  display: inline;
  margin-right: 3rem;
}

.ticker-content .threat-type {
  color: var(--red);
  font-weight: 600;
}

.ticker-content .threat-host {
  color: var(--cyan);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── INTEL DASHBOARD ── */
.globe-container {
  width: 100%;
  height: 500px;
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at center, #0d1525 0%, var(--bg-deep) 100%);
  border: 1px solid var(--border);
}

.threat-counter {
  text-align: center;
  padding: 2rem;
  margin-bottom: 2rem;
}

.threat-counter .big-num {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 40px var(--cyan-glow);
}

.threat-counter .counter-label {
  font-size: 1rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.feed-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 207, 255, 0.04);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feed-header .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.feed-list {
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--navy) transparent;
}

.feed-list::-webkit-scrollbar { width: 4px; }
.feed-list::-webkit-scrollbar-track { background: transparent; }
.feed-list::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 2px; }

.feed-item {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  transition: background 0.2s;
}

.feed-item:hover { background: rgba(0, 207, 255, 0.03); }

.feed-item .feed-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.feed-item .feed-ioc {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.8rem;
  word-break: break-all;
}

.feed-item .feed-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feed-tag.c2 { background: var(--red-dim); color: var(--red); }
.feed-tag.malware { background: rgba(255, 136, 0, 0.15); color: var(--orange); }
.feed-tag.url { background: var(--cyan-dim); color: var(--cyan); }
.feed-tag.botnet { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

/* ── ABOUT ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.team-member .team-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--cyan-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  border: 2px solid rgba(0, 207, 255, 0.2);
}

.team-member h3 {
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
}

.team-member .team-role {
  font-size: 0.8rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.team-member p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ── CONTACT ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 207, 255, 0.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-block {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact-block h4 {
  font-size: 0.8rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.contact-block p, .contact-block a {
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1.6;
}

.contact-block a:hover { color: var(--cyan); }

/* ── SERVICES DETAIL ── */
.service-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
}

.service-block:hover { border-color: rgba(0, 207, 255, 0.15); }

.service-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0, 207, 255, 0.15);
  line-height: 1;
}

.service-block h3 {
  font-size: 1.2rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.service-block p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

.service-block ul {
  list-style: none;
  margin-top: 0.75rem;
}

.service-block ul li {
  font-size: 0.85rem;
  color: var(--text);
  padding: 0.25rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.service-block ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  list-style: none;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--cyan); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 207, 255, 0.03) 0%, transparent 100%);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(6, 10, 19, 0.98);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  .nav-dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    min-width: 0;
    transition: max-height 0.3s, opacity 0.3s, padding 0.3s;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
    padding: 0.25rem 0;
  }
  .nav-dropdown-menu li a {
    padding: 0.4rem 1rem 0.4rem 2rem !important;
    font-size: 0.8rem !important;
    color: var(--text-dim) !important;
    border-left: 2px solid rgba(0, 207, 255, 0.2);
    margin-left: 0;
    display: block !important;
  }
  .nav-dropdown-menu li a:hover {
    color: var(--cyan) !important;
    border-left-color: var(--cyan);
  }
  .nav-dropdown > a::after {
    content: '\25BE';
    font-size: 0.65rem;
    opacity: 0.6;
    margin-left: 0.3rem;
    transition: transform 0.3s;
    display: inline !important;
  }
  .nav-dropdown.open > a::after {
    transform: rotate(180deg);
  }
  .nav-links > li {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .nav-links a {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .nav-dropdown {
    text-align: center;
    width: 100%;
    flex-direction: column !important;
  }
  .nav-dropdown > a {
    justify-content: center;
    width: 100%;
  }
  .nav-dropdown-menu li a {
    border-left: none !important;
    margin-left: 0 !important;
    padding: 0.4rem 1rem !important;
  }
  .nav-dropdown-menu li {
    text-align: center;
  }
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }
  .ticker-bar {
    max-width: 100vw;
    overflow: hidden;
  }
  .contact-layout { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; }
  .service-num { font-size: 1.5rem; }
  .hero-stats { gap: 1.5rem; }
  .globe-container { height: 350px; }
  .feed-grid { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── STATUS INDICATOR ── */
.status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease infinite;
}

/* ── DASHBOARD NAV LINK ── */
.nav-dash-link {
  color: var(--cyan) !important;
  position: relative;
}

.nav-dash-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease infinite;
}

/* ── THREAT LOOKUP PAGE ── */
.lookup-container {
  max-width: 800px;
  margin: 0 auto;
}

.lookup-input-wrap {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--bg-card);
}

.lookup-input-wrap:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 25px rgba(0, 207, 255, 0.1);
}

.lookup-input-wrap input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  outline: none;
}

.lookup-input-wrap input::placeholder {
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.lookup-input-wrap button {
  padding: 1rem 2rem;
  background: var(--cyan);
  color: var(--bg-deep);
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.lookup-input-wrap button:hover {
  background: #33d9ff;
}

.lookup-input-wrap button:disabled {
  background: var(--navy-mid);
  color: var(--text-dim);
  cursor: not-allowed;
}

.lookup-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-align: center;
  margin-bottom: 2.5rem;
}

.lookup-rate {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 2rem;
}

.lookup-rate span { color: var(--cyan); }

/* Results */
.lookup-results {
  display: none;
}

.lookup-results.active {
  display: block;
}

.risk-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.risk-gauge {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.risk-gauge svg {
  transform: rotate(-90deg);
  width: 80px;
  height: 80px;
}

.risk-gauge-bg {
  fill: none;
  stroke: var(--navy);
  stroke-width: 6;
}

.risk-gauge-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease, stroke 0.5s;
}

.risk-gauge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
}

.risk-info { flex: 1; }

.risk-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.risk-label.critical { background: var(--red-dim); color: var(--red); }
.risk-label.high { background: rgba(255, 136, 0, 0.15); color: var(--orange); }
.risk-label.medium { background: rgba(255, 213, 0, 0.15); color: #ffd500; }
.risk-label.low { background: var(--green-dim); color: var(--green); }

.risk-summary {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

/* Source panels */
.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.source-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 207, 255, 0.04);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.source-header:hover {
  background: rgba(0, 207, 255, 0.08);
}

.source-header .source-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.source-badge.found { background: var(--cyan-dim); color: var(--cyan); }
.source-badge.clean { background: var(--green-dim); color: var(--green); }
.source-badge.threat { background: var(--red-dim); color: var(--red); }
.source-badge.na { background: rgba(107, 120, 148, 0.15); color: var(--text-dim); }

.source-body {
  padding: 1rem 1.25rem;
}

.source-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
}

.source-row:last-child { border-bottom: none; }

.source-key {
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-right: 1rem;
}

.source-val {
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: right;
  overflow-wrap: break-word;
  word-break: normal;
}

.source-val.threat { color: var(--red); }
.source-val.safe { color: var(--green); }
.source-val.warn { color: var(--orange); }

/* Loading state */
.lookup-loading {
  display: none;
  text-align: center;
  padding: 3rem;
}

.lookup-loading.active { display: block; }

.lookup-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--navy);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.lookup-loading p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Error state */
.lookup-error {
  display: none;
  text-align: center;
  padding: 2rem;
  background: var(--red-dim);
  border: 1px solid rgba(255, 51, 68, 0.2);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.lookup-error.active { display: block; }

.lookup-error p {
  color: var(--red);
  font-size: 0.9rem;
}

/* CTA banner */
.lookup-cta {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 2rem;
}

.lookup-cta h3 {
  font-size: 1.15rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.lookup-cta p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

/* Examples list */
.lookup-examples {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.lookup-example-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.lookup-example-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

@media (max-width: 768px) {
  .lookup-input-wrap {
    flex-direction: column;
  }
  .lookup-input-wrap button {
    padding: 0.85rem;
  }
  .risk-banner {
    flex-direction: column;
    text-align: center;
  }
  .source-grid {
    grid-template-columns: 1fr;
  }
}

/* ── UPSELL GATE OVERLAY ── */
.gate-overlay {
    margin: 1.5rem 0;
    text-align: center;
}
.gate-card {
    background: rgba(0, 207, 255, 0.03);
    border: 1px solid rgba(0, 207, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
}
.gated-content {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
    opacity: 0.5;
}
.gate-remaining {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}
