/* HostingRated.best - Premium hosting comparison theme */
:root {
  --vr-brand: #10b981;
  --vr-brand-dark: #059669;
  --vr-brand-light: #d1fae5;
  --vr-ink: #0f172a;
  --vr-ink-soft: #1e293b;
  --vr-muted: #64748b;
  --vr-bg: #f8fafc;
  --vr-card: #ffffff;
  --vr-border: #e2e8f0;
  --vr-shadow: 0 10px 30px -15px rgba(15, 23, 42, 0.15);
  --vr-shadow-lg: 0 20px 50px -20px rgba(15, 23, 42, 0.25);
  --vr-radius: 14px;
  --vr-radius-sm: 10px;
}
[data-theme="dark"] {
  --vr-ink: #f1f5f9;
  --vr-ink-soft: #e2e8f0;
  --vr-muted: #94a3b8;
  --vr-bg: #0b1220;
  --vr-card: #111a2e;
  --vr-border: #1f2a44;
  --vr-shadow: 0 10px 30px -15px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html, body { background: var(--vr-bg); color: var(--vr-ink); font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
a { color: var(--vr-brand-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--vr-brand); }
img { max-width: 100%; height: auto; }
.container-xxl { max-width: 1280px; }

/* ===== Topbar ===== */
.topbar {
  background: linear-gradient(90deg, #0b1220, #0f172a);
  color: #cbd5e1;
  font-size: .82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar a { color: #e2e8f0; text-decoration: none; transition: color .15s; }
.topbar a:hover { color: #10b981; }
.topbar-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(255,255,255,.06); color: #cbd5e1 !important;
  font-size: .9rem; transition: all .15s;
}
.topbar-social:hover { background: #10b981; color: #fff !important; transform: translateY(-1px); }
.topbar-sep { color: rgba(255,255,255,.15); }
.topbar-signup {
  background: #10b981; color: #fff !important; padding: 4px 12px; border-radius: 6px;
  font-weight: 600; font-size: .78rem;
}
.topbar-signup:hover { background: #059669; color: #fff !important; }

/* ===== Main navbar ===== */
.main-nav {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vr-border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  transition: box-shadow .2s, background .2s;
}
[data-theme="dark"] .main-nav { background: rgba(17, 26, 46, 0.98); }
.main-nav.scrolled { box-shadow: 0 10px 30px -20px rgba(15, 23, 42, .2); }

.nav-wrap {
  display: flex; align-items: center; gap: 20px;
  height: 70px;
}

.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.3rem;
  color: var(--vr-ink); text-decoration: none;
  letter-spacing: -.01em;
  /* Reserve space so a custom logo doesn't reflow the navbar */
  min-height: 44px;
}
.navbar-brand:hover { color: var(--vr-ink); }
.navbar-brand .logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 6px 18px -6px rgba(16,185,129,.6);
}
.navbar-brand .brand-text { line-height: 1; }
.navbar-brand .brand-dot { color: var(--vr-brand-dark); }

/* Professional custom logo wrapper — keeps any uploaded image crisp and sized predictably */
.navbar-brand .brand-logo-img {
  display: block;
  height: var(--logo-h, 38px);
  width: auto;
  max-width: var(--logo-w, 220px);
  max-height: 52px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: opacity .15s;
}
.navbar-brand:hover .brand-logo-img { opacity: .92; }

.nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--vr-ink-soft) !important;
  font-weight: 600; font-size: .92rem;
  padding: 10px 14px !important;
  border-radius: 10px;
  text-decoration: none;
  background: transparent; border: 0; cursor: pointer;
  transition: all .15s;
}
.nav-link i { font-size: 1rem; }
.nav-link:hover, .nav-link.active {
  color: var(--vr-brand-dark) !important;
  background: rgba(16, 185, 129, .08);
}
.nav-link .chev { font-size: .7rem; transition: transform .2s; }
.has-dropdown:hover .chev { transform: rotate(180deg); }

.nav-link-deals {
  color: #d97706 !important;
  background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(245,158,11,.12));
}
.nav-link-deals:hover { color: #d97706 !important; background: linear-gradient(135deg, rgba(251,191,36,.2), rgba(245,158,11,.2)); }
.nav-badge {
  font-size: .62rem; font-weight: 800; padding: 2px 6px;
  background: #ef4444; color: #fff; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.2;
}

/* Mega menu */
.mega-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 580px; max-width: 90vw;
  background: #fff; border: 1px solid var(--vr-border);
  border-radius: 16px; padding: 16px;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .25);
  opacity: 0; visibility: hidden;
  transition: all .2s ease;
  z-index: 1040;
}
[data-theme="dark"] .mega-menu { background: var(--vr-card); }
.has-dropdown:hover .mega-menu,
.has-dropdown:focus-within .mega-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mega-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--vr-ink);
  transition: background .15s, transform .15s;
}
.mega-item:hover { background: #f8fafc; color: var(--vr-ink); transform: translateX(2px); }
[data-theme="dark"] .mega-item:hover { background: #0f1a33; }
.mega-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.05rem; flex-shrink: 0;
}
.mega-item strong { display: block; color: var(--vr-ink); font-size: .88rem; font-weight: 700; line-height: 1.2; }
.mega-item small { color: var(--vr-muted); font-size: .74rem; }

/* Right actions */
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--vr-border); background: var(--vr-card);
  color: var(--vr-ink); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s; font-size: 1rem;
}
.theme-toggle:hover { border-color: var(--vr-brand); color: var(--vr-brand-dark); }
.btn-nav-cta {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important; padding: 10px 18px;
  border-radius: 10px; font-weight: 700; font-size: .88rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 10px 20px -10px rgba(16,185,129,.6);
  transition: transform .15s;
}
.btn-nav-cta:hover { transform: translateY(-2px); color: #fff !important; }
.nav-mobile-toggle {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--vr-border); background: var(--vr-card);
  color: var(--vr-ink); font-size: 1.4rem;
  cursor: pointer;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  padding: 12px 0 20px;
  border-top: 1px solid var(--vr-border);
  margin-top: 8px;
}
.mobile-menu.open { display: block; }
.mobile-section {
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--vr-muted); padding: 14px 4px 6px;
}
.mobile-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px; color: var(--vr-ink);
  text-decoration: none; font-weight: 500; font-size: .95rem;
  border-bottom: 1px solid var(--vr-border);
}
.mobile-link:last-child { border-bottom: 0; }
.mobile-link:hover { color: var(--vr-brand-dark); }
.mobile-link i { color: var(--vr-brand); font-size: 1.1rem; width: 22px; }

@media (max-width: 991px) {
  .nav-wrap { height: 64px; }
  .main-nav { padding: 0 10px; }
}

