@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700;800&family=Syne:wght@700;800&display=swap');

/* ================================================
   DNSMAP.DE — REBORN 2026
   Design: Quantum Terminal / Neural Grid
   ================================================ */

:root {
  --bg-void:       #02040a;
  --bg-deep:       #060b14;
  --bg-panel:      #080d19;
  --bg-card:       #0a1020;
  --bg-lift:       #0d1628;
  --border-sub:    rgba(255,255,255,0.04);
  --border-main:   rgba(255,255,255,0.08);
  --border-glow:   rgba(0,170,255,0.25);
  --accent:        #00aaff;
  --accent-dim:    rgba(0,170,255,0.15);
  --accent-glow:   rgba(0,170,255,0.35);
  --accent2:       #7c3aed;
  --accent2-dim:   rgba(124,58,237,0.12);
  --green:         #00e5a0;
  --green-dim:     rgba(0,229,160,0.12);
  --red:           #ff3d6b;
  --red-dim:       rgba(255,61,107,0.12);
  --orange:        #ff8c42;
  --orange-dim:    rgba(255,140,66,0.12);
  --text-primary:  #e8f0ff;
  --text-muted:    #4a6080;
  --text-sub:      #2a3a52;
  --font-display:  'Syne', sans-serif;
  --font-body:     'Space Grotesk', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --radius-2xl:    36px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── GRID BACKGROUND ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,170,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,170,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,100,200,0.12), transparent),
              radial-gradient(ellipse 40% 40% at 80% 60%, rgba(124,58,237,0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }
* { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }

/* ── TYPOGRAPHY ── */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

/* ── GLASS PANEL ── */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,170,255,0.3), transparent);
  pointer-events: none;
}

/* ── HEADER ── */
.site-header {
  position: relative;
  z-index: 10;
  padding: 0;
  margin-bottom: 2rem;
}
.header-inner {
  background: linear-gradient(135deg, rgba(10,16,32,0.95) 0%, rgba(6,11,20,0.98) 100%);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-2xl);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.header-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,170,255,0.4) 40%, rgba(124,58,237,0.3) 70%, transparent 100%);
}
.header-inner::after {
  content: '';
  position: absolute;
  top: -60px; left: -20px;
  width: 300px; height: 120px;
  background: radial-gradient(ellipse, rgba(0,80,160,0.15), transparent 70%);
  pointer-events: none;
}

/* Logo */
.logo-block { position: relative; z-index: 1; }
.logo-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
  text-transform: uppercase;
}
.logo-text .dot-de {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}
.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-sub::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* Status Pill */
.status-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0,170,255,0.05);
  border: 1px solid rgba(0,170,255,0.15);
  border-radius: var(--radius-lg);
  padding: 0.6rem 1.2rem;
  font-family: var(--font-mono);
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  z-index: 1;
}
.status-pill:hover {
  background: rgba(0,170,255,0.1);
  border-color: rgba(0,170,255,0.3);
  box-shadow: 0 0 20px rgba(0,170,255,0.1);
}
.status-dot-wrapper { position: relative; display: flex; }
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.status-dot-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: sonar 2s ease-out infinite;
}
@keyframes sonar {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.8); opacity: 0; }
}
.status-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}
.status-sub {
  font-size: 0.45rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

/* ── SEARCH BAR ── */
.search-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  transition: border-color 0.3s;
}
.search-panel:focus-within {
  border-color: var(--border-glow);
  box-shadow: 0 0 0 1px rgba(0,170,255,0.1), 0 8px 40px rgba(0,0,0,0.3);
}
.search-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,170,255,0.2), transparent);
}
.search-glow {
  position: absolute;
  top: -40px; left: -20px;
  width: 200px; height: 80px;
  background: radial-gradient(ellipse, rgba(0,80,200,0.12), transparent);
  pointer-events: none;
}
.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-md);
  padding: 0 1rem;
  transition: all 0.3s;
}
.search-input-wrap:focus-within {
  border-color: rgba(0,170,255,0.3);
  background: rgba(0,20,40,0.5);
}
.search-icon { color: var(--text-muted); width: 16px; height: 16px; flex-shrink: 0; }
.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.9rem 0;
  letter-spacing: 0.02em;
}
.search-input::placeholder { color: var(--text-sub); font-family: var(--font-mono); }

