/* ==========================================================================
   VPSHosting.blog — Best VPN Services Directory & Rankings (2026 Edition)
   Dedicated Stylesheet: /assets/css/vpn.css
   ========================================================================== */

/* ---------- VPN Hero Section ---------- */
.vpn-hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 15% -10%, rgba(16, 185, 129, 0.24), transparent 70%),
    radial-gradient(850px 420px at 85% 20%, rgba(59, 130, 246, 0.22), transparent 70%),
    linear-gradient(180deg, #070d1a 0%, #0c1527 100%);
  color: #ffffff;
  padding: 18px 0 48px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vpn-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent);
}

.vpn-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 18px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.vpn-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}
.vpn-breadcrumb a:hover {
  color: #34d399;
}

.vpn-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.vpn-badge-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: vpnPulse 2s infinite;
}
@keyframes vpnPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.vpn-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #ffffff;
}
.vpn-hero h1 .text-highlight {
  background: linear-gradient(135deg, #34d399 0%, #10b981 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vpn-hero p.vpn-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 740px;
  margin-bottom: 28px;
}

/* VPN Spec Ribbon */
.vpn-spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 860px;
}
.vpn-spec-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 14px 18px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.vpn-spec-box:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.4);
}
.vpn-spec-box strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.vpn-spec-box strong .plus {
  color: #34d399;
  font-size: 1.2rem;
}
.vpn-spec-box span {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  display: block;
}

/* Quick Jump Sticky Navigation */
.vpn-quick-nav {
  position: sticky;
  top: 70px;
  z-index: 990;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
@media (max-width: 991px) {
  .vpn-quick-nav {
    top: 64px;
    padding: 8px 0;
  }
}
[data-theme="dark"] .vpn-quick-nav {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: #1e293b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Scroll margin offset for jump targets */
#vpn-table-section,
#vpn-spotlights,
#vpn-cards-section,
#vpn-protocols-guide,
#vpn-streaming-matrix,
#vpn-jurisdiction-guide,
#vpn-faq-section,
#vpn-filter-toolbar {
  scroll-margin-top: 135px;
}
@media (max-width: 991px) {
  #vpn-table-section,
  #vpn-spotlights,
  #vpn-cards-section,
  #vpn-protocols-guide,
  #vpn-streaming-matrix,
  #vpn-jurisdiction-guide,
  #vpn-faq-section,
  #vpn-filter-toolbar {
    scroll-margin-top: 115px;
  }
}
.vpn-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.vpn-nav-link {
  font-size: 0.82rem;
  font-weight: 650;
  color: #64748b;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.18s ease;
}
.vpn-nav-link:hover,
.vpn-nav-link.active {
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
}
[data-theme="dark"] .vpn-nav-link:hover,
[data-theme="dark"] .vpn-nav-link.active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
}

/* ---------- VPN Filter Toolbar ---------- */
.vpn-filter-toolbar {
  margin-top: -38px;
  position: relative;
  z-index: 15;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.02);
  margin-bottom: 30px;
}
[data-theme="dark"] .vpn-filter-toolbar {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5);
}

.vpn-type-pill-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  -webkit-overflow-scrolling: touch;
}
[data-theme="dark"] .vpn-type-pill-strip {
  border-bottom-color: #1e293b;
}

.vpn-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}
[data-theme="dark"] .vpn-pill-btn {
  background: #1e293b;
  color: #cbd5e1;
  border-color: #334155;
}
.vpn-pill-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
.vpn-pill-btn.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* ---------- Dedicated VPN Comparison Table ---------- */
.vpn-table-card {
  background: var(--card, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 35px -15px rgba(15, 23, 42, 0.08);
  margin-bottom: 40px;
}
.vpn-table-card table {
  margin: 0;
  width: 100%;
  min-width: 960px;
  border-collapse: separate;
  border-spacing: 0;
}
.vpn-table-card thead th {
  background: #090e1a;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 14px;
  border: none;
  white-space: nowrap;
}
.vpn-table-card tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  vertical-align: middle;
}
.vpn-table-card tbody tr {
  transition: background-color 0.15s ease;
}
.vpn-table-card tbody tr:hover {
  background-color: rgba(16, 185, 129, 0.035);
}

