/* ============================================================
   ipradar.eu — Hostinger stiliaus dizainas
   DM Sans · violetinė · apvalūs kampai · minkšti šešėliai
   ============================================================ */

:root {
  /* Šviesi tema (numatytoji) */
  --bg: #ffffff;
  --bg-soft: #f5f4ff;
  --bg-soft-2: #efedfd;
  --surface: #ffffff;
  --heading: #0a0a2c;
  --text: #56546e;
  --text-muted: #8e8ca8;
  --border: #ebe9f7;
  --border-strong: #ddd9f2;
  --primary: #673de6;
  --primary-hover: #5a2fd6;
  --primary-soft: #efebff;
  --primary-softer: #f6f3ff;
  --ring: rgba(103, 61, 230, 0.13);
  --gradient: linear-gradient(135deg, #673de6 0%, #9d7bf4 100%);
  --success: #17b88a;
  --warn: #f0962a;
  --danger: #e5484d;
  --shadow-sm: 0 2px 8px rgba(20, 14, 60, 0.05);
  --shadow: 0 10px 34px rgba(73, 47, 170, 0.09);
  --shadow-lg: 0 18px 50px rgba(73, 47, 170, 0.14);
  --shadow-primary: 0 10px 26px rgba(103, 61, 230, 0.32);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --maxw: 1100px;
  --header-h: 70px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0c0a20;
  --bg-soft: #131030;
  --bg-soft-2: #1a1640;
  --surface: #16133a;
  --heading: #f4f3ff;
  --text: #b3b0d4;
  --text-muted: #807da6;
  --border: #272252;
  --border-strong: #332d63;
  --primary: #8c6cf2;
  --primary-hover: #9d83f5;
  --primary-soft: #221b50;
  --primary-softer: #1a1640;
  --ring: rgba(140, 108, 242, 0.22);
  --success: #2bd4a0;
  --warn: #f5a93f;
  --danger: #f0656a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 54px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 10px 26px rgba(140, 108, 242, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--heading); font-weight: 700; letter-spacing: -0.02em; }
::selection { background: var(--primary); color: #fff; }

/* Dekoratyvinis švytėjimas už hero */
.page-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1200px; max-width: 100%; height: 720px;
  background: radial-gradient(ellipse at top, rgba(103, 61, 230, 0.16), transparent 62%);
  z-index: -1;
  pointer-events: none;
}
[data-theme="dark"] .page-glow { background: radial-gradient(ellipse at top, rgba(140, 108, 242, 0.22), transparent 62%); }

/* ---------- Antraštė ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--gradient);
  display: grid; place-items: center;
  box-shadow: var(--shadow-primary);
}
.logo-text { font-weight: 700; font-size: 1.2rem; color: var(--heading); letter-spacing: -0.02em; }
.logo-accent { color: var(--primary); }
/* Radaro logotipas — sukasi tik spindulys (žiedai simetriški, atrodo statiški) */
.radar-svg { display: block; animation: radar-spin 3.6s linear infinite; }
@keyframes radar-spin { to { transform: rotate(360deg); } }

.header-actions { display: flex; align-items: center; gap: 6px; }
.nav-link {
  color: var(--text); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  padding: 9px 14px; border-radius: var(--r-sm);
  transition: color 0.18s, background 0.18s;
}
.nav-link:hover { color: var(--primary); background: var(--primary-softer); }

.lang-toggle { display: inline-flex; background: var(--bg-soft); border-radius: 999px; padding: 3px; margin-left: 8px; }
.lang-btn {
  padding: 6px 13px; border: none; background: transparent;
  color: var(--text); font-family: inherit; font-size: 0.8rem; font-weight: 700;
  border-radius: 999px; cursor: pointer; transition: all 0.18s;
}
.lang-btn:hover { color: var(--primary); }
.lang-btn.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.lang-btn.active:hover { color: #fff; }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-left: 4px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); color: var(--heading); cursor: pointer;
  transition: all 0.18s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-softer); }
.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: inline-flex; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 0; text-align: center; position: relative; overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }

