:root {
    --bg: #080d18;
    --surface: #111a2b;
    --surface2: #162238;
    --border: #25334a;
    --text: #e8eef8;
    --muted: #91a0b7;
    --blue: #38bdf8;
    --blue2: #2563eb;
    --green: #34d399;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.navbar {
    height: 72px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 7%;
    background: rgba(8,13,24,.95);
}

.logo {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.7px;
}

.logo span {
    color: var(--blue);
}

.logo-icon {
    color: var(--blue);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--muted);
    font-size: 14px;
    transition: .2s;
}

nav a:hover {
    color: var(--blue);
}

.container {
    max-width: 1100px;
    width: 90%;
    margin: auto;
}

.hero {
    padding: 90px 0 45px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 7px;
}

h1 {
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -2px;
}

h1 span {
    color: var(--blue);
}

.subtitle {
    color: var(--muted);
    margin: 15px auto 35px;
    max-width: 600px;
    font-size: 15px;
}

.ip-card {
    background: linear-gradient(135deg, #14223a, #101a2d);
    border: 1px solid #2c4567;
    border-radius: 18px;
    max-width: 650px;
    margin: auto;
    padding: 32px 20px;
    box-shadow: 0 20px 70px rgba(0,0,0,.2);
}

.card-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--muted);
}

.ip-address {
    color: var(--blue);
    font-size: clamp(27px, 6vw, 43px);
    font-weight: 800;
    margin: 10px 0;
    overflow-wrap: anywhere;
}

.ip-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 12px;
}

.copy-btn {
    background: var(--blue2);
    border: none;
    color: white;
    padding: 7px 14px;
    border-radius: 7px;
    cursor: pointer;
}

.section {
    padding: 35px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

h2 {
    font-size: 21px;
}

.status {
    color: var(--green);
    background: #0e2a29;
    border: 1px solid #15534b;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 11px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.info-card, .tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    min-width: 0;
}

.info-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.info-card strong {
    display: block;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.tool-card {
    display: block;
    transition: .2s;
}

.tool-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
}

.tool-icon {
    color: var(--blue);
    font-size: 30px;
    margin-bottom: 12px;
}

.tool-card h3 {
    margin-bottom: 8px;
}

.tool-card p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 15px;
}

.tool-card > span {
    color: var(--blue);
    font-size: 13px;
}

.page-content {
    min-height: 65vh;
    padding-top: 75px;
}

.page-content .subtitle {
    margin-left: 0;
}

.search-form {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    max-width: 800px;
}

input, select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: white;
    padding: 15px;
    outline: none;
    min-width: 0;
    font-size: 14px;
}

.search-form input {
    flex: 1;
}

input:focus, select:focus {
    border-color: var(--blue);
}

.search-form button {
    border: 0;
    background: var(--blue2);
    color: white;
    border-radius: 9px;
    padding: 0 22px;
    font-weight: 700;
    cursor: pointer;
}

.notice {
    background: #302219;
    border: 1px solid #704c2d;
    color: #fbbf82;
    padding: 15px;
    border-radius: 9px;
    margin: 20px 0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

th {
    color: var(--blue);
    background: var(--surface2);
}

td {
    overflow-wrap: anywhere;
}

footer {
    border-top: 1px solid var(--border);
    margin-top: 65px;
    padding: 35px 5%;
    text-align: center;
    color: var(--muted);
}

footer p {
    margin: 8px 0;
    font-size: 13px;
}

footer small {
    font-size: 11px;
}

@media(max-width: 800px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar {
        padding: 0 5%;
    }
}

@media(max-width: 550px) {
    .navbar {
        height: auto;
        min-height: 70px;
        padding: 15px 5%;
        flex-wrap: wrap;
        gap: 12px;
    }

    nav {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    nav a {
        font-size: 12px;
    }

    .hero {
        padding-top: 60px;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .info-card {
        padding: 14px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form button {
        padding: 14px;
    }

    .dns-form select {
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}