/* Sticky Action Column */
@media (min-width: 992px) {
  .vpn-table-card th.col-actions-sticky,
  .vpn-table-card td.col-actions-sticky {
    position: sticky;
    right: 0;
    z-index: 5;
  }
  .vpn-table-card th.col-actions-sticky {
    background: #090e1a !important;
    box-shadow: -6px 0 14px rgba(0, 0, 0, 0.2);
  }
  .vpn-table-card td.col-actions-sticky {
    background: #ffffff;
    box-shadow: -6px 0 14px rgba(15, 23, 42, 0.06);
  }
  .vpn-table-card tbody tr:hover td.col-actions-sticky {
    background: #f8fafc;
  }
  [data-theme="dark"] .vpn-table-card td.col-actions-sticky {
    background: #1e293b;
    box-shadow: -6px 0 14px rgba(0, 0, 0, 0.4);
  }
}

/* Badges & Tags */
.badge-vpn-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-weight: 850;
  font-size: 0.82rem;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.badge-vpn-rank.rank-1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}
.badge-vpn-rank.rank-2 {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #ffffff;
}
.badge-vpn-rank.rank-3 {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
}

.vpn-protocol-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  margin: 2px;
}
[data-theme="dark"] .vpn-protocol-tag {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.vpn-audit-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 0.7rem;
  font-weight: 700;
}
[data-theme="dark"] .vpn-audit-badge {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}

.vpn-feature-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 600;
  margin: 2px;
}
[data-theme="dark"] .vpn-feature-tag {
  background: #1e293b;
  color: #94a3b8;
}

/* Speed Bar */
.vpn-speed-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vpn-speed-progress {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  min-width: 60px;
}
[data-theme="dark"] .vpn-speed-progress {
  background: #334155;
}
.vpn-speed-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #3b82f6);
}

/* ---------- Spotlight Cards Grid ---------- */
.vpn-spotlight-card {
  background: var(--card, #ffffff);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 20px;
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.vpn-spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
  border-color: #10b981;
}
.vpn-spotlight-card.featured-pick {
  border-color: #10b981;
  box-shadow: 0 15px 35px -10px rgba(16, 185, 129, 0.2);
}
.vpn-spotlight-card.featured-pick::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #3b82f6);
}

.vpn-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vpn-card-logo-wrap {
  width: 140px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.vpn-card-logo-wrap img {
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
}

.vpn-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0 12px;
}
.vpn-card-price-row .currency {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink, #0f172a);
}
.vpn-card-price-row .amount {
  font-size: 2.2rem;
  font-weight: 850;
  line-height: 1;
  color: var(--ink, #0f172a);
}
.vpn-card-price-row .unit {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

/* Feature Checkmarks */
.vpn-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: #475569;
}
[data-theme="dark"] .vpn-feature-list {
  color: #cbd5e1;
}
.vpn-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.vpn-feature-list li i {
  color: #10b981;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Protocol & Guide Tables */
.vpn-guide-card {
  background: var(--card, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 30px -10px rgba(15, 23, 42, 0.06);
  margin-bottom: 30px;
}
.vpn-matrix-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.vpn-matrix-table th {
  background: #090e1a;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 14px;
}
.vpn-matrix-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  vertical-align: middle;
  font-size: 0.86rem;
}
.vpn-matrix-table tr:hover td {
  background: rgba(16, 185, 129, 0.035);
}

/* FAQ Accordion Styling */
.vpn-faq-card {
  background: var(--card, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.vpn-faq-card.open {
  border-color: #10b981;
  box-shadow: 0 6px 20px -8px rgba(16, 185, 129, 0.2);
}
.vpn-faq-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: transparent;
  user-select: none;
}
.vpn-faq-header h3 {
  font-size: 1rem;
  font-weight: 750;
  margin: 0;
  color: var(--ink, #0f172a);
}
.vpn-faq-header i.chevron {
  transition: transform 0.25s ease;
  color: #64748b;
  font-size: 1.1rem;
}
.vpn-faq-card.open .vpn-faq-header i.chevron {
  transform: rotate(180deg);
  color: #10b981;
}
.vpn-faq-body {
  padding: 0 22px 20px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #475569;
  display: none;
}
[data-theme="dark"] .vpn-faq-body {
  color: #cbd5e1;
}
.vpn-faq-card.open .vpn-faq-body {
  display: block;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .vpn-spec-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .vpn-filter-toolbar {
    margin-top: -24px;
    padding: 18px 16px;
  }
}

@media (max-width: 576px) {
  .vpn-hero {
    padding: 24px 0 45px;
  }
  .vpn-spec-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .vpn-spec-box {
    padding: 10px 12px;
  }
  .vpn-spec-box strong {
    font-size: 1.35rem;
  }
}

