/* VPNJungle - static VPN + proxy directory styles. Light/dark aware. */
:root {
  --bg: #f5f8f8;
  --bg-elev: #ffffff;
  --bg-elev-2: #f0f2f8;
  --text: #14161c;
  --text-muted: #5a6072;
  --border: #e2e5ee;
  --brand: #0d9488;
  --brand-2: #4f46e5;
  --accent: #10b981;
  --danger: #dc2626;
  --shadow: 0 1px 3px rgba(16, 22, 40, 0.08), 0 6px 20px rgba(16, 22, 40, 0.06);
  --radius: 14px;
  --maxw: 1180px;
}
:root[data-theme='dark'] {
  --bg: #0c0e14;
  --bg-elev: #151824;
  --bg-elev-2: #1d2130;
  --text: #eef0f6;
  --text-muted: #a2a9bd;
  --border: #262b3a;
  --brand: #2dd4bf;
  --brand-2: #a5b4fc;
  --accent: #34d399;
  --danger: #f87171;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c0e14;
    --bg-elev: #151824;
    --bg-elev-2: #1d2130;
    --text: #eef0f6;
    --text-muted: #a2a9bd;
    --border: #262b3a;
    --brand: #60a5fa;
    --brand-2: #a78bfa;
    --accent: #34d399;
    --danger: #f87171;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; padding: 12px 18px; max-width: var(--maxw); margin: 0 auto; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo .mark { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 1rem; }
.header-search { flex: 1 1 220px; min-width: 160px; }
.header-search input {
  width: 100%; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-elev-2); color: var(--text); font-size: 0.95rem;
}
.header-search input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: var(--text-muted); padding: 6px 10px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; }
.main-nav a:hover { background: var(--bg-elev-2); color: var(--text); text-decoration: none; }
.theme-toggle { background: var(--bg-elev-2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; width: 36px; height: 34px; cursor: pointer; font-size: 1rem; }

/* Hero */
.hero { padding: 54px 0 30px; text-align: center; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 12px; letter-spacing: -0.03em; }
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 700px; margin: 0 auto 22px; }
.hero-search { max-width: 560px; margin: 0 auto; display: flex; gap: 8px; }
.hero-search input { flex: 1; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); font-size: 1rem; box-shadow: var(--shadow); }
.hero-search button { padding: 13px 22px; border-radius: 12px; border: none; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; cursor: pointer; font-size: 1rem; }

