:root {
  --bg: #060913;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #e8ebf4;
  --muted: #8b93a9;
  --dim: #5f677d;
  --blue: #3b76ff;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --good: #34d399;
  --ok: #a3e635;
  --mid: #fbbf24;
  --bad: #fb923c;
  --dead: #f43f5e;
  --radius: 8px;
  --r-ctl: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: #9dbbff; text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(59, 118, 255, .45); }

/* ---------- Arka plan ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.a1 { width: 720px; height: 720px; left: -180px; top: -260px;
  background: radial-gradient(circle, #1f4fff 0%, transparent 65%); animation: drift1 22s ease-in-out infinite alternate; }
.a2 { width: 640px; height: 640px; right: -200px; top: -120px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 65%); animation: drift2 26s ease-in-out infinite alternate; opacity: .4; }
.a3 { width: 800px; height: 520px; left: 30%; top: 55%;
  background: radial-gradient(circle, #0891b2 0%, transparent 65%); animation: drift3 30s ease-in-out infinite alternate; opacity: .25; }
@keyframes drift1 { to { transform: translate(160px, 120px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-140px, 180px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-220px, -140px) scale(1.2); } }
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.noise {
  position: absolute; inset: -50%; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Üst bar ---------- */
/* Opak üst bar: yarı saydam + blur iken alttan geçen içerik bulanık görünüyordu. */
.top {
  position: sticky; top: 0; z-index: 20;
  background: #070a15;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .25s, border-color .25s;
}
.top.scrolled { border-bottom-color: rgba(255,255,255,.09); box-shadow: 0 8px 24px -12px rgba(0,0,0,.8); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { display: block; height: 24px; width: auto; }
.brand-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px 5px 9px; border-radius: var(--r-ctl); color: #cfe0ff;
  background: rgba(59,118,255,.12); border: 1px solid rgba(59,118,255,.3);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.top-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.top-links a { color: var(--muted); }
.top-links a:hover { color: #fff; }
.top-cta { padding: 7px 14px; border-radius: var(--r-ctl); border: 1px solid var(--border-2); color: var(--text) !important; background: var(--surface); }
.top-cta:hover { border-color: rgba(255,255,255,.3); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 72px 0 34px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-size: 13px; color: #b9c6e4; padding: 6px 14px 6px 12px; border-radius: var(--r-ctl);
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
}
.pulse-ring { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.pulse-ring::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--cyan); animation: ring 1.8s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hero h1 {
  margin: 0 auto; max-width: 860px;
  font-size: clamp(34px, 6vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 750;
}
.grad {
  background: linear-gradient(100deg, #7aa2ff 0%, #22d3ee 35%, #a78bfa 70%, #7aa2ff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s linear infinite;
}
@keyframes sheen { to { background-position: -250% 0; } }
.lead { margin: 20px auto 0; max-width: 620px; color: var(--muted); font-size: clamp(15px, 1.8vw, 18px); }

.reveal { opacity: 0; transform: translateY(14px); filter: blur(6px); animation: rise .9s var(--ease) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .26s; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

/* ---------- Kart ---------- */
.card {
  position: relative;
  /* backdrop-filter YOK: arkadaki hareketli aurora her karede yeniden bulanıklaştırılıp
     sonuç ekranını kilitliyordu. Yarı opak zemin aynı cam görünümünü veriyor. */
  background: linear-gradient(180deg, rgba(20,27,48,.82), rgba(12,17,32,.86));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 80px -30px rgba(0,0,0,.7);
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(122,162,255,.35), transparent 30%, transparent 75%, rgba(122,162,255,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6;
}

/* ---------- Form ---------- */
.form { max-width: 880px; margin: 0 auto; padding: 14px; }
.tabs {
  position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 6px;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.05);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  position: relative; z-index: 1; flex: 1 0 auto;
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 600 14px var(--font); padding: 10px 16px; border-radius: var(--r-ctl);
  transition: color .25s;
}
.tabs button:hover { color: #d8def0; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs button:focus-visible { outline: 2px solid rgba(122,162,255,.7); outline-offset: -2px; }
.tab-ind {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--r-ctl);
  background: #2f66f0;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 4px 12px -6px rgba(47,102,240,.8);
  transition: transform .45s var(--spring), width .45s var(--spring);
}

/* Birleşik arama çubuğu: input + buton tek çerçevede, buton sağa gömülü */
.target-row {
  display: flex; align-items: stretch; gap: 6px; margin-top: 14px; padding: 5px;
  background: rgba(0,0,0,.34); border: 1px solid var(--border-2); border-radius: 6px;
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 1px 2px rgba(0,0,0,.4) inset;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.target-row:focus-within {
  border-color: rgba(76,130,255,.75); background: rgba(0,0,0,.42);
  box-shadow: 0 0 0 4px rgba(59,118,255,.14), 0 1px 2px rgba(0,0,0,.4) inset;
}
.input-shell { position: relative; flex: 1; min-width: 0; }
.i-globe { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--dim); stroke-width: 1.6; transition: stroke .3s; }
.input-shell:focus-within .i-globe { stroke: var(--cyan); }
input, select {
  font: inherit; color: var(--text);
  background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: var(--r-ctl);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
input:focus, select:focus { outline: none; border-color: rgba(59,118,255,.7); box-shadow: 0 0 0 4px rgba(59,118,255,.15); background: rgba(0,0,0,.4); }
#target {
  width: 100%; height: 50px; padding: 0 14px 0 42px; font-size: 17px; font-family: var(--mono); letter-spacing: -.01em;
  border: 0; background: transparent; border-radius: var(--r-ctl);
}
#target:focus { border: 0; box-shadow: none; background: transparent; }
.i-globe { left: 13px; }
#target::placeholder { color: var(--dim); font-family: var(--font); }

/* Ana buton: solda etiket, sağda koyu kare ikon hücresi */
.btn-primary {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-width: 164px; height: 50px; padding: 0 5px 0 22px; cursor: pointer;
  border: 1px solid #4d86ff; border-radius: var(--r-ctl);
  font: 600 15px var(--font); letter-spacing: .015em; color: #fff;
  background: linear-gradient(180deg, #3b7bff 0%, #2862f0 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 -1px 0 rgba(0,0,0,.18) inset, 0 6px 16px -8px rgba(37,99,235,.9);
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
  transition: background .2s, border-color .2s, box-shadow .2s, transform .12s;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #4b87ff 0%, #2f6bf6 100%); border-color: #6b9bff;
  box-shadow: 0 1px 0 rgba(255,255,255,.32) inset, 0 -1px 0 rgba(0,0,0,.18) inset, 0 8px 22px -8px rgba(37,99,235,1);
}
.btn-primary:active { transform: translateY(1px); background: linear-gradient(180deg, #2a64f0, #2358d8); box-shadow: 0 1px 2px rgba(0,0,0,.3) inset; }
.btn-primary:focus-visible { outline: 2px solid #9dbbff; outline-offset: 3px; }
.btn-ic {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 3px;
  background: rgba(8,20,60,.28); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
  transition: background .2s;
}
.btn-primary:hover .btn-ic { background: rgba(255,255,255,.16); }
.btn-arrow { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; transition: transform .3s var(--spring); }
.btn-primary:hover .btn-arrow { transform: translateX(2px); }
.btn-spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-primary.busy { pointer-events: none; }
.btn-primary.busy .btn-arrow { display: none; }
.btn-primary.busy .btn-spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.opt { display: flex; flex-direction: column; gap: 5px; min-width: 110px; animation: optIn .35s var(--ease); }
@keyframes optIn { from { opacity: 0; transform: translateY(-4px); } }
.opt label { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); padding-left: 2px; }
.opt select, .opt input { height: 40px; padding: 0 12px; font-size: 14px; }
.opt select {
  appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a9' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.opt select option { background: #0e1426; }
#opt-custom input { width: 220px; }
#port { width: 110px; }
#resolver { width: 150px; }
.opt.check { flex-direction: row; align-items: center; gap: 10px; align-self: flex-end; height: 40px; cursor: pointer; font-size: 14px; color: var(--muted); }
.opt.check input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 36px; height: 20px; border-radius: 3px; background: rgba(255,255,255,.12); transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 2px; background: #fff; transition: transform .3s var(--spring); }
.opt.check input:checked + .switch { background: var(--blue); }
.opt.check input:checked + .switch::after { transform: translateX(16px); }
.opt.check input:focus-visible + .switch { box-shadow: 0 0 0 3px rgba(59,118,255,.4); }

.quota { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 0 2px; font-size: 12.5px; color: var(--dim); }
.quota-bar { width: 90px; height: 4px; border-radius: 1px; background: rgba(255,255,255,.08); overflow: hidden; }
.quota-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--blue)); transition: width .8s var(--ease); }

.alert {
  max-width: 880px; margin: 16px auto 0; padding: 12px 16px; border-radius: var(--r-ctl); font-size: 14px;
  color: #ffd1d8; background: rgba(244,63,94,.1); border: 1px solid rgba(244,63,94,.3);
  animation: shake .45s var(--ease);
}
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* ---------- Sonuçlar ---------- */
.results { margin-top: 34px; display: grid; gap: 16px; animation: rise .7s var(--ease); }
.map-card { padding: 22px 22px 0; overflow: hidden; }
.res-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.res-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.res-head h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; font-family: var(--mono); font-weight: 600; word-break: break-all; }
.res-sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.res-actions { display: flex; gap: 8px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-ctl); cursor: pointer;
  font: 600 13px var(--font); letter-spacing: .01em; color: #dbe3f5;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 1px 2px rgba(0,0,0,.35);
  transition: background .2s, border-color .2s, color .2s;
}
.btn-ghost svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; opacity: .75; transition: opacity .2s; }
.btn-ghost:hover:not(:disabled) { color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.05)); border-color: rgba(255,255,255,.24); }
.btn-ghost:hover:not(:disabled) svg { opacity: 1; }
.btn-ghost:active:not(:disabled) { background: rgba(255,255,255,.04); box-shadow: 0 1px 2px rgba(0,0,0,.35) inset; }
.btn-ghost:focus-visible { outline: 2px solid #9dbbff; outline-offset: 2px; }
.btn-ghost:disabled { opacity: .4; cursor: default; }

.map { position: relative; margin: 18px -22px 0; aspect-ratio: 360 / 136; }
.map svg, .map canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map .probe { transform-box: fill-box; transform-origin: center; animation: pop .6s var(--spring) both; cursor: pointer; }
.map .probe-core { stroke: rgba(6,9,19,.9); stroke-width: .35; transition: fill .4s; }
/* Dalga sonuç gelince 3 kez yayılır; onlarca nokta sürekli animasyonla sayfayı yormasın. */
.map .probe-wave { fill: none; stroke-width: .5; transform-box: fill-box; transform-origin: center; opacity: 0; animation: wave 2.2s var(--ease) 3; }
.map .probe.pending .probe-wave { animation: none; }
.map .probe.pending .probe-core { fill: #6b7896; animation: blink 1s ease-in-out infinite; }
.map .probe.pending .probe-wave { stroke: #6b7896; }
.map .probe.local .probe-core { stroke: #fff; stroke-width: .5; }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
@keyframes wave { from { transform: scale(1); opacity: .9; } to { transform: scale(4.5); opacity: 0; } }
@keyframes blink { 50% { opacity: .35; } }
.map .scan { animation: scan 3.2s linear infinite; }
.map.done .scan { display: none; }
@keyframes scan { from { transform: translateX(-34px); } to { transform: translateX(380px); } }
.map-tip {
  position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 12px));
  padding: 8px 11px; border-radius: var(--r-ctl); font-size: 12.5px; white-space: nowrap; line-height: 1.45;
  background: rgba(10,14,28,.94); border: 1px solid var(--border-2); box-shadow: 0 10px 30px rgba(0,0,0,.5);
  opacity: 0; transition: opacity .15s;
}
.map-tip.show { opacity: 1; }
.map-tip b { font-family: var(--mono); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); margin: 0 -22px; }
.stat { padding: 16px 22px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-k { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.stat-v { margin-top: 4px; font: 650 24px var(--mono); letter-spacing: -.02em; }
.stat-v small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.stat-v.sm { font-size: 16px; line-height: 1.9; font-family: var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { height: 2px; margin: 0 -22px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet)); transition: width .5s var(--ease), opacity .6s; box-shadow: 0 0 12px var(--cyan); }
.progress.done span { opacity: 0; }

.table-card { padding: 6px; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim);
  padding: 12px 14px; white-space: nowrap; border-bottom: 1px solid var(--border);
}
tbody tr.row { animation: rowIn .5s var(--ease) both; transition: background .2s; }
tbody tr.row.expandable { cursor: pointer; }
tbody tr.row:hover { background: rgba(255,255,255,.03); }
tbody tr.row.hl { background: rgba(59,118,255,.12); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
tbody td { padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.045); white-space: nowrap; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); font-size: 13.5px; }
.loc { display: flex; align-items: center; gap: 11px; }
.cc {
  display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 5px; border-radius: 3px;
  font: 700 10.5px var(--mono); letter-spacing: .04em; color: #cdd7f0;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08);
}
.loc-main { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.loc-sub { font-size: 12px; color: var(--muted); }
.net { max-width: 240px; overflow: hidden; text-overflow: ellipsis; color: #c3cbe0; }
.net small { display: block; color: var(--dim); font-family: var(--mono); font-size: 11.5px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 3px;
  font: 600 12px var(--font); border: 1px solid transparent;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-good { color: var(--good); background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.22); }
.b-mid { color: var(--mid); background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.22); }
.b-bad { color: var(--dead); background: rgba(244,63,94,.1); border-color: rgba(244,63,94,.25); }
.b-wait { color: var(--muted); background: rgba(255,255,255,.05); border-color: var(--border); }
.b-wait::before { animation: blink 1s ease-in-out infinite; }
.tag-nz {
  font: 700 10px var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px;
  color: #fff; background: #2f66f0;
}
.tag-ring { font: 700 10px var(--font); letter-spacing: .06em; padding: 2px 7px; border-radius: 3px; color: #b8f3ff; background: rgba(34,211,238,.14); border: 1px solid rgba(34,211,238,.3); }
tr.local-row { background: linear-gradient(90deg, rgba(59,118,255,.12), transparent 60%); }

.lat { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.lat-v { font-family: var(--mono); font-weight: 600; min-width: 64px; }
.lat-bar { flex: 1; height: 5px; min-width: 60px; border-radius: 1px; background: rgba(255,255,255,.06); overflow: hidden; }
.lat-bar span { display: block; height: 100%; border-radius: inherit; transform-origin: left; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.spark i { display: block; width: 4px; border-radius: 1.5px; animation: grow-y .6s var(--spring) both; transform-origin: bottom; }
@keyframes grow-y { from { transform: scaleY(0); } }
.skel { display: inline-block; height: 10px; width: 70px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.13), rgba(255,255,255,.05)); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }
.chev { width: 16px; height: 16px; fill: none; stroke: var(--dim); stroke-width: 2; transition: transform .3s var(--spring); vertical-align: middle; }
tr.open .chev { transform: rotate(90deg); stroke: var(--text); }
tr.detail td { padding: 0; background: rgba(0,0,0,.22); white-space: normal; }
.detail-in { padding: 14px 18px 16px; animation: rise .45s var(--ease); }
.detail-in pre { margin: 0; font: 12.5px/1.6 var(--mono); color: #b9c3dc; white-space: pre-wrap; word-break: break-all; }
.hops { width: 100%; font-size: 13px; }
.hops th { font-size: 10.5px; padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: left; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.hops td { padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,.04); font-family: var(--mono); font-size: 12.5px; }
.hops td.h-host { font-family: var(--font); white-space: normal; word-break: break-all; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; font-size: 13px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; font-family: var(--mono); word-break: break-all; }
.answers { font-family: var(--mono); font-size: 13px; white-space: normal; max-width: 460px; word-break: break-all; }
.empty { padding: 30px; text-align: center; color: var(--muted); }

/* ---------- IP bilgisi ---------- */
.results > .map-card { order: 0; }
.results > .ipcard.compact { order: 1; }
.results > .table-card { order: 2; }
.ipcard { padding: 22px; animation: rise .6s var(--ease); }
.ip-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; margin-top: 18px; align-items: start; }
.ip-kv { margin: 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.ip-kv-row { display: grid; grid-template-columns: 170px 1fr; animation: rowIn .5s var(--ease) both; }
.ip-kv-row:nth-child(odd) { background: rgba(255,255,255,.022); }
.ip-kv-row + .ip-kv-row { border-top: 1px solid rgba(255,255,255,.05); }
.ip-kv dt { padding: 10px 14px; color: var(--muted); font-size: 13px; border-right: 1px solid rgba(255,255,255,.05); }
.ip-kv dd { margin: 0; padding: 10px 14px; font-size: 14px; word-break: break-word; min-width: 0; }
.ip-kv dd a { color: #9dbbff; }
.ip-kv .loc { gap: 9px; }
.mono { font-family: var(--mono); font-size: 13.5px; }
.strong { font-weight: 700; color: #fff; }
.muted { color: var(--dim); }
.tag-v {
  display: inline-block; padding: 1px 7px; border-radius: 3px; vertical-align: 1px;
  font: 600 11px var(--mono); color: #fcd34d; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.25);
}
.ip-map { position: relative; aspect-ratio: 360 / 136; border-radius: 6px; overflow: hidden; background: rgba(0,0,0,.25); border: 1px solid var(--border); position: sticky; top: 84px; }
.ip-map canvas, .ip-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pin-core { fill: var(--cyan); stroke: #fff; stroke-width: .6; filter: drop-shadow(0 0 2px rgba(34,211,238,.9)); }
.pin-ring { fill: none; stroke: var(--cyan); stroke-width: .5; transform-box: fill-box; transform-origin: center; animation: pinRing 2.4s var(--ease) infinite; }
.pin-ring.r2 { animation-delay: 1.2s; }
@keyframes pinRing { from { transform: scale(1); opacity: .9; } to { transform: scale(7); opacity: 0; } }
.ip-src { margin: 14px 0 0; font-size: 12px; color: var(--dim); }
.ip-src a { color: var(--muted); }
.ip-loading { display: grid; gap: 12px; padding: 8px 0; }
.ip-loading .skel { width: 100%; height: 16px; }
.ip-loading .skel:nth-child(2) { width: 70%; }
.ip-loading .skel:nth-child(3) { width: 45%; }

.ipcard.compact { padding: 14px 18px; }
.ipc-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ipc-ip { display: flex; flex-direction: column; }
.ipc-ip .res-kicker { margin: 0; }
.ipc-addr { font: 650 17px var(--mono); }
.ipc-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 11px; border-radius: var(--r-ctl);
  font-size: 13px; color: #d5dcef; background: rgba(255,255,255,.045); border: 1px solid var(--border);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip b { font: 700 11px var(--mono); color: var(--cyan); letter-spacing: .02em; }
.chip .cc { height: 18px; min-width: 26px; font-size: 10px; }

/* ---------- Özellikler ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 70px 0 20px; }
.feat {
  padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.025); border: 1px solid var(--border);
  transition: transform .4s var(--spring), border-color .3s, background .3s;
}
.feat:hover { transform: translateY(-4px); border-color: rgba(122,162,255,.35); background: rgba(255,255,255,.04); }
.feat-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 6px; background: rgba(59,118,255,.16); border: 1px solid rgba(122,162,255,.3); }
.feat-ic svg { width: 21px; height: 21px; fill: none; stroke: #bcd0ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin: 16px 0 6px; font-size: 16.5px; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }
.reveal-scroll { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .3s, background .3s; }
.reveal-scroll.in { opacity: 1; transform: none; }
.reveal-scroll.in:hover { transform: translateY(-4px); }
.reveal-scroll:nth-child(2) { transition-delay: .08s; }
.reveal-scroll:nth-child(3) { transition-delay: .16s; }

.foot { border-top: 1px solid rgba(255,255,255,.05); margin-top: 60px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px 0 34px; font-size: 13px; color: var(--dim); }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 50; transform: translate(-50%, 20px); opacity: 0;
  padding: 11px 18px; border-radius: var(--r-ctl); font-size: 14px; font-weight: 600;
  background: rgba(14,20,38,.95); border: 1px solid var(--border-2); box-shadow: 0 16px 40px rgba(0,0,0,.5);
  transition: transform .4s var(--spring), opacity .3s; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .hero { padding: 44px 0 26px; }
  .top-links a:not(.top-cta) { display: none; }
  .target-row { flex-direction: column; gap: 5px; }
  .btn-primary { width: 100%; }
  .opt { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .opt select, .opt input, #opt-custom input, #port, #resolver { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .features { grid-template-columns: 1fr; margin-top: 44px; }
  .map-card { padding: 18px 16px 0; }
  .map, .stats, .progress { margin-left: -16px; margin-right: -16px; }
  .stat { padding: 14px 16px; }
  .res-head h2 { font-size: 20px; }
  .net { max-width: 150px; }
  .ipcard { padding: 18px 16px; }
  .ip-body { grid-template-columns: 1fr; }
  .ip-map { position: relative; top: 0; order: -1; }
  .ip-kv-row { grid-template-columns: 1fr; }
  .ip-kv dt { padding: 9px 14px 0; border-right: 0; font-size: 12px; }
  .ip-kv dd { padding: 2px 14px 10px; }
  .res-actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-scroll { opacity: 1; transform: none; filter: none; }
}

/* Sayı kutusundaki tarayıcı okları tasarıma uymuyor */
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
