/* =========================================================
   NetKit v2.0 — dark violet / deep blue, mobile first
   No external fonts, no framework. One stylesheet.
   ========================================================= */

:root {
    --bg: #07060d;
    --bg-soft: #0a0913;
    --surface: #110f1d;
    --surface-2: #171327;
    --surface-3: #201a35;
    --line: rgba(167, 139, 250, .14);
    --line-strong: rgba(167, 139, 250, .3);
    --text: #efecff;
    --muted: #a8a2c7;
    --brand: #8b5cf6;
    --brand-2: #a78bfa;
    --brand-3: #c4b5fd;
    --blue: #3b82f6;
    --blue-deep: #1e3a8a;
    --ok: #34d399;
    --ok-deep: #065f46;
    --warn: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;
    --grad: linear-gradient(135deg, #b49bff 0%, #8b5cf6 45%, #3b82f6 100%);
    --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(30, 58, 138, .22));
    --radius: 20px;
    --radius-sm: 13px;
    --shadow: 0 30px 70px -34px rgba(0, 0, 0, .95);
    --shadow-glow: 0 0 0 1px rgba(167, 139, 250, .28), 0 18px 50px -18px rgba(139, 92, 246, .55);
    --max: 1140px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Author display rules must not beat the native hidden attribute. */
[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(1000px 560px at 8% -12%, rgba(139, 92, 246, .2), transparent 62%),
        radial-gradient(820px 480px at 96% -6%, rgba(30, 58, 138, .3), transparent 58%),
        radial-gradient(700px 700px at 50% 120%, rgba(139, 92, 246, .07), transparent 60%),
        var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(167, 139, 250, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand-3);
    text-decoration: none;
    transition: color .18s ease;
}

a:hover {
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--brand-2);
    outline-offset: 3px;
    border-radius: 6px;
}

h1, h2, h3, h4 {
    margin: 0 0 .55em;
    line-height: 1.16;
    letter-spacing: -.025em;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem); }
h3 { font-size: 1.14rem; }

p { margin: 0 0 1rem; }

code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: .9em;
    background: rgba(139, 92, 246, .13);
    border: 1px solid var(--line);
    padding: .1em .4em;
    border-radius: 6px;
    color: var(--brand-3);
    overflow-wrap: anywhere;
}

pre {
    overflow: auto;
    padding: 1rem 1.1rem;
    background: #0b0914;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

pre code {
    background: none;
    border: 0;
    padding: 0;
    color: #dcd6f7;
}

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 2rem 0;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 22px;
}

.container-narrow,
.narrow {
    max-width: 800px;
}

.muted { color: var(--muted); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -70px;
    z-index: 100;
    background: var(--brand);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
    transition: top .2s ease;
}

.skip-link:focus { top: 0; color: #fff; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
    --btn-bg: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: .68rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--btn-bg);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); color: #fff; }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 12px 30px -12px rgba(139, 92, 246, .85);
}

.btn-primary:hover {
    box-shadow: 0 18px 42px -14px rgba(139, 92, 246, 1);
    color: #fff;
}

.btn-ghost {
    border-color: var(--line-strong);
    background: rgba(167, 139, 250, .06);
    color: var(--brand-3);
}

.btn-ghost:hover {
    border-color: var(--brand-2);
    background: rgba(139, 92, 246, .14);
    color: #fff;
}

.btn-inverse {
    background: #fff;
    color: #241a49;
}

.btn-inverse:hover { color: #241a49; }

.btn-danger {
    background: linear-gradient(135deg, #f87171, #dc2626);
    color: #fff;
}

.btn-danger:hover { color: #fff; }

.btn-danger-ghost {
    border-color: rgba(248, 113, 113, .35);
    background: rgba(248, 113, 113, .07);
    color: #fca5a5;
}

.btn-danger-ghost:hover {
    background: rgba(248, 113, 113, .16);
    border-color: #f87171;
    color: #fff;
}

.btn-small {
    min-height: 36px;
    padding: .4rem .8rem;
    font-size: .82rem;
}

.btn-block { width: 100%; }

.btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .92rem;
    color: var(--brand-3);
}

.link-arrow span { transition: transform .18s ease; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------------------------------------------------------
   Header / navigation
   --------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 6, 13, .78);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .62rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: 1.08rem;
}

.brand:hover { color: #fff; }

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 10px 26px -10px rgba(139, 92, 246, .9);
    flex: none;
}

.brand-text { line-height: 1; }

.site-nav { margin-left: auto; }

.site-nav ul {
    display: flex;
    align-items: center;
    gap: .2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: inline-flex;
    padding: .55rem .82rem;
    border-radius: 10px;
    color: var(--muted);
    font-size: .93rem;
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--text);
    background: rgba(167, 139, 250, .08);
}

