/* ==========================================================================
   MEETWAY FREE POWER TOOLS — ULTRA-PREMIUM DIAGNOSTIC DESIGN SYSTEM (tools.css)
   Aesthetic: Cyber Dark Luxury · Glassmorphism · Ambient Neon · Generous White Space
   ========================================================================== */

:root {
  --tool-bg-surface: rgba(11, 17, 34, 0.72);
  --tool-bg-card: rgba(14, 22, 44, 0.65);
  --tool-bg-card-hover: rgba(19, 30, 60, 0.85);
  --tool-bg-inset: rgba(4, 7, 18, 0.92);
  --tool-border: rgba(0, 240, 255, 0.2);
  --tool-border-hover: rgba(0, 240, 255, 0.55);
  --tool-border-subtle: rgba(255, 255, 255, 0.08);
  --tool-glow-cyan: rgba(0, 240, 255, 0.35);
  --tool-glow-purple: rgba(153, 51, 255, 0.35);
  --tool-glow-green: rgba(0, 255, 136, 0.35);
  
  --tool-cyan: #00F0FF;
  --tool-purple: #9933FF;
  --tool-purple-light: #B366FF;
  --tool-green: #00FF88;
  --tool-amber: #FFB703;
  --tool-red: #FF4D4D;
  --tool-text-main: #FFFFFF;
  --tool-text-muted: #94A3B8;
  --tool-text-dim: #64748B;
  
  --tool-font-mono: 'JetBrains Mono', 'Fira Code', monospace, ui-monospace;
  --tool-font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tool-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --tool-shadow-card: 0 24px 60px -12px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(0, 240, 255, 0.15);
}

[data-theme="light"] {
  --tool-bg-surface: #FFFFFF;
  --tool-bg-card: #FFFFFF;
  --tool-bg-card-hover: #F8FAFC;
  --tool-bg-inset: #F8FAFC;
  --tool-border: rgba(0, 0, 0, 0.1);
  --tool-border-hover: rgba(0, 122, 140, 0.45);
  --tool-border-subtle: rgba(0, 0, 0, 0.06);
  --tool-glow-cyan: rgba(0, 122, 140, 0.2);
  --tool-glow-purple: rgba(109, 40, 217, 0.2);
  --tool-glow-green: rgba(4, 120, 87, 0.2);
  
  --tool-cyan: #007A8C;
  --tool-purple: #6D28D9;
  --tool-purple-light: #7C3AED;
  --tool-green: #047857;
  --tool-amber: #B45309;
  --tool-red: #DC2626;
  --tool-text-main: #0F172A;
  --tool-text-muted: #475569;
  --tool-text-dim: #64748B;
  
  --tool-shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.05);
  --tool-shadow-hover: 0 18px 40px -12px rgba(0, 122, 140, 0.15), 0 0 2px 1px rgba(0, 122, 140, 0.2);
}

[data-theme="light"] .tool-title,
[data-theme="light"] .tool-hub-card-title,
[data-theme="light"] .tool-explainer-section h2,
[data-theme="light"] .tool-faq-question,
[data-theme="light"] .tool-result-title,
[data-theme="light"] .tool-metric-card .val,
[data-theme="light"] .tool-gauge-val,
[data-theme="light"] .tool-funnel-text h4,
[data-theme="light"] .tool-breadcrumbs span[style*="#FFFFFF"],
[data-theme="light"] .tool-breadcrumbs span[style*="#fff"],
[data-theme="light"] h1[style*="#FFFFFF"],
[data-theme="light"] h2[style*="#FFFFFF"],
[data-theme="light"] h3[style*="#FFFFFF"],
[data-theme="light"] h4[style*="#FFFFFF"] {
  color: #0F172A !important;
}

[data-theme="light"] .tool-breadcrumbs a:hover {
  color: #007A8C !important;
  text-shadow: none !important;
}

[data-theme="light"] .tool-badge-pill {
  background: rgba(0, 122, 140, 0.08) !important;
  border-color: rgba(0, 122, 140, 0.3) !important;
  color: #007A8C !important;
  box-shadow: none !important;
}

[data-theme="light"] .tool-badge-pill .dot {
  background: #007A8C !important;
  box-shadow: 0 0 8px rgba(0, 122, 140, 0.5) !important;
}

[data-theme="light"] .tool-tab-btn {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #475569 !important;
}

