/* ==========================================================================
   DNSTT.NET - Custom Stylesheet (Modern Glassmorphic UI)
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-secondary: 'Plus Jakarta Sans', sans-serif;

  /* Harmonious Color Palette */
  --bg-main: hsl(240, 25%, 6%);
  --bg-card: hsla(240, 20%, 10%, 0.65);
  --bg-card-hover: hsla(240, 20%, 12%, 0.8);
  --border-color: hsla(240, 15%, 100%, 0.08);
  --border-color-glow: hsla(263, 80%, 60%, 0.35);

  --text-main: hsl(240, 10%, 96%);
  --text-secondary: hsl(240, 8%, 75%);
  --text-muted: hsl(240, 6%, 55%);

  --primary-accent: hsl(263, 85%, 64%);
  --primary-accent-hover: hsl(263, 90%, 69%);
  --primary-accent-rgb: 141, 74, 255;
  
  --secondary-accent: hsl(190, 90%, 50%);
  --secondary-accent-hover: hsl(190, 100%, 55%);
  
  --success-color: hsl(145, 80%, 45%);
  --error-color: hsl(355, 85%, 55%);
  --error-bg: hsla(355, 85%, 55%, 0.1);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Rules */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--text-main);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  background-image: radial-gradient(hsla(0, 0%, 100%, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Background Glowing Orbs */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-accent) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  animation: floatOrb1 20s infinite alternate ease-in-out;
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--secondary-accent) 0%, transparent 70%);
  bottom: -200px;
  left: -100px;
  animation: floatOrb2 25s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 60px) scale(1.1); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, -50px) scale(0.9); }
}

/* Layout Container */
.app-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: hsla(240, 25%, 6%, 0.75);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.header-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
}

.nav-link {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-main);
  background: hsla(240, 10%, 100%, 0.04);
  border-color: var(--border-color);
}

.nav-link.active {
  color: var(--primary-accent);
  background: hsla(263, 85%, 64%, 0.08);
  border-color: rgba(141, 74, 255, 0.25);
  box-shadow: 0 0 15px rgba(141, 74, 255, 0.1);
}

.logo-icon {
  font-size: 2.25rem;
  animation: pulseIcon 2.5s infinite ease-in-out;
  display: inline-block;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0)); }
  50% { transform: scale(1.1) rotate(8deg); filter: drop-shadow(0 0 15px var(--secondary-accent)); }
}

.logo-text {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 2.75rem;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #ffffff 30%, #a2a2d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  background: linear-gradient(135deg, var(--secondary-accent) 0%, var(--primary-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-family: var(--font-secondary);
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: -0.2px;
}

/* Glassmorphism Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.7);
}

/* IP Detector Card styling */
.ip-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: radial-gradient(circle at 100% 0%, hsla(263, 80%, 60%, 0.05) 0%, transparent 60%), var(--bg-card);
}

.card-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.75rem;
}

