/* Database Malware — editoriale EVIL */

.mdb-page {
  --mdb-amber: #f59e0b;
  --mdb-emerald: #00ff9c;
  --mdb-cyan: #22d3ee;
  --mdb-serif: Georgia, "Palatino Linotype", serif;
  --mdb-mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --mdb-glass: rgba(9, 14, 24, 0.82);
  --mdb-border: rgba(255, 255, 255, 0.1);
}

.mdb-page main {
  position: relative;
  z-index: 2;
}

.mdb-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mdb-scene__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 45% at 10% 20%, rgba(0, 255, 156, 0.08), transparent 55%),
    radial-gradient(ellipse 45% 40% at 90% 75%, rgba(34, 211, 238, 0.07), transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 100%, rgba(245, 158, 11, 0.05), transparent 45%);
}

.mdb-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem) 3rem;
}

.mdb-hero {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px dashed var(--mdb-border);
}

.mdb-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--mdb-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mdb-amber);
}

.mdb-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--mdb-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: #f8fafc;
}

.mdb-hero__lead {
  margin: 0 auto 1.25rem;
  max-width: 42em;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #94a3b8;
}

.mdb-hero__lead a {
  color: var(--mdb-emerald);
}

.mdb-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.mdb-nav-links a {
  font-family: var(--mdb-mono);
  font-size: 0.72rem;
  color: #6ee7b7;
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(0, 255, 156, 0.28);
  border-radius: 6px;
  transition: background 0.25s, border-color 0.25s;
}

.mdb-nav-links a:hover {
  background: rgba(0, 255, 156, 0.1);
  border-color: var(--mdb-emerald);
}

.mdb-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  margin: 1.75rem 0 1.25rem;
  align-items: end;
}

.mdb-search-wrap {
  display: flex;
  gap: 0.5rem;
}

.mdb-search {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 156, 0.25);
  background: rgba(9, 14, 24, 0.7);
  color: #e2e8f0;
  font-size: 0.9rem;
}

.mdb-search::placeholder {
  color: #64748b;
}

.mdb-search:focus {
  outline: none;
  border-color: var(--mdb-emerald);
  box-shadow: 0 0 0 2px rgba(0, 255, 156, 0.15);
}

.mdb-btn {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 156, 0.35);
  background: rgba(0, 255, 156, 0.12);
  color: var(--mdb-emerald);
  font-family: var(--mdb-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
}

.mdb-btn:hover {
  background: rgba(0, 255, 156, 0.22);
}

.mdb-select {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 14, 24, 0.7);
  color: #e2e8f0;
  font-size: 0.85rem;
  min-width: 150px;
}

.mdb-stats {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mdb-stat {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 156, 0.15);
  background: rgba(9, 14, 24, 0.65);
  text-align: center;
}

.mdb-stat__val {
  display: block;
  font-family: var(--mdb-serif);
  font-size: 1.45rem;
  color: var(--mdb-emerald);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mdb-stat__lbl {
  display: block;
  font-family: var(--mdb-mono);
  font-size: clamp(0.5rem, 1.8vw, 0.62rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mdb-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 156, 0.18);
  background: rgba(9, 14, 24, 0.55);
}

.mdb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.mdb-table thead {
  background: rgba(0, 255, 156, 0.06);
}

.mdb-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--mdb-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mdb-emerald);
}

.mdb-table td {
  padding: 0.7rem 1rem;
  color: #94a3b8;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mdb-table tbody tr {
  cursor: pointer;
  transition: background 0.2s;
}

.mdb-table tbody tr:hover,
.mdb-table tbody tr:focus-visible {
  background: rgba(0, 255, 156, 0.08);
  outline: none;
}

.mdb-table__name {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #e2e8f0;
}

.mdb-family-icon {
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.mdb-family-icon--table {
  width: 36px;
  height: 36px;
}

.mdb-family-icon--modal {
  width: 52px;
  height: 52px;
}

.mdb-chip {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: var(--mdb-mono);
  font-size: 0.68rem;
}

.mdb-chip--family {
  background: rgba(0, 255, 156, 0.1);
  color: #6ee7b7;
}

.mdb-sev {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: var(--mdb-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.mdb-sev--critical {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

.mdb-sev--high {
  background: rgba(251, 146, 60, 0.2);
  color: #fdba74;
}

.mdb-sev--medium {
  background: rgba(250, 204, 21, 0.15);
  color: #fde047;
}

.mdb-sev--low {
  background: rgba(74, 222, 128, 0.15);
  color: #86efac;
}

.mdb-empty {
  text-align: center;
  padding: 2rem;
  color: #64748b;
  font-size: 0.9rem;
}

.mdb-page-info {
  margin: 0.75rem 0;
  font-family: var(--mdb-mono);
  font-size: 0.72rem;
  color: #64748b;
}

.mdb-paginator {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 1rem 0 2rem;
}

.mdb-paginator button {
  min-width: 38px;
  height: 38px;
  padding: 0 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 156, 0.25);
  background: rgba(9, 14, 24, 0.7);
  color: #94a3b8;
  font-family: var(--mdb-mono);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.mdb-paginator button:hover {
  border-color: var(--mdb-emerald);
  color: var(--mdb-emerald);
}

.mdb-paginator button.is-active {
  border-color: var(--mdb-emerald);
  background: rgba(0, 255, 156, 0.15);
  color: #ecfdf5;
}

.mdb-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mdb-modal[hidden] {
  display: none;
}

.mdb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.mdb-modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem 1.65rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 156, 0.25);
  background: rgba(9, 14, 24, 0.96);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.mdb-modal__head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mdb-modal__head h2 {
  margin: 0;
  font-family: var(--mdb-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: #f8fafc;
}

.mdb-modal__close {
  margin-left: auto;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.mdb-modal__close:hover {
  color: #f87171;
}

.mdb-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mdb-modal__field strong {
  display: block;
  font-family: var(--mdb-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.mdb-modal__field span,
.mdb-modal__field p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.mdb-modal__section {
  margin-top: 1rem;
}

.mdb-modal__section strong {
  display: block;
  font-family: var(--mdb-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mdb-emerald);
  margin-bottom: 0.5rem;
}

.mdb-modal__list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.55;
}

.mdb-vectors {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px dashed rgba(0, 255, 156, 0.2);
  background: rgba(0, 255, 156, 0.03);
}

.mdb-vectors h2 {
  margin: 0 0 1rem;
  font-family: var(--mdb-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: #f1f5f9;
}

.mdb-vectors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.mdb-vector {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 24, 0.5);
}

.mdb-vector h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--mdb-cyan);
}

.mdb-vector p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #94a3b8;
}

body.mdb-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .mdb-toolbar {
    grid-template-columns: 1fr;
  }
  .mdb-modal__grid {
    grid-template-columns: 1fr;
  }
}
