/* VPSRated.com - Premium hosting comparison theme */
:root {
  --brand: #0ea5e9;
  --brand-dark: #0284c7;
  --brand-light: #e0f2fe;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px -15px rgba(15, 23, 42, 0.15);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.4);
  --radius: 16px;
  --radius-sm: 12px;
}
[data-theme="dark"] {
  --ink: #f8fafc;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --bg: #090e17;
  --card: rgba(15, 23, 42, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 40px -10px rgba(0,0,0,0.8);
  --shadow-glow: 0 0 25px rgba(14, 165, 233, 0.5);
}

* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; letter-spacing: -0.01em; }
a { color: var(--brand-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--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(--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(--ink); text-decoration: none;
  letter-spacing: -.01em;
}
.navbar-brand:hover { color: var(--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(--brand-dark); }

.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(--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(--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(--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(--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(--ink);
  transition: background .15s, transform .15s;
}
.mega-item:hover { background: #f8fafc; color: var(--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(--ink); font-size: .88rem; font-weight: 700; line-height: 1.2; }
.mega-item small { color: var(--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(--border); background: var(--card);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s; font-size: 1rem;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--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(--border); background: var(--card);
  color: var(--ink); font-size: 1.4rem;
  cursor: pointer;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  padding: 12px 0 20px;
  border-top: 1px solid var(--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(--muted); padding: 14px 4px 6px;
}
.mobile-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px; color: var(--ink);
  text-decoration: none; font-weight: 500; font-size: .95rem;
  border-bottom: 1px solid var(--border);
}
.mobile-link:last-child { border-bottom: 0; }
.mobile-link:hover { color: var(--brand-dark); }
.mobile-link i { color: var(--brand); font-size: 1.1rem; width: 22px; }

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

/* Buttons */
.btn-brand { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border: none; color: #fff; font-weight: 600; padding: .7rem 1.4rem; border-radius: 12px; transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3); }
.btn-brand:hover { background: linear-gradient(135deg, var(--brand-dark), #0369a1); color: #fff; transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-glow); }
.btn-outline-brand { border: 1.5px solid var(--brand); color: var(--brand-dark); background: transparent; font-weight: 600; border-radius: 12px; padding: .65rem 1.3rem; transition: all 0.3s; }
.btn-outline-brand:hover { background: var(--brand); color:#fff; box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink-soft); border:1px solid var(--border); border-radius: 12px; transition: all 0.3s; }
.btn-ghost:hover { background: var(--border); transform: translateY(-2px); }
.btn-visit {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color:#fff; font-weight: 700; padding: .65rem 1.2rem; border-radius: 12px; display: inline-flex; align-items:center; gap:.4rem;
  box-shadow: 0 10px 25px -8px var(--brand); transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-visit:hover { color:#fff; transform: translateY(-3px) scale(1.03); box-shadow: var(--shadow-glow); }

/* 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(--brand); box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.filter-card .form-control::placeholder { color: #94a3b8; }

/* Cards */
.card-premium {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.card-premium:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(14, 165, 233, 0.4); }
.card-premium h3, .card-premium h4 { color: var(--ink); font-weight: 800; }

/* 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(--brand-dark); }
.price-big { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.price-big .per { font-size: .85rem; color: var(--muted); font-weight: 500; }

/* Top 10 table */
.top10-table { background: var(--card); border-radius: var(--radius); overflow: hidden; border:1px solid var(--border); box-shadow: var(--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(--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(--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(--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(--ink); }
.section-subtitle { color: var(--muted); font-size: 1.05rem; }
.section-eyebrow { color: var(--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(--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(--card); border: 1px solid var(--border); border-radius: var(--radius) !important; margin-bottom:.75rem; overflow:hidden; }
.accordion-button { background: var(--card); color: var(--ink); font-weight: 600; }
.accordion-button:not(.collapsed) { background: var(--brand-light); color: var(--brand-dark); }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(16,185,129,.25); }

/* Reviews / testimonials */
.review-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--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(--card); border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); backdrop-filter: blur(10px); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(14, 165, 233, 0.3); }
.blog-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg,#0f172a,#1e293b); display:flex; align-items:center; justify-content:center; color: var(--brand); overflow: hidden; }
.blog-card .thumb img { width:100%; height:100%; object-fit:cover; transition: transform 0.5s ease; }
.blog-card:hover .thumb img { transform: scale(1.05); }
.blog-card .body { padding: 1.5rem; }
.blog-card h4 { font-size: 1.15rem; font-weight: 800; margin: .5rem 0; color: var(--ink); }

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

/* ===== Footer newsletter strip ===== */
.footer-newsletter {
  background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
  padding: 56px 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.footer-newsletter::before, .footer-newsletter::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.08); 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; font-weight: 800; font-size: 1.5rem; margin: 0 0 6px; }
.fn-text p  { color: rgba(255,255,255,.8); 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: #fff; border-radius: 10px;
  display: flex; align-items: center; padding: 0 14px;
  box-shadow: 0 10px 25px -12px rgba(0,0,0,.3);
}
.fn-input i { color: var(--muted); }
.fn-input input {
  flex: 1; border: 0; padding: 14px 8px;
  background: transparent; font-size: .95rem;
  outline: none; color: var(--ink);
}
.fn-btn {
  background: #0f172a; color: #fff; border: 0;
  padding: 14px 22px; border-radius: 10px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; transition: transform .15s;
  box-shadow: 0 10px 25px -12px rgba(0,0,0,.3);
}
.fn-btn:hover { transform: translateY(-2px); }

/* ===== Footer ===== */
footer.site-footer {
  background: #0b1220;
  color: #94a3b8;
  padding: 64px 0 32px;
  margin-top: 0;
}
.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;
}
.footer-brand:hover { color: #fff; }
.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: #94a3b8; line-height: 1.65; font-size: .9rem;
  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: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.fs-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff !important; font-size: 1rem; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.fs-btn:hover { transform: translateY(-3px); }
.fs-linkedin { background: #0077b5; }
.fs-linkedin:hover { box-shadow: 0 10px 20px -8px rgba(0,119,181,.7); }
.fs-twitter  { background: #0f172a; border: 1px solid #1f2a44; }
.fs-twitter:hover { box-shadow: 0 10px 20px -8px rgba(255,255,255,.2); }
.fs-telegram { background: #0284c7; }
.fs-telegram:hover { box-shadow: 0 10px 20px -8px rgba(2,132,199,.7); }
.fs-email    { background: #10b981; }
.fs-email:hover { box-shadow: 0 10px 20px -8px rgba(16,185,129,.7); }

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

.site-footer h5 {
  color: #fff; font-weight: 700; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: #94a3b8; text-decoration: none; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s, transform .15s;
}
.footer-links a:hover { color: #10b981; transform: translateX(3px); }
.badge-hot {
  background: #ef4444; color: #fff; font-size: .62rem; font-weight: 800;
  padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .04em;
}

.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid #1f2a44;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: #64748b;
}
.footer-bottom a { color: #94a3b8; text-decoration: none; transition: color .15s; }
.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: #1f2a44; }

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

/* Misc */
.chip { display:inline-block; padding:.25rem .7rem; border-radius:999px; background: var(--brand-light); color: var(--brand-dark); font-size:.78rem; font-weight:600; }
.shadow-soft { box-shadow: var(--shadow); }
.divider { height:1px; background: var(--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(--radius); display:flex; justify-content:space-between; align-items:center; }
.badge-soft-green { background: var(--brand-light); color: var(--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(--border); background: var(--card); color: var(--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(--border); border-radius: var(--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(--muted); font-size: .75rem; text-transform: uppercase; }
}


/* Banner slots */
.banner-slot { position: relative; }
.banner-label {
  position: absolute; top: -9px; left: 14px;
  background: var(--card); color: var(--muted);
  font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  padding: 2px 8px; border: 1px solid var(--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(--border); background: #f1f5f9; cursor: pointer; transition: all .2s;
}
.media-item:hover { border-color: var(--brand); transform: translateY(-2px); }
.media-item.selected { border-color: var(--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(--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(--ink-soft); }
.image-picker .tabs button.active { background: #fff; color: var(--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(--border); background: #fff; object-fit: contain; padding: 4px; }


/* ===== Provider cards (rebuilt v3 — richer info, same footprint) ===== */
.pcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.pcard::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, transparent);
  transition: background .3s ease;
}
.pcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.4);
}
.pcard:hover::before { background: linear-gradient(90deg, var(--brand), var(--brand-dark)); }
.pcard.is-featured { border-color: rgba(245, 158, 11, 0.4); box-shadow: 0 20px 40px -15px rgba(245, 158, 11, 0.1); }
.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(--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(--muted); display: inline-flex; align-items: center; gap: 3px; }
.pcard-hq i { font-size: .85rem; color: var(--brand-dark); }
.pcard-verified { color: var(--brand-dark); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.pcard-verified i { color: var(--brand); }

/* Description — exactly 2 lines for equal heights */
.pcard-desc {
  color: var(--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(--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(--brand);
  font-size: .9rem;
  flex-shrink: 0;
  background: var(--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(--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(--muted); }
.pcard-stat-lbl { font-size: .68rem; color: var(--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(--muted); text-decoration: underline dotted; text-decoration-thickness: 1px; }
.pcard-stat-lbl a:hover { color: var(--brand-dark); }

/* Specific stat colors */
.stat-rating { color: #f59e0b; }
.stat-rating small { color: #f59e0b; }
.stat-price { color: var(--brand-dark); }
.stat-price small:first-child { font-size: .6rem; color: var(--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(--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(--ink); color: #fff; border-color: var(--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(--brand), var(--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(--ink-soft); border-color: var(--border);
}
.btn-pcard-compare:hover { background: #f1f5f9; color: var(--ink); }
.btn-pcard-compare.active {
  background: var(--brand-light); color: var(--brand-dark); border-color: var(--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(--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(--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(--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(--card);
  border: 1px solid var(--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(--ink);
  text-decoration: none;
  font-size: .9rem; font-weight: 500;
  transition: all .15s;
}
.related-link:hover { background: var(--brand-light); color: var(--brand-dark); transform: translateX(4px); }
.related-link i { color: var(--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; }
  .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(--border);
  border-radius: 8px;
  margin-bottom: 2px;
}
.mobile-link:active { background: var(--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(--card);
    border: 1px solid var(--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(--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(--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(--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)); }
}