.site-nav a[aria-current="page"] {
    color: var(--brand-3);
    background: rgba(139, 92, 246, .13);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(167, 139, 250, .06);
    color: var(--text);
    cursor: pointer;
    padding: 0;
    place-items: center;
    gap: 5px;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

/* ---------------------------------------------------------
   Alerts, badges, forms
   --------------------------------------------------------- */
.alert {
    margin: 0 0 1.25rem;
    padding: .9rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    font-size: .95rem;
}

.alert ul { margin: .3rem 0 0; padding-left: 1.2rem; }

.alert-success {
    border-color: rgba(52, 211, 153, .35);
    background: rgba(16, 185, 129, .1);
}

.alert-error {
    border-color: rgba(248, 113, 113, .4);
    background: rgba(248, 113, 113, .09);
}

.alert-warning {
    border-color: rgba(251, 191, 36, .35);
    background: rgba(251, 191, 36, .08);
}

.alert-info {
    border-color: rgba(96, 165, 250, .35);
    background: rgba(59, 130, 246, .08);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .24rem .6rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .02em;
    border: 1px solid var(--line);
    background: rgba(167, 139, 250, .1);
    color: var(--brand-3);
}

.badge-category {
    margin-bottom: .55rem;
    background: rgba(59, 130, 246, .12);
    border-color: rgba(59, 130, 246, .3);
    color: #93c5fd;
}

.badge-count,
.badge-new {
    background: var(--grad);
    border: 0;
    color: #fff;
}

.field { margin-bottom: 1.1rem; }

.field label,
.label-row label {
    display: block;
    margin-bottom: .4rem;
    font-size: .88rem;
    font-weight: 600;
    color: #d7d1f4;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: .72rem .85rem;
    border-radius: 11px;
    border: 1px solid var(--line-strong);
    background: #0c0a16;
    color: var(--text);
    font: inherit;
    font-size: .95rem;
    transition: border-color .18s ease, box-shadow .18s ease;
}

input::placeholder,
textarea::placeholder { color: #6f698f; }

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-2);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .18);
}

textarea { resize: vertical; min-height: 110px; }

input[type="file"] { padding: .55rem; }

.field-hint {
    margin: .4rem 0 0;
    font-size: .82rem;
    color: var(--muted);
}

.field-hint a { color: var(--brand-3); }

.field-error {
    margin: .4rem 0 0;
    font-size: .84rem;
    color: #fca5a5;
}

.field-check {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.field-check input { width: auto; }
.field-check label { margin: 0; }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
}

/* Tool pages (IP Lookup, WHOIS, Speed Test): center the action buttons. */
.page-ip .tool-form .form-actions,
.page-whois .tool-form .form-actions,
.page-speedtest .test-actions {
    justify-content: center;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------------------------------------------------------
   Cards & sections
   --------------------------------------------------------- */
.card-surface {
    background: linear-gradient(180deg, rgba(28, 23, 48, .72), rgba(15, 13, 26, .72));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section {
    padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(12, 10, 21, .5), rgba(9, 8, 16, .75));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.section-title { margin: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .7rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-2);
    box-shadow: 0 0 0 0 rgba(167, 139, 250, .7);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, .55); }
    70% { box-shadow: 0 0 0 9px rgba(167, 139, 250, 0); }
    100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
    position: relative;
    padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4rem);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: -20% 10% auto auto;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, .28), transparent 62%);
    filter: blur(30px);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    position: relative;
}

.hero-copy h1 { margin-bottom: 1rem; }