.type-select {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 0 1.25rem;
  height: 48px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s;
}
.type-select:hover, .type-select:focus {
  border-color: rgba(0,170,255,0.3);
  background: rgba(0,20,40,0.6);
}

.check-btn {
  background: linear-gradient(135deg, #005dcc 0%, #0099ff 100%);
  border: none;
  border-radius: var(--radius-md);
  padding: 0 2rem;
  height: 48px;
  color: white;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,100,255,0.35);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.check-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.4s ease;
}
.check-btn:hover::before { left: 100%; }
.check-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0,150,255,0.5);
}
.check-btn:active { transform: translateY(0); }

/* ── MAP ── */
#map {
  width: 100%;
  height: 520px;
  min-height: 520px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-main);
  background: var(--bg-void);
  z-index: 1;
  position: relative;
}
.leaflet-tile-pane {
  filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(85%) saturate(0.4);
}
.leaflet-popup-content-wrapper {
  background: var(--bg-panel) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-glow) !important;
  border-radius: var(--radius-md) !important;
  padding: 4px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 20px rgba(0,170,255,0.1) !important;
}
.leaflet-popup-tip { background: var(--bg-panel) !important; }
.leaflet-control-attribution { display: none !important; }
.leaflet-container { font-family: var(--font-mono) !important; }

/* Map Legend */
.map-legend {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1000;
  display: flex;
  gap: 1rem;
  background: rgba(6,11,20,0.85);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  backdrop-filter: blur(12px);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.legend-dot.red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.legend-dot.orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.legend-item span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ── MARKERS ── */
.marker-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}
.marker-blue  { background: var(--accent);  box-shadow: 0 0 8px var(--accent);  animation: mk-pulse 2s ease-in-out infinite; }
.marker-green { background: var(--green);   box-shadow: 0 0 12px var(--green);  transform: scale(1.3); }
.marker-red   { background: var(--red);     box-shadow: 0 0 12px var(--red);    transform: scale(1.3); }
.marker-orange{ background: var(--orange);  box-shadow: 0 0 12px var(--orange); animation: mk-pulse-o 2s ease-in-out infinite; }
@keyframes mk-pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}
@keyframes mk-pulse-o {
  0%, 100% { transform: scale(1.1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 18px var(--orange); }
}

/* ── RESULTS SIDEBAR ── */
.sidebar-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.sidebar-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,170,255,0.3), transparent);
}
.sidebar-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-sub);
  background: rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.sidebar-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.sidebar-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
  font-style: italic;
}
.counter-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0,170,255,0.1);
  border: 1px solid rgba(0,170,255,0.2);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 99px;
  letter-spacing: 0.1em;
}
.node-search-wrap {
  position: relative;
}
.node-search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 12px; height: 12px;
  pointer-events: none;
}
.node-search {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  outline: none;
  transition: all 0.2s;
}
.node-search:focus {
  border-color: rgba(0,170,255,0.3);
  background: rgba(0,20,40,0.5);
}
.node-search::placeholder { color: var(--text-sub); }
.results-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  min-height: 0;
}