[data-theme="light"] .tool-tab-btn:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

[data-theme="light"] .tool-tab-btn.active {
  background: rgba(0, 122, 140, 0.1) !important;
  border-color: #007A8C !important;
  color: #007A8C !important;
  box-shadow: none !important;
}

[data-theme="light"] .tool-hub-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .tool-hub-card:hover {
  background: #FFFFFF !important;
  border-color: #007A8C !important;
  box-shadow: 0 16px 40px rgba(0, 122, 140, 0.12) !important;
}

[data-theme="light"] .tool-hub-card-tag {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .tool-hub-card-desc {
  color: #475569 !important;
}

[data-theme="light"] .tool-hub-card-footer {
  border-top-color: rgba(0, 0, 0, 0.06) !important;
  color: #007A8C !important;
}

[data-theme="light"] .tool-funnel-card {
  background: linear-gradient(135deg, rgba(0, 122, 140, 0.08) 0%, rgba(109, 40, 217, 0.08) 100%) !important;
  border: 1.5px solid rgba(0, 122, 140, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .tool-funnel-text p {
  color: #475569 !important;
}

[data-theme="light"] .tool-footer-strip {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .tool-explainer-section {
  color: #334155 !important;
}

[data-theme="light"] .tool-faq-item {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .tool-faq-item:hover {
  border-color: rgba(0, 122, 140, 0.3) !important;
  background: #F8FAFC !important;
}

[data-theme="light"] .tool-faq-item.active {
  border-color: #007A8C !important;
  background: rgba(0, 122, 140, 0.03) !important;
}

[data-theme="light"] .tool-faq-item.active .tool-faq-question {
  color: #007A8C !important;
}

[data-theme="light"] .tool-faq-item.active .tool-faq-chevron {
  color: #007A8C !important;
}

[data-theme="light"] .tool-faq-answer {
  color: #475569 !important;
}

[data-theme="light"] .tool-input,
[data-theme="light"] .tool-textarea {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(0, 0, 0, 0.15) !important;
  color: #0F172A !important;
}

[data-theme="light"] .tool-input:focus,
[data-theme="light"] .tool-textarea:focus {
  background: #FFFFFF !important;
  border-color: #007A8C !important;
  box-shadow: 0 0 15px rgba(0, 122, 140, 0.2) !important;
}

[data-theme="light"] .tool-search-input {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(0, 0, 0, 0.12) !important;
  color: #0F172A !important;
}

[data-theme="light"] .tool-btn-secondary {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #0F172A !important;
}

[data-theme="light"] .tool-btn-secondary:hover {
  background: #F1F5F9 !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .tool-result-box {
  background: #F8FAFC !important;
  border: 1.5px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: none !important;
}

[data-theme="light"] .tool-metric-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .tool-data-table td.mono {
  color: #0F172A !important;
}

[data-theme="light"] .tool-data-table th {
  color: #475569 !important;
}

[data-theme="light"] .tool-data-table tr {
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .tool-chip-sample {
  background: #F1F5F9 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #0F172A !important;
}

[data-theme="light"] .binary-mask-display {
  background: #F1F5F9 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #0F172A !important;
}

[data-theme="light"] .binary-mask-host {
  color: #64748B !important;
}

[data-theme="light"] .tool-gauge-bg {
  stroke: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .speedo-arc-bg {
  stroke: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .tool-toast {
  background: #FFFFFF !important;
  border-color: #007A8C !important;
  color: #0F172A !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Ambient Background Light Mesh */
.tool-page-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.tool-page-wrapper::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0, 240, 255, 0.12), rgba(153, 51, 255, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

/* Breadcrumbs */
.tool-breadcrumbs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--tool-text-muted);
  margin-bottom: 2.5rem;
  padding: 0 0.5rem;
  letter-spacing: 0.02em;
}
.tool-breadcrumbs a {
  color: var(--tool-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tool-breadcrumbs a:hover {
  color: #FFFFFF;
  text-shadow: 0 0 10px var(--tool-cyan);
}
.tool-breadcrumbs span.sep {
  opacity: 0.35;
  font-size: 0.8rem;
}

/* Tool Header & Hero Section — Generous White Space */
.tool-hero-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 920px;
  margin: 1.5rem auto 3.5rem;
  padding: 0 1.5rem;
}

.tool-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(153, 51, 255, 0.1));
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--tool-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 22px;
  border-radius: 999px;
  margin-bottom: 1.6rem;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  transition: all 0.3s ease;
}
.tool-badge-pill:hover {
  border-color: var(--tool-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.tool-badge-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tool-cyan);
  box-shadow: 0 0 12px var(--tool-cyan);
  animation: toolPulse 2s infinite ease-in-out;
}

@keyframes toolPulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 18px var(--tool-cyan); }
  100% { transform: scale(0.85); opacity: 0.6; }
}

.tool-title {
  font-family: var(--tool-font-heading);
  font-size: 2.85rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tool-subtitle {
  font-size: 1.12rem;
  color: var(--tool-text-muted);
  line-height: 1.75;
  max-width: 820px;
  margin: 0 auto;
}

/* Tool Main Card Container — Spacious, Floating Glassmorphism */
.tool-card-container {
  position: relative;
  z-index: 1;
  background: var(--tool-bg-surface);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--tool-border);
  border-radius: 28px;
  padding: 3.5rem;
  margin-bottom: 4rem;
  box-shadow: var(--tool-shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.tool-card-container:hover {
  border-color: rgba(0, 240, 255, 0.32);
}

@media (max-width: 900px) {
  .tool-card-container {
    padding: 2.2rem 1.6rem;
    border-radius: 20px;
    margin-bottom: 3rem;
  }
  .tool-title {
    font-size: 2.1rem;
  }
  .tool-subtitle {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .tool-card-container {
    padding: 1.6rem 1.1rem;
    border-radius: 16px;
  }
  .tool-title {
    font-size: 1.75rem;
  }
}

/* 2-Column Responsive Layout with Generous Gap */
.tool-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.2rem;
  align-items: start;
}
@media (max-width: 960px) {
  .tool-grid-2col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Interactive Action & Sample Toolbar */
.tool-action-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tool-chip-sample {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px dashed rgba(0, 240, 255, 0.4);
  color: var(--tool-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.tool-chip-sample:hover {
  background: rgba(0, 240, 255, 0.18);
  border-style: solid;
  transform: translateY(-1px);
}

/* Form inputs & interactive controls */
.tool-input-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--tool-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.tool-input-hint {
  font-size: 0.78rem;
  color: var(--tool-text-dim);
  text-transform: none;
  font-weight: 500;
}

.tool-input {
  width: 100%;
  background: var(--tool-bg-inset);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #FFFFFF;
  font-family: var(--tool-font-mono);
  font-size: 0.98rem;
  padding: 16px 20px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}
.tool-input:focus {
  outline: none;
  border-color: var(--tool-cyan);
  box-shadow: 0 0 20px var(--tool-glow-cyan);
  background: rgba(8, 12, 28, 0.95);
}

.tool-textarea {
  width: 100%;
  min-height: 200px;
  background: var(--tool-bg-inset);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  color: #FFFFFF;
  font-family: var(--tool-font-mono);
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 18px 20px;
  resize: vertical;
  box-sizing: border-box;
  transition: all 0.25s ease;
}
.tool-textarea:focus {
  outline: none;
  border-color: var(--tool-cyan);
  box-shadow: 0 0 22px var(--tool-glow-cyan);
  background: rgba(8, 12, 28, 0.95);
}

/* Primary Button with Cyber Glow & Micro-Animation */
.tool-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--tool-cyan) 0%, #0099FF 50%, var(--tool-purple) 100%);
  background-size: 200% auto;
  color: #030712;
  font-family: var(--tool-font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  padding: 16px 30px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.35);
  text-decoration: none;
  width: 100%;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
.tool-btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 240, 255, 0.55);
  color: #000000;
}
.tool-btn-primary:active {
  transform: translateY(0);
}
.tool-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tool-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  user-select: none;
}
.tool-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}
.tool-btn-secondary.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--tool-cyan);
  color: var(--tool-cyan);
}

/* Result Box — High-Tech Diagnostic Panel */
.tool-result-box {
  background: var(--tool-bg-inset);
  border: 1.5px solid rgba(0, 240, 255, 0.22);
  border-radius: 20px;
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.6);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tool-result-placeholder {
  text-align: center;
  color: var(--tool-text-muted);
  font-size: 1.02rem;
  padding: 3.5rem 1.5rem;
}
.tool-result-placeholder .icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.5;
  display: block;
  animation: floatPulse 3s ease-in-out infinite;
}
@keyframes floatPulse {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* Modern Diagnostic Metric Cards */
.tool-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 1.5rem;
}
.tool-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 1.2rem 1rem;
  text-align: center;
  transition: all 0.25s ease;
}
.tool-metric-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}
.tool-metric-card .label {
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--tool-text-muted);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.tool-metric-card .val {
  font-family: var(--tool-font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
}

/* Badge System — Glowing Cyber Pills */
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tool-badge.clean, .tool-badge.online, .tool-badge.elite {
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.45);
  color: var(--tool-green);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}
