/* ============================================================
   NOVAUTILS — style.css
   Shared across homepage and all tool pages
   ============================================================ */

/* ── Variables ── */
:root {
  --bg: #080b12;
  --bg2: #0d1120;
  --bg3: #111827;
  --surface: #141b2d;
  --surface2: #1a2236;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);

  --blue: #4f8cff;
  --blue-dim: rgba(79,140,255,0.15);
  --blue-glow: rgba(79,140,255,0.35);
  --purple: #a259ff;
  --purple-dim: rgba(162,89,255,0.15);
  --cyan: #38e8ff;
  --green: #36d399;
  --yellow: #fbbf24;
  --red: #f87171;

  --text: #e8edf5;
  --text-dim: #8491a5;
  --text-dimmer: #4a5568;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --nav-h: 64px;
  --font-head: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-head);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-head); }
input, select, button, textarea { outline: none; border: none; }

/* ── Canvas BG ── */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8,11,18,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.navbar.scrolled {
  background: rgba(8,11,18,0.96);
  border-color: var(--border2);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--text);
}
.logo-icon { display: flex; align-items: center; }
.logo-accent { color: var(--blue); }
.nav-search-wrap {
  flex: 1;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
.nav-search-icon { color: var(--text-dim); flex-shrink: 0; }
.nav-search {
  flex: 1;
  background: none;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.875rem;
  padding: 9px 0;
}
.nav-search::placeholder { color: var(--text-dim); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-link {
  padding: 7px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-cta {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
  border-radius: 6px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  gap: 4px;
}
.nav-mobile a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:hover { color: var(--text); background: var(--surface2); }
.nav-cta-mobile {
  background: linear-gradient(135deg, var(--blue), var(--purple)) !important;
  color: #fff !important;
  text-align: center;
  margin-top: 8px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  z-index: 1;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,140,255,0.18) 0%, transparent 70%);
  top: -100px; left: -200px;
  animation: floatGlow 8s ease-in-out infinite alternate;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(162,89,255,0.14) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation: floatGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes floatGlow {
  from { transform: translate(0,0); }
  to { transform: translate(30px, 30px); }
}
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 580px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-gradient {
  background: linear-gradient(120deg, var(--blue), var(--purple), var(--cyan));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 4s ease-in-out infinite alternate;
}
@keyframes gradShift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
.hero-sub {
  margin-top: 22px;
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 440px;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-search-wrap {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 0 18px;
  max-width: 420px;
  transition: border-color 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.6s 0.3s ease both;
  color: var(--text-dim);
}
.hero-search-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-dim), 0 0 30px var(--blue-glow);
}
.hero-search {
  flex: 1;
  background: none;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.95rem;
  padding: 14px 0;
}
.hero-search::placeholder { color: var(--text-dim); }
.hero-search-kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dimmer);
  background: var(--bg3);
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid var(--border);
}
.hero-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  animation: fadeUp 0.6s 0.4s ease both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(79,140,255,0.3);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79,140,255,0.4); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--blue); background: var(--blue-dim); }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  animation: fadeUp 0.6s 0.5s ease both;
}
.stat { display: flex; flex-direction: column; }
.stat-n {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.stat-l {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stat-div { width: 1px; height: 36px; background: var(--border2); }

/* HERO VISUAL */
.hero-visual {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 420px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 14px;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.hv-card:hover {
  border-color: var(--border2);
  box-shadow: 0 8px 40px rgba(79,140,255,0.12);
  transform: translateY(-2px);
}
.hv-card-ping { grid-column: 1 / 3; }
.hv-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hv-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 500;
}
.hv-status.online {
  background: rgba(54,211,153,0.15);
  color: var(--green);
  border: 1px solid rgba(54,211,153,0.3);
  animation: pulse 2s ease-in-out infinite;
}
.hv-big {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 14px;
}
.hv-big span { font-size: 1rem; color: var(--text-dim); margin-left: 2px; }
.hv-graph {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 48px;
  margin-bottom: 14px;
}
.hv-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--blue), rgba(79,140,255,0.3));
  transition: height 0.5s ease;
  min-height: 4px;
}
.hv-row { display: flex; gap: 12px; }
.hv-m { flex: 1; }
.hv-ml { font-size: 0.68rem; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.hv-mv { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500; color: var(--text); margin-top: 2px; }
.hv-mv.green { color: var(--green); }
.hv-card-sm { display: flex; flex-direction: column; gap: 6px; }
.hv-s-icon { font-size: 1.4rem; }
.hv-s-label { font-size: 0.78rem; font-weight: 700; color: var(--text-dim); }
.hv-s-val { font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue); }
.mono { font-family: var(--font-mono); }

