/* ── Navigation dropdown ── */
.snav {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 500;
  font-family: 'Sora', sans-serif;
}
.snav-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  color: rgba(240,240,248,0.60);
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.snav-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.14);
  color: rgba(240,240,248,0.88);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}
.snav-chev {
  opacity: 0.45;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), opacity 0.18s;
}
.snav-btn:hover .snav-chev { opacity: 0.75; }
.snav-btn[aria-expanded="true"] .snav-chev { transform: rotate(180deg); opacity: 0.75; }

.snav-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 196px;
  background: rgba(11,11,24,0.97);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 6px;
  backdrop-filter: blur(40px) saturate(2);
  box-shadow: 0 24px 64px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.025) inset;
  display: none;
  flex-direction: column;
}
.snav-panel.is-open {
  display: flex;
  animation: snavIn 0.2s cubic-bezier(0.16,1,0.3,1);
}
@keyframes snavIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.snav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 11px;
  color: rgba(240,240,248,0.50);
  text-decoration: none;
  font-size: 13.5px;
  transition: background 0.13s, color 0.13s;
}
.snav-item:hover { background: rgba(255,255,255,0.055); color: rgba(240,240,248,0.88); }
.snav-item.is-active { background: rgba(167,139,250,0.11); color: #cfc0fd; }

.snav-bar {
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: #c4b5fd;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.14s;
}
.snav-item.is-active .snav-bar {
  opacity: 1;
  box-shadow: 0 0 8px rgba(196,181,253,0.55);
}

/* ── Tool pages shared layout ── */
.tool-form {
  display: flex;
  gap: 10px;
  width: 100%;
}
.tool-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  color: #f0f0f8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.tool-input::placeholder { color: rgba(240,240,248,0.22); }
.tool-input:focus { border-color: rgba(167,139,250,0.45); background: rgba(255,255,255,0.07); }

.tool-btn {
  background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,0.32);
  border-radius: 12px;
  color: #c4b5fd;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 13px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s;
}
.tool-btn:hover { background: rgba(167,139,250,0.24); border-color: rgba(167,139,250,0.5); }
.tool-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Results */
.result-pre {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  color: rgba(240,240,248,0.78);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.75;
  padding: 16px 18px;
  max-height: 340px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}
.result-table { width: 100%; border-collapse: collapse; }
.result-table th {
  text-align: left;
  font-family: 'Sora', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(240,240,248,0.3);
  padding: 0 14px 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.result-table td {
  padding: 9px 14px 9px 0;
  color: rgba(240,240,248,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  vertical-align: top;
  word-break: break-all;
}
.result-table tr:last-child td { border-bottom: none; }
.rtype {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.rtype-A,.rtype-AAAA  { background: rgba(96,165,250,0.14); color: #93c5fd; }
.rtype-MX             { background: rgba(167,139,250,0.14); color: #c4b5fd; }
.rtype-TXT            { background: rgba(251,191,36,0.12);  color: #fcd34d; }
.rtype-CNAME          { background: rgba(52,211,153,0.12);  color: #6ee7b7; }
.rtype-NS             { background: rgba(251,113,133,0.12); color: #fda4af; }
.rtype-SOA            { background: rgba(156,163,175,0.12); color: #d1d5db; }

.tool-msg {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  color: rgba(240,240,248,0.38);
  text-align: center;
  padding: 6px 0 2px;
}
.tool-msg.is-err { color: #fda4af; }

.card.card--tool {
  min-width: 500px;
  text-align: left;
  gap: 18px;
}
@media (max-width: 580px) {
  .card.card--tool { min-width: unset; width: calc(100vw - 32px); }
  .snav { top: 16px; right: 16px; }
}
