:root {
    color-scheme: light;
    --bg-start: #f4f7fb;
    --bg-end: #dfeaf7;
    --panel: rgba(255, 255, 255, 0.88);
    --text: #152033;
    --muted: #5c6b82;
    --border: rgba(21, 32, 51, 0.10);
    --accent: #0f6cbd;
    --shadow: 0 20px 50px rgba(25, 52, 89, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 35%),
        linear-gradient(145deg, var(--bg-start), var(--bg-end));
    color: var(--text);
}

.card {
    width: min(100%, 760px);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    padding: 32px;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.intro {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.ip-grid {
    display: grid;
    gap: 16px;
}

.ip-box {
    padding: 20px 22px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 108, 189, 0.12);
}

.label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.value {
    margin: 0;
    font-size: clamp(1.1rem, 2.6vw, 1.5rem);
    line-height: 1.45;
    font-weight: 600;
    word-break: break-word;
}

.value .missing {
    display: inline;
}

.missing {
    color: var(--muted);
    font-weight: 500;
}

.footer {
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.details-panel {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.details-header {
    margin-bottom: 18px;
}

.details-header h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.details-intro {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.details-grid {
    display: grid;
    gap: 16px;
}

.detail-box {
    padding: 20px 22px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 108, 189, 0.12);
}

.detail-block + .detail-block {
    margin-top: 18px;
}

.detail-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.detail-value,
.whois-value {
    margin: 0;
    line-height: 1.55;
    word-break: break-word;
}

.whois-value {
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92rem;
    color: var(--text);
}

@media (max-width: 640px) {
    .card {
        padding: 24px 20px;
        border-radius: 20px;
    }
}