.hero-lead {
    max-width: 38rem;
    font-size: clamp(1rem, .95rem + .3vw, 1.14rem);
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1.6rem 0 1.4rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .87rem;
    color: var(--muted);
}

.hero-points li {
    position: relative;
    padding-left: 1.1rem;
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-2);
    box-shadow: 0 0 10px rgba(167, 139, 250, .9);
}

.hero-gauge {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}

.gauge-orbit {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    border: 1px dashed rgba(167, 139, 250, .22);
    animation: spin 26s linear infinite;
}

.gauge-orbit::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-2);
    box-shadow: 0 0 14px 2px rgba(167, 139, 250, .8);
}

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

.gauge-hero {
    width: 88%;
    height: auto;
    transform: rotate(-90deg);
}

.hero-gauge-label {
    position: absolute;
    display: grid;
    justify-items: center;
    gap: .15rem;
    text-align: center;
}

.hero-gauge-value {
    font-size: clamp(2.6rem, 2rem + 3vw, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-gauge-unit {
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Generic gauge circles (also used by the speed test page). */
.gauge-track,
.gauge-fill {
    fill: none;
    stroke-width: 10;
}

.gauge-track {
    stroke: rgba(167, 139, 250, .12);
}

.gauge-track-2 {
    stroke-width: 1.5;
    stroke: rgba(167, 139, 250, .18);
}

.gauge-fill {
    stroke: url(#heroGrad);
    stroke: var(--brand-2);
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset .4s ease;
    stroke-dasharray: 603;
    stroke-dashoffset: 603;
}

.gauge-fill-hero {
    stroke: url(#heroGrad);
    stroke-dasharray: 603;
    stroke-dashoffset: 150;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, .55));
}

/* ---------------------------------------------------------
   Tool cards & stats
   --------------------------------------------------------- */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.tool-card {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(28, 23, 48, .8), rgba(14, 12, 25, .8));
    color: var(--text);
    transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-glow);
    color: var(--text);
}

.tool-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--grad-soft);
    border: 1px solid var(--line-strong);
    color: var(--brand-2);
    margin-bottom: .3rem;
}

.tool-icon svg { width: 24px; height: 24px; }