/* ============================================================
   TOOLS SECTION (homepage)
   ============================================================ */
.tools-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px;
}
.section-header {
  text-align: center;
  margin-bottom: 70px;
}
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--blue-dim);
  border: 1px solid rgba(79,140,255,0.25);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.net-tag { background: rgba(56,232,255,0.1); border-color: rgba(56,232,255,0.25); color: var(--cyan); }
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.section-accent { color: var(--blue); }
.section-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto;
}

/* CATEGORY */
.category { margin-bottom: 72px; }
.cat-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.cat-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-net    { background: rgba(79,140,255,0.15); color: var(--blue);   border: 1px solid rgba(79,140,255,0.2); }
.cat-browser{ background: rgba(56,232,255,0.12); color: var(--cyan);   border: 1px solid rgba(56,232,255,0.2); }
.cat-dev    { background: rgba(162,89,255,0.12); color: var(--purple); border: 1px solid rgba(162,89,255,0.2); }
.cat-util   { background: rgba(251,191,36,0.10); color: var(--yellow); border: 1px solid rgba(251,191,36,0.2); }
.cat-title { font-size: 1.2rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.cat-desc  { font-size: 0.82rem; color: var(--text-dim); margin-top: 3px; }
.cat-count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dimmer);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* TOOL CARD — base (used as <a> links now) */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}
.tool-card-link { cursor: pointer; }
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,140,255,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79,140,255,0.3);
  box-shadow: 0 12px 40px rgba(79,140,255,0.12), 0 2px 12px rgba(0,0,0,0.3);
}
.tool-card:hover::before { opacity: 1; }
.tool-card.search-miss { opacity: 0.2; pointer-events: none; }
.tool-card.search-match { border-color: rgba(79,140,255,0.35); }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.card-icon {
  font-size: 1.6rem;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.card-icon.net    { background: rgba(79,140,255,0.1); }
.card-icon.browser{ background: rgba(56,232,255,0.08); }
.card-icon.dev    { background: rgba(162,89,255,0.1); }
.card-icon.util   { background: rgba(251,191,36,0.08); }

.card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--surface2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.card-badge.live {
  background: rgba(54,211,153,0.1);
  color: var(--green);
  border-color: rgba(54,211,153,0.25);
}
.card-badge.soon-badge {
  background: rgba(162,89,255,0.1);
  color: var(--purple);
  border-color: rgba(162,89,255,0.25);
}

.card-title { font-size: 1rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.card-desc  { font-size: 0.83rem; color: var(--text-dim); line-height: 1.55; flex: 1; }
.card-tags  { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags span {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--bg3);
  color: var(--text-dimmer);
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
}

/* Card buttons — now <div> inside <a> cards */
.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  width: 100%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 2px 12px rgba(79,140,255,0.25);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.tool-card:hover .card-btn { opacity: 0.9; }
.card-btn-ghost {
  background: var(--surface2);
  color: var(--text-dim);
  box-shadow: none;
  border: 1px solid var(--border);
}

/* ============================================================
   TOOL PAGE LAYOUT
   ============================================================ */
.tool-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

/* Breadcrumb */
.breadcrumb {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 40px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.breadcrumb a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep {
  color: var(--text-dimmer);
}
.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

/* Tool header */
.tool-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 40px 0;
}
.tool-header-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.tool-header-icon {
  font-size: 2rem;
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  flex-shrink: 0;
}
.tool-header-icon.net    { background: rgba(79,140,255,0.12); border: 1px solid rgba(79,140,255,0.2); }
.tool-header-icon.browser{ background: rgba(56,232,255,0.10); border: 1px solid rgba(56,232,255,0.2); }
.tool-header-icon.dev    { background: rgba(162,89,255,0.12); border: 1px solid rgba(162,89,255,0.2); }
.tool-header-icon.util   { background: rgba(251,191,36,0.10); border: 1px solid rgba(251,191,36,0.2); }

.tool-header-text { flex: 1; }
.tool-category-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tool-category-tag.net    { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(79,140,255,0.25); }
.tool-category-tag.browser{ background: rgba(56,232,255,0.1); color: var(--cyan); border: 1px solid rgba(56,232,255,0.25); }
.tool-category-tag.dev    { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(162,89,255,0.25); }
.tool-category-tag.util   { background: rgba(251,191,36,0.1); color: var(--yellow); border: 1px solid rgba(251,191,36,0.25); }

.tool-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 10px;
}
.tool-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
}
.tool-header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.tool-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.tool-status-badge.live {
  background: rgba(54,211,153,0.12);
  color: var(--green);
  border: 1px solid rgba(54,211,153,0.3);
}
.tool-status-badge.soon {
  background: rgba(162,89,255,0.12);
  color: var(--purple);
  border: 1px solid rgba(162,89,255,0.3);
}
.tool-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tool-status-badge.live .tool-status-dot { animation: pulse 2s ease-in-out infinite; }

