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

* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
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 migrated to /assets/css/header-premium.css ===== */

/* Buttons */
.btn-brand { background: var(--brand); border: none; color: #fff; font-weight: 600; padding: .6rem 1.2rem; border-radius: 10px; transition: all .2s; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -10px var(--brand); }
.btn-outline-brand { border: 1.5px solid var(--brand); color: var(--brand-dark); background: transparent; font-weight: 600; border-radius: 10px; padding: .55rem 1.1rem; }
.btn-outline-brand:hover { background: var(--brand); color:#fff; }
.btn-ghost { background: transparent; color: var(--ink-soft); border:1px solid var(--border); }
.btn-visit {
  background: linear-gradient(135deg, var(--brand), var(--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(--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(--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.4rem; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card-premium:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(16,185,129,.35); }
.card-premium h3, .card-premium h4 { color: var(--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(--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 .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--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(--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(--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, 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(--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(--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; }


/* ===== World-Class Provider Cards (Rebuilt Professional) ===== */
.pcard {
  background: var(--card, #ffffff);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease;
  overflow: hidden;
}

[data-theme="dark"] .pcard {
  background: #0f172a;
  border-color: rgba(51, 65, 85, 0.7);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Card top accent line on hover */
.pcard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3.5px;
  background: transparent;
  transition: background 0.3s ease;
}

.pcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.12),
              0 0 0 1px rgba(16, 185, 129, 0.35);
  border-color: rgba(16, 185, 129, 0.5);
}

.pcard:hover::before {
  background: linear-gradient(90deg, #10b981, #059669, #3b82f6);
}

/* Featured card highlight */
.pcard.is-featured {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 6px 22px -4px rgba(245, 158, 11, 0.12);
}
.pcard.is-featured::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #10b981);
}

/* Ribbon Badges (Top Right) */
.pcard-ribbons {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  z-index: 3;
}

.pcard-ribbon {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.pcard-ribbon-sponsored {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  text-transform: uppercase;
}
[data-theme="dark"] .pcard-ribbon-sponsored {
  background: #1e293b;
  color: #94a3b8;
  border-color: #334155;
}

.pcard-ribbon-featured {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.45);
  text-transform: uppercase;
}

/* Head: Logo + Meta */
.pcard-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 90px; /* Space for top-right badges */
}

.pcard-logo-wrap {
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px -3px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  text-decoration: none;
}
.pcard:hover .pcard-logo-wrap {
  transform: scale(1.04);
  border-color: #cbd5e1;
}
[data-theme="dark"] .pcard-logo-wrap {
  background: #1e293b;
  border-color: #334155;
}

.pcard-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pcard-head-info {
  min-width: 0;
  flex: 1;
}

.pcard-category-pill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand, #10b981);
  margin-bottom: 2px;
}

.pcard-title {
  margin: 0 0 4px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.pcard-title a {
  color: var(--ink, #0f172a);
  text-decoration: none;
  transition: color 0.15s ease;
}
.pcard-title a:hover {
  color: var(--brand, #10b981);
}
[data-theme="dark"] .pcard-title a {
  color: #f8fafc;
}
[data-theme="dark"] .pcard-title a:hover {
  color: #34d399;
}

.pcard-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--muted, #64748b);
}

.pcard-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pcard-meta-tag i {
  font-size: 0.8rem;
}

.pcard-verified-tag {
  color: #0284c7;
  font-weight: 600;
}
.pcard-verified-tag i {
  color: #0284c7;
}

/* Technical Specs Pills Bar (More Info) */
.pcard-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 2px;
}

.pcard-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 3.5px 8.5px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.pcard-spec-pill i {
  color: var(--brand, #10b981);
  font-size: 0.75rem;
}
[data-theme="dark"] .pcard-spec-pill {
  background: rgba(30, 41, 59, 0.7);
  color: #cbd5e1;
  border-color: #334155;
}

/* Summary / Description */
.pcard-summary {
  font-size: 0.86rem;
  color: var(--muted, #64748b);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
[data-theme="dark"] .pcard-summary {
  color: #94a3b8;
}

/* Feature Checklist */
.pcard-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.pcard-highlights li {
  font-size: 0.78rem;
  color: var(--ink-soft, #334155);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-theme="dark"] .pcard-highlights li {
  color: #cbd5e1;
}

.pcard-highlights li i {
  color: var(--brand, #10b981);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Metrics Grid (3 columns) */
.pcard-metrics-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 8px;
  padding: 12px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
[data-theme="dark"] .pcard-metrics-grid {
  background: rgba(15, 23, 42, 0.6);
  border-color: #1e293b;
}

.pcard-metric-col {
  text-align: center;
  padding: 0 4px;
  border-right: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pcard-metric-col:last-child {
  border-right: none;
}
[data-theme="dark"] .pcard-metric-col {
  border-right-color: rgba(51, 65, 85, 0.5);
}

.metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink, #0f172a);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
[data-theme="dark"] .metric-val {
  color: #f8fafc;
}

.metric-val .metric-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted, #64748b);
}
.metric-val .metric-currency {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted, #64748b);
  margin-right: 1px;
}

.pcard-metric-rating .metric-val strong {
  color: #d97706;
}
.pcard-metric-pricing .metric-val strong {
  color: var(--brand-dark, #059669);
}
[data-theme="dark"] .pcard-metric-pricing .metric-val strong {
  color: #34d399;
}
.pcard-metric-uptime .metric-val strong {
  color: #2563eb;
}
[data-theme="dark"] .pcard-metric-uptime .metric-val strong {
  color: #60a5fa;
}

.metric-lbl {
  font-size: 0.68rem;
  color: var(--muted, #64748b);
  margin-top: 4px;
  line-height: 1.2;
}

.metric-stars {
  font-size: 0.65rem;
  line-height: 1;
  margin-bottom: 2px;
}

.metric-review-link {
  color: var(--muted, #64748b);
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}
.metric-review-link:hover {
  color: var(--brand, #10b981);
}

.metric-badge {
  display: inline-block;
  font-weight: 600;
  color: var(--muted, #64748b);
}

.metric-sla {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  color: var(--muted, #64748b);
}

/* Trust footer bar (More Info) */
.pcard-trust-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #065f46;
}
[data-theme="dark"] .pcard-trust-footer {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
}

.pcard-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Action Buttons Container (Rebuilt Pro Style) */
.pcard-action-buttons {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Primary Outbound CTA Button */
.btn-pcard-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 11px;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 14px -2px rgba(16, 185, 129, 0.42);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-pcard-cta:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -3px rgba(16, 185, 129, 0.55);
}

.btn-pcard-cta i {
  font-size: 0.88rem;
  transition: transform 0.2s ease;
}
.btn-pcard-cta:hover i {
  transform: translate(2px, -2px);
}

/* Secondary Row of Buttons */
.pcard-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-pcard-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9.5px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

/* Read Review Button */
.btn-pcard-review {
  background: #f8fafc;
  color: #1e293b !important;
  border: 1px solid #cbd5e1;
}
.btn-pcard-review:hover {
  background: #0f172a;
  color: #ffffff !important;
  border-color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.2);
}
[data-theme="dark"] .btn-pcard-review {
  background: #1e293b;
  color: #f1f5f9 !important;
  border-color: #334155;
}
[data-theme="dark"] .btn-pcard-review:hover {
  background: #334155;
  color: #ffffff !important;
  border-color: #475569;
}

/* Compare Button */
.btn-pcard-compare {
  background: #f8fafc;
  color: #475569 !important;
  border: 1px solid #cbd5e1;
}
.btn-pcard-compare:hover {
  background: rgba(16, 185, 129, 0.08);
  color: var(--brand-dark, #059669) !important;
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}
.btn-pcard-compare.active {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.4);
}
[data-theme="dark"] .btn-pcard-compare {
  background: #1e293b;
  color: #94a3b8 !important;
  border-color: #334155;
}
[data-theme="dark"] .btn-pcard-compare:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399 !important;
  border-color: #10b981;
}

/* Mobile: Card refinements */
@media (max-width: 480px) {
  .pcard { padding: 18px 16px; gap: 12px; }
  .pcard-head { padding-right: 0; }
  .pcard-ribbons { position: static; flex-direction: row; margin-bottom: 4px; }
  .pcard-highlights { grid-template-columns: 1fr; }
  .pcard-btn-row { grid-template-columns: 1fr; }
}

/* ===== 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 horizontal overflow without breaking position: sticky */
html { overflow-x: clip; }
body { overflow-x: clip; min-height: 100vh; }
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; }
}

/* Header and hero styles are handled in header-premium.css and hero-premium.css */

/* ===== 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)); }
}


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

/* ---- Color token refinement for dark mode ---- */
[data-theme="dark"] {
  --bg: #0a0f1e;
  --card: #111a2e;
  --ink: #e2e8f0;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --border: #1f2a44;
  --brand: #10b981;
  --brand-dark: #34d399;
  --brand-light: #064e3b;
  --shadow: 0 10px 30px -15px rgba(0,0,0,.6);
  --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(--bg); color: var(--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(--ink) !important; }
[data-theme="dark"] .text-muted { color: var(--muted) !important; }
[data-theme="dark"] .text-body, [data-theme="dark"] .text-body-secondary { color: var(--ink-soft) !important; }
[data-theme="dark"] .text-black { color: var(--ink) !important; }

[data-theme="dark"] strong, [data-theme="dark"] b { color: var(--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(--ink); }
[data-theme="dark"] p { color: var(--ink-soft); }
[data-theme="dark"] small { color: var(--muted); }
[data-theme="dark"] hr { border-color: var(--border); }

/* Bootstrap bg-light/white utilities must NOT render pure white in dark mode */
[data-theme="dark"] .bg-light { background: var(--card) !important; color: var(--ink); }
[data-theme="dark"] .bg-white { background: var(--card) !important; color: var(--ink); }
[data-theme="dark"] .border { border-color: var(--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(--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(--card);
  border-color: var(--border);
  color: var(--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(--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(--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(--ink);
  border-color: var(--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(--ink);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(16,185,129,.25);
}
[data-theme="dark"] .form-label { color: var(--ink-soft); }
[data-theme="dark"] .form-check-label { color: var(--ink-soft); }
[data-theme="dark"] .form-check-input {
  background-color: #0f1a33;
  border-color: var(--border);
}
[data-theme="dark"] .form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

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

/* Provider card dark mode styles handled above */

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

/* ---- Stats row inside provider card ---- */
[data-theme="dark"] .pcard-stats {
  background: linear-gradient(180deg, #0f1a33, #0a0f1e);
  border-color: var(--border);
}
[data-theme="dark"] .pcard-stat-val { color: var(--ink); }
[data-theme="dark"] .pcard-stat-lbl { color: var(--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(--bg); border-color: var(--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(--card);
  border-color: var(--border);
}
[data-theme="dark"] .accordion-button {
  background: var(--card);
  color: var(--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(--ink-soft); }

/* ---- Breadcrumb ---- */
[data-theme="dark"] .breadcrumb { --bs-breadcrumb-divider-color: var(--muted); }
[data-theme="dark"] .breadcrumb-item a { color: var(--ink-soft); }
[data-theme="dark"] .breadcrumb-item.active { color: var(--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(--card); border-color: var(--border); }
[data-theme="dark"] .modal-header, [data-theme="dark"] .modal-footer { border-color: var(--border); }
[data-theme="dark"] .modal-title { color: var(--ink); }
[data-theme="dark"] .btn-close { filter: invert(1) brightness(1.4); }

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

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

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

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

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

/* Dashboard list rows */
[data-theme="dark"] .list-row { border-color: var(--border); }
[data-theme="dark"] .list-row .avatar { background: #1e293b; color: var(--ink); }
[data-theme="dark"] .list-row .main strong { color: var(--ink); }
[data-theme="dark"] .list-row .main small { color: var(--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(--card);
  border-color: var(--border);
  color: var(--ink);
}
[data-theme="dark"] .quick-action:hover {
  background: rgba(16,185,129,.1);
  color: #6ee7b7;
  border-color: var(--brand);
}

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

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

/* Coupons page */
[data-theme="dark"] .cp-cat {
  background: var(--card);
  border-color: var(--border);
  color: var(--ink-soft);
}
[data-theme="dark"] .cp-cat:hover { color: #6ee7b7; border-color: var(--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(--brand);
}
[data-theme="dark"] .cpc-code-wrap.revealed .cpc-code-hidden {
  background: #0a0f1e;
  color: var(--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(--ink); }
[data-theme="dark"] .fact-card .lbl { color: var(--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(--card); border-color: var(--border); }
[data-theme="dark"] .trust-bar-title { color: var(--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(--ink); }
[data-theme="dark"] .legal-content h3 { color: var(--ink); }
[data-theme="dark"] .legal-content strong { color: var(--ink); }
[data-theme="dark"] .legal-content thead { background: #1e293b; }
[data-theme="dark"] .legal-content th,
[data-theme="dark"] .legal-content td { border-color: var(--border); color: var(--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(--card); border-color: var(--border); }
[data-theme="dark"] .related-links h3 { color: var(--ink); }
[data-theme="dark"] .related-link {
  background: #0f1a33;
  color: var(--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(--ink-soft); }
[data-theme="dark"] .post-content p { color: var(--ink-soft); }
[data-theme="dark"] .post-content h2,
[data-theme="dark"] .post-content h3 { color: var(--ink); }
[data-theme="dark"] .post-content p.lead { color: var(--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(--ink-soft); }
[data-theme="dark"] .post-content strong { color: var(--ink); }

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

/* Admin AI panel */
[data-theme="dark"] .ai-panel .subtle { color: var(--muted); }
[data-theme="dark"] .ai-step { background: #0f1a33; border-color: var(--border); }
[data-theme="dark"] .ai-step-body strong { color: var(--ink); }
[data-theme="dark"] .ai-step-body small { color: var(--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(--card); border-color: var(--border); }
[data-theme="dark"] .ai-tabs a { color: var(--ink-soft); }
[data-theme="dark"] .ai-tabs a:hover { background: #1e293b; color: var(--ink); }

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

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

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

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

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

/* ---- Filter chips / sort bars ---- */
[data-theme="dark"] .cat-bar a {
  background: var(--card);
  color: var(--ink-soft);
  border-color: var(--border);
}
[data-theme="dark"] .cat-bar a:hover { color: #6ee7b7; border-color: var(--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(--muted); }

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

/* Header styling is strictly maintained in header-premium.css (pure light mode) */
[data-theme="dark"] .mega-item small { color: var(--muted); }
[data-theme="dark"] .mega-item:hover { background: #1e293b; color: var(--ink); }
[data-theme="dark"] .mobile-menu { border-color: var(--border); }
[data-theme="dark"] .mobile-link { color: var(--ink-soft); border-color: var(--border); }
[data-theme="dark"] .mobile-link:hover { color: #6ee7b7; background: rgba(16,185,129,.08); }
[data-theme="dark"] .mobile-section { color: var(--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(--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(--brand);
  color: #0a0f1e !important;
}
[data-theme="dark"] .plan-cta:hover { background: var(--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(--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; }

/* Header styling is maintained cleanly and non-merged in header-premium.css */

/* ===== 3D Perspective Provider Cards ===== */
.pcard {
  background: var(--card);
  border: 1px solid var(--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(--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(--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(--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(--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;
}

/* Card button enhancements unified above in World-Class Provider Cards */

/* 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); }
}

/* ============================================================
   REBUILT DARK MODE, THEME SWITCHER & MOBILE TABLE RESPONSIVENESS
   ============================================================ */

/* Theme Variables Safeguard */
:root {
  --brand: #10b981;
  --brand-dark: #059669;
  --brand-light: #ecfdf5;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 10px 30px -15px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px -20px rgba(15, 23, 42, 0.15);
}

[data-theme="dark"] {
  --brand: #10b981;
  --brand-dark: #34d399;
  --brand-light: #064e3b;
  --ink: #f8fafc;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --bg: #0b1220;
  --card: #111a2e;
  --border: #1f2a44;
  --shadow: 0 10px 30px -15px rgba(0,0,0,0.6);
  --shadow-lg: 0 20px 50px -20px rgba(0,0,0,0.8);
}

/* Ensure background & text adapt instantly */
html, body {
  background-color: var(--bg) !important;
  color: var(--ink) !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Fix Card Backgrounds & Text Contrast across BOTH Light & Dark Modes */
.pcard,
.card,
.card-premium,
.blog-tile,
.blog-card,
.review-tile,
.review-item,
.why-card,
.intro-card,
.fact-card,
.plans-table,
.rating-breakdown,
.coupon-card,
.cat-tile,
.country-tile,
.finder-card,
.post-toc,
.review-toc,
.contact-card,
.mini-coupon {
  background-color: var(--card) !important;
  border-color: var(--border) !important;
  color: var(--ink) !important;
}

/* Card titles and body text */
.pcard-name,
.pcard h3,
.card h3, .card h4,
.blog-tile h3,
.blog-card h4,
.review-tile .who strong,
.why-card h4,
.intro-card h4,
.fact-card .val,
.plan-name,
.mini-coupon h5,
.review-article h2,
.review-article h3,
.post-content h2,
.post-content h3 {
  color: var(--ink) !important;
}

.pcard-desc,
.pcard-stat-lbl,
.blog-tile .excerpt,
.blog-tile .date,
.review-tile .content,
.why-card p,
.intro-card p,
.fact-card .lbl,
.review-article p,
.post-content p,
.post-content li {
  color: var(--ink-soft) !important;
}

/* Card buttons unified in World-Class Provider Cards */

/* Logo Box styling */
.pcard-logo {
  background: #f1f5f9;
  border: 1px solid var(--border);
}
[data-theme="dark"] .pcard-logo {
  background: #1e293b !important;
}

/* ===== UNIVERSAL TABLE RESPONSIVENESS (Mobile Blog & Provider Reviews) ===== */
.table-responsive-wrapper {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 !important;
  border-radius: 14px !important;
  border: 1px solid var(--border) !important;
  background: var(--card) !important;
  box-shadow: var(--shadow) !important;
}

.post-content table,
.review-article table,
.table-responsive-wrapper table {
  width: 100% !important;
  min-width: 560px !important; /* Prevents columns from smashing on small mobile screens */
  border-collapse: collapse !important;
  margin: 0 !important;
  font-size: 0.92rem !important;
}

.post-content th, .post-content td,
.review-article th, .review-article td,
.table-responsive-wrapper th, .table-responsive-wrapper td {
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--ink) !important;
  vertical-align: middle !important;
}

.post-content thead,
.review-article thead,
.table-responsive-wrapper thead {
  background: linear-gradient(135deg, #0f172a, #1e293b) !important;
  color: #ffffff !important;
}
[data-theme="dark"] .post-content thead,
[data-theme="dark"] .review-article thead,
[data-theme="dark"] .table-responsive-wrapper thead {
  background: linear-gradient(135deg, #070d19, #0f1a33) !important;
  color: #ffffff !important;
}

.post-content thead th,
.review-article thead th,
.table-responsive-wrapper thead th {
  color: #ffffff !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  border-bottom: none !important;
}

.post-content tbody tr:nth-child(even),
.review-article tbody tr:nth-child(even),
.table-responsive-wrapper tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.02) !important;
}
[data-theme="dark"] .post-content tbody tr:nth-child(even),
[data-theme="dark"] .review-article tbody tr:nth-child(even),
[data-theme="dark"] .table-responsive-wrapper tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.02) !important;
}

/* Custom Scrollbars for responsive tables */
.table-responsive-wrapper::-webkit-scrollbar {
  height: 6px;
}
.table-responsive-wrapper::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 999px;
}
.table-responsive-wrapper::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}
.table-responsive-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

/* ===== MOBILE MODE PROFESSIONAL RESPONSIVENESS ===== */
@media (max-width: 768px) {
  .container-xxl {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  
  .pcard {
    padding: 20px 16px !important;
  }
  .pcard-head {
    padding-right: 70px !important;
  }
  .pcard-logo {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
  }
  .pcard-name {
    font-size: 1rem !important;
  }
  .pcard-features {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }
  .pcard-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .btn-pcard {
    width: 100% !important;
    justify-content: center !important;
  }
  
  /* Blog & Provider Review Titles */
  .post-content h2, .review-article h2 {
    font-size: 1.35rem !important;
  }
  .post-content h3, .review-article h3 {
    font-size: 1.15rem !important;
  }
  
  /* Mobile table scroll hint */
  .table-responsive-wrapper::after {
    content: 'Scroll →';
    display: block;
    text-align: right;
    font-size: 0.72rem;
    color: var(--muted);
    padding: 4px 12px 6px;
    font-weight: 700;
  }
}

/* ==========================================================================
   MINI COUPONS & PROMO DEALS (Universal Resilient Component)
   ========================================================================== */
.mini-coupons,
.mini-coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.mini-coupon,
.mini-coupon-card {
  background: var(--card, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

.mini-coupon:hover,
.mini-coupon-card:hover {
  transform: translateY(-4px);
  border-color: #10b981;
  box-shadow: 0 16px 32px -8px rgba(16, 185, 129, 0.16),
              0 4px 12px rgba(15, 23, 42, 0.04);
}

.mini-coupon::before,
.mini-coupon-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mini-coupon:hover::before,
.mini-coupon-card:hover::before {
  opacity: 1;
}

/* Coupon Header & Brand */
.mini-coupon .head,
.mcc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mcc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mini-coupon .head img,
.mcc-logo {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 5px;
  object-fit: contain !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mcc-logo img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.mcc-provider-name {
  font-weight: 750;
  font-size: 0.95rem;
  color: var(--ink, #0f172a);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mcc-verified {
  font-size: 0.72rem;
  font-weight: 600;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

/* Discount Badge */
.mini-coupon .disc,
.mcc-disc-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 4px 12px -2px rgba(239, 68, 68, 0.35);
  flex-shrink: 0;
}

/* Title & Description */
.mini-coupon h5,
.mcc-title {
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.4;
  color: var(--ink, #0f172a);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.mcc-desc {
  font-size: 0.84rem;
  color: var(--muted, #64748b);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Interactive Promo Code Box */
.mini-coupon .code,
.mcc-code-box,
.coupon-code-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1.5px dashed rgba(16, 185, 129, 0.45);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: all;
  text-align: center;
}

.mini-coupon .code:hover,
.mcc-code-box:hover,
.coupon-code-box:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
  transform: scale(1.01);
}

.mcc-code-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #64748b);
}

.mini-coupon .code,
.mcc-code-txt,
.coupon-code-box {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #059669;
}

.mcc-copy-btn {
  font-size: 0.85rem;
  color: #10b981;
  display: flex;
  align-items: center;
}

/* Call to Action */
.mcc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.mcc-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -4px rgba(16, 185, 129, 0.35);
}

/* Dark mode overrides */
[data-theme="dark"] .mini-coupon,
[data-theme="dark"] .mini-coupon-card {
  background: #0d1527 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .mini-coupon:hover,
[data-theme="dark"] .mini-coupon-card:hover {
  border-color: #10b981 !important;
  box-shadow: 0 18px 36px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .mcc-logo,
[data-theme="dark"] .mini-coupon .head img {
  background: #152238 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .mcc-provider-name,
[data-theme="dark"] .mini-coupon h5,
[data-theme="dark"] .mcc-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .mcc-desc {
  color: #94a3b8 !important;
}

[data-theme="dark"] .mini-coupon .code,
[data-theme="dark"] .mcc-code-box,
[data-theme="dark"] .coupon-code-box {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

[data-theme="dark"] .mcc-code-txt {
  color: #34d399 !important;
}


