:root {
  --bg: #f6f8fc; --surface: #ffffff; --surface-2: #f8fafd;
  --text: #0f1b2d; --muted: #56657c; --faint: #8a97ab; --line: #e3e8f1; --line-2: #d6dde9;
  --brand: #1a4f8a; --brand-2: #2596d1; --accent: #16b3a0;
  --chip: #edf3fb; --code: #0f1b2d; --code-text: #d7e3f4; --code-dim: #7d8ea8;
  --ok: #16a34a; --warn: #d97706; --bad: #dc2626;
  --shadow: 0 1px 2px rgba(15,27,45,.04), 0 12px 32px -16px rgba(15,27,45,.18);
  --hero-a: #e6eefb; --hero-b: #f6f8fc;
}
:root[data-theme="dark"] {
  --bg: #0a1224; --surface: #111c33; --surface-2: #0e182c;
  --text: #e8eef8; --muted: #9fb0c8; --faint: #6f819c; --line: #1e2c47; --line-2: #2a3b5c;
  --brand: #5aa9ea; --brand-2: #7cc5f2; --accent: #2dd4bf;
  --chip: #16233e; --code: #070d1a; --code-text: #d7e3f4; --code-dim: #6f819c;
  --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 16px 40px -20px rgba(0,0,0,.7);
  --hero-a: #0f2244; --hero-b: #0a1224;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--vt-bar-h, 0px); }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--brand); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { height: 28px; width: auto; display: block; }
.brand .tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
              border-left: 1px solid var(--line-2); padding-left: 10px; white-space: nowrap; }
.logo-dark { display: none !important; } :root[data-theme="dark"] .logo-dark { display: block !important; } :root[data-theme="dark"] .logo-light { display: none !important; }
.controls { display: flex; gap: 8px; }
.lang, .ctl { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; text-decoration: none; cursor: pointer;
        border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 600 13px/1 inherit; }
.lang:hover, .ctl:hover { border-color: var(--brand-2); }
.ctl svg { width: 16px; height: 16px; }
.ctl .sun { display: none; } :root[data-theme="dark"] .ctl .sun { display: block; } :root[data-theme="dark"] .ctl .moon { display: none; }

.hero { background: radial-gradient(900px 420px at 10% -20%, var(--hero-a), transparent 60%), var(--hero-b); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 40px; padding-bottom: 40px; }
h1 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.01em; }
.lead { color: var(--muted); margin: 0 0 22px; max-width: 640px; }
.bigip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 20px 22px; border-radius: 16px;
         background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.bigip .label { width: 100%; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* İki satır: önce IPv4, sonra IPv6. Bağlanılan adres sunucuda (SSI) yazılır, diğeri testten gelir. */
.iprow { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.iprow + .iprow { padding-top: 12px; border-top: 1px solid var(--line); }
.iprow .fam { flex: 0 0 52px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.bigip .ip { font-size: clamp(20px, 4.2vw, 34px); font-weight: 700; word-break: break-all; line-height: 1.2; flex: 1 1 240px; min-width: 0; }
.bigip .ip:empty::before { content: '…'; color: var(--muted); }
.bigip .ip.yok { color: var(--muted); font-weight: 600; font-family: inherit; }
.iprow .btn[hidden] { display: none; }
.bigip-act { width: 100%; display: flex; justify-content: flex-end; }
@media (max-width: 520px) { .iprow .fam { flex-basis: 100%; } .bigip-act { justify-content: flex-start; } }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
       border: 1px solid var(--brand); background: var(--brand); color: #fff; font: 600 14px/1 inherit; text-decoration: none; white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--line-2); }
.btn:hover { filter: brightness(1.08); }
.btn svg { width: 16px; height: 16px; }

section { padding: 28px 0 4px; }
h2 { font-size: 20px; margin: 0 0 12px; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pill { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.pill.ok { color: var(--ok); } .pill.no { color: var(--faint); }
dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: 14px; }
.actions[hidden] { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lat { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.lat:last-of-type { border-bottom: 0; }
.lat b { font-variant-numeric: tabular-nums; }
pre { background: var(--code); color: var(--code-text); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; margin: 0; }
pre .c { color: var(--code-dim); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--muted); }
footer { padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
footer a { color: inherit; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg);
         padding: 8px 14px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.card .note { margin: 8px 0 0; }
dd.full { grid-column: 1 / -1; }
