:root {
  --bg: #0a0b10;
  --surface: #12131c;
  --surface-elevated: #181a26;
  --border: #2a2d3d;
  --text: #e8eaf2;
  --muted: #9498ab;
  --neon: #5ce0a0;
  --neon-muted: #5ce0a055;
  --violet: #b897f5;
  --violet-muted: #b897f540;
  --magenta: #e879c9;
  --accent: #7eb8ff;
  --accent-dim: #7eb8ff55;
  --ok: #3fb950;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(ellipse 100% 70% at 0% -10%, var(--violet-muted), transparent 55%),
    radial-gradient(ellipse 90% 50% at 100% 0%, var(--neon-muted), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg);
  z-index: 100;
}

.skip:focus {
  left: 0;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(165deg, var(--surface-elevated) 0%, var(--surface) 55%, #0f1018 100%);
  padding: 1.75rem 0;
  box-shadow:
    0 1px 0 0 rgba(92, 224, 160, 0.12),
    0 12px 40px -20px rgba(184, 151, 245, 0.25);
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.85rem);
}

.brand-mark {
  flex-shrink: 0;
  line-height: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(184, 151, 245, 0.45),
    0 0 24px -6px rgba(92, 224, 160, 0.35),
    0 0 36px -10px rgba(184, 151, 245, 0.3);
}

.brand-logo {
  width: clamp(5.7rem, 14.4vw, 9rem);
  height: clamp(5.7rem, 14.4vw, 9rem);
  display: block;
  object-fit: contain;
}

.brand-hero {
  flex: 1;
  min-width: 0;
}

header.site h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(115deg, #8fffc9 0%, var(--text) 35%, #dcc4ff 72%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  header.site h1 {
    color: var(--text);
    text-shadow: 0 0 32px rgba(184, 151, 245, 0.45);
  }
}

header.site .tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 58ch;
}

header.site .tagline a {
  color: var(--violet);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 151, 245, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

header.site .tagline a:hover {
  color: var(--neon);
  border-bottom-color: rgba(92, 224, 160, 0.55);
}

header.site .refs {
  margin-top: 0.9rem;
  font-size: 0.875rem;
}

header.site .refs a {
  color: var(--accent);
  transition: color 0.15s ease;
}

header.site .refs a:hover {
  color: var(--neon);
}

main {
  padding: 2rem 0 3rem;
}

.panel {
  background: linear-gradient(145deg, rgba(184, 151, 245, 0.07) 0%, var(--surface) 42%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 1px 0 0 rgba(92, 224, 160, 0.06);
}

.panel p {
  margin: 0 0 0.75rem;
}

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

.panel a {
  color: var(--accent);
  transition: color 0.15s ease;
}

.panel a:hover {
  color: var(--violet);
}

h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 0.45rem;
  background: linear-gradient(90deg, var(--neon), var(--violet), transparent 65%) no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
}

label.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#filter {
  width: 100%;
  max-width: 28rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(10, 11, 16, 0.65);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#filter:focus {
  outline: none;
  border-color: rgba(184, 151, 245, 0.45);
  box-shadow: 0 0 0 2px rgba(92, 224, 160, 0.15), 0 0 20px -8px rgba(184, 151, 245, 0.35);
}

.count {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.vpn-lede {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.vpn-lede a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.vpn-lede a:hover {
  color: var(--neon);
  border-bottom-color: rgba(92, 224, 160, 0.45);
}

#vpn-filter {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(10, 11, 16, 0.65);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#vpn-filter:focus {
  outline: none;
  border-color: rgba(184, 151, 245, 0.45);
  box-shadow: 0 0 0 2px rgba(92, 224, 160, 0.15), 0 0 20px -8px rgba(184, 151, 245, 0.35);
}

.vpn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
  margin-bottom: 2.25rem;
  position: relative;
}

/* faint crt-style lines behind cards (gaps only; keeps text readable) */
.vpn-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(92, 224, 160, 0.35) 3px,
    rgba(92, 224, 160, 0.35) 4px
  );
  border-radius: 10px;
}