.tool-card h3 { margin: 0 0 .1rem; }
.tool-card p { margin: 0 0 .8rem; color: var(--muted); font-size: .93rem; flex: 1; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat {
    padding: 1.4rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(17, 15, 29, .7);
}

.stat-value {
    display: block;
    font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.stat-label {
    display: block;
    margin-top: .3rem;
    font-size: .8rem;
    color: var(--muted);
}

/* ---------------------------------------------------------
   Tables
   --------------------------------------------------------- */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(13, 11, 23, .6);
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    min-width: 540px;
}

.data-table caption {
    caption-side: top;
    text-align: left;
    padding: .9rem 1rem .2rem;
    color: var(--muted);
    font-size: .82rem;
}

.data-table th,
.data-table td {
    padding: .72rem .9rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.data-table thead th {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    background: rgba(167, 139, 250, .05);
    position: sticky;
    top: 0;
}

.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(167, 139, 250, .045); }

/* ---------------------------------------------------------
   Article cards & grids
   --------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.card-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(170deg, rgba(27, 22, 46, .78), rgba(13, 11, 23, .82));
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-glow);
}

.card-cover {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0c0a16;
    border-bottom: 1px solid var(--line);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.article-card:hover .card-cover img { transform: scale(1.04); }

.card-body {
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.2rem 1.3rem;
    flex: 1;
}

.card-title {
    margin: 0 0 .45rem;
    font-size: 1.03rem;
    line-height: 1.35;
}

.card-title a { color: var(--text); }
.card-title a:hover { color: var(--brand-3); }

.card-excerpt {
    margin: 0 0 .9rem;
    color: var(--muted);
    font-size: .88rem;
    flex: 1;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0;
    font-size: .78rem;
    color: #8a84a8;
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq {
    display: grid;
    gap: .7rem;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(17, 15, 29, .7);
    padding: 1rem 1.2rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

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

.faq-item summary::after {
    content: "+";
    color: var(--brand-2);
    font-size: 1.25rem;
    line-height: 1;
    transition: transform .2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
    margin: .8rem 0 0;
    color: var(--muted);
    font-size: .93rem;
}

/* ---------------------------------------------------------
   CTA band
   --------------------------------------------------------- */
.cta-band {
    position: relative;
    padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0;
    background:
        radial-gradient(600px 240px at 15% 0%, rgba(139, 92, 246, .35), transparent 65%),
        radial-gradient(500px 220px at 90% 100%, rgba(30, 58, 138, .5), transparent 65%),
        #0d0a18;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-inner h2 { margin: 0 0 .3rem; }
.cta-inner p { margin: 0; color: var(--muted); max-width: 40rem; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
    padding: 3.5rem 0 1.5rem;
    background: #06050b;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-brand {
    margin: 0 0 .5rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.footer-brand .dot { color: var(--brand-2); }

.footer-note {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    max-width: 24rem;
}

.footer-heading {
    margin: 0 0 .8rem;
    font-size: .75rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #8d87ab;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .45rem;
}

.footer-links a {
    color: var(--muted);
    font-size: .9rem;
}

.footer-links a:hover { color: var(--brand-3); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: .8rem;
    color: #7e789b;
}

.footer-bottom p { margin: 0; }

/* ---------------------------------------------------------
   Page head / breadcrumb
   --------------------------------------------------------- */
.page-head {
    padding: clamp(2.2rem, 1.6rem + 2.4vw, 3.8rem) 0 clamp(1.4rem, 1.2rem + 1vw, 2rem);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(700px 240px at 10% -40%, rgba(139, 92, 246, .2), transparent 70%),
        radial-gradient(500px 220px at 95% 0%, rgba(30, 58, 138, .22), transparent 70%);
}

.page-head h1 { margin-bottom: .6rem; }

.page-lead {
    max-width: 52rem;
    margin: 0;
    color: var(--muted);
    font-size: clamp(.97rem, .93rem + .2vw, 1.08rem);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.1rem;
    font-size: .8rem;
    color: #8a84a8;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-3); }
.breadcrumb span[aria-hidden] { color: #5d5878; }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin: .8rem 0 0;
    font-size: .84rem;
    color: var(--muted);
}

/* ---------------------------------------------------------
   Tool forms & result cards
   --------------------------------------------------------- */
.tool-form {
    padding: 1.5rem;
    margin-bottom: 1.6rem;
}

.result-card {
    padding: 1.6rem;
    margin-bottom: 1.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: linear-gradient(165deg, rgba(31, 25, 54, .82), rgba(13, 11, 23, .86));
    box-shadow: var(--shadow);
}

.private-card { border-color: rgba(251, 191, 36, .3); }

.result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.result-country,
.result-domain {
    margin: 0 0 .2rem;
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
    overflow-wrap: anywhere;
}

.result-sub {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.flag { margin-right: .35rem; }

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.info-list > div {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--line);
}

.info-list > div:nth-child(odd) { border-right: 1px solid var(--line); }
.info-list > div:nth-last-child(-n+2) { border-bottom: 0; }

.info-list dt {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8d87ab;
}

.info-list dd {
    margin: 0;
    font-size: .94rem;
    overflow-wrap: anywhere;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    margin: 1.6rem 0;
}

.info-card {
    padding: 1.4rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(17, 15, 29, .7);
}

.info-card p:last-child { margin-bottom: 0; }

.panel-title {
    margin: 0 0 .8rem;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-2);
}

.sub-title {
    margin: 1.1rem 0 .6rem;
    font-size: .95rem;
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .55rem;
    font-size: .9rem;
    color: var(--muted);
}

.check-list li {
    position: relative;
    padding-left: 1.4rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--grad);
}

.history-list {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    display: grid;
    gap: .3rem;
    font-size: .84rem;
    color: var(--muted);
}

.disclaimer {
    margin: 1.6rem 0;
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--brand);
    background: rgba(139, 92, 246, .06);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: .87rem;
    color: var(--muted);
}

.map-wrap { margin-top: 1.2rem; }

#ip-map {
    height: 320px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #0c0a16;
    z-index: 0;
}

.map-note {
    margin: .5rem 0 0;
    font-size: .76rem;
    color: #7e789b;
}

