:root {
    --bg: #050d1f;
    --bg-2: #0a1a3a;
    --surface: rgba(255, 255, 255, .045);
    --surface-2: rgba(255, 255, 255, .08);
    --line: rgba(255, 255, 255, .09);
    --text: #eaf0fb;
    --muted: #8fa3c4;
    --pink: #ff2d8d;
    --pink-2: #ff6db0;
    --cyan: #35e0ff;
    --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .5;
    pointer-events: none;
}
body::before {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(255, 45, 141, .55), transparent 70%);
    top: -180px; right: -120px;
}
body::after {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(53, 224, 255, .28), transparent 70%);
    bottom: -240px; left: -200px;
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* HEADER */
header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(5, 13, 31, .7);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    height: 68px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-size: 20px; font-weight: 800; letter-spacing: -.5px;
    display: flex; align-items: center; gap: 10px;
}
.logo-mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, var(--pink), #7a3cff);
    display: grid; place-items: center;
    font-size: 15px; font-weight: 800;
    box-shadow: 0 6px 20px rgba(255, 45, 141, .4);
}
.logo span { color: var(--pink); }
.nav { display: flex; gap: 6px; }
.nav a {
    padding: 8px 14px; border-radius: 10px;
    font-size: 14px; font-weight: 500; color: var(--muted);
    transition: .2s;
}
.nav a:hover, .nav a.active { color: #fff; background: var(--surface-2); }

/* HERO */
.hero { text-align: center; padding: 64px 0 36px; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--pink-2);
    margin-bottom: 22px;
}
.dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #3dff9a; box-shadow: 0 0 0 0 rgba(61, 255, 154, .6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    70% { box-shadow: 0 0 0 9px rgba(61, 255, 154, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 255, 154, 0); }
}
.hero h1 {
    font-size: clamp(36px, 6.5vw, 64px);
    line-height: 1.05; letter-spacing: -2px; font-weight: 800;
    margin-bottom: 16px;
}
.grad {
    background: linear-gradient(90deg, var(--pink), var(--pink-2), var(--cyan));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 17px; }

/* IP CARD */
.ip-card {
    position: relative; overflow: hidden;
    border-radius: 28px; padding: 44px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
    text-align: center;
}
.ip-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 200px at 50% -20%, rgba(255, 45, 141, .25), transparent 70%);
    pointer-events: none;
}
.ip-label {
    position: relative;
    font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--muted);
    margin-bottom: 14px;
}
.ip-address {
    position: relative;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: clamp(28px, 6.5vw, 58px);
    font-weight: 700; letter-spacing: -1px;
    word-break: break-all;
    background: linear-gradient(90deg, #fff, #ffd3e8);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ip-actions {
    position: relative;
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: center; margin-top: 26px;
}
.chip {
    padding: 7px 14px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--line);
    font-size: 12px; font-weight: 600; color: var(--cyan);
    align-self: center;
}
.btn {
    cursor: pointer; border: 0; font-family: inherit;
    padding: 12px 22px; border-radius: 12px;
    font-size: 14px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--pink), #c4106b);
    box-shadow: 0 10px 28px rgba(255, 45, 141, .35);
    transition: .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 45, 141, .5); }
.btn.copied { background: linear-gradient(135deg, #1fbf75, #129a5b); box-shadow: 0 10px 28px rgba(31, 191, 117, .35); }

/* ADS */
.ad-slot { margin: 34px 0; text-align: center; }
.ad-label {
    display: block; font-size: 10px; letter-spacing: .15em;
    text-transform: uppercase; color: #5f7396; margin-bottom: 6px;
}
.ad-box {
    background: rgba(255, 255, 255, .02);
    border: 1px dashed var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.ad-box.leaderboard { min-height: 110px; }
.ad-box.inline { min-height: 280px; }
.ad-box.sidebar { min-height: 600px; }
.adsbygoogle { display: block; width: 100%; }

/* LAYOUT */


.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px; align-items: start;
}
.sidebar { position: sticky; top: 92px; }
.sidebar .ad-slot { margin-top: 0; }

.section-title {
    font-size: 22px; font-weight: 800; letter-spacing: -.5px;
    margin: 6px 0 18px;
}

/* INFO GRID */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px; padding: 20px;
    transition: .25s;
}
.info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 45, 141, .5);
    background: var(--surface-2);
}
.info-card.wide { grid-column: 1 / -1; }
.info-label {
    font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.info-value { font-size: 17px; font-weight: 700; word-break: break-word; }
.mono { font-family: "JetBrains Mono", monospace; font-size: 15px; }

/* TOOLS */
.tools { margin-top: 44px; }
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tool {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 16px; padding: 20px; transition: .25s; display: block;
}
.tool:hover { transform: translateY(-3px); border-color: var(--pink); box-shadow: 0 14px 34px rgba(255, 45, 141, .15); }
.tool-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(255, 45, 141, .12); color: var(--pink-2);
    font-weight: 800; font-size: 13px; margin-bottom: 14px;
}
.tool strong { display: block; font-size: 15px; margin-bottom: 4px; }
.tool small { color: var(--muted); font-size: 13px; }

/* FAQ */
.faq { margin-top: 44px; }
details {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; padding: 18px 20px; margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--pink); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ERROR */
.error-card {
    text-align: center; padding: 40px 24px;
    border-radius: var(--radius); border: 1px solid var(--line);
    background: var(--surface);
}
.error-card h2 { margin-bottom: 8px; }
.error-card p { color: var(--muted); }

/* FOOTER */
footer {
    margin-top: 80px; border-top: 1px solid var(--line);
    padding: 36px 0; text-align: center; color: var(--muted); font-size: 13px;
}
footer strong { color: #fff; font-size: 16px; }
.footer-links { margin: 14px 0; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.footer-links a:hover { color: var(--pink-2); }

/* TOOL PAGES */
.tool-page { max-width: 860px; margin: 0 auto; }

.tool-form {
    display: flex; gap: 12px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 20px; padding: 18px; margin-bottom: 28px;
}
.tool-form input, .tool-form select {
    flex: 1; min-width: 180px;
    background: rgba(255,255,255,.06); border: 1px solid var(--line);
    border-radius: 12px; padding: 13px 16px;
    color: var(--text); font: inherit; font-size: 15px; outline: 0;
}
.tool-form select { flex: 0 0 130px; }
.tool-form select option { background: #0a1a3a; }
.tool-form input:focus, .tool-form select:focus { border-color: var(--pink); }

.table-wrap {
    overflow-x: auto; background: var(--surface);
    border: 1px solid var(--line); border-radius: 16px;
}
.rtable { width: 100%; border-collapse: collapse; }
.rtable th, .rtable td {
    padding: 12px 16px; text-align: left; font-size: 14px;
    border-bottom: 1px solid var(--line); word-break: break-all;
}
.rtable tr:last-child td { border-bottom: 0; }
.rtable th { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.rtable td.mono { font-family: "JetBrains Mono", monospace; font-size: 13px; }

.notice {
    padding: 16px 20px; border-radius: 14px; margin-bottom: 20px;
    background: rgba(255,45,141,.08); border: 1px solid rgba(255,45,141,.3);
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .ad-box.sidebar { min-height: 280px; }
}
@media (max-width: 600px) {
    .nav { display: none; }
    .hero { padding: 44px 0 26px; }
    .ip-card { padding: 34px 20px; border-radius: 22px; }
    .grid, .tools-grid { grid-template-columns: 1fr; }
    .ad-box.leaderboard { min-height: 100px; }
    .tool-form select { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