.vpn-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(92, 224, 160, 0.14);
  border-radius: 8px;
  background: linear-gradient(
    155deg,
    rgba(10, 22, 18, 0.55) 0%,
    rgba(18, 20, 30, 0.97) 42%,
    var(--surface) 100%
  );
  box-shadow:
    inset 0 1px 0 0 rgba(92, 224, 160, 0.07),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vpn-card:hover {
  border-color: rgba(92, 224, 160, 0.42);
  box-shadow:
    0 0 0 1px rgba(92, 224, 160, 0.12),
    0 0 28px -10px rgba(92, 224, 160, 0.35),
    0 10px 32px -18px rgba(184, 151, 245, 0.2),
    inset 0 1px 0 0 rgba(92, 224, 160, 0.1);
}

.vpn-card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

/* hud frame + recolor monochrome svgs to site neon */
.vpn-mark {
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #0c1612 0%, #0a1210 38%, #060a0a 100%);
  border: 1px solid rgba(92, 224, 160, 0.45);
  box-shadow:
    0 0 16px -4px rgba(92, 224, 160, 0.45),
    0 0 0 1px rgba(120, 255, 200, 0.12),
    inset 0 0 20px rgba(92, 224, 160, 0.06),
    inset 0 1px 0 0 rgba(180, 255, 220, 0.08);
  overflow: hidden;
}

.vpn-card:hover .vpn-mark {
  border-color: rgba(140, 255, 200, 0.75);
  box-shadow:
    0 0 22px -2px rgba(92, 224, 160, 0.55),
    0 0 40px -12px rgba(92, 224, 160, 0.35),
    0 0 0 1px rgba(184, 151, 245, 0.2),
    inset 0 0 24px rgba(92, 224, 160, 0.1),
    inset 0 1px 0 0 rgba(220, 255, 235, 0.12);
}

/* black glyph -> mint neon (simple-icons); glow reads cyberpunk on dark hud */
.vpn-mark img {
  width: 2.85rem;
  height: 2.85rem;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(84%) sepia(18%) saturate(900%) hue-rotate(92deg) brightness(103%)
    contrast(1.05) drop-shadow(0 0 10px rgba(120, 255, 200, 0.65)) drop-shadow(0 0 2px rgba(92, 224, 160, 0.95));
}

.vpn-mark-fallback {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  color: #8fffc9;
  line-height: 1;
  text-shadow:
    0 0 14px rgba(92, 224, 160, 0.85),
    0 0 4px rgba(180, 255, 220, 0.6);
}

.vpn-card h3 {
  margin: 0;
  min-width: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  overflow-wrap: anywhere;
}

.vpn-tokens-label {
  margin: 0;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(143, 255, 201, 0.45);
}

.vpn-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.vpn-token {
  font-size: 0.65rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  background: rgba(92, 224, 160, 0.07);
  color: #a8ffd8;
  border: 1px solid rgba(92, 224, 160, 0.22);
  box-shadow: 0 0 12px -6px rgba(92, 224, 160, 0.35);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vpn-queries {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.65rem;
  min-width: 0;
  margin: 0;
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(92, 224, 160, 0.12);
  font-size: 0.75rem;
  line-height: 1.45;
}

.vpn-queries-prefix {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(143, 255, 201, 0.4);
}

.vpn-query-link {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  color: var(--violet);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 151, 245, 0.25);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.vpn-query-link:hover {
  color: var(--neon);
  border-bottom-color: rgba(92, 224, 160, 0.45);
}

.vpn-queries-none {
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

thead {
  background: linear-gradient(180deg, rgba(184, 151, 245, 0.1) 0%, var(--surface) 100%);
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:hover {
  background: rgba(92, 224, 160, 0.05);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(184, 151, 245, 0.12);
  color: #c9b8f0;
  font-size: 0.7rem;
  border: 1px solid rgba(184, 151, 245, 0.2);
}

.actions a {
  color: var(--accent);
  margin-right: 0.75rem;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.actions a:hover {
  color: var(--neon);
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
  box-shadow: 0 -1px 0 0 rgba(92, 224, 160, 0.06);
}

footer.site a {
  color: var(--violet);
  transition: color 0.15s ease;
}

footer.site a:hover {
  color: var(--neon);
}

.error {
  color: #f85149;
  padding: 1rem;
  border: 1px solid #f8514966;
  border-radius: 6px;
  background: #f8514914;
}

@media (max-width: 720px) {
  .hide-sm {
    display: none;
  }

  .brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
  }

  .brand-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  header.site .tagline {
    max-width: 38ch;
  }

  th,
  td {
    padding: 0.5rem;
  }
}