.expiry-pill {
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    border: 1px solid var(--line);
    background: rgba(167, 139, 250, .1);
    color: var(--brand-3);
}

.expiry-pill.is-ok { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .35); color: #6ee7b7; }
.expiry-pill.is-warning { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .35); color: #fcd34d; }
.expiry-pill.is-danger { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .4); color: #fca5a5; }
.expiry-pill.is-expired { background: rgba(220, 38, 38, .18); border-color: rgba(248, 113, 113, .5); color: #fecaca; }

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.chip-list,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: .3rem .7rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(167, 139, 250, .08);
    color: var(--brand-3);
    font-size: .78rem;
}

.chip:hover { background: rgba(139, 92, 246, .18); color: #fff; }

.plain-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: .3rem;
    font-size: .9rem;
}

.raw-panel {
    margin-top: 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(9, 8, 16, .7);
    padding: .8rem 1rem;
}

.raw-panel summary {
    cursor: pointer;
    font-weight: 600;
    font-size: .88rem;
}

.raw-panel pre {
    max-height: 420px;
    margin: .8rem 0 0;
    font-size: .78rem;
}

/* ---------------------------------------------------------
   Articles layout, sidebar, prose
   --------------------------------------------------------- */
.article-layout,
.article-body-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(1.5rem, 3vw, 2.6rem);
    align-items: start;
}

.search-form {
    display: grid;
    grid-template-columns: 1.6fr 1fr auto;
    gap: .9rem;
    align-items: end;
    padding: 1.2rem;
    margin-bottom: 1.4rem;
}

.search-form .field { margin: 0; }

.filter-summary {
    font-size: .86rem;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.empty-state {
    padding: 2.4rem 1.4rem;
    text-align: center;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--muted);
}

.article-sidebar,
.article-toc {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 88px;
}

.sidebar-card {
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(17, 15, 29, .72);
}

.sidebar-card .panel-title { margin-bottom: .7rem; }
.sidebar-cta p { font-size: .88rem; color: var(--muted); }

.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .75rem;
}

.post-list-item {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
}

.post-thumb {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0c0a16;
}

.post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-list-text { display: grid; gap: .15rem; min-width: 0; }

.post-list-title {
    color: var(--text);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.35;
}

.post-list-title:hover { color: var(--brand-3); }

.post-list-meta { font-size: .72rem; color: #8a84a8; }

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .2rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    padding: .42rem .1rem;
    color: var(--muted);
    font-size: .87rem;
    border-bottom: 1px solid rgba(167, 139, 250, .08);
}

.category-list li:last-child a { border-bottom: 0; }
.category-list a:hover { color: var(--brand-3); }
.category-list .count { color: #6f698f; }

.prose-wrap { min-width: 0; }

.article-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    margin-bottom: 1.6rem;
    background: #0c0a16;
}

.toc-inline {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(17, 15, 29, .7);
    padding: .9rem 1.1rem;
    margin-bottom: 1.6rem;
}

.toc-inline summary {
    cursor: pointer;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .04em;
}

.toc-list {
    margin: .7rem 0 0;
    padding-left: 1.1rem;
    display: grid;
    gap: .28rem;
    font-size: .87rem;
}

.toc-level-3 { margin-left: .9rem; list-style: circle; }

.prose {
    font-size: 1.02rem;
    line-height: 1.78;
    color: #ddd8f3;
    overflow-wrap: break-word;
}

.prose h2 {
    margin: 2.2rem 0 .8rem;
    padding-top: .2rem;
    font-size: clamp(1.3rem, 1.15rem + .6vw, 1.65rem);
    color: var(--text);
}

.prose h3 {
    margin: 1.7rem 0 .6rem;
    font-size: 1.16rem;
    color: var(--text);
}

.prose p { margin: 0 0 1.05rem; }

.prose ul,
.prose ol {
    margin: 0 0 1.2rem;
    padding-left: 1.35rem;
    display: grid;
    gap: .35rem;
}

.prose li::marker { color: var(--brand-2); }

.prose a {
    color: var(--brand-3);
    text-decoration: underline;
    text-decoration-color: rgba(167, 139, 250, .4);
    text-underline-offset: 3px;
}

