.dns-table-wrap { width:100%; overflow-x:auto; border:1px solid var(--border); border-radius:16px; background:#fff; }
.dns-record-table { width:100%; min-width:720px; border-collapse:separate; border-spacing:0; font-size:13px; }
.dns-record-table thead th { padding:12px 14px; color:#fff; background:linear-gradient(135deg,var(--accent),var(--accent-2)); text-align:left; font-size:11px; letter-spacing:.05em; text-transform:uppercase; }
.dns-record-table thead th:first-child { width:150px; border-radius:15px 0 0 0; }
.dns-record-table thead th:nth-child(2) { width:90px; text-align:center; }
.dns-record-table thead th:last-child { border-radius:0 15px 0 0; }
.dns-row { --dns-color:#2563eb; --dns-bg:#eff6ff; }
.dns-row > th,.dns-row > td { padding:13px 14px; border-bottom:1px solid rgba(203,213,225,.8); vertical-align:top; background:var(--dns-bg); }
.dns-row:last-child > th,.dns-row:last-child > td { border-bottom:0; }
.dns-row > th { border-right:1px solid rgba(203,213,225,.8); text-align:left; }
.dns-row > th small { display:block; margin-top:6px; color:#64748b; font-size:10px; font-weight:650; }
.dns-row > td:nth-child(2) { border-right:1px solid rgba(203,213,225,.8); text-align:center; }
.dns-row.is-empty { --dns-bg:#fffbea; }
.dns-row.is-empty > th,.dns-row.is-empty > td { color:#6b5b1e; }
.dns-type-a { --dns-color:#2563eb; --dns-bg:#eef6ff; }
.dns-type-aaaa { --dns-color:#0891b2; --dns-bg:#ecfeff; }
.dns-type-ns { --dns-color:#16a34a; --dns-bg:#f0fdf4; }
.dns-type-mx { --dns-color:#dc2626; --dns-bg:#fef2f2; }
.dns-type-soa { --dns-color:#ea580c; --dns-bg:#fff7ed; }
.dns-type-txt { --dns-color:#52525b; --dns-bg:#f8fafc; }
.dns-type-cname { --dns-color:#7c3aed; --dns-bg:#f5f3ff; }
.dns-type-caa { --dns-color:#b45309; --dns-bg:#fffbeb; }
.dns-type-srv { --dns-color:#0f766e; --dns-bg:#f0fdfa; }
.dns-record-badge { min-width:72px; padding:6px 9px; display:inline-flex; align-items:center; justify-content:center; gap:7px; border-radius:8px; color:#fff; background:var(--dns-color); font-size:12px; font-weight:900; letter-spacing:.03em; }
.dns-record-badge .fa-icon { width:13px; height:13px; }
.dns-ttl { font-weight:800; color:#334155; }
.dns-value-list { display:grid; gap:8px; }
.dns-value-item { min-width:0; display:flex; align-items:flex-start; gap:8px; color:#1e293b; }
.dns-value-item .fa-icon { width:14px; height:14px; margin-top:2px; flex:0 0 auto; color:var(--dns-color); }
.dns-value-item code { color:inherit; background:transparent; font:600 12.5px/1.45 var(--mono); white-space:normal; overflow-wrap:anywhere; }
.dns-empty-value { display:flex; align-items:center; gap:8px; font-weight:750; }
.dns-empty-value .fa-icon { width:15px; height:15px; }
.soa-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 14px; }
.soa-grid > div { min-width:0; display:grid; grid-template-columns:minmax(105px,.75fr) minmax(0,1.25fr); gap:8px; }
.soa-grid span { color:#64748b; font-size:11px; font-weight:750; }
.soa-grid code { color:#1e293b; font:650 12px/1.4 var(--mono); overflow-wrap:anywhere; }
@media(max-width:760px){.soa-grid{grid-template-columns:1fr}.dns-record-table{min-width:650px}}

.dns-ip-entry { display:grid; gap:5px; }
.dns-ip-entry + .dns-ip-entry { padding-top:8px; border-top:1px dashed rgba(148,163,184,.55); }
.dns-ip-primary code { font-weight:850; }
.dns-ip-detail { min-height:20px; padding-left:22px; display:flex; flex-wrap:wrap; align-items:center; gap:5px; color:#64748b; font-size:11px; line-height:1.4; }
.dns-ip-detail.is-ready { color:#475569; }
.dns-ip-detail.is-private { color:#7c3aed; }
.dns-ip-detail.is-error { color:#9a3412; }
.dns-ip-flag { font-size:15px; line-height:1; }
.dns-ip-country { font-weight:850; color:#334155; }
.dns-ip-provider { font-weight:700; color:#475569; }
.dns-ip-separator { color:#94a3b8; }
.dns-mini-spinner { width:12px; height:12px; flex:0 0 auto; border:2px solid #bfdbfe; border-top-color:var(--accent); border-radius:50%; animation:dns-spin .8s linear infinite; }
@keyframes dns-spin { to { transform:rotate(360deg); } }

/* Risoluzione host NS/MX con nazione, IP e provider */
.dns-host-entry { display:grid; gap:5px; }
.dns-host-entry + .dns-host-entry { padding-top:9px; border-top:1px dashed rgba(148,163,184,.55); }
.dns-host-primary code { font-weight:850; }
.dns-host-detail { min-height:20px; padding-left:22px; color:#64748b; font-size:11px; line-height:1.45; }
.dns-host-detail.is-error { color:#9a3412; }
.dns-host-address-list { display:grid; gap:5px; }
.dns-host-address { display:flex; flex-wrap:wrap; align-items:center; gap:5px; color:#475569; }
.dns-host-address.is-ready { color:#475569; }
.dns-host-address.is-private { color:#7c3aed; }
.dns-host-address .dns-resolved-ip { color:#1e293b; background:transparent; font:800 11.5px/1.4 var(--mono); }
.dns-host-primary { flex-wrap:wrap; align-items:center; }
.dns-host-primary > code { flex:0 0 auto; }
.dns-host-primary .dns-host-detail { flex:1 1 280px; padding-left:0; }
