:root {
    color-scheme: light;
    --background: #f6f7f9;
    --surface: #fff;
    --text: #15171a;
    --muted: #68707d;
    --border: #e1e5ea;
    --primary: #111827;
    --success: #147a45;
    --success-bg: #eaf8f0;
    --warning: #8a5a00;
    --warning-bg: #fff7df;
    --radius: 18px;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button { font: inherit; }

.container { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 32px; }
.header { margin-bottom: 42px; text-align: center; }
.brand { margin-bottom: 14px; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(38px, 7vw, 64px); letter-spacing: -.045em; line-height: 1; }
.subtitle { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.ip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ip-card, .help, .connection { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 28px rgb(15 23 42 / 5%); }
.ip-card { min-width: 0; padding: 28px; }
.ip-card__header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 30px; }
.protocol-badge { font-size: 14px; font-weight: 800; }
.status { border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 700; }
.status--loading { background: var(--warning-bg); color: var(--warning); }
.status--available { background: var(--success-bg); color: var(--success); }
.status--unavailable { background: #f1f3f5; color: var(--muted); }
.ip-value { display: flex; align-items: center; min-height: 72px; margin-bottom: 24px; overflow-wrap: anywhere; font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -.025em; }
.ip-value--ipv6 { font-size: clamp(18px, 3vw, 28px); }
.copy-button { width: 100%; border: 0; border-radius: 12px; padding: 13px 18px; background: var(--primary); color: #fff; cursor: pointer; font-weight: 700; transition: background 120ms ease, opacity 120ms ease, transform 120ms ease; }
.copy-button:hover:not(:disabled) { background: #293241; }
.copy-button:active:not(:disabled) { transform: translateY(1px); }
.copy-button:disabled { cursor: default; opacity: .35; }
.connection { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 18px 24px; color: var(--muted); }
.connection strong { color: var(--text); overflow-wrap: anywhere; }
.help { margin-top: 20px; padding: 24px 28px; }
.help h2 { margin: 0 0 8px; font-size: 18px; }
.help p { margin: 0; color: var(--muted); line-height: 1.6; }
.report-button { margin-top: 18px; border: 1px solid var(--primary); border-radius: 12px; padding: 11px 16px; background: transparent; color: var(--primary); cursor: pointer; font-weight: 700; }
.report-button:hover:not(:disabled) { background: var(--primary); color: #fff; }
.report-button:disabled { cursor: default; opacity: .65; }
.report-status { min-height: 24px; margin-top: 10px !important; font-size: 14px; }
.seo-content { display: grid; gap: 20px; margin-top: 20px; }
.seo-content article { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.seo-content h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.02em; }
.seo-content p { margin: 0; color: var(--muted); line-height: 1.7; }
.seo-content code { padding: 2px 5px; border-radius: 4px; background: #eef1f5; color: var(--text); font-size: .9em; }
.seo-content details { border-top: 1px solid var(--border); padding: 14px 0; }
.seo-content details:first-of-type { border-top: 0; padding-top: 0; }
.seo-content details:last-child { padding-bottom: 0; }
.seo-content summary { cursor: pointer; font-weight: 700; }
.seo-content details p { padding-top: 8px; }
.footer { margin-top: 34px; color: var(--muted); font-size: 13px; text-align: center; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; border-radius: 999px; padding: 10px 14px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; transition: opacity 160ms ease, transform 160ms ease; }
.toast--visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 700px) {
    .container { padding-top: 42px; }
    .ip-grid { grid-template-columns: 1fr; }
    .ip-card { padding: 22px; }
}