.prose a:hover { text-decoration-color: var(--brand-2); }

.prose blockquote {
    margin: 1.4rem 0;
    padding: .9rem 1.2rem;
    border-left: 3px solid var(--brand);
    background: rgba(139, 92, 246, .07);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--muted);
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    margin: 1.2rem 0;
}

.prose strong { color: #fff; }

.article-tags { margin: 2rem 0; }

.article-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: linear-gradient(160deg, rgba(139, 92, 246, .17), rgba(30, 58, 138, .18));
}

.article-cta h2 { font-size: 1.25rem; }
.article-cta p { color: var(--muted); font-size: .92rem; }
.article-cta .hero-actions { margin-bottom: 0; }

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 2rem;
    align-items: center;
}

.page-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .35rem .75rem;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: rgba(17, 15, 29, .7);
    color: var(--muted);
    font-size: .84rem;
}

.page-link:hover { color: var(--brand-3); border-color: var(--line-strong); }

.page-link.is-current {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
}

.page-gap { color: #6f698f; padding: 0 .2rem; }

/* ---------------------------------------------------------
   Error page
   --------------------------------------------------------- */
.error-section { min-height: 58vh; display: grid; align-items: center; }

.error-box { text-align: center; }

.error-code {
    margin: 0 0 .4rem;
    font-size: clamp(4rem, 3rem + 8vw, 8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.06em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: .9;
}

.error-box .hero-actions { justify-content: center; }

/* ---------------------------------------------------------
   Ads
   --------------------------------------------------------- */
.ad-slot {
    position: relative;
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgba(17, 15, 29, .5);
    text-align: center;
}

.ad-label {
    position: absolute;
    top: -0.65rem;
    left: 1rem;
    padding: 0 .4rem;
    background: var(--bg);
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7e789b;
}

.ad-body img { margin: 0 auto; }

/* ---------------------------------------------------------
   Admin
   --------------------------------------------------------- */
.admin-body { background-color: #08070f; }

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.2rem;
}

.auth-card {
    width: min(420px, 100%);
    padding: 2rem;
}

.auth-brand { margin-bottom: 1.5rem; }

.auth-title { font-size: 1.6rem; margin-bottom: .3rem; }

.auth-sub {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 1.4rem;
}

.auth-form .field { margin-bottom: 1rem; }

.auth-foot {
    margin: 1.4rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: .82rem;
    text-align: center;
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: 1.3rem 1rem;
    border-right: 1px solid var(--line);
    background: rgba(9, 8, 16, .85);
    backdrop-filter: blur(12px);
    overflow-y: auto;
}

.admin-brand { padding: .2rem .4rem; }

.admin-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .2rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .6rem .75rem;
    border-radius: 10px;
    color: var(--muted);
    font-size: .9rem;
}

.admin-nav a:hover { background: rgba(167, 139, 250, .08); color: var(--text); }

.admin-nav a[aria-current="page"] {
    background: rgba(139, 92, 246, .15);
    color: var(--brand-3);
    box-shadow: inset 2px 0 0 var(--brand);
}

.admin-sidebar-foot {
    margin-top: auto;
    display: grid;
    gap: .7rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.admin-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.6rem;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 6, 13, .6);
}

.admin-topbar .eyebrow { margin-bottom: .15rem; }

.admin-hello { margin: 0; font-size: .9rem; color: var(--muted); }
.admin-hello strong { color: var(--text); }

.admin-main {
    width: 100%;
    max-width: 1180px;
    padding: 1.6rem;
    flex: 1;
}

.admin-footer {
    padding: 1rem 1.6rem 1.4rem;
    font-size: .78rem;
    color: #7e789b;
}

.admin-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}

.admin-head h1 { margin: 0 0 .2rem; font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem); }
.admin-head p { margin: 0; font-size: .88rem; }

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: 1rem;
}

.tab {
    padding: .4rem .8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
    background: rgba(17, 15, 29, .6);
}

.tab:hover { color: var(--text); border-color: var(--line-strong); }

.tab.is-active {
    background: rgba(139, 92, 246, .18);
    border-color: var(--line-strong);
    color: var(--brand-3);
}