.tool-badge.caution, .tool-badge.suspicious {
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.45);
  color: var(--tool-amber);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.2);
}
.tool-badge.risky, .tool-badge.offline, .tool-badge.transparent {
  background: rgba(255, 77, 77, 0.12);
  border: 1px solid rgba(255, 77, 77, 0.45);
  color: var(--tool-red);
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.2);
}

/* Tool Tables — Comfortable Line Spacing */
.tool-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  margin-top: 1rem;
}
.tool-data-table th, .tool-data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}
.tool-data-table th {
  color: var(--tool-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.tool-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
.tool-data-table td.mono {
  font-family: var(--tool-font-mono);
  color: #FFFFFF;
  word-break: break-all;
}

/* Search & Filter Bar */
.tool-search-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}
.tool-search-input {
  width: 100%;
  background: rgba(4, 7, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 18px 12px 42px;
  color: #FFFFFF;
  font-size: 0.92rem;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.tool-search-input:focus {
  outline: none;
  border-color: var(--tool-cyan);
  box-shadow: 0 0 15px var(--tool-glow-cyan);
}
.tool-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tool-text-muted);
  font-size: 1rem;
  pointer-events: none;
}

/* Category Filter Tabs */
.tool-filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tool-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--tool-text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tool-tab-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
}
.tool-tab-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--tool-cyan);
  color: var(--tool-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

/* Hub Grid Cards — Ultra-Premium Command Center Feel */
.tool-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 4.5rem;
}
@media (max-width: 640px) {
  .tool-hub-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.tool-hub-card {
  background: var(--tool-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.tool-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--tool-cyan), var(--tool-purple), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tool-hub-card:hover {
  transform: translateY(-6px);
  background: var(--tool-bg-card-hover);
  border-color: var(--tool-cyan);
  box-shadow: var(--tool-shadow-hover);
}
.tool-hub-card:hover::before {
  opacity: 1;
}

.tool-hub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.tool-hub-card-icon {
  font-size: 2.6rem;
  display: inline-block;
  transition: transform 0.3s ease;
}
.tool-hub-card:hover .tool-hub-card-icon {
  transform: scale(1.12);
}
.tool-hub-card-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--tool-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-hub-card-title {
  font-family: var(--tool-font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 10px;
  line-height: 1.3;
}
.tool-hub-card-desc {
  font-size: 0.94rem;
  color: var(--tool-text-muted);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 1.8rem;
}
.tool-hub-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tool-cyan);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}
.tool-hub-card-footer span.arrow {
  transition: transform 0.2s ease;
}
.tool-hub-card:hover .tool-hub-card-footer span.arrow {
  transform: translateX(4px);
}

/* Result-State CTA Card — Ultra High Conversion Funnel */
.tool-funnel-card {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(153, 51, 255, 0.1) 100%);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: 20px;
  padding: 2.2rem 2.5rem;
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.tool-funnel-text h4 {
  font-family: var(--tool-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.tool-funnel-text p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
}
.tool-funnel-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

/* Global Tool Footer Strip */
.tool-footer-strip {
  background: rgba(7, 10, 22, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 22px;
  padding: 2.5rem;
  margin: 4.5rem auto 3.5rem;
  max-width: 1040px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Explainer & FAQ Section */
.tool-explainer-section {
  max-width: 900px;
  margin: 0 auto 4.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.8;
}
.tool-explainer-section h2 {
  font-family: var(--tool-font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.tool-explainer-section p {
  margin-bottom: 1.4rem;
}

.tool-faq-accordion {
  margin-top: 3rem;
}
.tool-faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
}
.tool-faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.25);
}
.tool-faq-question {
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--tool-font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}
.tool-faq-chevron {
  font-size: 0.85rem;
  color: var(--tool-text-muted);
  transition: transform 0.3s ease;
}
.tool-faq-answer {
  padding: 0 24px 20px;
  color: var(--tool-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  display: none;
}
.tool-faq-item.active {
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.03);
}
.tool-faq-item.active .tool-faq-answer {
  display: block;
}
.tool-faq-item.active .tool-faq-question {
  color: var(--tool-cyan);
}
.tool-faq-item.active .tool-faq-chevron {
  transform: rotate(180deg);
  color: var(--tool-cyan);
}

/* Toast Notifications */
#toolToastContainer {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.tool-toast {
  pointer-events: auto;
  background: rgba(8, 14, 28, 0.96);
  border: 1.5px solid var(--tool-cyan);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--tool-font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastFadeOut 0.3s ease 2.7s forwards;
}
@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastFadeOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-8px); }
}

