:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #121933;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-2: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --header-height: 64px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(52, 211, 153, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.site-footer__inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
  flex-wrap: wrap;
}

.site-header__inner > .site-nav {
  flex: 1 1 auto;
  justify-content: center;
}

.lang-switcher {
  position: relative;
}

.lang-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.lang-switcher__trigger::-webkit-details-marker {
  display: none;
}

.lang-switcher__icon {
  font-size: 1rem;
  line-height: 1;
}

.lang-switcher__label {
  font-size: 0.92rem;
  font-weight: 600;
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(18, 25, 51, 0.98);
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  z-index: 20;
}

.lang-switcher:not([open]) .lang-switcher__menu {
  display: none;
}

.lang-switcher__option {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
}

.lang-switcher__option:hover,
.lang-switcher__option.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  font-size: 0.85rem;
}

.brand__name {
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav__link.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(52, 211, 153, 0.18));
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.page {
  flex: 1;
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.page-hero {
  margin-bottom: 28px;
}

.page-section {
  display: grid;
  gap: 12px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.6rem);
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.6;
}

.page-seo-intro {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.card {
  background: rgba(18, 25, 51, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
}

.form.inline {
  grid-template-columns: 1fr auto;
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border-color: transparent;
}

.muted {
  color: var(--muted);
}

.ip-value {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  word-break: break-all;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.kv {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.kv .label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.kv .value {
  word-break: break-word;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

.badge.ok {
  color: var(--accent-2);
}

.badge.warn {
  color: var(--warning);
}

.badge.bad {
  color: var(--danger);
}

.score-ring {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.grade {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(52, 211, 153, 0.18));
}

.signal-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.signal {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.signal strong {
  display: block;
  margin-bottom: 4px;
}

.resolver-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.resolver-table th,
.resolver-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.whois-notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.08);
  color: var(--accent-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

.whois-providers {
  display: grid;
  gap: 10px;
}

.whois-provider {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.whois-provider summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.whois-provider summary::-webkit-details-marker {
  display: none;
}

.whois-provider__index {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
}

.whois-provider__label {
  color: var(--muted);
  font-size: 0.88rem;
}

.whois-provider__name {
  font-size: 0.92rem;
  font-weight: 700;
  word-break: break-all;
}

.whois-pre {
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 16, 32, 0.6);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 28px;
}

.site-footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__nav a {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.site-footer__legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__legal a {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__legal a:hover {
  color: var(--text);
}

.error {
  color: var(--danger);
}

.card:has(.ip-detail) {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.card:has(.privacy-panel) {
  padding: 20px;
}

.card:has(.privacy-panel) .ip-detail {
  margin-top: 4px;
}

.card:has(.browser-info) {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Browser Info Component */
.browser-info {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(18, 25, 51, 0.95);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 20px;
}

.browser-info__notes {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.browser-info__notes p {
  margin: 0;
}

.browser-info__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.browser-info__panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.browser-info__panel-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.browser-info__ua-block,
.browser-info__fp-block {
  border-radius: 12px;
  padding: 14px;
}

.browser-info__ua-block {
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.08);
}

.browser-info__fp-block {
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(96, 165, 250, 0.08);
}

.browser-info__ua-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.browser-info__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.browser-info__badge--ua {
  color: var(--accent-2);
  background: rgba(52, 211, 153, 0.15);
}

.browser-info__badge--fp {
  color: var(--accent);
  background: rgba(96, 165, 250, 0.15);
}

.browser-info__copy {
  padding: 6px 10px;
  font-size: 0.82rem;
}

.browser-info__ua,
.browser-info__fp {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  word-break: break-word;
}

.browser-info__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0;
}

.browser-info__field {
  min-width: 0;
}

.browser-info__field--full {
  grid-column: 1 / -1;
}

.browser-info__field dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.browser-info__field dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-word;
}

.browser-info__value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 500;
}

.browser-info__hint-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.browser-info__toggles {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.browser-info__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  cursor: pointer;
}

.browser-info__toggle:last-child {
  border-bottom: 0;
}

.browser-info__toggle input {
  width: auto;
  accent-color: var(--accent);
}

.browser-info__tip {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.browser-info__panel--components {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.browser-info__components {
  display: grid;
  gap: 12px;
}

.browser-info__component {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.browser-info__component-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.browser-info__component-head code {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
}

.browser-info__component-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.browser-info__component-body {
  max-height: 16rem;
  overflow: auto;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  background: rgba(0, 0, 0, 0.12);
}

.browser-info__component-row {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 12px;
  font-size: 0.78rem;
}

.browser-info__component-row code {
  color: var(--muted);
  word-break: break-all;
}

.ip-detail {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(160deg, rgba(18, 25, 51, 0.98), rgba(15, 23, 42, 0.92));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ip-detail__hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(52, 211, 153, 0.05));
}

.ip-detail__flag-wrap {
  flex-shrink: 0;
}

.ip-detail__flag {
  display: block;
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ip-detail__flag--fallback {
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.04);
}

.ip-detail__summary {
  min-width: 0;
  flex: 1;
}

.ip-detail__ip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ip-detail__ip {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ip-detail__copy {
  padding: 6px 12px;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.ip-detail__location {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
}

.ip-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ip-detail__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.ip-detail__tag--ok {
  color: var(--accent-2);
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.25);
}

.ip-detail__tag--warn {
  color: var(--warning);
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
}

.ip-detail__tag--bad {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.25);
}

.ip-detail__tag--info {
  color: var(--accent);
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.25);
}

.ip-detail__content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
}

.ip-detail__map-wrap {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  min-height: 280px;
  background: rgba(0, 0, 0, 0.15);
}

.ip-detail__map {
  flex: 1;
  width: 100%;
  min-height: 240px;
  z-index: 0;
}

.ip-detail__map--empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.ip-detail__map-attribution {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
  background: rgba(0, 0, 0, 0.12);
}

.ip-detail__map .leaflet-control-zoom {
  border: 0;
}

.ip-detail__map .leaflet-control-zoom a {
  background: rgba(18, 25, 51, 0.92);
  color: var(--text);
  border-color: var(--border);
}

.ip-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}

.ip-detail__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(18, 25, 51, 0.95);
}

.ip-detail__item--full {
  grid-column: 1 / -1;
}

.ip-detail__item-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.ip-detail__item-value {
  font-size: 0.95rem;
  word-break: break-word;
  line-height: 1.45;
}

.ip-detail__item-value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
}

.privacy-panel {
  margin-bottom: 20px;
}

.privacy-panel__title {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.privacy-panel__score {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.privacy-panel__score span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.privacy-panel__summary {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.ip-detail--fallback .ip-detail__hero {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
  }

  .site-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .form,
  .form.inline {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ip-detail__content {
    grid-template-columns: 1fr;
  }

  .ip-detail__map-wrap {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .ip-detail__grid {
    grid-template-columns: 1fr;
  }

  .ip-detail__hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .browser-info__layout {
    grid-template-columns: 1fr;
  }

  .browser-info__fields {
    grid-template-columns: 1fr;
  }

  .browser-info__component-row {
    grid-template-columns: 1fr;
  }
}

.speedtest-card {
  padding: 24px;
}

.speedtest-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.speedtest-controls__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.speedtest-size {
  display: grid;
  gap: 6px;
  min-width: 120px;
}

.speedtest-size__label {
  font-size: 0.85rem;
  color: var(--muted);
}

.speedtest-size select {
  min-width: 120px;
}

.speedtest-connection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.speedtest-connection__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.speedtest-connection__arrow {
  color: var(--muted);
}

.speedtest-flag {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.speedtest-progress {
  margin-bottom: 20px;
}

.speedtest-progress__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.speedtest-progress__bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.25s ease;
}

.speedtest-progress__bar.is-active {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.speedtest-progress__bar.is-success {
  background: linear-gradient(90deg, #059669, #34d399);
}

.speedtest-progress__bar.is-error {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

.speedtest-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.speedtest-metric {
  text-align: center;
  padding: 14px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.speedtest-metric__label {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.speedtest-metric__value {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.speedtest-card[data-status='idle'] .speedtest-metric__unit {
  display: none;
}

.speedtest-card[data-status='running'] .speedtest-metric__value,
.speedtest-card[data-status='paused'] .speedtest-metric__value {
  color: #38bdf8;
}

.speedtest-card[data-status='finished'] .speedtest-metric__value {
  color: #34d399;
}

.speedtest-card[data-status='error'] .speedtest-metric__value {
  color: #f87171;
}

.speedtest-metric__unit {
  margin-left: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.speedtest-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.speedtest-chart {
  position: relative;
  height: 130px;
}

.speedtest-result {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.08);
}

.speedtest-result__line {
  margin: 0 0 8px;
  line-height: 1.6;
}

.speedtest-result__scores {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}

.speedtest-quality--bad {
  color: #f87171;
}

.speedtest-quality--warn {
  color: #fbbf24;
}

.speedtest-quality--good {
  color: #34d399;
}

.speedtest-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.speedtest-note a {
  color: #38bdf8;
}

.speedtest-error {
  margin: 0;
}

@media (max-width: 720px) {
  .speedtest-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .speedtest-charts {
    grid-template-columns: 1fr;
  }

  .speedtest-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .speedtest-controls .btn {
    width: 100%;
  }
}

.privacy-ip-form {
  margin-bottom: 16px;
}

.form.inline.privacy-ip-form {
  grid-template-columns: 1fr auto auto;
}

.card.privacy-dashboard-card {
  padding: 0;
  overflow: hidden;
}

.privacy-dashboard {
  padding: 0;
}

.privacy-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), transparent);
}

.privacy-hero__flag img,
.privacy-flag {
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.privacy-hero__ip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.privacy-hero__ip-row h2 {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
}

.privacy-hero__ip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.privacy-hero__loc {
  margin: 8px 0 0;
  color: var(--muted);
}

.privacy-score-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 20px 24px 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.privacy-score-banner--ok {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.25);
}

.privacy-score-banner--warn {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
}

.privacy-score-banner--bad {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.25);
}

.privacy-score-banner__text {
  display: grid;
  gap: 6px;
  line-height: 1.5;
}

.privacy-score-banner__text strong {
  font-size: 1.1rem;
}

.privacy-deductions-wrap {
  margin: 16px 24px 0;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.privacy-deductions-wrap summary {
  cursor: pointer;
  color: var(--muted);
}

.privacy-deductions {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.privacy-deduction {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.privacy-deduction__badge {
  min-width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.privacy-deduction h4 {
  margin: 0 0 6px;
}

.privacy-deduction p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.privacy-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 16px 24px 0;
  border-bottom: 1px solid var(--border);
}

.privacy-tabs__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  border-bottom: 2px solid transparent;
}

.privacy-tabs__btn.is-active {
  color: var(--text);
  border-bottom-color: #6366f1;
}

.privacy-tab-panel {
  display: none;
  padding: 24px;
}

.privacy-tab-panel.is-active {
  display: block;
}

.privacy-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.privacy-overview__col {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.privacy-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  align-items: center;
}

.privacy-row:last-child {
  border-bottom: 0;
}

.privacy-row--full {
  grid-template-columns: 110px 1fr;
}

.privacy-row__label {
  color: var(--muted);
  font-size: 0.92rem;
}

.privacy-row__value {
  word-break: break-word;
}

.privacy-row__value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
}

.privacy-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid var(--border);
}

.privacy-tag--ok {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.privacy-tag--warn {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.privacy-tag--bad {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}

.privacy-env-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.privacy-env-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.privacy-env-tile__label {
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
}

.privacy-env-tile__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.privacy-env-tile__dot--ok {
  background: #34d399;
}

.privacy-env-tile__dot--bad {
  background: #f87171;
}

.privacy-details-card,
.privacy-fraud-card,
.privacy-asn {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.privacy-details-card h3,
.privacy-section-head h3 {
  margin: 0 0 14px;
}

.privacy-details-list {
  margin: 0;
}

.privacy-details-list__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.privacy-details-list__row:last-child {
  border-bottom: 0;
}

.privacy-details-list dt {
  color: var(--muted);
}

.privacy-details-list dd {
  margin: 0;
  word-break: break-word;
}

.privacy-extended {
  display: grid;
  gap: 16px;
}

.privacy-table-wrap {
  overflow-x: auto;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.privacy-table th,
.privacy-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.privacy-table th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.privacy-section-head {
  margin-bottom: 16px;
}

.privacy-section-head p {
  margin: 8px 0 0;
}

.privacy-fraud-card__score {
  font-weight: 700;
  margin-bottom: 12px;
}

.privacy-fraud-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.privacy-fraud-bar__track {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  height: 10px;
}

.privacy-fraud-seg {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.privacy-fraud-seg.is-filled,
.privacy-fraud-seg.is-active {
  background: linear-gradient(90deg, #34d399, #fbbf24, #f87171);
}

.privacy-fraud-card__summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.site-faq,
.privacy-faq {
  margin-top: 8px;
}

.site-faq__title,
.privacy-faq__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
}

.site-faq__list,
.privacy-faq__list {
  display: grid;
  gap: 12px;
}

.site-faq-item,
.privacy-faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.site-faq-item summary,
.privacy-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  line-height: 1.5;
}

.site-faq-item summary::-webkit-details-marker,
.privacy-faq-item summary::-webkit-details-marker {
  display: none;
}

.site-faq-item summary::after,
.privacy-faq-item summary::after {
  content: '';
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.site-faq-item[open] summary::after,
.privacy-faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.site-faq-item p,
.privacy-faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.legal-content {
  display: grid;
  gap: 28px;
  max-width: 760px;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.legal-section p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.75;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .site-footer__links {
    align-items: flex-start;
    width: 100%;
  }

  .privacy-overview {
    grid-template-columns: 1fr;
  }

  .privacy-env-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-row,
  .privacy-details-list__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