/* Sections */
section { padding: 26px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.section-head h2 { font-size: 1.4rem; margin: 0; letter-spacing: -0.02em; }
.section-head a { font-size: 0.9rem; font-weight: 600; }

/* Card grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(16,22,40,0.14); }
.card a.card-link { color: inherit; display: flex; flex-direction: column; height: 100%; }
.card a.card-link:hover { text-decoration: none; }
.card .thumb { aspect-ratio: 16 / 10; background: var(--bg-elev-2); position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rank-chip { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--brand); color: #fff; font-weight: 800; font-size: 0.8rem; border-radius: 999px; padding: 3px 10px; box-shadow: var(--shadow); }
.card-body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-title { font-weight: 800; font-size: 1.02rem; line-height: 1.3; margin: 0; }
.card-meta { font-size: 0.84rem; color: var(--text-muted); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.price { font-weight: 800; color: var(--accent); font-size: 0.95rem; }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-elev-2); color: var(--text-muted); border: 1px solid var(--border); }
.badge.type { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); border-color: transparent; }

/* Score pills & bars */
.score-pill { display: inline-grid; place-items: center; min-width: 44px; padding: 3px 9px; border-radius: 9px; font-weight: 800; font-size: 0.92rem; color: #fff; }
.score-pill.big { font-size: 1.5rem; padding: 8px 16px; border-radius: 12px; }
.score-pill.great { background: #059669; }
.score-pill.good { background: #2563eb; }
.score-pill.ok { background: #d97706; }
.score-pill.poor { background: #dc2626; }
.rating-line { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.rating-outof { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 32px; max-width: 760px; }
.score-row { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: 10px; font-size: 0.9rem; }
.score-label { color: var(--text-muted); font-weight: 600; }
.score-track { height: 10px; border-radius: 999px; background: var(--bg-elev-2); border: 1px solid var(--border); overflow: hidden; }
.score-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 999px; }
.score-num { font-weight: 800; text-align: right; }

/* Host hero */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); padding: 18px 0 6px; }
.breadcrumb a { color: var(--text-muted); }
.host-hero { display: grid; grid-template-columns: 460px 1fr; gap: 34px; padding: 14px 0 8px; }
@media (max-width: 860px) { .host-hero { grid-template-columns: 1fr; } }
.shot-wrap { min-width: 0; }
.shot-wrap img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: var(--bg-elev-2); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot-caption { font-size: 0.78rem; color: var(--text-muted); margin: 8px 2px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 800; color: var(--brand); margin: 6px 0 2px; }
.host-info h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 2px 0 4px; letter-spacing: -0.02em; }
.host-attrs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.host-attrs .badge { font-size: 0.8rem; padding: 4px 11px; }
.host-verdict { color: var(--text); font-size: 1.02rem; margin: 6px 0 16px; max-width: 62ch; }
.retail-pill { display: inline-block; background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: 999px; padding: 9px 15px; font-size: 0.9rem; color: var(--text-muted); }
.retail-pill strong { color: var(--text); }
.quick-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.reviewed-date { font-size: 0.8rem; color: var(--text-muted); margin-top: 14px; }

/* CTAs */
.store-cta {
  display: inline-block; padding: 10px 16px; border-radius: 10px; font-weight: 800; color: #fff !important;
  white-space: nowrap; text-align: center; font-size: 0.9rem; background: var(--brand);
}
.store-cta:hover { text-decoration: none; filter: brightness(1.08); }
.store-cta.primary { padding: 13px 22px; font-size: 1rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.mini-cta { font-weight: 700; font-size: 0.85rem; white-space: nowrap; }

/* Pros & cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; }
@media (max-width: 720px) { .proscons { grid-template-columns: 1fr; } }
.pc-col { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.pc-col h2 { font-size: 1.1rem; margin: 0 0 10px; }
.pc-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pc-col li { padding-left: 24px; position: relative; font-size: 0.95rem; }
.pc-col.pros li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.pc-col.cons li::before { content: '✕'; position: absolute; left: 0; color: var(--danger); font-weight: 800; }
.pc-col.pros { border-top: 3px solid var(--accent); }
.pc-col.cons { border-top: 3px solid var(--danger); }

/* Comparison tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); background: var(--bg-elev); }
table.cmp { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 640px; }
table.cmp th, table.cmp td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp thead th { color: var(--text-muted); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg-elev-2); position: sticky; top: 0; }
table.cmp thead th[data-sort-col] { cursor: pointer; user-select: none; }
table.cmp thead th[data-sort-col]:hover { color: var(--text); }
table.cmp thead th.sorted-asc::after { content: ' ↑'; }
table.cmp thead th.sorted-desc::after { content: ' ↓'; }
table.cmp tbody tr:hover { background: var(--bg-elev-2); }
table.cmp tbody th { color: var(--text-muted); font-weight: 600; width: 200px; }
.plan-sub { display: block; font-size: 0.76rem; color: var(--text-muted); font-weight: 500; }
.yes { color: var(--accent); font-weight: 800; }
.no { color: var(--text-muted); }
tr.f-hidden { display: none; }

/* Filter chips */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.fchip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev);
  color: var(--text-muted); font-weight: 600; font-size: 0.85rem; cursor: pointer; box-shadow: var(--shadow);
}
.fchip:hover { border-color: var(--brand); color: var(--text); }
.fchip.active { background: var(--brand); color: #fff; border-color: transparent; }

/* Facts */
.fact-table { border-collapse: collapse; width: 100%; max-width: 620px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.fact-table th, .fact-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: none; }
.fact-table th { color: var(--text-muted); font-weight: 600; width: 40%; }
.fact-table td { font-weight: 700; }
.fact-list { margin: 0; padding-left: 22px; max-width: 70ch; }
.fact-list li { margin-bottom: 6px; }

/* Review prose */
.prose { max-width: 740px; }
.prose p { margin: 0 0 15px; font-size: 1rem; line-height: 1.7; }
.review-prose h2, .plans h2, .scorecard h2, .facts h2, .faq h2, .notable h2, .verdict-cta h2 { font-size: 1.3rem; margin-bottom: 12px; }
.as-of { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 14px; max-width: 78ch; }

/* FAQ */
.faq details { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow); max-width: 780px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 2px; color: var(--text-muted); }

/* Verdict CTA */
.verdict-cta { background: var(--bg-elev); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 12px; padding: 22px 26px; box-shadow: var(--shadow); max-width: 780px; }
.verdict-cta p { margin: 0 0 16px; max-width: 65ch; }

/* Roundups */
.roundup-list { display: flex; flex-direction: column; gap: 22px; }
.roundup-entry { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.re-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.re-head h2 { margin: 0; font-size: 1.3rem; }
.re-rank { font-weight: 900; font-size: 1.1rem; color: var(--brand); }
.re-cols { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
@media (max-width: 760px) { .re-cols { grid-template-columns: 1fr; } }
.re-shot img { border-radius: 10px; border: 1px solid var(--border); aspect-ratio: 16/10; object-fit: cover; object-position: top; width: 100%; }
.re-body p { margin: 0 0 10px; }
.re-bestfor { color: var(--text-muted); font-size: 0.92rem; }
.re-pros { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.re-pros li { padding-left: 22px; position: relative; font-size: 0.9rem; }
.re-pros li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.re-ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Compare pages */
.vs-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: start; padding: 10px 0; }
@media (max-width: 720px) { .vs-grid { grid-template-columns: 1fr; } .vs-mid { display: none; } }
.vs-col { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: center; }
.vs-col img { border-radius: 10px; border: 1px solid var(--border); aspect-ratio: 16/10; object-fit: cover; object-position: top; width: 100%; margin-bottom: 12px; }
.vs-col h2 { margin: 0 0 6px; font-size: 1.25rem; }
.vs-col .rating-line { justify-content: center; }
.vs-mid { align-self: center; font-weight: 900; font-size: 1.4rem; color: var(--text-muted); }
.vs-table td.win { font-weight: 800; color: var(--brand); }

/* Chips / browse */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text); font-weight: 600; box-shadow: var(--shadow);
}
.chip:hover { text-decoration: none; border-color: var(--brand); }
.chip .count { color: var(--text-muted); font-size: 0.82rem; font-weight: 600; }
.browse-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.browse-card { padding: 20px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.browse-card h3 { margin: 0; font-size: 1.1rem; }
.browse-card p { margin: 0; color: var(--text-muted); font-size: 0.88rem; flex: 1; }
.browse-card .count { color: var(--brand); font-size: 0.84rem; font-weight: 700; }
.browse-card:hover { text-decoration: none; border-color: var(--brand); }

/* Page title */
.page-title { padding: 22px 0 6px; }
.page-title h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 6px; letter-spacing: -0.02em; }
.page-title p { color: var(--text-muted); margin: 0; max-width: 80ch; }

/* Search */
#search-status { color: var(--text-muted); margin: 10px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; background: var(--bg-elev); }
.footer-inner { padding: 30px 18px; max-width: var(--maxw); margin: 0 auto; display: grid; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.disclosure { color: var(--text-muted); font-size: 0.85rem; max-width: 860px; }
.copyright { color: var(--text-muted); font-size: 0.82rem; }

/* Utility */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.empty { padding: 40px; text-align: center; color: var(--text-muted); }
.notice { background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; font-size: 0.88rem; color: var(--text-muted); margin: 16px 0; }
.notice-wrap { padding-top: 0; }

/* ---------------------------------------------------------------------------
   VPN + proxy specific components
   --------------------------------------------------------------------------- */

/* Logging / privacy badges */
.log-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 9px;
  border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.log-badge.ok-good { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.log-badge.ok-mid { background: color-mix(in srgb, #d97706 18%, transparent); color: #b45309; }
:root[data-theme='dark'] .log-badge.ok-mid { color: #fbbf24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .log-badge.ok-mid { color: #fbbf24; } }
.log-badge.ok-bad { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.log-badge.ok-neutral { background: var(--bg-elev-2); color: var(--text-muted); border-color: var(--border); }

.alliance { display: inline-block; margin-left: 6px; font-size: 0.72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.alliance.good { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.alliance.warn { background: color-mix(in srgb, #d97706 18%, transparent); color: #b45309; }
:root[data-theme='dark'] .alliance.warn { color: #fbbf24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .alliance.warn { color: #fbbf24; } }

/* Privacy block on review pages */
.privacy-block .fact-table { max-width: 780px; }
.privacy-block th { width: 34%; }

/* Feature checklist */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; max-width: 900px; }
.feature {
  display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 10px;
  background: var(--bg-elev); border: 1px solid var(--border); font-size: 0.88rem; font-weight: 600;
}
.feature .fmark { font-weight: 900; }
.feature.on .fmark { color: var(--accent); }
.feature.off { color: var(--text-muted); }
.feature.off .fmark { color: var(--danger); }

/* Hero stat strip + privacy report stats */
.hero-stats { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 20px; color: var(--text-muted); font-size: 0.92rem; }
.hero-stats strong { color: var(--text); font-size: 1.05rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 12px 0 20px; }
.stat { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.stat-num { display: block; font-size: 1.9rem; font-weight: 900; letter-spacing: -0.02em; color: var(--brand); }
.stat-label { color: var(--text-muted); font-size: 0.88rem; }

/* Home page promo block */
.promo-block {
  background: var(--bg-elev); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 22px 26px; box-shadow: var(--shadow); max-width: 900px; margin-bottom: 20px;
}
.promo-block h2 { margin: 0 0 8px; font-size: 1.25rem; }
.promo-block p { margin: 0; color: var(--text-muted); max-width: 70ch; }

/* Footer legal note */
.legal-note { color: var(--text-muted); font-size: 0.82rem; max-width: 860px; }
