.ip-page {
  --ip-green: #36e5ad;
  --ip-panel: #101317;
  --ip-border: rgba(255,255,255,.095);
  --ip-muted: rgba(255,255,255,.58);
  background: #080a0d;
}
.ip-page [hidden] { display: none !important; }
.ip-page::before { opacity: .05; }
.ip-page .site-header { position: relative; }
.ip-page .header-quick-links a[aria-current="page"] { color: #fff; }
.ip-page .header-quick-links a[aria-current="page"]::after { transform: scaleX(1); }
.ip-main,
.ip-page .site-footer { width: min(1200px, calc(100% - 40px)); }
.ip-main { padding: 68px 0 96px; }
.ip-intro { max-width: 790px; margin: 0 auto 40px; text-align: center; }
.ip-intro .eyebrow { font-size: 11px; letter-spacing: .14em; }
.ip-intro h1 {
  margin: 18px 0 20px;
  font: 700 clamp(3.2rem, 5.4vw, 4.75rem)/.96 "Space Grotesk", sans-serif;
  letter-spacing: -.06em;
}
.ip-intro h1 span { color: rgba(255,255,255,.4); }
.ip-intro p {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255,255,255,.62);
  font-size: 16px;
  line-height: 1.65;
}
.ip-loading,
.ip-error {
  min-height: 220px;
  border: 1px solid var(--ip-border);
  border-radius: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background: rgba(255,255,255,.025);
  text-align: center;
}
.ip-loading strong,
.ip-error strong { font: 700 22px/1.2 "Space Grotesk", sans-serif; }
.ip-loading small,
.ip-error p { margin: 0; color: var(--ip-muted); font-size: 13px; }
.ip-error .button { margin-top: 10px; }
.ip-spinner {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--ip-green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ip-results { display: grid; gap: 16px; }
.ip-verdict {
  min-height: 142px;
  padding: 26px 30px;
  border: 1px solid var(--ip-border);
  border-radius: 24px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 22px;
  background: linear-gradient(115deg, rgba(255,255,255,.052), rgba(255,255,255,.02));
  overflow: hidden;
  position: relative;
}
.ip-verdict::after {
  position: absolute;
  width: 280px;
  height: 280px;
  top: -170px;
  right: 3%;
  border-radius: 50%;
  content: "";
  background: rgba(36,221,169,.11);
  filter: blur(42px);
  pointer-events: none;
}
.ip-verdict[data-level="warning"]::after { background: rgba(255,183,77,.13); }
.ip-verdict[data-level="danger"]::after { background: rgba(255,93,113,.14); }
.verdict-mark {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #07110e;
  background: var(--ip-green);
  box-shadow: 0 14px 34px rgba(36,221,169,.16);
  font-size: 26px;
  font-weight: 800;
}
[data-level="warning"] .verdict-mark { background: #ffbf5e; }
[data-level="danger"] .verdict-mark { background: #ff7083; }
.verdict-copy small,
.overview-card > small,
.card-heading small {
  color: rgba(255,255,255,.45);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.verdict-copy h2 {
  margin: 6px 0;
  font: 700 clamp(1.65rem, 2.7vw, 2.25rem)/1.05 "Space Grotesk", sans-serif;
  letter-spacing: -.04em;
}
.verdict-copy p { max-width: 680px; margin: 0; color: var(--ip-muted); font-size: 14px; line-height: 1.5; }
.verdict-actions { position: relative; z-index: 1; display: flex; gap: 8px; }
.mask-button,
.refresh-button,
.mini-button {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(0,0,0,.28);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.mask-button { min-height: 40px; padding: 0 16px; }
.refresh-button { width: 40px; height: 40px; font-size: 20px; }
.mask-button:hover,
.refresh-button:hover,
.mini-button:hover { color: #fff; border-color: rgba(36,221,169,.42); background: rgba(36,221,169,.1); transform: translateY(-1px); }
.ip-overview { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 16px; }
.overview-card,
.check-card {
  border: 1px solid var(--ip-border);
  border-radius: 22px;
  background: var(--ip-panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 16px 50px rgba(0,0,0,.08);
}
.overview-card {
  min-height: 134px;
  padding: 24px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}
.overview-card > strong {
  font: 700 clamp(1.4rem, 2.45vw, 2rem)/1 "Space Grotesk", sans-serif;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.overview-card > span,
.overview-card div > span { color: var(--ip-muted); font-size: 13px; }
#country-flag {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 25px;
  margin-right: 4px;
  border: 1px solid rgba(54,229,173,.22);
  border-radius: 8px;
  color: var(--ip-green);
  background: rgba(54,229,173,.08);
  font: 800 10px/1 "Manrope", sans-serif;
  letter-spacing: .08em;
  vertical-align: .22em;
}
.overview-card--score { flex-direction: row; align-items: center; gap: 18px; }
.overview-card--score > div:last-child { display: flex; flex-direction: column; gap: 5px; }
.overview-card--score > div:last-child > strong { font-size: 16px; }
.score-copy { min-width: 0; flex: 1; }
.trust-meter {
  --score: 0;
  height: 6px;
  margin-top: 5px;
  position: relative;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff6578 0 25%, #ffaf55 25% 50%, #e7cf61 50% 75%, #36e5ad 75% 100%);
}
.trust-meter i {
  width: 12px;
  height: 12px;
  position: absolute;
  top: 50%;
  left: clamp(0px, calc(var(--score) * 1%), 100%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: #101317;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
  transform: translate(-50%, -50%);
}
.trust-ticks { display: flex !important; flex-direction: row !important; justify-content: space-between; }
.trust-ticks span { color: rgba(255,255,255,.35) !important; font-size: 8px !important; }
.score-ring {
  --score: 0;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  position: relative;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: radial-gradient(circle at center, var(--ip-panel) 59%, transparent 61%), conic-gradient(var(--ip-green) calc(var(--score)*1%), rgba(255,255,255,.08) 0);
}
.score-ring strong { font: 700 24px/1 "Space Grotesk", sans-serif; }
.score-ring small { color: rgba(255,255,255,.45); font-size: 9px; }
.ip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-card { min-height: auto; padding: 27px 28px 25px; }
.check-card--wide { grid-column: 1/-1; }
.card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 21px; }
.card-heading h2 { margin: 3px 0 0; font: 700 20px/1.2 "Space Grotesk", sans-serif; letter-spacing: -.025em; }
.card-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--ip-green);
  background: rgba(36,221,169,.08);
  box-shadow: inset 0 0 0 1px rgba(36,221,169,.12);
  font: 700 18px/1 "Space Grotesk", sans-serif;
}
.card-heading--action div { flex: 1; }
.mini-button { min-height: 36px; padding: 0 14px; white-space: nowrap; }
.mini-button--quiet { border-color: transparent; background: transparent; color: rgba(255,255,255,.48); }
.detail-list { margin: 0; }
.detail-list div,
.status-list div {
  min-height: 50px;
  border-top: 1px solid rgba(255,255,255,.075);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.detail-list dt,
.status-list span { color: rgba(255,255,255,.55); font-size: 13px; }
.detail-list dd {
  margin: 0;
  max-width: 60%;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}
.status-list b {
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.67);
  background: rgba(255,255,255,.065);
  font-size: 11px;
}
.status-list b.is-ok { color: #65ebbc; background: rgba(36,221,169,.1); }
.status-list b.is-warn { color: #ffce7c; background: rgba(255,183,77,.1); }
.status-list b.is-bad { color: #ff929f; background: rgba(255,93,113,.1); }
.card-note { margin: 18px 0 0; color: rgba(255,255,255,.48); font-size: 12px; line-height: 1.6; }
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.service-grid > div {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 11px;
  background: rgba(255,255,255,.018);
}
.service-logo {
  width: 36px;
  height: 36px;
  grid-row: 1/3;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1a1e23;
  font: 800 11px/1 "Space Grotesk", sans-serif;
}
.service-grid strong { align-self: end; font-size: 14px; }
.service-grid b { align-self: start; color: rgba(255,255,255,.48); font-size: 11px; }
.service-grid b.is-ok { color: #52e4b4; }
.service-grid b.is-bad { color: #ff7b8c; }
.service-grid b.is-loading { color: #ffcb76; }
.webrtc-state {
  min-height: 130px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 17px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 24px;
  text-align: center;
}
.webrtc-state strong { font-size: 16px; }
.webrtc-state p { max-width: 390px; margin: 8px 0 0; color: var(--ip-muted); font-size: 13px; line-height: 1.5; }
.leak-state:has(.leak-result) { display: block; padding: 8px 20px; text-align: left; }
.leak-result > div {
  min-height: 48px;
  border-top: 1px solid rgba(255,255,255,.075);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.leak-result > div:first-child { border-top: 0; }
.leak-result span { color: rgba(255,255,255,.55); font-size: 12px; }
.leak-result strong { max-width: 62%; font-size: 12px; line-height: 1.35; text-align: right; overflow-wrap: anywhere; }
.leak-result b { padding: 7px 10px; border-radius: 999px; font-size: 10px; text-align: right; }
.leak-result b.is-safe { color: #65ebbc; background: rgba(36,221,169,.1); }
.leak-result b.is-warning { color: #ffce7c; background: rgba(255,183,77,.1); }
.history-list { display: grid; gap: 3px; }
.history-row {
  min-height: 56px;
  padding: 9px 12px;
  border-top: 1px solid rgba(255,255,255,.075);
  display: grid;
  grid-template-columns: 145px minmax(0,1fr) auto;
  align-items: center;
  gap: 16px;
}
.history-row time { color: rgba(255,255,255,.5); font-size: 12px; }
.history-row strong { font-size: 14px; overflow-wrap: anywhere; }
.history-row span { color: rgba(255,255,255,.6); font-size: 12px; text-align: right; }
.history-empty { padding: 24px 0; color: rgba(255,255,255,.5); font-size: 13px; text-align: center; }
.ip-explain {
  margin-top: 32px;
  padding: 38px 40px;
  border-radius: 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  color: #06100b;
  background: linear-gradient(135deg, #5cf0b8, #28d98b);
}
.ip-explain h2 {
  max-width: 650px;
  margin: 11px 0 10px;
  font: 700 clamp(2rem, 3.5vw, 3rem)/1 "Space Grotesk", sans-serif;
  letter-spacing: -.05em;
}
.ip-explain p { max-width: 610px; margin: 0; color: rgba(6,16,11,.68); font-size: 14px; line-height: 1.5; }
.ip-explain .eyebrow { color: rgba(6,16,11,.6); font-size: 10px; }
.ip-explain .button { flex: 0 0 auto; color: #fff; background: #0b0e0c; box-shadow: none; }

@media (max-width: 980px) {
  .ip-overview { grid-template-columns: 1fr 1fr; }
  .overview-card--score { grid-column: 1/-1; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .ip-explain { display: block; }
  .ip-explain .button { margin-top: 24px; }
}

@media (max-width: 700px) {
  .ip-main,
  .ip-page .site-footer { width: min(100% - 24px, 1200px); }
  .ip-main { padding: 42px 0 72px; }
  .ip-intro { margin-bottom: 30px; text-align: left; }
  .ip-intro .eyebrow { font-size: 10px; }
  .ip-intro h1 { margin: 14px 0 16px; font-size: clamp(2.45rem, 11.5vw, 3.2rem); line-height: .98; }
  .ip-intro p { font-size: 14px; line-height: 1.55; }
  .ip-verdict { padding: 21px; grid-template-columns: auto 1fr; gap: 16px; }
  .verdict-mark { width: 52px; height: 52px; border-radius: 16px; font-size: 20px; }
  .verdict-copy h2 { font-size: 23px; }
  .verdict-copy p { font-size: 13px; }
  .verdict-actions { grid-column: 1/-1; }
  .mask-button { flex: 1; }
  .ip-overview { grid-template-columns: 1fr 1fr; gap: 12px; }
  .overview-card { min-height: 118px; padding: 19px; }
  .overview-card > strong { font-size: clamp(1.05rem, 5vw, 1.35rem); }
  .overview-card > span,
  .overview-card div > span { font-size: 11px; }
  .overview-card--score { grid-column: 1/-1; min-height: 116px; }
  .score-ring { width: 72px; height: 72px; flex-basis: 72px; }
  .trust-meter { max-width: 220px; }
  .ip-grid { grid-template-columns: 1fr; gap: 12px; }
  .check-card--wide { grid-column: auto; }
  .check-card { padding: 21px 20px 20px; }
  .card-heading { margin-bottom: 17px; }
  .card-heading h2 { font-size: 18px; }
  .card-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
  .detail-list div,
  .status-list div { min-height: 47px; }
  .detail-list dt,
  .status-list span,
  .detail-list dd { font-size: 12px; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .service-grid > div { min-height: 82px; padding: 12px; gap: 3px 8px; }
  .service-logo { width: 31px; height: 31px; border-radius: 9px; }
  .service-grid strong { font-size: 12px; }
  .service-grid b { font-size: 10px; }
  .card-note { font-size: 11px; }
  .history-row { grid-template-columns: 1fr auto; gap: 5px 10px; }
  .history-row time { grid-column: 1/-1; }
  .ip-explain { margin-top: 20px; padding: 29px 24px; }
  .ip-explain h2 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .ip-explain .button { width: 100%; font-size: 11px; }
}

@media (max-width: 430px) {
  .overview-card { padding: 17px; }
  .overview-card--ip > strong { font-size: 17px; }
  .card-heading--action { align-items: flex-start; flex-wrap: wrap; }
  .card-heading--action .mini-button { margin-left: 51px; }
}