/* Anonymity Circular SVG Gauge */
.tool-score-dial-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}
.tool-gauge-svg {
  width: 170px;
  height: 170px;
  transform: rotate(-90deg);
}
.tool-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 10;
}
.tool-gauge-bar {
  fill: none;
  stroke: var(--tool-cyan);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.5s ease;
  filter: drop-shadow(0 0 8px var(--tool-cyan));
}
.tool-gauge-val {
  font-family: var(--tool-font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: -115px;
  margin-bottom: 60px;
  text-shadow: 0 0 20px var(--tool-cyan);
}

/* Radar Scan Box (WebRTC & Proxy Live Check) */
.tool-radar-box {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  margin: 1.5rem auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.1);
}
.tool-radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, rgba(0, 240, 255, 0.45) 0deg, transparent 60deg);
  transform-origin: 0 0;
  animation: radarSpin 1.8s linear infinite;
}
@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Subnet Range Slider */
.tool-slider-wrap {
  margin: 1.8rem 0;
}
.tool-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transition: background 0.2s;
}
.tool-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tool-cyan);
  cursor: pointer;
  box-shadow: 0 0 14px var(--tool-cyan);
  transition: transform 0.15s ease;
}
.tool-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Binary Mask Display */
.binary-mask-display {
  display: flex;
  gap: 8px;
  font-family: var(--tool-font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  margin-top: 10px;
  overflow-x: auto;
}
.binary-mask-octet {
  color: var(--tool-cyan);
}
.binary-mask-host {
  color: var(--tool-text-dim);
}

/* Speedometer Dial Component */
.speedo-dial-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}
.speedo-svg {
  width: 220px;
  height: 120px;
}
.speedo-arc-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 14;
  stroke-linecap: round;
}
.speedo-arc-val {
  fill: none;
  stroke: var(--tool-green);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 10px var(--tool-green));
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (<=768px & <=480px) — Meetway Standards
   ========================================================================== */