/* Žemėlapis susilieja su hero sekcija (pilno pločio, viršuje persilieja) */
.hero-map { position: relative; width: 100%; margin-top: 46px; z-index: 1; }
.hero-map .map { width: 100%; height: 480px; margin: 0; border: none; border-radius: 0; }
.hero-map::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 190px;
  z-index: 5; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 16%, color-mix(in srgb, var(--bg) 0%, transparent) 100%);
}
.hero-map::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  z-index: 5; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, var(--bg) 16%, color-mix(in srgb, var(--bg) 0%, transparent) 100%);
}
/* Pakeliame žemėlapio valdiklius/autorystę virš apatinio gradiento */
.hero-map .leaflet-bottom { bottom: 186px; }

/* Minimalus vietos skydelis ant žemėlapio */
.map-overlay { position: absolute; inset: 0; z-index: 10; pointer-events: none; display: flex; align-items: flex-end; }
.map-overlay > .container { width: 100%; text-align: left; }
.loc-card {
  pointer-events: auto; display: inline-block;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 16px 44px rgba(20, 16, 60, 0.22);
  padding: 18px 22px; margin-bottom: 64px; max-width: 320px;
  animation: locIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes locIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.loc-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 10px; }
.loc-eyebrow .loc-pin { width: 14px; height: 14px; }
.loc-city { font-size: 1.55rem; font-weight: 700; color: var(--heading); line-height: 1.1; letter-spacing: -0.02em; }
.loc-country { font-size: 1rem; font-weight: 600; color: var(--text); margin-top: 3px; }
.loc-coords { font-size: 0.82rem; color: var(--text-muted); margin-top: 11px; }

/* Spalvotos sekcijų juostos — lengviau skaityti */
.band { width: 100%; }
.band-soft { background: var(--bg-soft); }
.band + .band { border-top: 1px solid var(--border); }
.sect { padding: 56px 0; }
.sect > .container > .sec-head .sec-title { font-size: 1.5rem; }
/* Vientisos paslaugų kortelės (vienodas stilius kaip privatumo kortelė) */
.tool-card { max-width: 880px; margin-left: auto; margin-right: auto; }

/* Kompaktiškas geografinės vietos išdėstymas */
.data-list.loc-compact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 30px; }
.loc-compact .data-row { display: block; border-bottom: none; padding: 7px 0; }
.loc-compact .data-row dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 4px; }
.loc-compact .data-row dd { text-align: left; font-size: 0.96rem; }
.loc-compact .data-row dd.mono { font-size: 0.84rem; }
@media (max-width: 760px) { .data-list.loc-compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .data-list.loc-compact { grid-template-columns: 1fr; } }

/* Animuotas radaro ekranas už hero turinio */
.radar-scope {
  position: absolute; left: 50%; top: 210px;
  width: 460px; height: 460px;
  transform: translate(-50%, -50%);
  z-index: 0; pointer-events: none;
  -webkit-mask: radial-gradient(circle, #000 32%, rgba(0,0,0,0.4) 56%, transparent 72%);
          mask: radial-gradient(circle, #000 32%, rgba(0,0,0,0.4) 56%, transparent 72%);
}
.radar-scope::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 13%, transparent), transparent 62%);
}
.radar-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar-lines { fill: none; stroke: var(--ring); stroke-width: 1; }
.radar-lines circle, .radar-lines line { vector-effect: non-scaling-stroke; }
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg,
    color-mix(in srgb, var(--primary) 40%, transparent) 0deg,
    color-mix(in srgb, var(--primary) 9%, transparent) 40deg,
    transparent 85deg, transparent 360deg);
  animation: radar-rotate 4.2s linear infinite;
}
@keyframes radar-rotate { to { transform: rotate(360deg); } }
.radar-blip {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--primary) 55%, transparent);
  transform: translate(-50%, -50%) scale(0.5); opacity: 0;
  animation: blip-flash 4.2s ease-out infinite;
}
@keyframes blip-flash {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  7% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  45% { opacity: 0.3; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
}
@media (max-width: 560px) {
  .radar-scope { width: 340px; height: 340px; top: 188px; }
}
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem; font-weight: 600; color: var(--heading);
  margin-bottom: 24px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent);
  animation: livepulse 2s ease-in-out infinite;
}
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.hero-kicker { font-size: 1rem; font-weight: 500; color: var(--text); margin-bottom: 16px; }

.ip-value-row { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.ip-value {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.05;
  color: var(--heading); word-break: break-all;
  font-variant-numeric: tabular-nums;
}
.ip-value.loading { color: var(--text-muted); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-sm);
  border: none; background: var(--primary); color: #fff;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow-primary);
  transition: transform 0.16s, background 0.16s, box-shadow 0.16s;
}
.copy-btn:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-2px); }
.copy-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.copy-btn.copied { background: var(--success); }