/* Node Items */
.node-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-sub);
  background: rgba(0,0,0,0.15);
  margin-bottom: 0.4rem;
  transition: all 0.25s ease;
  opacity: 0.45;
  animation: item-slide 0.3s ease forwards;
  min-width: 0;
  overflow: hidden;
}
.node-item:hover { background: rgba(0,170,255,0.04); border-color: rgba(0,170,255,0.12); }
.node-item.resolved { opacity: 1; }
@keyframes item-slide {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 0.45; transform: translateX(0); }
}
.node-item.resolved { animation: item-resolved 0.35s ease forwards; }
@keyframes item-resolved {
  from { opacity: 0.45; }
  to { opacity: 1; }
}
.node-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.node-meta {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.node-result-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.node-status-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.node-status-dot { width: 5px; height: 5px; border-radius: 50%; }
.node-result-val {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-sub);
  padding: 1px 6px;
  border-radius: 4px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-bar-left { display: flex; align-items: center; gap: 8px; }
.node-bar { width: 3px; height: 28px; border-radius: 99px; background: rgba(0,170,255,0.2); }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 3rem 1rem;
  text-align: center;
}
.empty-icon { color: var(--accent); opacity: 0.2; margin-bottom: 1rem; }
.empty-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

/* ── CONSENSUS SECTION ── */
.consensus-section {
  margin-bottom: 2rem;
  animation: section-rise 0.6s cubic-bezier(0.2,0.8,0.2,1) forwards;
}
@keyframes section-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,170,255,0.2), transparent); }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--accent);
}
.consensus-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.consensus-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,170,255,0.3), transparent);
}
.consensus-bg-icon {
  position: absolute;
  top: 1rem; right: 1.5rem;
  opacity: 0.03;
  pointer-events: none;
}
.consensus-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; position: relative; z-index: 1; }
.consensus-icon-box {
  width: 52px; height: 52px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,170,255,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
}
.consensus-icon-box.success { background: var(--green-dim); border-color: rgba(0,229,160,0.25); box-shadow: 0 0 20px rgba(0,229,160,0.08); }
.consensus-tag {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.consensus-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}
.consensus-pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: sonar 2s infinite; }
.consensus-body { position: relative; z-index: 1; }
.top3-grid { display: flex; flex-direction: column; gap: 8px; min-width: 0; overflow: hidden; }
.top3-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0,0,0,0.2);
  height: 46px;
  transition: all 0.2s;
  min-width: 0;
}
.top3-row:hover { border-color: rgba(0,170,255,0.2); background: rgba(0,20,40,0.4); }
.top3-rank {
  width: 38px; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-muted);
  font-style: italic;
  background: rgba(0,0,0,0.2);
  border-right: 1px solid var(--border-sub);
  flex-shrink: 0;
}
.top3-value {
  flex: 1;
  padding: 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.top3-count {
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  border-left: 1px solid var(--border-sub);
  background: var(--accent-dim);
  flex-shrink: 0;
}
.top3-count-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
}
.top3-count-label {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.stats-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.stat-box {
  flex: 1;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.stat-box.green-accent { border-left: 2px solid rgba(0,229,160,0.4); }
.stat-box.purple-accent { border-left: 2px solid rgba(124,58,237,0.4); }
.stat-num { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 800; line-height: 1; }
.stat-num.green { color: var(--green); }
.stat-num.purple { color: var(--accent2); }
.stat-label { font-family: var(--font-mono); font-size: 0.45rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); }

/* Share Button */
.share-btn {
  width: 100%;
  background: rgba(0,170,255,0.05);
  border: 1px solid rgba(0,170,255,0.15);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s;
  color: var(--accent);
  font-family: var(--font-mono);
}
.share-btn:hover { background: rgba(0,170,255,0.1); border-color: rgba(0,170,255,0.3); box-shadow: 0 0 20px rgba(0,170,255,0.08); }
.share-btn-label { font-size: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; }

/* ── QUICK GRID ── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 900px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .quick-grid { grid-template-columns: 1fr; } }

.dns-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: 280px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}
.dns-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-accent-color, rgba(0,170,255,0.2)), transparent);
}
.dns-card:hover { transform: translateY(-2px); border-color: var(--card-accent-border, rgba(0,170,255,0.3)); }
.dns-card-bg {
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
}
.dns-card-type {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-align: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.dns-card-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.dns-card-body.has-results { align-items: stretch; justify-content: flex-start; }
.dns-record-item {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  text-align: center;
}
.dns-record-item span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}
.dns-no-record {
  padding: 0.5rem 1rem;
  border-radius: 99px;
  background: var(--orange-dim);
  border: 1px solid rgba(255,140,66,0.2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
}
.dns-card-via {
  margin-top: auto;
  padding-top: 0.75rem;
  flex-shrink: 0;
}
.via-badge {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-align: center;
  transition: all 0.3s;
}
.dns-card:hover .via-badge { color: var(--accent); background: rgba(0,170,255,0.05); border-color: rgba(0,170,255,0.15); }

/* ── STAT CARDS (latency, protocol, node) ── */
.stat-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) { .stat-cards-row { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sc-color, rgba(0,170,255,0.2)), transparent);
}
.stat-card:hover { transform: translateY(-1px); }
.stat-card-bg-icon {
  position: absolute;
  right: -8px; bottom: -8px;
  opacity: 0.04;
  transition: opacity 0.3s;
}
.stat-card:hover .stat-card-bg-icon { opacity: 0.07; }
.stat-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-card-val { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-card-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 4px;
  font-style: italic;
}