@media (max-width: 768px) {
  /* Rule 2: 16px font to prevent iOS auto-zoom */
  input, select, textarea {
    font-size: 16px !important;
  }
  
  .tool-page-wrapper {
    padding: 0 12px 60px;
  }
  
  .tool-breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .tool-breadcrumbs::-webkit-scrollbar { display: none; }
  
  .tool-hero-wrap {
    margin: 1rem auto 2rem;
    padding: 0 0.5rem;
  }
  
  .tool-hero-title {
    font-size: 1.85rem !important;
    line-height: 1.25;
  }
  
  .tool-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Task order: inputs card first, then action button, then results card */
  .tool-input-col {
    order: 1;
  }
  .tool-result-col {
    order: 2;
  }
  
  .tool-card {
    padding: 1.5rem 1.25rem !important;
    border-radius: 18px !important;
  }
  
  .tool-result-box {
    padding: 1.4rem 1.2rem !important;
    border-radius: 16px !important;
  }
  
  /* Text and value wrapping for IPv6, ASN, long hashes */
  .tool-val, .result-val, .metric-value, .tool-code-snippet, .field-copy-text, .binary-mask-display {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  
  /* Tap targets >=44px */
  .tool-btn-primary {
    min-height: 52px;
    font-size: 1rem;
    border-radius: 12px;
  }
  .tool-btn-secondary {
    min-height: 44px;
    font-size: 0.88rem;
    padding: 10px 16px;
  }
  .tool-tab-btn {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.84rem;
  }
  .tool-chip-sample {
    min-height: 40px;
    padding: 8px 14px;
  }
  
  /* Hub catalog cards */
  .tool-hub-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }
  .tool-hub-card {
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
  }
}