.ip-quick-meta { margin-top: 22px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border);
  font-size: 0.98rem; font-weight: 600; color: var(--heading);
}
.meta-chip .flag { font-size: 1.15rem; }
.meta-chip.skeleton { color: transparent; min-width: 220px; height: 42px; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.ip-dual { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.dual-item {
  min-width: 230px; text-align: left;
  padding: 16px 22px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.dual-label {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 5px;
}
.dual-value { font-size: 0.95rem; font-weight: 500; color: var(--heading); word-break: break-all; }

.hero-actions { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--heading); font-family: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.18s; box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.trust-pills { margin-top: 34px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.85rem; font-weight: 500; color: var(--text);
}
.trust-pill::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 50%; background: var(--success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Sekcijų antraštės ---------- */
.sec-head { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.sec-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ic, var(--primary)) 14%, transparent);
  color: var(--ic, var(--primary));
  display: grid; place-items: center;
  transition: transform 0.2s ease;
}
.card:hover .sec-icon { transform: scale(1.08) rotate(-3deg); }

/* Spalvų akcentai sekcijoms */
.ic-violet { --ic: #8b5cf6; }
.ic-blue   { --ic: #3b82f6; }
.ic-teal   { --ic: #0fb5a6; }
.ic-amber  { --ic: #f59e0b; }
.ic-green  { --ic: #22c55e; }
.ic-pink   { --ic: #ec4899; }
.ic-cyan   { --ic: #0ea5c4; }
.ic-indigo { --ic: #6366f1; }

/* Ikonos */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.fi { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Kompaktiškos „stat" plytelės su ikonomis */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 6px 18px; }
.stat { display: flex; align-items: center; gap: 11px; padding: 7px 0; }
.stat-ic {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ic, var(--primary)) 13%, transparent);
  color: var(--ic, var(--primary));
  transition: transform 0.18s ease;
}
.stat:hover .stat-ic { transform: scale(1.14) rotate(-5deg); }
.stat-txt { display: flex; flex-direction: column; min-width: 0; }
.stat-k { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 600; line-height: 1.3; }
.stat-v { font-size: 0.92rem; font-weight: 600; color: var(--heading); word-break: break-word; line-height: 1.35; }
.stat-v.mono { font-size: 0.8rem; font-weight: 500; }

/* Scroll-reveal animacija */
.reveal { transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1); }
html.anim .reveal:not(.in) { opacity: 0; transform: translateY(24px); }

/* Ikonų „pop" animacija kortelei pasirodžius (su laipsnišku uždelsimu) */
@keyframes iconPop { from { opacity: 0; transform: scale(0.3) rotate(-16deg); } }
html.anim .card.reveal.in .sec-icon { animation: iconPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; animation-delay: 0.06s; }
html.anim .card.reveal.in .stat-ic { animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
html.anim .card.reveal.in .stats .stat:nth-child(1) .stat-ic { animation-delay: 0.12s; }
html.anim .card.reveal.in .stats .stat:nth-child(2) .stat-ic { animation-delay: 0.18s; }
html.anim .card.reveal.in .stats .stat:nth-child(3) .stat-ic { animation-delay: 0.24s; }
html.anim .card.reveal.in .stats .stat:nth-child(4) .stat-ic { animation-delay: 0.30s; }
html.anim .card.reveal.in .stats .stat:nth-child(5) .stat-ic { animation-delay: 0.36s; }
html.anim .card.reveal.in .stats .stat:nth-child(6) .stat-ic { animation-delay: 0.42s; }
html.anim .card.reveal.in .stats .stat:nth-child(7) .stat-ic { animation-delay: 0.48s; }
html.anim .card.reveal.in .stats .stat:nth-child(8) .stat-ic { animation-delay: 0.54s; }
.sec-title { font-size: 1.18rem; font-weight: 700; }
.tool-section .sec-title { font-size: 1.5rem; }
.sec-sub { color: var(--text); font-size: 1rem; margin: -6px 0 20px; max-width: 58ch; }

/* ---------- Kortelės ---------- */
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 0; }
.card {
  position: relative;
  padding: 28px; border-radius: var(--r-lg);
  background:
    radial-gradient(125% 100% at 0% 0%, color-mix(in srgb, var(--ic, var(--primary)) 12%, transparent), transparent 55%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--ic, var(--primary)) 26%, var(--border));
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.card:hover {
  box-shadow: 0 22px 58px -18px color-mix(in srgb, var(--ic, var(--primary)) 48%, transparent);
  border-color: color-mix(in srgb, var(--ic, var(--primary)) 48%, var(--border));
  transform: translateY(-3px);
}
.card-location { grid-row: span 2; }

.map {
  width: 100%; height: 230px; margin-bottom: 18px;
  border-radius: var(--r); border: 1px solid var(--border);
  background: var(--bg-soft); z-index: 0;
}
[data-theme="dark"] .map { filter: brightness(0.85) contrast(1.05); }
.leaflet-container { font-family: inherit; background: var(--bg-soft); border-radius: var(--r); }

.data-list { display: flex; flex-direction: column; }
.data-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.data-row:last-child { border-bottom: none; }
.data-row dt { color: var(--text-muted); font-size: 0.9rem; flex-shrink: 0; }
.data-row dd { font-weight: 600; font-size: 0.93rem; text-align: right; word-break: break-word; color: var(--heading); }
.data-row dd.mono { font-size: 0.85rem; font-weight: 500; }

/* Ženkliukai */
.badge {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700;
}
.badge-ok { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.badge-warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.badge-danger { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.badge-neutral { background: var(--bg-soft-2); color: var(--text-muted); }

/* Privatumo juosta */
.privacy-banner {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 16px; margin-bottom: 16px; border-radius: var(--r);
  background: var(--bg-soft); font-size: 0.92rem; font-weight: 600; color: var(--heading);
}
.privacy-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.privacy-banner.ok { background: color-mix(in srgb, var(--success) 12%, transparent); }
.privacy-banner.ok .privacy-dot { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent); }
.privacy-banner.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.privacy-banner.warn .privacy-dot { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 22%, transparent); }

/* ---------- Įrankių sekcijos ---------- */
.tool-section { padding: 28px 0; }
.tool-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 16px; margin-left: 2px; }

.btn-primary {
  padding: 14px 28px; border: none; border-radius: var(--r-sm);
  background: var(--primary); color: #fff;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow-primary);
  transition: transform 0.16s, background 0.16s; white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.55; cursor: wait; transform: none; }

.text-input, .select-input {
  padding: 15px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--heading); font-family: inherit; font-size: 0.98rem; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.text-input::placeholder { color: var(--text-muted); }
.text-input:focus, .select-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-softer); }
.select-input { cursor: pointer; font-weight: 600; }

/* ---------- Greičio testas (išskirtinis tamsus skydelis su matuokliu) ---------- */
.speed-section { padding: 38px 0 56px; }
.speed-panel {
  position: relative; overflow: hidden;
  border-radius: 26px; padding: 34px 38px; color: #fff;
  background:
    radial-gradient(120% 130% at 10% 0%, rgba(124,92,255,0.5), transparent 52%),
    radial-gradient(120% 130% at 100% 100%, rgba(6,182,212,0.38), transparent 52%),
    linear-gradient(135deg, #241a52 0%, #1b1442 60%, #130e30 100%);
  box-shadow: 0 30px 70px -28px rgba(60,40,160,0.7);
}
.speed-panel .sec-icon { background: rgba(255,255,255,0.14); color: #fff; }
.speed-panel .sec-title { color: #fff; }
.speed-panel .sec-sub { color: rgba(255,255,255,0.72); margin: -2px 0 26px; }
.speed-head, .speed-body, .speed-progress, .speed-bottom, .speed-note { position: relative; z-index: 1; }

.speed-body { display: flex; align-items: center; gap: 42px; }
.gauge { position: relative; width: 244px; height: 244px; flex-shrink: 0; }
.gauge-svg { width: 100%; height: 100%; }
.gauge-track { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 377 503; }
.gauge-arc { fill: none; stroke: url(#gaugeGrad); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 0 503; transition: stroke-dasharray 0.35s cubic-bezier(0.16,1,0.3,1); filter: drop-shadow(0 0 7px rgba(124,92,255,0.5)); }
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-value { font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.gauge-unit { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-top: 5px; }
.gauge-phase { margin-top: 12px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); font-weight: 600; }

.speed-stats { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.speed-stat { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.speed-stat-ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,0.1); }
.speed-stat-ic svg { width: 18px; height: 18px; }
.speed-stat-ic.c-down { color: #a78bfa; } .speed-stat-ic.c-up { color: #22d3ee; }
.speed-stat-ic.c-ping { color: #34d399; } .speed-stat-ic.c-jit { color: #fbbf24; }
.speed-stat-txt { display: flex; flex-direction: column; min-width: 0; }
.speed-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.speed-stat-value b { font-size: 1.4rem; font-weight: 700; }
.speed-stat-value em { font-style: normal; font-size: 0.74rem; color: rgba(255,255,255,0.55); }

.speed-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; margin: 28px 0 18px; }
.speed-progress-bar { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #a78bfa, #22d3ee, #34d399); transition: width 0.3s ease; }
.speed-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.speed-status { color: rgba(255,255,255,0.78); font-size: 0.92rem; font-weight: 500; }
.speed-note { color: rgba(255,255,255,0.42); font-size: 0.78rem; margin-top: 16px; }
.btn-speed {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 12px; border: none;
  background: #fff; color: #241a52;
  font-family: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s; box-shadow: 0 10px 24px -8px rgba(0,0,0,0.45); white-space: nowrap;
}
.btn-speed:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(0,0,0,0.55); }
.btn-speed:disabled { opacity: 0.6; cursor: wait; transform: none; }
@media (max-width: 760px) {
  .speed-body { flex-direction: column; gap: 26px; }
  .gauge { width: 212px; height: 212px; }
  .speed-stats { width: 100%; }
}
@media (max-width: 440px) { .speed-stats { grid-template-columns: 1fr; } .speed-panel { padding: 26px 20px; } }

/* ---------- DNS / IP paieška ---------- */
/* Skirtukai (DNS / IP paieška vienoje sekcijoje) */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 13px; background: var(--bg-soft); border: 1px solid var(--border); margin-bottom: 24px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; border: none; border-radius: 9px;
  background: transparent; color: var(--text-muted); cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 600; transition: all 0.18s;
}
.tab .fi { width: 16px; height: 16px; }
.tab:hover { color: var(--primary); }
.tab.is-active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: tabIn 0.3s ease both; }
@keyframes tabIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.dns-form, .lookup-form { display: flex; gap: 12px; }
.dns-form .text-input, .lookup-form .text-input { flex: 1; }

.result-box {
  width: 100%; margin-top: 20px; padding: 20px;
  border-radius: var(--r); background: var(--bg-soft);
  border: 1px solid var(--border);
}
.result-box.error { border-color: var(--danger); color: var(--danger); font-weight: 600; }
.lookup-result-head { padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.lookup-result-ip { font-family: 'JetBrains Mono', monospace; font-size: 1.3rem; font-weight: 700; color: var(--heading); word-break: break-all; }
.lookup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }

.dns-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dns-table th {
  text-align: left; color: var(--text-muted);
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
  padding: 0 12px 12px; border-bottom: 1px solid var(--border);
}
.dns-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--heading); }
.dns-table tr:last-child td { border-bottom: none; }
.dns-val { word-break: break-all; }

/* ---------- Poraštė (centruota, kompaktiška) ---------- */
.site-footer { position: relative; margin-top: 40px; background: #0a0a2c; overflow: hidden; }
[data-theme="dark"] .site-footer { background: #08071c; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #673de6, #06b6d4, #ec4899, #f59e0b);
}
.footer-rings {
  position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
  width: 560px; height: 560px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 36px, rgba(157,123,244,0.07) 36px 37px);
  -webkit-mask: radial-gradient(circle, #000 16%, transparent 60%);
          mask: radial-gradient(circle, #000 16%, transparent 60%);
  pointer-events: none;
}
.footer-glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 440px; height: 280px;
  background: radial-gradient(circle, rgba(124,92,255,0.20), transparent 66%);
  pointer-events: none;
}
.footer-inner { position: relative; z-index: 1; padding: 40px 24px 20px; }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.footer-brand-col { max-width: 330px; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.footer-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.footer-logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--gradient); display: grid; place-items: center; box-shadow: var(--shadow-primary); }
.footer-logo-mark .radar-svg { width: 18px; height: 18px; }
.footer-logo .logo-accent { color: #9d7bf4; }
.footer-tagline { color: #a9a7c9; font-size: 0.85rem; line-height: 1.5; max-width: 42ch; margin: 11px 0 11px; }
.footer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(43, 212, 160, 0.12); border: 1px solid rgba(43, 212, 160, 0.3);
  color: #8ff0d2; font-size: 0.74rem; font-weight: 600;
}
.footer-badge .fi { width: 13px; height: 13px; color: #2bd4a0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.footer-nav a {
  color: #c7c5e0; text-decoration: none; font-size: 0.84rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; transition: color 0.18s, background 0.18s;
}
.footer-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.footer-sources { text-align: right; }
.footer-sources-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #7e7ca6; font-weight: 700; margin-bottom: 9px; }
.source-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 360px; }
.source-chip {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c7c5e0; font-size: 0.72rem; text-decoration: none; transition: all 0.18s;
}
.source-chip:hover { border-color: #9d7bf4; color: #fff; background: rgba(124, 92, 255, 0.2); transform: translateY(-2px); }
.footer-bottom {
  width: 100%; margin-top: 24px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.footer-copy { color: #7e7ca6; font-size: 0.78rem; }
.back-to-top {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.13);
  color: #fff; font-family: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer;
  transition: all 0.18s;
}
.back-to-top:hover { background: rgba(124, 92, 255, 0.25); border-color: #9d7bf4; transform: translateY(-2px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--heading); color: var(--bg);
  padding: 13px 22px; border-radius: var(--r-sm);
  font-size: 0.9rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s, transform 0.22s; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Slapukų pranešimas ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(140%);
  width: calc(100% - 36px); max-width: 660px; z-index: 90;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-inner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.cookie-ic {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary);
}
.cookie-ic .fi { width: 20px; height: 20px; }
.cookie-text { flex: 1; min-width: 220px; font-size: 0.88rem; color: var(--text); line-height: 1.55; }
.cookie-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.cookie-link { color: var(--primary); font-size: 0.86rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cookie-link:hover { text-decoration: underline; }
.cookie-btn {
  padding: 11px 22px; border: none; border-radius: var(--r-sm);
  background: var(--primary); color: #fff; font-family: inherit; font-size: 0.88rem; font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow-primary); transition: transform 0.16s, background 0.16s; white-space: nowrap;
}
.cookie-btn:hover { background: var(--primary-hover); transform: translateY(-2px); }
@media (max-width: 540px) {
  .cookie-actions { width: 100%; justify-content: space-between; }
}

/* ---------- Teisinis puslapis (privatumo politika) ---------- */
.legal { padding: 56px 0 72px; max-width: 780px; }
.legal-doc h1 { font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal-updated { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 30px; }
.legal-doc h2 { font-size: 1.2rem; margin: 32px 0 12px; }
.legal-doc p { color: var(--text); font-size: 1rem; line-height: 1.7; margin-bottom: 14px; }
.legal-doc ul { margin: 0 0 16px 0; padding-left: 22px; }
.legal-doc li { color: var(--text); font-size: 1rem; line-height: 1.7; margin-bottom: 6px; }
.legal-doc a { color: var(--primary); font-weight: 600; text-decoration: none; }
.legal-doc a:hover { text-decoration: underline; }
.legal-doc strong { color: var(--heading); font-weight: 700; }
.legal-doc code { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; background: var(--bg-soft); padding: 2px 7px; border-radius: 6px; color: var(--heading); }
.legal-footer { border-top: none; margin-top: 0; padding: 30px 0; }
.footer-link-inline { color: #9d7bf4; text-decoration: none; }
.footer-link-inline:hover { text-decoration: underline; }

/* ---------- Responsyvumas ---------- */
@media (max-width: 860px) {
  .data-grid { grid-template-columns: 1fr; }
  .card-location { grid-row: auto; }
  .speed-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .footer-main { flex-direction: column; gap: 28px; }
  .footer-brand-col { max-width: none; }
  .footer-right { align-items: flex-start; width: 100%; }
  .footer-nav { justify-content: flex-start; }
  .footer-sources { text-align: left; }
  .source-chips { justify-content: flex-start; max-width: none; }
}
@media (max-width: 560px) {
  .hero { padding: 48px 0 44px; }
  .ip-dual { flex-direction: column; width: 100%; }
  .dual-item { min-width: 0; }
  .dns-form, .lookup-form { flex-direction: column; }
  .lookup-grid { grid-template-columns: 1fr; }
  .nav-link { display: none; }
  .sec-sub { margin-left: 0; }
  .speed-bottom { flex-direction: column; align-items: stretch; }
  .speed-btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