/* ── FAQ ── */
.faq-wrap { max-width: 800px; margin: 0 auto 5rem; }
.faq-title { text-align: center; margin-bottom: 2.5rem; }
.faq-title h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}
.faq-title p {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  transition: all 0.3s;
}
.faq-item.active { border-color: rgba(0,170,255,0.25); background: rgba(10,16,32,0.9); }
.faq-question {
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-chevron {
  width: 18px; height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s;
}
.faq-item.active .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 600px; padding: 0 1.5rem 1.5rem; }
.faq-answer strong { color: var(--text-primary); }
.faq-answer code {
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-sub);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.faq-answer ul, .faq-answer ol { margin-left: 1.25rem; }
.faq-answer li { margin-bottom: 0.3rem; }

/* ── FOOTER ── */
.site-footer {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 3rem;
}
.footer-inner {
  background: linear-gradient(135deg, rgba(10,16,32,0.95), rgba(6,11,20,0.98));
  border: 1px solid var(--border-main);
  border-radius: var(--radius-2xl);
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.footer-inner::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,170,255,0.2), transparent);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-sub);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}
.footer-cluster-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: sonar 2s infinite; }
.footer-stats { display: flex; align-items: center; gap: 2rem; }
.footer-stat { display: flex; align-items: center; gap: 0.6rem; }
.footer-stat-icon { opacity: 0.4; width: 14px; height: 14px; }
.footer-stat-icon.blue { color: var(--accent); }
.footer-stat-icon.green { color: var(--green); }
.footer-stat:hover .footer-stat-icon { opacity: 0.8; }
.footer-stat-val { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 800; color: var(--text-primary); }
.footer-stat-label { font-family: var(--font-mono); font-size: 0.45rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); margin-top: 1px; display: block; }
.footer-divider { width: 1px; height: 24px; background: var(--border-sub); }
.footer-brand-right { text-align: right; }
.footer-brand-name { font-family: var(--font-display); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-primary); }
.footer-brand-name .accent { color: var(--accent); }
.footer-brand-sub { font-family: var(--font-mono); font-size: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-sub); margin-top: 2px; }
.footer-bottom { display: flex; justify-content: center; }
.dreamcodes-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.25s;
}
.dreamcodes-link:hover { background: rgba(0,170,255,0.04); border-color: var(--border-sub); }
.dc-managed { font-family: var(--font-mono); font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-sub); }
.dc-name { font-family: var(--font-display); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; font-style: italic; color: var(--text-muted); transition: color 0.2s; }
.dreamcodes-link:hover .dc-name { color: var(--accent); }
.dc-sub { font-family: var(--font-mono); font-size: 0.45rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3em; color: rgba(0,170,255,0.3); margin-top: -1px; display: block; }
.dc-div { width: 1px; height: 16px; background: var(--border-sub); transition: background 0.2s; }
.dreamcodes-link:hover .dc-div { background: rgba(0,170,255,0.2); }
.dc-year { font-family: var(--font-mono); font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-sub); }