.admin-filter {
    display: flex;
    align-items: flex-end;
    gap: .8rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(17, 15, 29, .55);
}

.admin-filter .field { margin: 0; min-width: 220px; flex: 1; }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .8rem;
    margin-bottom: 1.4rem;
}

.admin-stat {
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(17, 15, 29, .7);
}

.admin-stat-value {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--brand-3);
}

.admin-stat-label { font-size: .76rem; color: var(--muted); }

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.1rem;
    align-items: start;
}

.admin-card {
    padding: 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(17, 15, 29, .66);
}

.admin-card h2 { font-size: 1rem; margin-bottom: .9rem; }
.admin-card-wide { grid-column: 1 / -1; }

.admin-table { min-width: 640px; }
.admin-table td strong { display: block; font-size: .9rem; }
.table-sub { display: block; font-size: .74rem; color: #7e789b; }
.table-actions { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.inline-form { display: inline; }

.status-pill {
    display: inline-flex;
    padding: .18rem .55rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid var(--line);
    background: rgba(167, 139, 250, .1);
    color: var(--brand-3);
}

.status-publish { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .3); color: #6ee7b7; }
.status-draft { background: rgba(148, 163, 184, .1); border-color: rgba(148, 163, 184, .25); color: #cbd5e1; }
.status-scheduled { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .3); color: #fcd34d; }

.admin-form .form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 1.2rem;
    align-items: start;
}

.form-main { min-width: 0; }

.form-side {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 1.2rem;
}

.side-card {
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(17, 15, 29, .7);
}

.side-card .panel-title { margin-bottom: .7rem; }

.editor-title-input {
    font-size: 1.2rem;
    font-weight: 700;
}

.label-row .field-hint { margin: 0; }

.md-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-bottom: .6rem;
}

.md-toolbar .btn { min-height: 32px; padding: .3rem .55rem; }

#article-body {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88rem;
    line-height: 1.7;
    min-height: 380px;
}

.preview-panel {
    margin-bottom: 1.2rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(12, 10, 21, .65);
}

.preview-panel .prose { font-size: .95rem; }

.cover-preview {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-bottom: .9rem;
}

.danger-zone {
    margin-top: 1.6rem;
    padding: 1.2rem;
    border: 1px solid rgba(248, 113, 113, .3);
    border-radius: var(--radius-sm);
    background: rgba(248, 113, 113, .04);
}

.danger-zone p { font-size: .87rem; }

.ad-code-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .8rem;
}

.message-list { display: grid; gap: .8rem; }

.message-card {
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(17, 15, 29, .7);
}

.message-card.is-unread {
    border-color: var(--line-strong);
    box-shadow: inset 3px 0 0 var(--brand);
}

.message-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}

.message-head h2 { margin: 0; font-size: 1rem; }
.message-head p { margin: .15rem 0 0; font-size: .8rem; }
.message-body { font-size: .9rem; color: #d6d1ec; }

/* ---------------------------------------------------------
   Web proxy
   --------------------------------------------------------- */
.proxy-form {
    max-width: 44rem;
    margin: 1.4rem 0 1.1rem;
    padding: 1rem 1.1rem 1.1rem;
}

.proxy-form > label {
    display: block;
    margin-bottom: .4rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.proxy-form-row {
    display: flex;
    gap: .6rem;
    align-items: stretch;
}

.proxy-form-row input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: .78rem .9rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgba(7, 6, 13, .72);
    color: var(--text);
    font: inherit;
    outline: none;
}

.proxy-form-row input:focus {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, .18);
}

.proxy-form-row .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.proxy-form .field-hint { margin: .55rem 0 0; }

.proxy-alert {
    max-width: 44rem;
    margin-bottom: 1rem;
}

.proxy-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 1.1rem 0 .9rem;
}

.proxy-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(139, 92, 246, .1);
    color: var(--brand-3);
    padding: .24rem .7rem;
    font-size: .76rem;
    font-weight: 600;
}

.proxy-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .9rem;
    font-size: .87rem;
}

.proxy-quick a {
    border-bottom: 1px dashed rgba(196, 181, 253, .45);
}

.proxy-history {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .55rem;
}

.proxy-history li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .78rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(17, 15, 29, .62);
}