/* Tool body */
.tool-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 36px 40px 80px;
}

/* ── PING MONITOR TOOL PAGE ── */
.ping-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Controls */
.ping-controls {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  flex-wrap: wrap;
}
.ping-host-wrap { flex: 1; min-width: 200px; }
.ping-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ping-input-row { display: flex; gap: 10px; }
.ping-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ping-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56,232,255,0.1); }
.ping-select {
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.ping-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ping-btn-start {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--green), #27ae60);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(54,211,153,0.25);
}
.ping-btn-start:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.ping-btn-start:disabled { opacity: 0.45; cursor: default; }
.ping-btn-stop {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.ping-btn-stop:not(:disabled) { background: rgba(248,113,113,0.15); color: var(--red); border-color: rgba(248,113,113,0.3); }
.ping-btn-stop:not(:disabled):hover { background: rgba(248,113,113,0.25); }
.ping-btn-stop:disabled { opacity: 0.4; cursor: default; }
.ping-btn-reset {
  padding: 10px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, border-color 0.2s;
}
.ping-btn-reset:hover { color: var(--text); border-color: var(--border2); }

/* Stats */
.ping-stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.ping-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  transition: border-color 0.3s;
}
.ps-label { font-size: 0.65rem; font-weight: 700; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.ps-value { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; color: var(--text); line-height: 1; }
.ps-value.green { color: var(--green); }
.ps-value.red   { color: var(--red); }
.ps-value.blue  { color: var(--blue); }
.ps-value.yellow{ color: var(--yellow); }
.ps-unit { font-size: 0.65rem; color: var(--text-dimmer); margin-top: 4px; }

/* Graph */
.ping-graph-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  position: relative;
}
.graph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.graph-title { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.graph-sub { font-size: 0.72rem; color: var(--text-dim); font-weight: 400; margin-left: 8px; }
.ping-quality { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 700; color: var(--text-dim); }
.qual-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dimmer); }
.qual-dot.good { background: var(--green); box-shadow: 0 0 8px var(--green); }
.qual-dot.ok   { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.qual-dot.bad  { background: var(--red); box-shadow: 0 0 8px var(--red); }
.ping-graph { width: 100%; height: 160px; display: block; }
.graph-axis-y {
  position: absolute;
  left: 8px;
  top: 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 160px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dimmer);
  pointer-events: none;
}