/* ── ANIMATIONS ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.anim-fade { animation: fadeIn 0.3s ease forwards; }
.anim-slide { animation: slideUp 0.4s ease forwards; }

/* ── GRID LAYOUT ── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
}
@media (max-width: 1024px) { .main-grid { grid-template-columns: 1fr; } }

.map-col { display: flex; flex-direction: column; gap: 1rem; }
.map-wrapper { flex: 1; position: relative; min-height: 520px; }
.results-col { display: flex; flex-direction: column; align-self: stretch; }
.results-col .sidebar-panel { flex: 1; min-height: 0; max-height: 620px; }

/* Lucide icons size normalization */
[data-lucide] { display: inline-block; }

/* ══════════════════════════════════════════

/* ══════════════════════════════════════════
   DOMAIN INTELLIGENCE SECTION
   Shown automatically after a DNS scan
   ══════════════════════════════════════════ */

.intel-section {
  margin-bottom: 3rem;
  animation: slideUp 0.4s ease forwards;
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .intel-grid { grid-template-columns: 1fr; } }

/* ── Card ── */
.intel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
  position: relative;
}
.intel-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 60%);
  opacity: 0.2;
}
.intel-card:hover { border-color: rgba(0,170,255,0.2); }

.intel-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-sub);
  background: rgba(0,0,0,0.15);
  flex-wrap: wrap;
}
.intel-card-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.intel-card-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}
.intel-card-sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-top: 1px;
  letter-spacing: 0.08em;
}
.intel-loading-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-sub);
  animation: fadeIn 1s infinite alternate;
}

.intel-card-body {
  padding: 1rem 1.1rem;
}

/* Skeleton loader */
.intel-skeleton {
  height: 60px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Ampel badges */
.ampel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px 3px 6px;
  border-radius: 99px;
}
.ampel-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ampel.green  { background: var(--green-dim); border: 1px solid rgba(0,229,160,0.2); color: var(--green); }
.ampel.green  .ampel-dot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.ampel.yellow { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.2); color: #fbbf24; }
.ampel.yellow .ampel-dot { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }
.ampel.red    { background: var(--red-dim); border: 1px solid rgba(255,61,107,0.2); color: var(--red); }
.ampel.red    .ampel-dot { background: var(--red); box-shadow: 0 0 6px var(--red); }

/* Email rows inside intel card */
.intel-ampel-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.intel-details { display: flex; flex-direction: column; gap: 6px; }
.intel-detail-row {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
}
.intel-detail-row.green-border  { border-left: 3px solid var(--green); }
.intel-detail-row.yellow-border { border-left: 3px solid #fbbf24; }
.intel-detail-row.red-border    { border-left: 3px solid var(--red); }
.intel-detail-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}
.intel-detail-issue {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.intel-detail-issue::before { content: '→ '; color: var(--text-sub); }
.intel-record {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-sub);
  margin-top: 4px;
  word-break: break-all;
}

.intel-error {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

/* Info grid / cells */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}
.info-cell {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
}
.info-cell-label {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.info-cell-val {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.4;
}
.info-cell-val.green  { color: var(--green); }
.info-cell-val.yellow { color: #fbbf24; }
.info-cell-val.red    { color: var(--red); }

/* SAN tags */
.san-list { display: flex; flex-wrap: wrap; gap: 4px; }
.san-tag {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  background: rgba(0,170,255,0.06);
  border: 1px solid rgba(0,170,255,0.15);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
}

/* Geo badges */
.geo-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.15);
  color: var(--accent2);
  padding: 3px 9px;
  border-radius: 99px;
}