.proxy-history a {
    display: grid;
    gap: .05rem;
    min-width: 0;
    color: var(--text);
}

.proxy-history a:hover .proxy-history-title { color: var(--brand-3); }

.proxy-history-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 58vw;
}

.proxy-history-host {
    font-size: .78rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.proxy-history-time {
    flex: 0 0 auto;
    font-size: .74rem;
    color: var(--muted);
    text-align: right;
}

.proxy-popular {
    margin-top: 2rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 15, 29, .58);
}

.proxy-popular h3 {
    margin: 0 0 .8rem;
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.proxy-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: .45rem 1.2rem;
}

.proxy-popular-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    padding: .35rem 0;
    border-bottom: 1px solid rgba(167, 139, 250, .08);
    font-size: .88rem;
    overflow-wrap: anywhere;
}

.proxy-popular-list li:last-child { border-bottom: 0; }

.proxy-rank {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: proxyrank;
    display: grid;
    gap: .45rem;
}

.proxy-rank li {
    counter-increment: proxyrank;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .5rem .2rem .5rem 1.8rem;
    position: relative;
    border-bottom: 1px solid rgba(167, 139, 250, .1);
    font-size: .88rem;
    overflow-wrap: anywhere;
}

.proxy-rank li:last-child { border-bottom: 0; }

.proxy-rank li::before {
    content: counter(proxyrank);
    position: absolute;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 6px;
    background: rgba(139, 92, 246, .16);
    border: 1px solid var(--line);
    color: var(--brand-3);
    font-size: .68rem;
    font-weight: 700;
}

.proxy-rank strong { flex: 0 0 auto; color: var(--brand-3); font-size: .8rem; }

.proxy-block-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.proxy-block-list li { max-width: 100%; overflow-wrap: anywhere; }

.admin-card .admin-filter { margin-bottom: .9rem; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1040px) {
    .card-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
    .admin-form .form-grid { grid-template-columns: 1fr; }
    .form-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-gauge { max-width: 300px; order: -1; }
    .hero-copy { text-align: left; }
    .tool-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout,
    .article-body-layout { grid-template-columns: 1fr; }
    .article-sidebar,
    .article-toc { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: .8rem;
        padding: .8rem 1rem;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .admin-nav { flex: 1 1 100%; }
    .admin-nav ul { display: flex; flex-wrap: wrap; gap: .3rem; }
    .admin-nav a { padding: .45rem .65rem; }
    .admin-sidebar-foot { margin: 0 0 0 auto; display: flex; align-items: center; border: 0; padding: 0; }
    .admin-sidebar-foot .link-arrow { display: none; }
}

@media (max-width: 760px) {
    .container { padding: 0 16px; }
    .nav-toggle { display: grid; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        margin: 0;
        padding: .5rem 16px 1rem;
        background: rgba(9, 8, 16, .98);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .9);
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
    .site-nav a { padding: .7rem .8rem; font-size: .95rem; }
    .header-inner { position: relative; }
    .card-grid,
    .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-about { grid-column: 1 / -1; }
    .search-form { grid-template-columns: 1fr; }
    .proxy-form-row { flex-direction: column; }
    .proxy-form-row .btn { width: 100%; }
    .proxy-history li { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .proxy-history-time { text-align: left; }
    .proxy-history-title { max-width: 100%; white-space: normal; }
    .info-grid,
    .split { grid-template-columns: 1fr; }
    .info-list { grid-template-columns: 1fr; }
    .info-list > div { border-right: 0 !important; }
    .info-list > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
    .info-list > div:last-child { border-bottom: 0; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .admin-main { padding: 1.1rem; }
    .admin-topbar { padding: .8rem 1.1rem; }
    .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-side { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    body { font-size: 15px; }
    .card-grid,
    .card-grid-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-actions .btn { flex: 1 1 auto; }
    .result-head { flex-direction: column; }
    .result-actions { width: 100%; }
    .table-actions { flex-direction: column; align-items: stretch; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
    .admin-sidebar { flex-direction: column; align-items: stretch; }
    .admin-sidebar-foot { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .site-header, .site-footer, .ad-slot, .hero-actions { display: none; }
    body { background: #fff; color: #000; }
}