/* Buttons */
.btn-brand { background: var(--vr-brand); border: none; color: #fff; font-weight: 600; padding: .6rem 1.2rem; border-radius: 10px; transition: all .2s; }
.btn-brand:hover { background: var(--vr-brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -10px var(--vr-brand); }
.btn-outline-brand { border: 1.5px solid var(--vr-brand); color: var(--vr-brand-dark); background: transparent; font-weight: 600; border-radius: 10px; padding: .55rem 1.1rem; }
.btn-outline-brand:hover { background: var(--vr-brand); color:#fff; }
.btn-ghost { background: transparent; color: var(--vr-ink-soft); border:1px solid var(--vr-border); }
.btn-visit {
  background: linear-gradient(135deg, var(--vr-brand), var(--vr-brand-dark));
  color:#fff; font-weight: 700; padding: .55rem 1rem; border-radius: 10px; display: inline-flex; align-items:center; gap:.4rem;
  box-shadow: 0 10px 25px -12px var(--vr-brand);
}
.btn-visit:hover { color:#fff; transform: translateY(-2px); }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 10% -20%, rgba(16,185,129,.18), transparent 60%),
    radial-gradient(1000px 400px at 110% 0%, rgba(59,130,246,.12), transparent 60%),
    linear-gradient(180deg,#0b1220 0%, #0f172a 100%);
  color:#fff; padding: 64px 0 80px; position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; }
.hero p.lead { color: #cbd5e1; max-width: 780px; }
.hero-badge { display: inline-flex; align-items:center; gap:.5rem; padding:.35rem .8rem; border-radius: 999px; background: rgba(16,185,129,.15); color:#6ee7b7; font-size: .82rem; font-weight:600; border:1px solid rgba(16,185,129,.3); }
.hero-stats { display:flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; }
.hero-stats .stat strong { display:block; font-size: 1.6rem; font-weight: 800; color:#fff; }
.hero-stats .stat span { color:#94a3b8; font-size:.85rem; }

/* Glass filter card */
.filter-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.5);
  color:#fff;
}
.filter-card label { color:#cbd5e1; font-size:.8rem; font-weight:600; text-transform: uppercase; letter-spacing: .04em; margin-bottom:.35rem; }
.filter-card .form-control, .filter-card .form-select {
  background: rgba(255,255,255,0.08); color:#fff; border:1px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: .6rem .8rem;
}
.filter-card .form-control:focus, .filter-card .form-select:focus { background: rgba(255,255,255,0.12); color:#fff; border-color: var(--vr-brand); box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.filter-card .form-control::placeholder { color: #94a3b8; }

/* Cards */
.card-premium {
  background: var(--vr-card); border: 1px solid var(--vr-border); border-radius: var(--vr-radius);
  padding: 1.4rem; box-shadow: var(--vr-shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card-premium:hover { transform: translateY(-4px); box-shadow: var(--vr-shadow-lg); border-color: rgba(16,185,129,.35); }
.card-premium h3, .card-premium h4 { color: var(--vr-ink); }

/* Provider cards */
.provider-card { display:flex; flex-direction:column; gap:1rem; height:100%; }
.provider-card .top { display:flex; align-items:center; gap:.8rem; }
.provider-card .logo { width:52px; height:52px; border-radius: 12px; background:#f1f5f9; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.provider-card .logo img { width:100%; height:100%; object-fit:contain; padding:6px; }
.provider-card h3 { margin:0; font-size: 1.05rem; }
.stars { color: #f59e0b; letter-spacing: 1px; font-size: .9rem; }
.rating-big { font-size: 2.2rem; font-weight: 800; color: var(--vr-brand-dark); }
.price-big { font-size: 1.6rem; font-weight: 800; color: var(--vr-ink); }
.price-big .per { font-size: .85rem; color: var(--vr-muted); font-weight: 500; }

/* Top 10 table */
.top10-table { background: var(--vr-card); border-radius: var(--vr-radius); overflow: hidden; border:1px solid var(--vr-border); box-shadow: var(--vr-shadow); }
.top10-table thead { background: #0f172a; color:#fff; }
.top10-table th { font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; padding: 1rem; }
.top10-table td { padding: 1rem; vertical-align: middle; border-top: 1px solid var(--vr-border); }
.top10-table tr:hover { background: #f8fafc; }
.top10-table .rank { width: 52px; height: 52px; display:inline-flex; align-items:center; justify-content:center; border-radius: 12px; font-weight: 800; color:#fff; background: linear-gradient(135deg,#475569,#334155); }
.top10-table tr:nth-child(1) .rank { background: linear-gradient(135deg,#fbbf24,#d97706); }
.top10-table tr:nth-child(2) .rank { background: linear-gradient(135deg,#cbd5e1,#64748b); }
.top10-table tr:nth-child(3) .rank { background: linear-gradient(135deg,#f97316,#c2410c); }
[data-theme="dark"] .top10-table tr:hover { background: #0f1a33; }

/* ===== Sections — single source of truth ===== */
section.section {
  padding: 72px 0;
  background: var(--vr-bg);
}
section.section.section-alt {
  background: #f1f5f9;
}
[data-theme="dark"] section.section.section-alt {
  background: #0d1428;
}
/* Hero + each section get clear visual end */
.hero { border-bottom: 1px solid transparent; }
section.section + section.section { border-top: 1px solid var(--vr-border); }
section.section.section-alt + section.section.section-alt,
.hero + section.section { border-top: 0; }

.section-title { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--vr-ink); }
.section-subtitle { color: var(--vr-muted); font-size: 1.05rem; }
.section-eyebrow { color: var(--vr-brand-dark); font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .1em; }

/* Stats counters */
.counter-card { background: linear-gradient(135deg, #065f46, #047857); color:#fff; padding: 1.5rem; border-radius: var(--vr-radius); text-align:center; }
.counter-card strong { font-size: 2.2rem; font-weight: 800; display:block; }
.counter-card span { opacity:.85; font-size: .9rem; }

/* FAQ */
.accordion-item { background: var(--vr-card); border: 1px solid var(--vr-border); border-radius: var(--vr-radius) !important; margin-bottom:.75rem; overflow:hidden; }
.accordion-button { background: var(--vr-card); color: var(--vr-ink); font-weight: 600; }
.accordion-button:not(.collapsed) { background: var(--vr-brand-light); color: var(--vr-brand-dark); }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(16,185,129,.25); }

/* Reviews / testimonials */
.review-card { background: var(--vr-card); border: 1px solid var(--vr-border); border-radius: var(--vr-radius); padding: 1.3rem; height:100%; }
.review-card .meta { display:flex; align-items:center; gap:.7rem; }
.avatar-circle { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#10b981,#059669); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }

/* Blog cards */
.blog-card { background: var(--vr-card); border:1px solid var(--vr-border); border-radius: var(--vr-radius); overflow:hidden; transition: all .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--vr-shadow-lg); }
.blog-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg,#0f172a,#1e293b); display:flex; align-items:center; justify-content:center; color: var(--vr-brand); }
.blog-card .thumb img { width:100%; height:100%; object-fit:cover; }
.blog-card .body { padding: 1.2rem; }
.blog-card h4 { font-size: 1.05rem; margin: .4rem 0; color: var(--vr-ink); }

/* Country pills */
.country-pill {
  display:inline-flex; gap:.5rem; align-items:center; padding:.5rem .9rem; background: var(--vr-card);
  border:1px solid var(--vr-border); border-radius: 999px; color: var(--vr-ink); transition:.2s;
}
.country-pill:hover { background: var(--vr-brand-light); border-color: var(--vr-brand); color: var(--vr-brand-dark); }

/* ===== Footer newsletter strip ===== */
.footer-newsletter {
  background: linear-gradient(135deg, rgba(7, 15, 30, 0.9) 0%, rgba(11, 22, 44, 0.95) 100%) !important;
  border-top: 1px solid rgba(16, 185, 129, 0.15);
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 50px 0 !important;
  color: #f1f5f9 !important;
  position: relative;
  overflow: hidden;
}
.footer-newsletter::before, .footer-newsletter::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(16, 185, 129, 0.04); pointer-events: none;
}
.footer-newsletter::before { width: 300px; height: 300px; top: -120px; right: -40px; }
.footer-newsletter::after  { width: 200px; height: 200px; bottom: -100px; left: -40px; }
.fn-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; position: relative;
}
.fn-text h3 {
  color: #fff !important;
  font-weight: 800;
  font-size: 1.6rem;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fn-text p  { color: #94a3b8 !important; margin: 0; font-size: .95rem; }
.fn-form { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; max-width: 500px; }
.fn-input {
  flex: 1; min-width: 220px; position: relative;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex; align-items: center; padding: 0 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.fn-input i { color: var(--vr-muted); }
.fn-input input {
  flex: 1; border: 0; padding: 14px 8px;
  background: transparent; font-size: .95rem;
  outline: none; color: #fff !important;
  font-weight: 500;
}
.fn-input input::placeholder {
  color: #475569;
}
.fn-input:focus-within {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.fn-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #040810 !important;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3);
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.fn-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(16, 185, 129, 0.45);
  filter: brightness(1.05);
}

/* ===== Footer ===== */
footer.site-footer {
  background: linear-gradient(to bottom, #070d18 0%, #03050a 100%) !important;
  border-top: 1px solid rgba(16, 185, 129, 0.15) !important;
  color: #94a3b8;
  padding: 80px 0 40px !important;
  position: relative;
  margin-top: 0;
}
footer.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(16, 185, 129, 0.4), transparent);
  pointer-events: none;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.35rem; color: #fff;
  text-decoration: none; margin-bottom: 16px;
  min-height: 40px;
}
.footer-brand:hover { color: #fff; }
.footer-brand .brand-logo-img {
  display: block;
  height: var(--logo-h-footer, 34px);
  width: auto;
  max-width: var(--logo-w, 220px);
  max-height: 56px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.3s ease;
}
.footer-brand:hover .brand-logo-img {
  transform: scale(1.02);
}
.footer-brand .logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
}
.footer-brand .brand-dot { color: #10b981; }

.footer-about {
  color: #64748b; line-height: 1.7; font-size: .92rem;
  max-width: 380px; margin: 0 0 20px;
}
.footer-about a { color: #cbd5e1; text-decoration: underline; text-decoration-color: rgba(203,213,225,.3); text-underline-offset: 2px; }
.footer-about a:hover { color: #10b981; text-decoration-color: #10b981; }

.footer-socials { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.fs-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #94a3b8 !important; text-decoration: none;
}
.fs-btn i { font-size: 1.1rem; }
.fs-btn:hover {
  transform: translateY(-4px);
  color: #fff !important;
  border-color: rgba(16, 185, 129, 0.3);
}
.fs-btn.fs-linkedin:hover {
  background: #0077b5 !important;
  border-color: #0077b5;
  box-shadow: 0 10px 20px -5px rgba(0, 119, 181, 0.4);
}
.fs-btn.fs-twitter:hover {
  background: #1f2937 !important;
  border-color: #374151;
  box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.1);
}
.fs-btn.fs-telegram:hover {
  background: #0284c7 !important;
  border-color: #0284c7;
  box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.4);
}
.fs-btn.fs-email:hover {
  background: #10b981 !important;
  border-color: #10b981;
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.footer-contacts { display: flex; flex-direction: column; gap: 6px; }
.footer-contacts a {
  color: #94a3b8; text-decoration: none; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s;
}
.footer-contacts a:hover { color: #10b981; }
.footer-contacts i { color: #10b981; font-size: 1rem; }

.site-footer h5 {
  color: #fff; font-weight: 700; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}
.site-footer h5::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background: #10b981;
  border-radius: 99px;
  opacity: 0.7;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  color: #64748b; text-decoration: none; font-size: .92rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s, transform .2s, padding-left .2s;
}
.footer-links a:hover {
  color: #10b981;
  transform: translateX(4px);
  padding-left: 2px;
}
.badge-hot {
  background: #ef4444; color: #fff; font-size: .62rem; font-weight: 800;
  padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .04em;
}

/* ===== Partners Showcase ===== */
.footer-partners-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.partners-title {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 25px;
  text-align: center;
  opacity: 0.8;
}
.footer-partners-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.partner-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
  cursor: pointer;
  text-decoration: none;
}
.partner-card img {
  height: 38px;
  width: auto;
  max-width: 170px;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.25s, transform 0.25s;
  object-fit: contain;
}
.partner-card:hover {
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 10px 20px -10px rgba(16, 185, 129, 0.25);
  transform: translateY(-3px);
}
.partner-card:hover img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.03);
}

.footer-bottom {
  margin-top: 50px; padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: #475569;
}
.footer-bottom a { color: #64748b; text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: #10b981; }
.footer-bottom strong { color: #cbd5e1; }
.footer-bottom .fb-right { display: flex; gap: 8px; align-items: center; }
.footer-bottom .dot { color: #1e293b; }

@media (max-width: 768px) {
  .fn-wrap { flex-direction: column; text-align: center; }
  .fn-form { max-width: 100%; width: 100%; }
  footer.site-footer { padding: 60px 0 30px !important; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* Misc */
.chip { display:inline-block; padding:.25rem .7rem; border-radius:999px; background: var(--vr-brand-light); color: var(--vr-brand-dark); font-size:.78rem; font-weight:600; }
.shadow-soft { box-shadow: var(--vr-shadow); }
.divider { height:1px; background: var(--vr-border); margin: 2rem 0; }
.table-compare th { background:#0f172a; color:#fff; }
.table-compare td { vertical-align: middle; }
.banner-ad { background: linear-gradient(90deg,#065f46,#10b981); color:#fff; padding: 1rem 1.4rem; border-radius: var(--vr-radius); display:flex; justify-content:space-between; align-items:center; }
.badge-soft-green { background: var(--vr-brand-light); color: var(--vr-brand-dark); font-weight:600; }

.sponsored-tag { position:absolute; top:10px; right:10px; background:#fbbf24; color:#78350f; padding:3px 8px; border-radius:6px; font-size:.7rem; font-weight:700; }
.pos-rel { position: relative; }

/* Theme toggle */
.theme-toggle { border:1px solid var(--vr-border); background: var(--vr-card); color: var(--vr-ink); width: 38px; height: 38px; border-radius: 10px; display:inline-flex; align-items:center; justify-content:center; }

/* Animations */
@keyframes fadeUp { from { opacity:0; transform: translateY(20px);} to { opacity:1; transform: none;} }
.fade-up { animation: fadeUp .5s ease both; }
.fade-up.d1 { animation-delay:.08s; } .fade-up.d2 { animation-delay:.16s; } .fade-up.d3 { animation-delay:.24s; } .fade-up.d4 { animation-delay:.32s; }

@media (max-width: 768px) {
  .hero { padding: 40px 0 50px; }
  section.section { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }
  .top10-table, .top10-table tbody, .top10-table tr, .top10-table td { display: block; }
  .top10-table thead { display: none; }
  .top10-table tr { border:1px solid var(--vr-border); border-radius: var(--vr-radius); margin-bottom: 1rem; padding: 1rem; }
  .top10-table td { border:none; padding: .4rem 0; }
  .top10-table td::before { content: attr(data-label); font-weight: 700; display: block; color: var(--vr-muted); font-size: .75rem; text-transform: uppercase; }
}


/* Banner slots */
.banner-slot { position: relative; }
.banner-label {
  position: absolute; top: -9px; left: 14px;
  background: var(--vr-card); color: var(--vr-muted);
  font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  padding: 2px 8px; border: 1px solid var(--vr-border); border-radius: 6px;
}
.banner-sandbox iframe { transition: opacity .2s ease; }
.banner-sandbox iframe:hover { opacity: .95; }
.banner-sidebar { margin: 1rem 0; }

/* Media library */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-item {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 10px;
  border: 2px solid var(--vr-border); background: #f1f5f9; cursor: pointer; transition: all .2s;
}
.media-item:hover { border-color: var(--vr-brand); transform: translateY(-2px); }
.media-item.selected { border-color: var(--vr-brand); box-shadow: 0 0 0 3px rgba(16,185,129,.25); }
.media-item img { width: 100%; height: 100%; object-fit: cover; }
.media-item .meta {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff;
  font-size: .7rem;
}
.media-item .del {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.7); color: #fff; border: 0;
  display: none; align-items: center; justify-content: center;
}
.media-item:hover .del { display: inline-flex; }

/* Image picker widget (upload + URL + gallery) */
.image-picker { border: 1.5px dashed var(--vr-border); border-radius: 12px; padding: 12px; background: #fafafa; }
.image-picker .tabs { display: inline-flex; gap: 4px; background: #e2e8f0; padding: 3px; border-radius: 8px; margin-bottom: 12px; }
.image-picker .tabs button { background: transparent; border: 0; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: .85rem; color: var(--vr-ink-soft); }
.image-picker .tabs button.active { background: #fff; color: var(--vr-brand-dark); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.image-picker .pane { display: none; }
.image-picker .pane.active { display: block; }
.image-picker .preview { width: 80px; height: 80px; border-radius: 8px; border: 1px solid var(--vr-border); background: #fff; object-fit: contain; padding: 4px; }


/* ===== Provider cards (rebuilt v3 — richer info, same footprint) ===== */
.pcard {
  background: var(--vr-card);
  border: 1px solid var(--vr-border);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.pcard::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, transparent);
  transition: background .25s ease;
}
.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -22px rgba(15, 23, 42, 0.22);
  border-color: rgba(16, 185, 129, 0.4);
}
.pcard:hover::before { background: linear-gradient(90deg, #10b981, #059669); }
.pcard.is-featured { border-color: rgba(245, 158, 11, 0.3); }
.pcard.is-featured::before { background: linear-gradient(90deg, #fbbf24, #f59e0b); }

/* Ribbon badges — top right */
.pcard-ribbon {
  position: absolute; top: 14px; right: 14px;
  font-size: .66rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
  z-index: 2; display: inline-flex; align-items: center; gap: 4px;
}
.pcard-ribbon.sp { background: #fef3c7; color: #92400e; }
.pcard-ribbon.ed { background: linear-gradient(135deg,#fbbf24,#f59e0b); color: #fff; box-shadow: 0 4px 12px -4px rgba(245,158,11,.5); }
.pcard.is-featured .pcard-ribbon.sp { top: 42px; }

/* Head: logo + name */
.pcard-head { display: flex; gap: 12px; align-items: center; margin-top: 2px; padding-right: 100px; }
.pcard-logo {
  width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 58px; overflow: hidden; padding: 7px;
  box-shadow: 0 4px 12px -4px rgba(15,23,42,.08);
}
.pcard-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pcard-head-meta { min-width: 0; flex: 1; }
.pcard-name {
  font-size: 1.1rem; font-weight: 700; margin: 0 0 4px;
  color: var(--vr-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: -.01em;
}
.pcard-sub { display: flex; gap: 10px; flex-wrap: wrap; font-size: .74rem; }
.pcard-hq { color: var(--vr-muted); display: inline-flex; align-items: center; gap: 3px; }
.pcard-hq i { font-size: .85rem; color: var(--vr-brand-dark); }
.pcard-verified { color: var(--vr-brand-dark); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.pcard-verified i { color: var(--vr-brand); }

/* Description — exactly 2 lines for equal heights */
.pcard-desc {
  color: var(--vr-muted);
  font-size: .88rem;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

/* Feature highlight chips */
.pcard-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
}
.pcard-features li {
  font-size: .78rem;
  color: var(--vr-ink-soft);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard-features li i {
  color: var(--vr-brand);
  font-size: .9rem;
  flex-shrink: 0;
  background: var(--vr-brand-light);
  border-radius: 50%;
  width: 16px; height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Stats row */
.pcard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 10px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
[data-theme="dark"] .pcard-stats { background: linear-gradient(180deg, #0f1a33, #0b1220); border-color: #1f2a44; }
.pcard-stat { text-align: center; padding: 0 4px; border-right: 1px solid rgba(100,116,139,.15); }
.pcard-stat:last-child { border-right: 0; }
.pcard-stat-val { font-size: 1.1rem; font-weight: 800; color: var(--vr-ink); line-height: 1.1; display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.pcard-stat-val small { font-size: .65rem; font-weight: 500; color: var(--vr-muted); }
.pcard-stat-lbl { font-size: .68rem; color: var(--vr-muted); margin-top: 4px; }
.pcard-stat-lbl .stars { font-size: .65rem; letter-spacing: 0; display: block; margin-bottom: 2px; }
.pcard-stat-lbl a { color: var(--vr-muted); text-decoration: underline dotted; text-decoration-thickness: 1px; }
.pcard-stat-lbl a:hover { color: var(--vr-brand-dark); }

/* Specific stat colors */
.stat-rating { color: #f59e0b; }
.stat-rating small { color: #f59e0b; }
.stat-price { color: var(--vr-brand-dark); }
.stat-price small:first-child { font-size: .6rem; color: var(--vr-muted); font-weight: 500; }
.stat-uptime { color: #1d4ed8; }
.pcard-stat-price { background: rgba(16,185,129,.06); border-radius: 8px; }

/* Trust badge */
.pcard-trust {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: var(--vr-brand-dark);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  align-self: flex-start;
  border: 1px solid rgba(16,185,129,.25);
}
.pcard-trust i { font-size: .85rem; }

/* Actions */
.pcard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.btn-pcard {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 10px;
  border-radius: 10px;
  font-weight: 600; font-size: .82rem;
  text-decoration: none; text-align: center;
  border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease;
  white-space: nowrap;
}
.btn-pcard-primary {
  background: var(--vr-ink); color: #fff; border-color: var(--vr-ink);
  grid-column: span 2;
  padding: 12px 14px;
  font-size: .88rem;
}
.btn-pcard-primary:hover { background: #1e293b; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(15,23,42,.4); }
.btn-pcard-visit {
  background: linear-gradient(135deg, var(--vr-brand), var(--vr-brand-dark));
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(16, 185, 129, 0.45);
}
.btn-pcard-visit:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(16, 185, 129, 0.55); }
.btn-pcard-compare {
  background: transparent; color: var(--vr-ink-soft); border-color: var(--vr-border);
}
.btn-pcard-compare:hover { background: #f1f5f9; color: var(--vr-ink); }
.btn-pcard-compare.active {
  background: var(--vr-brand-light); color: var(--vr-brand-dark); border-color: var(--vr-brand);
}

/* Mobile: stack action buttons */
@media (max-width: 420px) {
  .pcard-actions { grid-template-columns: 1fr; }
  .btn-pcard-primary { grid-column: span 1; }
  .pcard-features { grid-template-columns: 1fr; }
  .pcard-head { padding-right: 0; }
  .pcard-ribbon { position: static; margin-bottom: 8px; display: inline-flex; }
}

/* ===== Compare bar (floating) ===== */
#compareBar {
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #0f172a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 24px 50px -12px rgba(0,0,0,.5);
  z-index: 1040;
  max-width: calc(100vw - 24px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
#compareBar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
#compareBar .count {
  background: var(--vr-brand);
  color: #fff;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .85rem;
}
#compareBar .text { font-size: .88rem; }
#compareBar .btn-reset {
  background: transparent; color: #94a3b8; border: 0; padding: 6px 10px;
  border-radius: 8px; font-size: .82rem; cursor: pointer; font-weight: 500;
}
#compareBar .btn-reset:hover { background: rgba(255,255,255,.08); color: #fff; }
#compareBar a.go {
  background: var(--vr-brand); color: #fff; font-weight: 700;
  padding: 8px 16px; border-radius: 10px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s;
}
#compareBar a.go:hover { background: var(--vr-brand-dark); color: #fff; }
#compareBar a.go.disabled { opacity: .4; pointer-events: none; }

@media (max-width: 600px) {
  #compareBar { flex-wrap: wrap; justify-content: center; width: calc(100vw - 24px); }
  #compareBar .text { flex: 1 0 100%; text-align: center; order: -1; }
}

/* Internal link blocks for SEO */
.related-links {
  background: var(--vr-card);
  border: 1px solid var(--vr-border);
  border-radius: 14px;
  padding: 24px;
  margin: 2rem 0;
}
.related-links h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 1rem; }
.related-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.related-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 10px;
  color: var(--vr-ink);
  text-decoration: none;
  font-size: .9rem; font-weight: 500;
  transition: all .15s;
}
.related-link:hover { background: var(--vr-brand-light); color: var(--vr-brand-dark); transform: translateX(4px); }
.related-link i { color: var(--vr-brand); font-size: 1.1rem; flex-shrink: 0; }
[data-theme="dark"] .related-link { background: #0f1a33; }


/* ===== Small consistency tweaks ===== */
/* Banner slots always have their own vertical space */
.banner-slot, .banner-ad { margin: 20px 0 !important; }

/* Container padding for simple pages that use container-xxl my-5 */
.container-xxl.my-5 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}


/* ============================================================
   MOBILE OPTIMIZATION — comprehensive responsive pass
   Breakpoints: 992 (tablet), 768 (phone-large), 480 (phone)
   ============================================================ */

/* Stop anything from overflowing horizontally */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, iframe { max-width: 100%; height: auto; }
* { min-width: 0; }   /* allow flex/grid items to shrink */

/* Container spacing normalizes on mobile */
@media (max-width: 768px) {
  .container-xxl { padding-left: 16px; padding-right: 16px; }
  .container-xxl.my-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; margin-top: 0 !important; margin-bottom: 0 !important; }
}

/* ===== Topbar ===== */
@media (max-width: 768px) {
  .topbar { font-size: .74rem; padding: 6px 0; }
  .topbar .container-xxl > div:first-child { font-size: .74rem; line-height: 1.3; }
  .topbar .container-xxl > div:first-child span { display: inline; }
}
@media (max-width: 480px) {
  .topbar .container-xxl > div:first-child { font-size: 0; }
  .topbar .container-xxl > div:first-child i { font-size: .85rem; }
  .topbar .container-xxl > div:first-child::after { content: 'Trusted by 250k+ devs'; font-size: .72rem; margin-left: 6px; }
  .topbar .container-xxl > div:first-child span { display: none; }
}

/* ===== Navbar mobile ===== */
@media (max-width: 991px) {
  .nav-wrap { height: 62px; gap: 10px; }
  .navbar-brand { font-size: 1.1rem; }
  .navbar-brand .logo-mark { width: 34px; height: 34px; font-size: 1rem; }
  .navbar-brand .brand-logo-img { height: var(--logo-h-mobile, 32px); max-height: 44px; }
  .nav-actions { gap: 6px; }
  .theme-toggle, .nav-mobile-toggle { width: 38px; height: 38px; }
  .btn-nav-cta { padding: 9px 14px; font-size: .82rem; }
}
@media (max-width: 480px) {
  .btn-nav-cta { display: none !important; }
}

/* Mobile menu polish */
.mobile-menu {
  padding: 16px 4px 24px;
  max-height: calc(100vh - 62px);
  overflow-y: auto;
}
.mobile-link {
  padding: 14px 12px;
  font-size: .95rem;
  border-bottom: 1px solid var(--vr-border);
  border-radius: 8px;
  margin-bottom: 2px;
}
.mobile-link:active { background: var(--vr-brand-light); }
.mobile-section { padding: 18px 12px 8px; }

/* ===== Hero sections (general) ===== */
@media (max-width: 768px) {
  .hero, .home-hero, .cat-hero, .contact-hero, .about-hero, .legal-hero, .dir-hero, .cc-hero, .cp-hero, .provider-hero {
    padding: 44px 0 60px !important;
  }
  .hh-title, .cat-title, .hero-title, .provider-hero .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
    letter-spacing: -.01em !important;
  }
  .hh-lead, .cat-lead, .contact-hero .lead, .about-hero .lead, .legal-hero p.lead, .cp-hero .lead, .dir-hero p.lead, .cc-hero p.lead {
    font-size: .95rem !important;
    line-height: 1.55 !important;
  }
}

/* ===== Hero stats ===== */
@media (max-width: 768px) {
  .hh-stats, .cat-stats, .hero-stats, .cp-stats, .dir-stats, .cc-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    margin-top: 24px !important;
  }
  .hh-stat strong, .cat-stat strong, .hero-stats .stat strong, .cp-stats .s strong, .dir-stats .s strong, .cc-stats .s strong {
    font-size: 1.4rem !important;
  }
  .hh-stat span, .cat-stat span, .hero-stats .stat span, .cp-stats .s span, .dir-stats .s span, .cc-stats .s span {
    font-size: .72rem !important;
  }
}

/* ===== Hero CTAs and chips ===== */
@media (max-width: 768px) {
  .hh-ctas, .cat-ctas, .hero-cta, .cta-btns {
    gap: 8px !important;
  }
  .hh-btn-primary, .hh-btn-ghost, .cat-btn-primary, .cat-btn-ghost {
    padding: 11px 16px !important;
    font-size: .85rem !important;
    flex: 1 1 auto;
    justify-content: center;
  }
  .hh-trust { gap: 14px !important; font-size: .8rem; margin-top: 24px !important; }
  .hh-chip, .cat-chip { font-size: .72rem !important; padding: 5px 11px !important; }
}

/* ===== Glass finder cards shrink on mobile ===== */
@media (max-width: 768px) {
  .hh-finder, .filter-card, .cat-benefit-card {
    padding: 18px !important;
    margin-top: 24px;
  }
  .hh-finder-head h3 { font-size: .95rem !important; }
  .hh-finder label, .filter-card label, .finder-card label {
    font-size: .68rem !important;
  }
  .hh-finder .form-control, .hh-finder .form-select,
  .filter-card .form-control, .filter-card .form-select,
  .finder-card .form-control, .finder-card .form-select {
    padding: 9px 11px !important;
    font-size: .88rem !important;
  }
}

/* ===== Generic section spacing mobile ===== */
@media (max-width: 768px) {
  section.section, .p-section, .a-section {
    padding: 40px 0 !important;
  }
  .section-title, .p-section-title, .a-title {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
  }
  .section-subtitle, .p-section-sub, .a-sub {
    font-size: .92rem !important;
  }
  .section-eyebrow, .p-section-eyebrow, .a-eyebrow {
    font-size: .7rem !important;
  }
  .text-center.mb-5 { margin-bottom: 1.5rem !important; }
}

/* ===== Provider cards mobile ===== */
@media (max-width: 768px) {
  .pcard { padding: 18px; gap: 12px; }
  .pcard-head { padding-right: 90px; }
  .pcard-logo { width: 50px; height: 50px; flex: 0 0 50px; }
  .pcard-name { font-size: 1rem; }
  .pcard-desc { font-size: .85rem; -webkit-line-clamp: 3; min-height: 0; }
  .pcard-features { grid-template-columns: 1fr 1fr; gap: 4px 10px; }
  .pcard-features li { font-size: .74rem; }
  .pcard-stats { padding: 10px 8px; gap: 6px; }
  .pcard-stat-val { font-size: 1rem; }
  .pcard-stat-lbl { font-size: .66rem; }
  .btn-pcard { padding: 9px 8px; font-size: .78rem; }
  .btn-pcard-primary { padding: 11px 14px; font-size: .86rem; }
}
@media (max-width: 480px) {
  .pcard-ribbon { top: 10px; right: 10px; font-size: .6rem; padding: 3px 8px; }
  .pcard-features { grid-template-columns: 1fr; }
  .pcard-actions { grid-template-columns: 1fr; gap: 6px; }
  .btn-pcard-primary { grid-column: span 1; }
}

/* ===== Rankings table — mobile card view ===== */
@media (max-width: 768px) {
  .top10-table { border: 0; background: transparent; box-shadow: none; }
  .top10-table thead { display: none; }
  .top10-table tbody, .top10-table tr, .top10-table td { display: block; }
  .top10-table tr {
    background: var(--vr-card);
    border: 1px solid var(--vr-border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 6px 16px -10px rgba(15,23,42,.15);
  }
  .top10-table td {
    border: 0;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
  }
  .top10-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--vr-muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    flex-shrink: 0;
  }
  .top10-table td[data-label="Provider"] { flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--vr-border); margin-bottom: 8px; }
  .top10-table td[data-label="Provider"]::before { display: none; }
  .top10-table td[data-label="Actions"] { justify-content: flex-start; gap: 8px; padding-top: 12px; border-top: 1px solid var(--vr-border); margin-top: 8px; }
  .top10-table td[data-label="Actions"]::before { display: none; }
  .top10-table td[data-label="Rank"] { position: absolute; top: 12px; right: 12px; padding: 0; }
  .top10-table td[data-label="Rank"]::before { display: none; }
  .top10-table .rank { width: 34px; height: 34px; font-size: .85rem; }
  .top10-table tr { position: relative; }
}

/* ===== Compare bar ===== */
@media (max-width: 600px) {
  #compareBar {
    bottom: 12px;
    padding: 10px 14px;
    width: calc(100vw - 20px);
    border-radius: 12px;
    gap: 8px;
  }
  #compareBar .text { flex: 1 0 100%; text-align: center; font-size: .78rem; order: -1; }
  #compareBar .count { font-size: .82rem; padding: 3px 9px; }
  #compareBar .btn-reset { font-size: .78rem; padding: 5px 8px; }
  #compareBar a.go { padding: 7px 14px; font-size: .84rem; flex: 1; text-align: center; }
}

/* Footer spacing for fixed compare bar */
body { padding-bottom: 0; }
body:has(#compareBar.visible) { padding-bottom: 90px; }

/* ===== Category grid tiles ===== */
@media (max-width: 768px) {
  .cat-showcase, .country-grid, .port-cats, .hiw-grid, .why-grid, .big-stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 12px !important;
  }
  .cat-tile, .country-tile, .port-cat, .hiw-card, .why-card, .big-stat { padding: 18px !important; }
  .cat-tile-icon { width: 44px; height: 44px; font-size: 1.2rem; }
  .cat-tile h3, .country-tile .name { font-size: .95rem !important; }
  .cat-tile .desc { font-size: .82rem; }
  .cat-tile .meta { font-size: .74rem; }
  .why-icon { width: 52px !important; height: 52px !important; font-size: 1.4rem !important; }
  .why-card h4 { font-size: 1rem !important; }
  .why-card p { font-size: .85rem !important; }
}

/* ===== Filter bars ===== */
@media (max-width: 768px) {
  .cp-filter-wrap, .cp-filter-card { margin-top: -20px !important; }
  .cp-filter-card, .dir-filter { padding: 14px !important; }
  .cp-cats, .cat-bar { gap: 6px !important; }
  .cp-cat, .cat-bar a { font-size: .78rem; padding: 7px 11px; }
}

/* ===== Coupon cards ===== */
@media (max-width: 768px) {
  .coupon-card { padding: 18px; }
  .cpc-title { font-size: 1rem; }
  .cpc-desc { font-size: .82rem; -webkit-line-clamp: 3; }
  .cpc-code-hidden { padding: 10px 12px; font-size: .85rem; letter-spacing: 2px; }
  .cpc-code-reveal { padding: 0 12px; font-size: .75rem; }
  .cpc-actions { flex-direction: column; }
  .btn-cpc-visit, .btn-cpc-review { width: 100%; }
  .cpc-meta { gap: 10px; font-size: .72rem; }
}

/* ===== About: founder card ===== */
@media (max-width: 768px) {
  .founder-section { margin-top: -40px !important; }
  .founder-card { padding: 24px !important; grid-template-columns: 1fr !important; text-align: center; gap: 20px !important; }
  .founder-avatar { width: 110px !important; height: 110px !important; font-size: 2.8rem !important; margin: 0 auto; }
  .founder-social { justify-content: center; }
}

/* ===== Provider page quick-facts ===== */
@media (max-width: 768px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .fact-card { padding: 14px !important; }
  .fact-card .val { font-size: .95rem !important; }
  .provider-hero .hero-rating { padding: 12px 14px; }
  .provider-hero .hero-rating .score { font-size: 1.6rem !important; }
  .provider-hero .hero-cta { gap: 8px; }
  .provider-hero .btn-primary-cta, .provider-hero .btn-secondary-cta { padding: 10px 16px; font-size: .85rem; }
  .hero-logo-box { width: 64px !important; height: 64px !important; }
}

/* ===== Legal page TOC ===== */
@media (max-width: 992px) {
  .legal-wrap { display: flex !important; flex-direction: column; gap: 20px !important; margin-top: 24px !important; }
  .legal-toc { position: static !important; padding: 16px !important; }
  .legal-toc ol li a { padding: 8px 10px; font-size: .85rem; }
  .legal-content { padding: 24px !important; }
  .legal-content h2 { font-size: 1.35rem !important; }
  .legal-content table { display: block; overflow-x: auto; }
}

/* ===== Blog ===== */
@media (max-width: 768px) {
  .blog-tile .body { padding: 16px; }
  .blog-tile h3 { font-size: 1rem; }
  .blog-tile .excerpt { font-size: .82rem; }
  .post-content h2 { font-size: 1.4rem !important; }
  .post-content h3 { font-size: 1.1rem !important; }
  .post-content { font-size: .95rem !important; }
  article.container-xxl { padding: 0 16px !important; }
}

/* ===== Footer newsletter ===== */
@media (max-width: 768px) {
  .footer-newsletter { padding: 40px 0 !important; }
  .fn-wrap { flex-direction: column; text-align: center; gap: 20px !important; }
  .fn-text h3 { font-size: 1.25rem !important; }
  .fn-text p { font-size: .88rem !important; }
  .fn-form { max-width: 100% !important; width: 100%; flex-direction: column; }
  .fn-input { width: 100%; }
  .fn-btn { width: 100%; justify-content: center; padding: 12px 18px; }
}

/* ===== Footer columns ===== */
@media (max-width: 768px) {
  footer.site-footer { padding: 40px 0 24px !important; }
  footer.site-footer h5 { margin-bottom: 10px !important; font-size: .82rem !important; }
  .footer-links li { margin-bottom: 6px; }
  .footer-links a { font-size: .86rem; }
  .footer-brand { font-size: 1.2rem; margin-bottom: 10px; }
  .footer-about { font-size: .85rem; line-height: 1.55; margin-bottom: 14px; }
  .footer-socials { margin-bottom: 14px; }
  .fs-btn { width: 34px; height: 34px; font-size: .9rem; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; font-size: .78rem; margin-top: 30px !important; padding-top: 18px !important; }
}

/* ===== Related links ===== */
@media (max-width: 768px) {
  .related-links { padding: 18px !important; }
  .related-links-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .related-link { padding: 10px 12px !important; font-size: .82rem !important; }
}

/* ===== Admin ===== */
@media (max-width: 900px) {
  .sidebar { position: static !important; width: 100% !important; height: auto !important; padding: 12px !important; }
  .sidebar a { display: inline-block; padding: 8px 12px; margin: 2px; }
  .sidebar .brand { display: block; margin-bottom: 12px; }
  .main { margin: 0 !important; padding: 16px !important; }
}

/* ===== Breadcrumbs ===== */
@media (max-width: 768px) {
  .breadcrumb { font-size: .8rem; }
}

/* ===== Accordions ===== */
@media (max-width: 768px) {
  .accordion-button { padding: 14px 16px !important; font-size: .95rem !important; }
  .accordion-body { padding: 12px 16px !important; font-size: .88rem !important; }
}

/* ===== Analytics / admin charts ===== */
@media (max-width: 768px) {
  .chart-wrap { height: 220px !important; }
  .chart-lg { height: 240px !important; }
}

/* ===== Tap target minimum ===== */
@media (max-width: 768px) {
  .btn, button { min-height: 40px; }
  .btn-sm { min-height: 32px; }
  .nav-link { padding: 10px 10px !important; }
  input, select, textarea { font-size: 16px !important; /* prevents iOS zoom-on-focus */ }
  input.form-control-sm, select.form-select-sm { font-size: 14px !important; }
}

/* ===== Cover tables inside responsive wrappers ===== */
.table-responsive { -webkit-overflow-scrolling: touch; }

/* ===== Safe area for iOS notch ===== */
@supports (padding: env(safe-area-inset-bottom)) {
  footer.site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  #compareBar { bottom: calc(12px + env(safe-area-inset-bottom)); }
}


/* ============================================================
   DARK MODE — comprehensive rebuild
   Fixes hardcoded colors so every element adapts to theme.
   ============================================================ */

/* ---- Color token refinement for dark mode ---- */
[data-theme="dark"] {
  --vr-bg: #0a0f1e;
  --vr-card: #111a2e;
  --vr-ink: #e2e8f0;
  --vr-ink-soft: #cbd5e1;
  --vr-muted: #94a3b8;
  --vr-border: #1f2a44;
  --vr-brand: #10b981;
  --vr-brand-dark: #34d399;
  --vr-brand-light: #064e3b;
  --vr-shadow: 0 10px 30px -15px rgba(0,0,0,.6);
  --vr-shadow-lg: 0 20px 50px -20px rgba(0,0,0,.7);
}

/* ---- Baseline links and text ---- */
[data-theme="dark"] body,
[data-theme="dark"] html { background: var(--vr-bg); color: var(--vr-ink); }
[data-theme="dark"] a { color: #6ee7b7; }
[data-theme="dark"] a:hover { color: #34d399; }

/* Bootstrap text utility overrides so .text-dark isn't literally black in dark mode */
[data-theme="dark"] .text-dark { color: var(--vr-ink) !important; }
[data-theme="dark"] .text-muted { color: var(--vr-muted) !important; }
[data-theme="dark"] .text-body, [data-theme="dark"] .text-body-secondary { color: var(--vr-ink-soft) !important; }
[data-theme="dark"] .text-black { color: var(--vr-ink) !important; }

[data-theme="dark"] strong, [data-theme="dark"] b { color: var(--vr-ink); }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 { color: var(--vr-ink); }
[data-theme="dark"] p { color: var(--vr-ink-soft); }
[data-theme="dark"] small { color: var(--vr-muted); }
[data-theme="dark"] hr { border-color: var(--vr-border); }

/* Bootstrap bg-light/white utilities must NOT render pure white in dark mode */
[data-theme="dark"] .bg-light { background: var(--vr-card) !important; color: var(--vr-ink); }
[data-theme="dark"] .bg-white { background: var(--vr-card) !important; color: var(--vr-ink); }
[data-theme="dark"] .border { border-color: var(--vr-border) !important; }
[data-theme="dark"] .border-top, [data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start, [data-theme="dark"] .border-end { border-color: var(--vr-border) !important; }

/* ---- Cards ---- */
[data-theme="dark"] .card,
[data-theme="dark"] .card-premium,
[data-theme="dark"] .pcard,
[data-theme="dark"] .blog-tile,
[data-theme="dark"] .review-tile,
[data-theme="dark"] .why-card,
[data-theme="dark"] .intro-card,
[data-theme="dark"] .coupon-card,
[data-theme="dark"] .cat-tile,
[data-theme="dark"] .country-tile,
[data-theme="dark"] .legal-toc,
[data-theme="dark"] .legal-content,
[data-theme="dark"] .founder-card,
[data-theme="dark"] .finder-card,
[data-theme="dark"] .rating-breakdown,
[data-theme="dark"] .review-item,
[data-theme="dark"] .fact-card,
[data-theme="dark"] .plans-table,
[data-theme="dark"] .hiw-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .big-stat,
[data-theme="dark"] .portfolio,
[data-theme="dark"] .kpi-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .panel,
[data-theme="dark"] .section-block,
[data-theme="dark"] .ai-panel,
[data-theme="dark"] .mini-coupon,
[data-theme="dark"] .cp-filter-card,
[data-theme="dark"] .dir-filter,
[data-theme="dark"] .channel,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .review-form-card,
[data-theme="dark"] .location-pill,
[data-theme="dark"] .country-flag-pill {
  background: var(--vr-card);
  border-color: var(--vr-border);
  color: var(--vr-ink);
}

/* Nested card text colors */
[data-theme="dark"] .pcard h3,
[data-theme="dark"] .blog-tile h3,
[data-theme="dark"] .review-tile .who strong,
[data-theme="dark"] .intro-card h4,
[data-theme="dark"] .why-card h4,
[data-theme="dark"] .value-card h3,
[data-theme="dark"] .hiw-card h4,
[data-theme="dark"] .cat-tile h3,
[data-theme="dark"] .country-tile .name,
[data-theme="dark"] .mini-coupon h5,
[data-theme="dark"] .cpc-title,
[data-theme="dark"] .cpc-provider,
[data-theme="dark"] .plan-name,
[data-theme="dark"] .stat-card .val,
[data-theme="dark"] .kpi-card .val,
[data-theme="dark"] .big-stat .val,
[data-theme="dark"] .review-item h4 { color: var(--vr-ink); }

[data-theme="dark"] .pcard-desc,
[data-theme="dark"] .blog-tile .excerpt,
[data-theme="dark"] .review-tile .content,
[data-theme="dark"] .intro-card p,
[data-theme="dark"] .why-card p,
[data-theme="dark"] .hiw-card p,
[data-theme="dark"] .cat-tile .desc,
[data-theme="dark"] .cpc-desc,
[data-theme="dark"] .review-item p,
[data-theme="dark"] .legal-content,
[data-theme="dark"] .cp-content { color: var(--vr-ink-soft); }

/* Logo/thumb backgrounds in dark mode should be slightly lighter */
[data-theme="dark"] .pcard-logo,
[data-theme="dark"] .cpc-logo,
[data-theme="dark"] .mini-coupon .head img,
[data-theme="dark"] .country-tile img,
[data-theme="dark"] .channel-icon { background: #1e293b; }

/* ---- Forms ---- */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .input-group-text {
  background: #0f1a33;
  color: var(--vr-ink);
  border-color: var(--vr-border);
}
[data-theme="dark"] .form-control::placeholder { color: #64748b; }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background: #132040;
  color: var(--vr-ink);
  border-color: var(--vr-brand);
  box-shadow: 0 0 0 3px rgba(16,185,129,.25);
}
[data-theme="dark"] .form-label { color: var(--vr-ink-soft); }
[data-theme="dark"] .form-check-label { color: var(--vr-ink-soft); }
[data-theme="dark"] .form-check-input {
  background-color: #0f1a33;
  border-color: var(--vr-border);
}
[data-theme="dark"] .form-check-input:checked {
  background-color: var(--vr-brand);
  border-color: var(--vr-brand);
}

/* ---- Buttons ---- */
[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .btn-outline-brand {
  background: transparent;
  color: var(--vr-ink-soft);
  border-color: var(--vr-border);
}
[data-theme="dark"] .btn-ghost:hover {
  background: #1e293b;
  color: var(--vr-ink);
}
[data-theme="dark"] .btn-outline-brand {
  border-color: var(--vr-brand);
  color: var(--vr-brand-dark);
}
[data-theme="dark"] .btn-outline-brand:hover {
  background: var(--vr-brand);
  color: #fff;
  border-color: var(--vr-brand);
}
[data-theme="dark"] .btn-light {
  background: #1e293b;
  color: var(--vr-ink);
  border-color: var(--vr-border);
}
[data-theme="dark"] .btn-dark {
  background: #0a0f1e;
  color: var(--vr-ink);
  border-color: var(--vr-border);
}

/* Provider card buttons stay light-bg-on-dark in dark mode */
[data-theme="dark"] .btn-pcard-primary {
  background: #f8fafc;
  color: #0a0f1e !important;
  border-color: #f8fafc;
}
[data-theme="dark"] .btn-pcard-primary:hover { background: #fff; color: #0a0f1e !important; }
[data-theme="dark"] .btn-pcard-compare {
  background: transparent;
  color: var(--vr-ink-soft);
  border-color: var(--vr-border);
}
[data-theme="dark"] .btn-pcard-compare:hover {
  background: #1e293b;
  color: var(--vr-ink);
}

/* ---- Tables ---- */
[data-theme="dark"] .table { color: var(--vr-ink); background: transparent; }
[data-theme="dark"] .table th { color: var(--vr-ink-soft); border-color: var(--vr-border); }
[data-theme="dark"] .table td { border-color: var(--vr-border); color: var(--vr-ink-soft); }
[data-theme="dark"] .table tr:hover { background: #1e293b; }
[data-theme="dark"] .table thead { background: #0a0f1e; }
[data-theme="dark"] .top10-table { background: var(--vr-card); border-color: var(--vr-border); }
[data-theme="dark"] .top10-table thead { background: #0a0f1e; color: #fff; }
[data-theme="dark"] .top10-table tbody td { color: var(--vr-ink-soft); border-color: var(--vr-border); }
[data-theme="dark"] .top10-table tbody tr:hover { background: #1e293b; }
[data-theme="dark"] .plans-table thead { background: #0a0f1e; color: #fff; }
[data-theme="dark"] .plans-table tbody tr:hover { background: #1e293b; }
[data-theme="dark"] .plans-table tbody td { color: var(--vr-ink-soft); }
[data-theme="dark"] .plan-name { color: var(--vr-ink) !important; }

/* ---- Stats row inside provider card ---- */
[data-theme="dark"] .pcard-stats {
  background: linear-gradient(180deg, #0f1a33, #0a0f1e);
  border-color: var(--vr-border);
}
[data-theme="dark"] .pcard-stat-val { color: var(--vr-ink); }
[data-theme="dark"] .pcard-stat-lbl { color: var(--vr-muted); }
[data-theme="dark"] .pcard-stat-price { background: rgba(16,185,129,.1); }

/* ---- Sections ---- */
[data-theme="dark"] section.section,
[data-theme="dark"] .p-section,
[data-theme="dark"] .a-section,
[data-theme="dark"] .cat-section { background: var(--vr-bg); border-color: var(--vr-border); }
[data-theme="dark"] section.section.section-alt,
[data-theme="dark"] .p-section.alt,
[data-theme="dark"] .a-section.alt,
[data-theme="dark"] .cat-section.alt { background: #0d1428; }

/* ---- Accordion ---- */
[data-theme="dark"] .accordion-item {
  background: var(--vr-card);
  border-color: var(--vr-border);
}
[data-theme="dark"] .accordion-button {
  background: var(--vr-card);
  color: var(--vr-ink);
}
[data-theme="dark"] .accordion-button:not(.collapsed) {
  background: rgba(16,185,129,.1);
  color: #6ee7b7;
}
[data-theme="dark"] .accordion-button::after {
  filter: invert(1) brightness(1.5);
}
[data-theme="dark"] .accordion-body { color: var(--vr-ink-soft); }

/* ---- Breadcrumb ---- */
[data-theme="dark"] .breadcrumb { --bs-breadcrumb-divider-color: var(--vr-muted); }
[data-theme="dark"] .breadcrumb-item a { color: var(--vr-ink-soft); }
[data-theme="dark"] .breadcrumb-item.active { color: var(--vr-ink); }

/* ---- Alerts ---- */
[data-theme="dark"] .alert-info {
  background: rgba(59,130,246,.12);
  color: #93c5fd;
  border-color: rgba(59,130,246,.3);
}
[data-theme="dark"] .alert-success {
  background: rgba(16,185,129,.12);
  color: #6ee7b7;
  border-color: rgba(16,185,129,.3);
}
[data-theme="dark"] .alert-warning {
  background: rgba(245,158,11,.12);
  color: #fcd34d;
  border-color: rgba(245,158,11,.3);
}
[data-theme="dark"] .alert-danger {
  background: rgba(239,68,68,.12);
  color: #fca5a5;
  border-color: rgba(239,68,68,.3);
}

/* ---- Modal ---- */
[data-theme="dark"] .modal-content { background: var(--vr-card); border-color: var(--vr-border); }
[data-theme="dark"] .modal-header, [data-theme="dark"] .modal-footer { border-color: var(--vr-border); }
[data-theme="dark"] .modal-title { color: var(--vr-ink); }
[data-theme="dark"] .btn-close { filter: invert(1) brightness(1.4); }

/* ---- Dropdown ---- */
[data-theme="dark"] .dropdown-menu { background: var(--vr-card); border-color: var(--vr-border); }
[data-theme="dark"] .dropdown-item { color: var(--vr-ink-soft); }
[data-theme="dark"] .dropdown-item:hover { background: #1e293b; color: var(--vr-ink); }

/* ---- Code ---- */
[data-theme="dark"] code {
  background: #1e293b;
  color: #fde047;
}
[data-theme="dark"] pre {
  background: #050912;
  color: #e2e8f0;
  border: 1px solid var(--vr-border);
}

/* ---- Specific components with hardcoded colors to fix ---- */

/* Homepage category tiles inner text */
[data-theme="dark"] .cat-tile .meta { border-top-color: var(--vr-border); }
[data-theme="dark"] .cat-tile .count { color: var(--vr-muted); }
[data-theme="dark"] .cat-tile:hover { background: var(--vr-card); }

/* Country pills */
[data-theme="dark"] .country-flag-pill,
[data-theme="dark"] .country-pill {
  background: var(--vr-card);
  color: var(--vr-ink-soft);
  border-color: var(--vr-border);
}
[data-theme="dark"] .country-flag-pill:hover {
  background: rgba(16,185,129,.12);
  color: #6ee7b7;
  border-color: var(--vr-brand);
}
[data-theme="dark"] .country-flag-pill .count { color: var(--vr-muted); }

/* Dashboard list rows */
[data-theme="dark"] .list-row { border-color: var(--vr-border); }
[data-theme="dark"] .list-row .avatar { background: #1e293b; color: var(--vr-ink); }
[data-theme="dark"] .list-row .main strong { color: var(--vr-ink); }
[data-theme="dark"] .list-row .main small { color: var(--vr-muted); }

/* Dashboard dashboards specifically */
[data-theme="dark"] .welcome-banner { background: linear-gradient(135deg,#065f46,#10b981); }

/* Dashboard quick-action cards */
[data-theme="dark"] .quick-action {
  background: var(--vr-card);
  border-color: var(--vr-border);
  color: var(--vr-ink);
}
[data-theme="dark"] .quick-action:hover {
  background: rgba(16,185,129,.1);
  color: #6ee7b7;
  border-color: var(--vr-brand);
}

/* Dashboard health items */
[data-theme="dark"] .health-item { border-color: var(--vr-border); }
[data-theme="dark"] .health-item strong { color: var(--vr-ink); }

/* Activity feed */
[data-theme="dark"] .activity-row { border-color: var(--vr-border); color: var(--vr-ink-soft); }

/* Coupons page */
[data-theme="dark"] .cp-cat {
  background: var(--vr-card);
  border-color: var(--vr-border);
  color: var(--vr-ink-soft);
}
[data-theme="dark"] .cp-cat:hover { color: #6ee7b7; border-color: var(--vr-brand); }
[data-theme="dark"] .cp-cat.active { background: #e2e8f0; color: #0a0f1e; border-color: #e2e8f0; }
[data-theme="dark"] .cp-cat .count { background: rgba(255,255,255,.08); }

[data-theme="dark"] .cpc-code-wrap {
  background: rgba(16,185,129,.08);
  border-color: var(--vr-brand);
}
[data-theme="dark"] .cpc-code-wrap.revealed .cpc-code-hidden {
  background: #0a0f1e;
  color: var(--vr-ink);
}
[data-theme="dark"] .cpc-code-hidden { color: #6ee7b7; }

/* Compare bar — stays dark in both modes (intentional) */
#compareBar { background: #0a0f1e; }

/* Provider page quick facts */
[data-theme="dark"] .fact-card .val { color: var(--vr-ink); }
[data-theme="dark"] .fact-card .lbl { color: var(--vr-muted); }

/* Review form avatar letter */
[data-theme="dark"] .review-item .avatar { color: #fff; }
[data-theme="dark"] .avatar-circle { color: #fff; }

/* Trust logo bar */
[data-theme="dark"] .trust-bar { background: var(--vr-card); border-color: var(--vr-border); }
[data-theme="dark"] .trust-bar-title { color: var(--vr-muted); }

/* Legal TOC active state */
[data-theme="dark"] .legal-toc ol li a:hover {
  background: rgba(16,185,129,.1);
  color: #6ee7b7;
}
[data-theme="dark"] .legal-content h2 { color: var(--vr-ink); }
[data-theme="dark"] .legal-content h3 { color: var(--vr-ink); }
[data-theme="dark"] .legal-content strong { color: var(--vr-ink); }
[data-theme="dark"] .legal-content thead { background: #1e293b; }
[data-theme="dark"] .legal-content th,
[data-theme="dark"] .legal-content td { border-color: var(--vr-border); color: var(--vr-ink-soft); }
[data-theme="dark"] .legal-content .warn-box {
  background: rgba(245,158,11,.1);
  color: #fcd34d;
}

/* Related-links internal navigation */
[data-theme="dark"] .related-links { background: var(--vr-card); border-color: var(--vr-border); }
[data-theme="dark"] .related-links h3 { color: var(--vr-ink); }
[data-theme="dark"] .related-link {
  background: #0f1a33;
  color: var(--vr-ink-soft);
}
[data-theme="dark"] .related-link:hover {
  background: rgba(16,185,129,.12);
  color: #6ee7b7;
}

/* Blog post content */
[data-theme="dark"] .post-content { color: var(--vr-ink-soft); }
[data-theme="dark"] .post-content p { color: var(--vr-ink-soft); }
[data-theme="dark"] .post-content h2,
[data-theme="dark"] .post-content h3 { color: var(--vr-ink); }
[data-theme="dark"] .post-content p.lead { color: var(--vr-ink); }
[data-theme="dark"] .post-content a { color: #6ee7b7; }
[data-theme="dark"] .post-content code { background: #1e293b; color: #fde047; }
[data-theme="dark"] .post-content pre { background: #050912; color: #e2e8f0; }
[data-theme="dark"] .post-content pre code { background: transparent; color: #e2e8f0; }
[data-theme="dark"] .post-content li { color: var(--vr-ink-soft); }
[data-theme="dark"] .post-content strong { color: var(--vr-ink); }

/* Admin dashboard */
[data-theme="dark"] .kpi-card .val,
[data-theme="dark"] .kpi-card .sub { color: var(--vr-ink); }
[data-theme="dark"] .kpi-card .lbl { color: var(--vr-muted); }
[data-theme="dark"] .kpi-card .delta.flat { background: #1e293b; color: var(--vr-muted); }

/* Admin AI panel */
[data-theme="dark"] .ai-panel .subtle { color: var(--vr-muted); }
[data-theme="dark"] .ai-step { background: #0f1a33; border-color: var(--vr-border); }
[data-theme="dark"] .ai-step-body strong { color: var(--vr-ink); }
[data-theme="dark"] .ai-step-body small { color: var(--vr-muted); }
[data-theme="dark"] .ai-loader { background: rgba(79,70,229,.12); color: #a5b4fc; border-color: rgba(79,70,229,.3); }
[data-theme="dark"] .ai-result { background: rgba(16,185,129,.12); color: #6ee7b7; border-color: rgba(16,185,129,.3); }
[data-theme="dark"] .ai-tabs { background: var(--vr-card); border-color: var(--vr-border); }
[data-theme="dark"] .ai-tabs a { color: var(--vr-ink-soft); }
[data-theme="dark"] .ai-tabs a:hover { background: #1e293b; color: var(--vr-ink); }

/* Image picker */
[data-theme="dark"] .image-picker { background: #0f1a33; border-color: var(--vr-border); }
[data-theme="dark"] .image-picker .tabs { background: #1e293b; }
[data-theme="dark"] .image-picker .tabs button { color: var(--vr-ink-soft); }
[data-theme="dark"] .image-picker .tabs button.active { background: var(--vr-card); color: var(--vr-brand-dark); }
[data-theme="dark"] .image-picker .preview { background: var(--vr-card); border-color: var(--vr-border); }

/* Media library */
[data-theme="dark"] .media-item { background: #0f1a33; border-color: var(--vr-border); }
[data-theme="dark"] .media-item:hover { border-color: var(--vr-brand); }

/* ---- Contact / About / Dashboard specific fixes ---- */
[data-theme="dark"] .channel .lbl { color: var(--vr-muted); }
[data-theme="dark"] .channel .val { color: var(--vr-ink); }
[data-theme="dark"] .channel .arrow { color: var(--vr-muted); }
[data-theme="dark"] .channel:hover .arrow { color: var(--vr-brand-dark); }
[data-theme="dark"] .resp-card .val { color: var(--vr-brand-dark); }
[data-theme="dark"] .resp-card .lbl { color: var(--vr-muted); }

[data-theme="dark"] .founder-card h2 { color: var(--vr-ink); }
[data-theme="dark"] .founder-card .bio { color: var(--vr-ink-soft); }
[data-theme="dark"] .founder-card .bio a { color: #6ee7b7; }

/* ---- Banners / coupons content ---- */
[data-theme="dark"] .coupon-card .title { color: var(--vr-ink); }
[data-theme="dark"] .coupon-card .desc { color: var(--vr-muted); }
[data-theme="dark"] .coupon-code { background: var(--vr-card); color: var(--vr-brand-dark); }

/* ---- Filter chips / sort bars ---- */
[data-theme="dark"] .cat-bar a {
  background: var(--vr-card);
  color: var(--vr-ink-soft);
  border-color: var(--vr-border);
}
[data-theme="dark"] .cat-bar a:hover { color: #6ee7b7; border-color: var(--vr-brand); }
[data-theme="dark"] .cat-bar a.active { background: #e2e8f0; color: #0a0f1e; border-color: #e2e8f0; }
[data-theme="dark"] .cat-bar a .c { background: rgba(255,255,255,.08); }
[data-theme="dark"] .result-count { color: var(--vr-muted); }

/* ---- Mobile table cards in dark mode ---- */
@media (max-width: 768px) {
  [data-theme="dark"] .top10-table tr {
    background: var(--vr-card);
    border-color: var(--vr-border);
    box-shadow: 0 6px 16px -10px rgba(0,0,0,.5);
  }
  [data-theme="dark"] .top10-table td::before { color: var(--vr-muted); }
  [data-theme="dark"] .top10-table td[data-label="Provider"],
  [data-theme="dark"] .top10-table td[data-label="Actions"] { border-color: var(--vr-border); }
}

/* ---- Footer text stays light since footer background is always dark ---- */
[data-theme="dark"] footer.site-footer { background: #050912; }
[data-theme="dark"] .fn-input { background: var(--vr-card); }
[data-theme="dark"] .fn-input input { color: var(--vr-ink); background: transparent; }

/* ---- Navbar + topbar remain dark/light as designed ---- */
[data-theme="dark"] .main-nav { background: rgba(17, 26, 46, 0.98); border-color: var(--vr-border); }
[data-theme="dark"] .main-nav .nav-link { color: var(--vr-ink-soft) !important; }
[data-theme="dark"] .main-nav .nav-link:hover,
[data-theme="dark"] .main-nav .nav-link.active { color: #6ee7b7 !important; background: rgba(16,185,129,.1); }
[data-theme="dark"] .navbar-brand { color: var(--vr-ink); }
[data-theme="dark"] .navbar-brand:hover { color: var(--vr-ink); }
[data-theme="dark"] .navbar-brand .brand-dot { color: var(--vr-brand-dark); }
[data-theme="dark"] .theme-toggle { background: var(--vr-card); color: var(--vr-ink); border-color: var(--vr-border); }
[data-theme="dark"] .theme-toggle:hover { color: #6ee7b7; border-color: var(--vr-brand); }
[data-theme="dark"] .nav-mobile-toggle { background: var(--vr-card); color: var(--vr-ink); border-color: var(--vr-border); }
[data-theme="dark"] .mega-menu { background: var(--vr-card); border-color: var(--vr-border); }
[data-theme="dark"] .mega-item { color: var(--vr-ink-soft); }
[data-theme="dark"] .mega-item strong { color: var(--vr-ink); }
[data-theme="dark"] .mega-item small { color: var(--vr-muted); }
[data-theme="dark"] .mega-item:hover { background: #1e293b; color: var(--vr-ink); }
[data-theme="dark"] .mobile-menu { border-color: var(--vr-border); }
[data-theme="dark"] .mobile-link { color: var(--vr-ink-soft); border-color: var(--vr-border); }
[data-theme="dark"] .mobile-link:hover { color: #6ee7b7; background: rgba(16,185,129,.08); }
[data-theme="dark"] .mobile-section { color: var(--vr-muted); }

/* ---- Login / register / forgot / reset pages ---- */
[data-theme="dark"] .card-premium h1,
[data-theme="dark"] .card-premium h2,
[data-theme="dark"] .card-premium h3 { color: var(--vr-ink); }

/* ---- Analytics charts wrapper ---- */
[data-theme="dark"] .chart-wrap { background: transparent; }

/* ---- Pill/chip defaults ---- */
[data-theme="dark"] .chip {
  background: rgba(16,185,129,.12);
  color: #6ee7b7;
}

/* ---- Plan CTA buttons inside tables ---- */
[data-theme="dark"] .plan-cta {
  background: var(--vr-brand);
  color: #0a0f1e !important;
}
[data-theme="dark"] .plan-cta:hover { background: var(--vr-brand-dark); }

/* ---- Generic placeholder fix ---- */
[data-theme="dark"] ::placeholder { color: #64748b !important; }

/* ---- Selection color ---- */
[data-theme="dark"] ::selection { background: rgba(16,185,129,.3); color: var(--vr-ink); }

/* ---- Scrollbar ---- */
[data-theme="dark"] ::-webkit-scrollbar { background: #0a0f1e; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ===== Premium Bespoke Floating Header Override ===== */
.main-nav {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 992px) {
  .main-nav.scrolled {
    top: 16px;
    margin: 0 auto;
    width: calc(100% - 48px);
    max-width: 1240px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.02);
  }
  [data-theme="dark"] .main-nav.scrolled {
    border-color: rgba(31, 42, 68, 0.45);
    background: rgba(17, 26, 46, 0.75) !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.02);
  }
}

/* Dropdown menu smooth 3D flip-in transition */
.has-dropdown {
  perspective: 1000px;
}
.has-dropdown .mega-menu {
  visibility: hidden;
  opacity: 0;
  transform: translateX(-50%) translateY(12px) rotateX(-10deg);
  transform-origin: 50% 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
  border-radius: 20px;
  border: 1px solid var(--vr-border);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
[data-theme="dark"] .has-dropdown .mega-menu {
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.has-dropdown:hover .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0) rotateX(0deg);
}

/* Interactive indicators for links */
.main-nav .nav-link {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--vr-brand);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* ===== 3D Perspective Provider Cards ===== */
.pcard {
  background: var(--vr-card);
  border: 1px solid var(--vr-border);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
  overflow: visible;
  box-shadow: var(--vr-shadow);
}
.pcard:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 20px 45px -15px rgba(16, 185, 129, 0.18), var(--vr-shadow-lg);
}
.pcard.is-featured {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15), var(--vr-shadow);
}
.pcard.is-featured:hover {
  border-color: rgba(16, 185, 129, 0.65);
  box-shadow: 0 25px 50px -15px rgba(16, 185, 129, 0.28), var(--vr-shadow-lg);
}

/* Floating Ribbon Badge design */
.pcard-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}
.pcard-ribbon.sp {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.25);
}
[data-theme="dark"] .pcard-ribbon.sp {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}
.pcard-ribbon.ed {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
[data-theme="dark"] .pcard-ribbon.ed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* Custom Button Designs inside cards */
.btn-pcard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-pcard-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff !important;
  box-shadow: 0 4px 12px -3px rgba(16, 185, 129, 0.3);
}
.btn-pcard-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -3px rgba(16, 185, 129, 0.45);
}
.btn-pcard-visit {
  background: rgba(255, 255, 255, 0.05);
  color: var(--vr-ink-soft) !important;
  border-color: var(--vr-border);
}
.btn-pcard-visit:hover {
  background: var(--vr-ink);
  color: #fff !important;
  border-color: var(--vr-ink);
  transform: translateY(-1px);
}
.btn-pcard-compare {
  background: transparent;
  color: var(--vr-muted) !important;
  border-color: var(--vr-border);
}
.btn-pcard-compare:hover {
  background: rgba(16, 185, 129, 0.08);
  color: var(--vr-brand-dark) !important;
  border-color: rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

/* Micro interaction for verified badge */
.pcard-verified {
  color: #3b82f6;
  animation: pulseVerification 3s infinite alternate;
}
@keyframes pulseVerification {
  0% { opacity: 0.85; }
  100% { opacity: 1; text-shadow: 0 0 4px rgba(59, 130, 246, 0.3); }
}
