:root {
  --panel-bg: rgba(17, 24, 39, 0.78);
  --panel-border: rgba(148, 163, 184, 0.16);
}

body {
  background: radial-gradient(circle at top right, #1e3a8a 0, #0f172a 35%, #020617 100%);
  color: #e2e8f0;
}

[data-bs-theme="light"] body,
body.light-theme {
  background: linear-gradient(180deg, #f8fafc 0, #e2e8f0 100%);
  color: #0f172a;
}

.app-shell {
  backdrop-filter: blur(18px);
}

.sidebar {
  width: 280px;
  background: rgba(2, 6, 23, 0.74);
  display: flex;
  flex-direction: column;
}

.premium-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.btn-nav {
  text-align: left;
  color: inherit;
  border: 1px solid transparent;
}

.btn-nav.active,
.btn-nav:hover {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.3);
}

.auth-screen {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 4rem);
}

.login-panel {
  max-width: 560px;
}

.stat-card {
  min-height: 170px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-badge img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.ns-chip {
  font-family: monospace;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.22);
}

.skeleton {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.3), rgba(148, 163, 184, 0.18));
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}

.record-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.record-badge-a,
.record-badge-aaaa {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.record-badge-cname,
.record-badge-ptr,
.record-badge-ns {
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
}

.record-badge-mx,
.record-badge-srv,
.record-badge-soa {
  background: rgba(168, 85, 247, 0.14);
  color: #d8b4fe;
}

.record-badge-txt,
.record-badge-caa {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}

.table-sort {
  cursor: pointer;
  user-select: none;
}

.metric-big {
  font-size: 2rem;
  font-weight: 700;
}

.metric-highlight {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.metric-stack {
  display: grid;
  gap: 0.9rem;
}

.quick-filter-chip {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.35);
  color: inherit;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.quick-filter-chip.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.4);
}

.table-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  max-width: 180px;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (max-width: 991px) {
  .sidebar {
    display: none;
  }
}
