/* ── Reset & base ──────────────────────────────────────────────────────────── */
:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #0b1220; color: #e8eefc; }
a { color: inherit; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px; }

/* ── Header / nav ──────────────────────────────────────────────────────────── */
.header { margin: 0 0 20px; }
.topnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { color: #e8eefc; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.3px; }
.nav { display: flex; gap: 14px; flex-wrap: wrap; }
.nav a { color: #a9b6d3; text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a:hover { color: #e8eefc; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.15); color: #e8eefc; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 16px; }
.nav-mobile { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 10px 14px; }
.nav-mobile a { color: #a9b6d3; text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: #e8eefc; }

/* ── Card ──────────────────────────────────────────────────────────────────── */
.card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 18px; margin: 14px 0; }

/* ── Typography ────────────────────────────────────────────────────────────── */
h1 { margin: 0 0 6px; font-size: 32px; letter-spacing: -0.5px; }
h2 { margin: 0 0 14px; font-size: 20px; }
.sub { margin: 0; color: #a9b6d3; font-size: 15px; }
.muted { color: #a9b6d3; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: #a9b6d3; margin-bottom: 6px; }
.value { font-size: 16px; }
.big { font-size: 34px; font-weight: 700; }
.error-msg { color: #f87171; margin: 0; }
.center { text-align: center; }

/* ── Grid ──────────────────────────────────────────────────────────────────── */
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.kv { padding: 12px; border-radius: 12px; background: rgba(0,0,0,0.18); border: 1px solid rgba(255,255,255,0.06); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn { background: #ffffff; color: #0b1220; border: 0; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #e0e8ff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: rgba(255,255,255,0.08); color: #e8eefc; border: 1px solid rgba(255,255,255,0.12); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-row { display: flex; gap: 10px; }
.input { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; color: #e8eefc; padding: 10px 14px; font-size: 15px; outline: none; font-family: inherit; }
.input::placeholder { color: #5a6a8a; }
.input:focus { border-color: rgba(255,255,255,0.28); }
textarea.input { resize: vertical; min-height: 90px; font-family: monospace; font-size: 14px; }
.output { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; color: #e8eefc; padding: 10px 14px; font-size: 15px; font-family: monospace; }

/* ── Details / raw ─────────────────────────────────────────────────────────── */
.details { margin-top: 14px; }
.pre { white-space: pre-wrap; word-break: break-word; background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.06); padding: 12px; border-radius: 12px; font-size: 13px; }

/* ── Page header ───────────────────────────────────────────────────────────── */
.page { margin-bottom: 4px; }
.page h1 { margin: 0 0 8px; }
.page p, .page li { color: #cdd6ef; line-height: 1.65; }
.page ul { margin: 10px 0 10px 18px; }
.page h2 { font-size: 18px; margin: 20px 0 8px; }

/* ── Tool catalog grid ─────────────────────────────────────────────────────── */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tool-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; text-decoration: none; color: inherit; transition: border-color 0.15s, background 0.15s; }
.tool-card:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.09); }
.tool-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex-shrink: 0; letter-spacing: 0; }
.ti-blue   { background: rgba(59,130,246,0.18);  color: #60a5fa; }
.ti-green  { background: rgba(34,197,94,0.18);   color: #4ade80; }
.ti-purple { background: rgba(168,85,247,0.18);  color: #c084fc; }
.ti-orange { background: rgba(249,115,22,0.18);  color: #fb923c; }
.ti-teal   { background: rgba(20,184,166,0.18);  color: #2dd4bf; }
.tool-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.tool-desc { font-size: 12px; color: #a9b6d3; margin-top: 2px; line-height: 1.4; }

/* ── Result helpers ────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.small-link { font-size: 13px; color: #60a5fa; text-decoration: none; display: inline-block; margin-top: 4px; }
.small-link:hover { text-decoration: underline; }

/* ── DNS records ───────────────────────────────────────────────────────────── */
.dns-record-block { margin-bottom: 18px; }
.dns-type { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: #a9b6d3; margin-bottom: 6px; font-weight: 700; }
.dns-value { font-family: monospace; font-size: 13px; background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.06); padding: 7px 12px; border-radius: 8px; margin-bottom: 4px; word-break: break-all; color: #cdd6ef; }

/* ── Password generator ────────────────────────────────────────────────────── */
.range-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.range { flex: 1; accent-color: #60a5fa; }
.len-display { font-weight: 700; font-size: 22px; min-width: 42px; text-align: right; }
.options-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.check-label { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 14px; color: #cdd6ef; }
.check-label input { accent-color: #60a5fa; width: 16px; height: 16px; cursor: pointer; }
.output-row { display: flex; gap: 10px; }

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.tab-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; color: #a9b6d3; padding: 8px 18px; cursor: pointer; font-size: 14px; font-weight: 600; font-family: inherit; }
.tab-btn.active { background: rgba(255,255,255,0.12); color: #e8eefc; border-color: rgba(255,255,255,0.18); }
.btn-row { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }

/* ── Blog ──────────────────────────────────────────────────────────────────── */
.container { padding: 0; }
.blog-header { margin-bottom: 4px; }
.blog-header h1 { margin: 0 0 6px; }

/* Tags */
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.tag-vpn        { background: rgba(168,85,247,0.18); color: #c084fc; }
.tag-privacy    { background: rgba(249,115,22,0.18); color: #fb923c; }
.tag-dns        { background: rgba(20,184,166,0.18); color: #2dd4bf; }
.tag-security   { background: rgba(34,197,94,0.18);  color: #4ade80; }
.tag-ip-address { background: rgba(59,130,246,0.18); color: #60a5fa; }
.tag-tools      { background: rgba(59,130,246,0.18); color: #60a5fa; }

/* Article list */
.article-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.article-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-left: 3px solid #3b82f6; border-radius: 0 16px 16px 0; padding: 16px 20px; transition: border-color 0.15s, background 0.15s; }
.article-card:hover { background: rgba(255,255,255,0.08); border-left-color: #60a5fa; }
.article-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.article-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.article-read-time { font-size: 12px; white-space: nowrap; }
.article-card h2 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.article-card a { text-decoration: none; color: #e8eefc; }
.article-card a:hover h2 { color: #93c5fd; }
.article-desc { margin: 0 0 8px; color: #a9b6d3; font-size: 14px; line-height: 1.5; }
.article-date { font-size: 12px; }

/* Article page */
.breadcrumb { font-size: 13px; color: #a9b6d3; margin-bottom: 20px; }
.breadcrumb a { color: #a9b6d3; text-decoration: none; }
.breadcrumb a:hover { color: #e8eefc; }
.article-page { padding-top: 8px; }
.article-header { margin-bottom: 28px; }
.article-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.article-header h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.25; }
.article-title-line { height: 2px; width: 48px; background: linear-gradient(90deg, #3b82f6, #8b5cf6); border-radius: 2px; margin-bottom: 10px; }
.article-header time { font-size: 13px; }

/* Article body typography */
.article-body { color: #cdd6ef; line-height: 1.8; font-size: 16px; }
.article-body h2 { font-size: 21px; margin: 32px 0 12px; color: #e8eefc; }
.article-body h3 { font-size: 17px; margin: 22px 0 8px; color: #e8eefc; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: #60a5fa; text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body code { background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.1); border-radius: 5px; padding: 1px 7px; font-family: monospace; font-size: 13px; color: #93c5fd; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; overflow-x: auto; display: block; }
.article-body th, .article-body td { text-align: left; padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,0.07); white-space: nowrap; }
.article-body th { color: #a9b6d3; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; background: rgba(0,0,0,0.2); }
.article-nav { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.07); }
.article-nav a { color: #60a5fa; text-decoration: none; font-size: 14px; }
.article-nav a:hover { text-decoration: underline; }

/* ── Ad slots ──────────────────────────────────────────────────────────────── */
.adbox { height: 90px; display: grid; place-items: center; background: rgba(0,0,0,0.22); border: 1px dashed rgba(255,255,255,0.14); border-radius: 12px; color: #5a6a8a; font-size: 13px; }
.ad-slot { margin: 14px 0; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.06); }
.footerlinks { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.footerlinks a { color: #a9b6d3; text-decoration: none; font-weight: 600; font-size: 13px; }
.footerlinks a:hover { color: #e8eefc; }
.footer .muted { margin: 0; font-size: 13px; }

/* ── Tools section on homepage ─────────────────────────────────────────────── */
.tools-section { margin-top: 28px; }
.tools-section h2 { font-size: 18px; margin: 0 0 12px; color: #a9b6d3; font-weight: 600; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .big { font-size: 28px; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .form-row { flex-direction: column; }
  .output-row { flex-direction: column; }
}
@media (max-width: 400px) {
  .tools-grid { grid-template-columns: 1fr; }
}
