/* ── CIBERSCAN SHARED CSS ── */
:root {
  --bg: #f4f6f9;
  --bg2: #eef1f6;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --border: #e2e8f0;
  --border2: #cbd5e1;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --accent2: #06b6d4;
  --green: #10b981;
  --red: #ef4444;
  --warn: #f59e0b;
  --text: #0f172a;
  --text2: #334155;
  --muted: #64748b;
  --font: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(14,165,233,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none; z-index: 0;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 20px; letter-spacing: -0.5px;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 4px 12px rgba(14,165,233,0.3);
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 7px 16px; border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg2); }
.nav-links a.active { color: var(--accent); background: rgba(14,165,233,0.08); }
.nav-cta {
  background: var(--accent); color: white;
  text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 8px 20px; border-radius: 8px; transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(14,165,233,0.3);
}
.nav-cta:hover { background: var(--accent-dark); }

/* TOOL PAGE */
.tool-page { max-width: 900px; margin: 0 auto; padding: 90px 48px 80px; position: relative; z-index: 1; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; color: var(--border2); }

.tool-header { margin-bottom: 32px; }
.tool-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(14,165,233,0.08); border: 1px solid rgba(14,165,233,0.2);
  color: var(--accent-dark); font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.tool-header h1 {
  font-size: clamp(24px,4vw,40px); font-weight: 800; letter-spacing: -1px;
  line-height: 1.1; margin-bottom: 12px;
}
.tool-header p { font-size: 16px; color: var(--muted); line-height: 1.7; }

/* TOOL CARD */
.tool-card-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.tool-card-header {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 20px 28px;
  display: flex; align-items: center; gap: 12px;
}
.tool-card-header h2 { color: white; font-size: 16px; font-weight: 700; }
.tool-card-header p { color: rgba(255,255,255,0.8); font-size: 13px; }

.tool-card-body { padding: 28px; }

/* INPUT */
.input-group { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tool-input {
  flex: 1; min-width: 200px;
  background: var(--bg); border: 1px solid var(--border2);
  border-radius: 10px; color: var(--text);
  font-family: var(--font-mono); font-size: 14px;
  padding: 12px 16px; outline: none; transition: all 0.2s;
}
.tool-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,0.1); }
.tool-input::placeholder { color: var(--muted); }

.tool-select {
  background: var(--bg); border: 1px solid var(--border2);
  border-radius: 10px; color: var(--text);
  font-family: var(--font); font-size: 14px;
  padding: 12px 16px; outline: none; transition: all 0.2s;
  cursor: pointer;
}
.tool-select:focus { border-color: var(--accent); }

.btn-primary {
  background: var(--accent); color: white; border: none;
  padding: 12px 28px; border-radius: 10px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(14,165,233,0.3);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14,165,233,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: var(--bg2); color: var(--text2); border: 1px solid var(--border2);
  padding: 12px 20px; border-radius: 10px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* RESULTS */
.result-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px;
  font-family: var(--font-mono); font-size: 13px;
  min-height: 120px; position: relative;
  overflow-x: auto;
}

.result-placeholder { color: var(--muted); text-align: center; padding: 20px; }

.loading {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 20px; color: var(--accent);
  font-family: var(--font); font-size: 14px;
}
.spinner {
  width: 20px; height: 20px; border: 2px solid var(--border2);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* STATUS BADGES */
.status-ok   { color: var(--green); font-weight: 700; }
.status-warn { color: var(--warn); font-weight: 700; }
.status-err  { color: var(--red); font-weight: 700; }

/* INFO BOXES */
.info-box {
  background: rgba(14,165,233,0.06); border: 1px solid rgba(14,165,233,0.2);
  border-radius: 10px; padding: 16px 20px; margin: 20px 0;
  font-size: 14px; color: var(--text2); line-height: 1.7;
}
.info-box strong { color: var(--accent-dark); }
.warn-box {
  background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2);
  border-radius: 10px; padding: 16px 20px; margin: 20px 0;
  font-size: 14px; color: var(--text2); line-height: 1.7;
}
.warn-box strong { color: var(--warn); }

/* AD */
.ad-wrap { margin: 28px 0; }

/* RELATED */
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 16px; }
.related-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px; text-decoration: none; color: var(--text);
  transition: all 0.2s; display: block;
}
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-card .icon { font-size: 22px; margin-bottom: 8px; }
.related-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.related-card p { font-size: 12px; color: var(--muted); margin: 0; }

/* SECTION H2 */
.content-h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; letter-spacing: -0.3px; }
.content-p { font-size: 14px; color: var(--text2); line-height: 1.8; margin-bottom: 12px; }
.content-ul { font-size: 14px; color: var(--text2); padding-left: 20px; line-height: 1.8; margin-bottom: 14px; }
.content-ul li { margin-bottom: 5px; }

/* FOOTER */
footer {
  position: relative; z-index: 1;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
footer p { font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-size: 13px; }
.dev-credit { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.dev-credit span { color: var(--accent); }

@media(max-width:768px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  .tool-page { padding: 80px 16px 60px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  footer { padding: 20px 16px; flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