/* Log */
.ping-log-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ping-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.log-count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dimmer); }
.ping-log {
  height: 200px;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--surface2) transparent;
}
.ping-log::-webkit-scrollbar { width: 4px; }
.ping-log::-webkit-scrollbar-track { background: transparent; }
.ping-log::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 2px; }
.log-empty { padding: 60px 20px; text-align: center; color: var(--text-dimmer); font-size: 0.82rem; }
.log-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: background 0.1s;
}
.log-entry:hover { background: rgba(255,255,255,0.02); }
.log-n    { color: var(--text-dimmer); min-width: 36px; }
.log-host { color: var(--text-dim); flex: 1; }
.log-ms   { font-weight: 500; min-width: 60px; text-align: right; }
.log-ms.good { color: var(--green); }
.log-ms.ok   { color: var(--yellow); }
.log-ms.bad  { color: var(--red); }
.log-ts { color: var(--text-dimmer); font-size: 0.7rem; }

/* ── COMING SOON TOOL PAGE ── */
.coming-soon-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 60px 20px;
  text-align: center;
  gap: 28px;
}
.cs-orb {
  position: relative;
  width: 120px; height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-orb-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(162,89,255,0.18) 0%, transparent 70%);
  animation: floatGlow 4s ease-in-out infinite alternate;
}
.cs-orb-icon {
  position: relative;
  z-index: 1;
  font-size: 3.5rem;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 28px;
}
.cs-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}
.cs-sub {
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 400px;
  line-height: 1.7;
}
.cs-notify-form {
  display: flex;
  gap: 10px;
  max-width: 380px;
  width: 100%;
}
.cs-email-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.9rem;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cs-email-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }
.cs-email-input::placeholder { color: var(--text-dimmer); }
.cs-notify-btn {
  padding: 11px 20px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(79,140,255,0.3);
}
.cs-notify-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: color 0.2s, border-color 0.2s;
}
.cs-back:hover { color: var(--text); border-color: var(--border2); }

/* Feature preview cards on coming soon pages */
.cs-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 700px;
  margin-top: 8px;
}
.cs-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
}
.cs-feature-icon { font-size: 1.3rem; margin-bottom: 10px; }
.cs-feature-title { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.cs-feature-desc  { font-size: 0.78rem; color: var(--text-dim); line-height: 1.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 40px 30px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-brand { max-width: 260px; }
.footer-brand p { margin-top: 14px; font-size: 0.83rem; color: var(--text-dim); line-height: 1.6; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.fl-col { display: flex; flex-direction: column; gap: 10px; }
.fl-head { font-size: 0.72rem; font-weight: 700; color: var(--text); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.fl-col a { font-size: 0.85rem; color: var(--text-dim); transition: color 0.2s; }
.fl-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dimmer);
}
.footer-tag { font-family: var(--font-mono); font-size: 0.72rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero { flex-direction: column; padding-top: calc(var(--nav-h) + 40px); text-align: center; align-items: center; }
  .hero-content { max-width: 640px; }
  .hero-sub, .section-sub { margin-left: auto; margin-right: auto; }
  .hero-search-wrap { margin: 32px auto 0; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 500px; width: 100%; }
  .ping-stats-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-search-wrap, .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile.open { display: flex; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .tools-section { padding: 60px 20px; }
  .footer { padding: 40px 20px 24px; }
  .cat-header { flex-wrap: wrap; }
  .cat-count { order: 3; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { gap: 30px; }
  /* Tool pages */
  .breadcrumb { padding: 20px 20px 0; }
  .tool-header { padding: 24px 20px 0; }
  .tool-header-inner { flex-wrap: wrap; }
  .tool-header-meta { flex-direction: row; }
  .tool-body { padding: 28px 20px 60px; }
  .ping-controls { flex-direction: column; align-items: stretch; }
  .ping-stats-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-visual { grid-template-columns: 1fr; }
  .ping-stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cs-notify-form { flex-direction: column; }
}