.ip-display-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.ip-address-text {
  font-family: var(--font-primary);
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  word-break: break-all;
  background: linear-gradient(135deg, #ffffff 40%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-accent) 0%, hsl(263, 75%, 55%) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(141, 74, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(141, 74, 255, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: hsla(240, 10%, 100%, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: hsla(240, 10%, 100%, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 16px;
  position: relative;
}

.btn-icon-small {
  padding: 0.5rem 0.875rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* Tooltip and copy styling */
.tooltip {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: hsl(240, 20%, 95%);
  color: hsl(240, 20%, 8%);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.btn-icon:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Native Details Accordion (IP info) */
.details-accordion {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.details-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast);
  margin-bottom: 0.5rem;
}

.details-summary::-webkit-details-marker {
  display: none;
}

.details-summary:hover {
  color: var(--secondary-accent);
}

.details-summary .chevron {
  font-size: 0.75rem;
  transition: transform var(--transition-normal);
  color: var(--text-muted);
}

details[open] .details-summary .chevron {
  transform: rotate(180deg);
  color: var(--secondary-accent);
}

.details-content {
  padding-top: 1.25rem;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.details-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.item-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.item-val {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  word-break: break-all;
}

/* Tools Workspace Panel & Tabs */
.tools-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tabs-nav {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  transition: color var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--primary-accent);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.625rem;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  border-radius: 3px;
}

.panels-container {
  min-height: 250px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Forms & Inputs */
.search-form {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.input-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.input-group input {
  flex: 1;
  background: hsla(240, 10%, 100%, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  padding: 0.875rem 1.25rem;
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(141, 74, 255, 0.25);
  background: hsla(240, 10%, 100%, 0.05);
}

.input-group select {
  background: hsla(240, 10%, 100%, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  padding: 0.875rem 1.25rem;
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.input-group select:focus {
  border-color: var(--primary-accent);
}

/* Loader Spinner */
.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
  color: var(--text-secondary);
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--primary-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

/* Error Container */
.error-container {
  background: var(--error-bg);
  border: 1px solid rgba(255, 60, 60, 0.25);
  padding: 1.25rem;
  border-radius: 12px;
  color: var(--error-color);
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.error-container::before {
  content: '⚠️';
  font-size: 1.15rem;
}

/* Results Formatting - DNS */
.dns-record-type-group {
  margin-bottom: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dns-group-title {
  background: hsla(240, 10%, 100%, 0.02);
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 6px;
  background: rgba(141, 74, 255, 0.15);
  color: var(--primary-accent);
  border: 1px solid rgba(141, 74, 255, 0.2);
}

.badge-success {
  background: rgba(22, 163, 74, 0.15);
  color: var(--success-color);
  border-color: rgba(22, 163, 74, 0.2);
}

.badge-error {
  background: var(--error-bg);
  color: var(--error-color);
  border-color: rgba(255, 60, 60, 0.15);
}

.dns-table-wrapper {
  overflow-x: auto;
}

.dns-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dns-table th, .dns-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.dns-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
}

.dns-table tr:last-child td {
  border-bottom: none;
}

.dns-table td {
  color: var(--text-secondary);
}

.dns-val-cell {
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--text-main);
  word-break: break-all;
}

.dns-empty-msg {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Results Formatting - WHOIS */
.whois-meta-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.whois-summary-box {
  background: hsla(240, 10%, 100%, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.whois-summary-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.whois-summary-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.whois-raw-wrapper {
  position: relative;
  background: hsl(240, 20%, 3%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.whois-raw-wrapper .btn-icon-small {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.whois-raw-wrapper .btn-icon-small:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.whois-raw-output {
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  overflow-x: auto;
  max-height: 550px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: hsl(120, 20%, 75%); /* Retro hacking terminal shade */
  white-space: pre-wrap;
  word-break: break-all;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: hsla(240, 10%, 100%, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsla(240, 10%, 100%, 0.2);
}

/* SEO Content & FAQ Guides */
.seo-guide-section {
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
  margin-top: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.7px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.guide-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.guide-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--secondary-accent);
}

.guide-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.guide-card code {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: #fff;
  font-size: 0.8rem;
}

/* FAQs */
.faq-title {
  margin-top: 1.5rem;
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.5rem;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-accent);
}

.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
  color: var(--primary-accent);
}

.faq-answer {
  padding: 1.15rem 1.5rem;
  background: hsla(240, 10%, 100%, 0.01);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  animation: slideDown 0.25s ease-out;
}

/* Footer Styling */
.app-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  margin-top: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.app-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.app-footer a:hover {
  color: var(--secondary-accent);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary-accent);
}

/* ==========================================================================
   Iteration 2 Style Additions
   ========================================================================== */

/* Logo Vector */
.logo-svg {
  filter: drop-shadow(0 4px 12px rgba(141, 74, 255, 0.15));
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-area:hover .logo-svg {
  transform: rotate(60deg) scale(1.05);
}

/* Geolocation Visual Map Split Layout */
.ip-split-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.map-container-wrapper {
  width: 100%;
  height: 185px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: hsla(240, 15%, 4%, 0.6);
  box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.8);
  position: relative;
}

.geo-map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(90%) hue-rotate(180deg) opacity(0.85); /* Dark mode map styling filter */
  border-radius: 14px;
  background-color: #0c0c12;
}

.ip-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-secondary);
  font-weight: 500;
  gap: 0.5rem;
}

/* DNS intoDNS Health Check Cards */
.dns-analysis-wrapper {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dns-analysis-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dns-check-card {
  display: grid;
  grid-template-columns: 45px 1fr;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.15rem 1.5rem;
  border-radius: 14px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.dns-check-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.dns-check-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.dns-check-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dns-check-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.dns-check-msg {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dns-check-card.success {
  border-left: 4px solid var(--success-color);
}
.dns-check-card.warning {
  border-left: 4px solid var(--secondary-accent);
}
.dns-check-card.error {
  border-left: 4px solid var(--error-color);
}
.dns-check-card.info {
  border-left: 4px solid var(--text-muted);
}

/* WHOIS Structured UI Sub Tabs */
.whois-sub-tabs {
  display: flex;
  gap: 0.5rem;
  background: hsla(240, 10%, 100%, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.whois-subtab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 7px;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.whois-subtab-btn:hover {
  color: var(--text-main);
}

.whois-subtab-btn.active {
  background: hsla(240, 10%, 100%, 0.08);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.whois-subpanel {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.whois-subpanel.active {
  display: block;
}

.whois-detailed-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.whois-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.whois-detail-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.whois-detail-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--secondary-accent);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.whois-kv-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.whois-kv-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  font-size: 0.85rem;
  border-bottom: 1px dashed hsla(240, 10%, 100%, 0.03);
  padding-bottom: 0.5rem;
}

.whois-kv-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.whois-kv-label {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.whois-kv-val {
  color: var(--text-secondary);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.whois-ns-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.whois-ns-item {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-main);
  background: hsla(240, 10%, 100%, 0.02);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Responsive Rules */
@media (max-width: 768px) {
  .header-inner {
    padding: 0.75rem 1.25rem;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 105;
  }
  
  .mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
  }
  
  .mobile-menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: hsla(240, 25%, 6%, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 100;
  }
  
  .header-nav.open {
    display: flex;
    animation: slideDownMenu 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes slideDownMenu {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background: hsla(240, 10%, 100%, 0.01);
  }

  .nav-link:hover {
    background: hsla(240, 10%, 100%, 0.05);
  }

  .ip-split-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .map-container-wrapper {
    height: 160px;
  }
  
  .dns-check-card {
    grid-template-columns: 35px 1fr;
    padding: 1rem;
  }
  
  .whois-detailed-blocks {
    grid-template-columns: 1fr;
  }
  
  .app-container {
    padding: 2rem 1rem;
    gap: 2rem;
  }
  
  .logo-text {
    font-size: 2.25rem;
  }

  .logo-svg {
    width: 32px;
    height: 32px;
  }
  
  .ip-address-text {
    font-size: 2.25rem;
  }
  
  .input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .input-group select {
    width: 100%;
  }
  
  .btn-icon {
    width: 48px;
    height: 48px;
  }
  
  .tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.25rem;
  }
  
  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.75rem;
  }

  .logo-svg {
    width: 28px;
    height: 28px;
  }

  .header-inner {
    padding: 0.6rem 1rem;
  }

  .ip-address-text {
    font-size: 1.85rem;
  }

  .card-header {
    margin-bottom: 0.5rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Animated IP Route Flow Widget */
.ip-route-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0 2rem 0;
  padding: 1.5rem;
  background: hsla(240, 15%, 4%, 0.45);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  gap: 1rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

.route-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 130px;
  z-index: 2;
  position: relative;
}

.route-node .node-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: hsla(240, 10%, 100%, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.route-node:hover .node-icon {
  border-color: var(--secondary-accent);
  background: hsla(190, 90%, 50%, 0.05);
  transform: translateY(-2px);
}

/* Glowing LED Indicators */
.route-node .node-icon::after {
  content: '';
  position: absolute;
  top: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-main);
  background-color: var(--text-muted);
}

.client-node .node-icon::after,
.server-node .node-icon::after {
  background-color: var(--success-color);
  box-shadow: 0 0 8px var(--success-color);
  animation: ledPulse 2s infinite ease-in-out;
}

.target-node .node-icon::after {
  background-color: var(--text-muted);
  box-shadow: 0 0 4px var(--text-muted);
  transition: all var(--transition-fast);
}

.target-node.active .node-icon::after {
  background-color: var(--secondary-accent);
  box-shadow: 0 0 10px var(--secondary-accent);
  animation: ledPulse 1.5s infinite ease-in-out;
}

@keyframes ledPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.route-node .node-name {
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.route-node .node-sub {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.target-node.active .node-sub {
  color: var(--secondary-accent);
}

.route-line-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 60px;
  position: relative;
}

.route-line {
  width: 100%;
  height: 2px;
  background: hsla(240, 10%, 100%, 0.08);
  position: relative;
  border-radius: 2px;
}

.pulse-dot {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--secondary-accent), var(--primary-accent));
  box-shadow: 0 0 8px var(--secondary-accent);
  animation: pulseLine 2.5s infinite linear;
}

.route-line-wrapper:nth-of-type(2) .pulse-dot {
  animation-delay: 1.25s;
}

@keyframes pulseLine {
  0% { left: 0%; }
  100% { left: 100%; }
}

.route-meta {
  font-family: var(--font-secondary);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

/* Mobile Route Flow Overrides */
@media (max-width: 768px) {
  .ip-route-flow {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
    align-items: center;
  }
  
  .route-node {
    min-width: 100%;
  }

  .route-line-wrapper {
    width: 2px;
    height: 40px;
    min-width: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .route-line {
    width: 2px;
    height: 100%;
  }

  .pulse-dot {
    left: -3px;
    top: 0;
    animation: pulseLineVertical 2.5s infinite linear;
  }

  .route-line-wrapper:nth-of-type(2) .pulse-dot {
    animation-delay: 1.25s;
  }

  @keyframes pulseLineVertical {
    0% { top: 0%; }
    100% { top: 100%; }
  }

  .route-meta {
    margin-left: 0.5rem;
    text-align: left;
  }
}
