/* HostWise: VPNwise-style dark navy theme */

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f1729;
  --navy-mid: #162040;
  --navy-light: #1e2f58;
  --blue: #1a73e8;
  --blue-hover: #1557b0;
  --green: #0fa854;
  --green-hover: #0a8a43;
  --pros-accent: #34d399;
  --cons-accent: #f87171;
  --gold: #f5a623;
  --gold-light: #ffd166;
  --text: #e8eaf2;
  --text-muted: #8a96b8;
  --border: #253060;
  --card-bg: #162040;
  --badge-top: #0fa854;
  --badge-fast: #1a73e8;
  --badge-value: #f5a623;
  --badge-pro: #8b5cf6;
  --badge-popular: #ef4444;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,.35);
  --transition: 0.18s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--navy); color: var(--text); line-height: 1.6; font-size: 16px; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1rem; }
p { margin-bottom: 1rem; color: var(--text); }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-alt { background: var(--navy-mid); }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.4rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.logo span.accent { color: var(--blue); }
.logo-icon {
  width: 32px; height: 32px; background: var(--blue);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 6px 14px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: var(--navy-light); color: #fff; }
.nav-cta {
  background: var(--blue) !important; color: #fff !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue-hover) !important; }
.nav-search-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 6px; border-radius: var(--radius-sm);
  display: flex; align-items: center;
  transition: color var(--transition);
}
.nav-search-btn:hover { color: #fff; }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0a0f1e 0%, #0f1729 40%, #162040 70%, #1a2a5c 100%);
  padding: 80px 0 64px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -40%; left: -10%; width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(26,115,232,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { text-align: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(26,115,232,.15); border: 1px solid rgba(26,115,232,.3);
  color: #7eb8ff; font-size: 0.8rem; font-weight: 600; letter-spacing: .06em;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 20px;
  text-transform: uppercase;
}
.hero h1 { color: #fff; margin-bottom: 16px; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero p.lead {
  font-size: 1.15rem; color: var(--text-muted); max-width: 560px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary {
  background: var(--blue); color: #fff; padding: 13px 28px;
  border-radius: var(--radius); font-weight: 600; font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
  border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); color: #fff; }
.btn-outline {
  background: transparent; color: var(--text); padding: 13px 28px;
  border-radius: var(--radius); font-weight: 600; font-size: 1rem;
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-outline:hover { background: var(--navy-light); border-color: var(--blue); color: #fff; transform: translateY(-1px); }
.hero-stats {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 32px;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; }
.hero-stat span { font-size: 0.85rem; color: var(--text-muted); }

/* Mini top-picks bar */
.top-picks-bar {
  background: var(--navy-mid); border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.top-picks-bar .container {
  display: flex; align-items: center; gap: 16px; overflow-x: auto;
  scrollbar-width: none;
}
.top-picks-bar .container::-webkit-scrollbar { display: none; }
.top-picks-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; }
.top-pick-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--navy-light); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 14px; white-space: nowrap;
  transition: border-color var(--transition);
  color: var(--text); font-size: 0.85rem; font-weight: 500;
}
.top-pick-chip:hover { border-color: var(--blue); color: #fff; }
.chip-score { background: var(--gold); color: #000; font-weight: 800; font-size: 0.75rem; border-radius: 10px; padding: 1px 7px; }

/* ── Section Headings ─────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { color: #fff; margin-bottom: 8px; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.section-tag {
  display: inline-block; background: rgba(26,115,232,.15); color: var(--blue);
  font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}

/* ── Provider Cards ───────────────────────────────────────────────────────── */
.provider-cards { display: flex; flex-direction: column; gap: 16px; }

.provider-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px;
  display: grid; grid-template-columns: 48px 1fr auto;
  gap: 0 20px; align-items: center;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.provider-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.provider-card.rank-1 { border-color: var(--gold); }
.provider-card.rank-1::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(245,166,35,.05) 0%, transparent 50%);
  pointer-events: none;
}

.rank-badge {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; flex-shrink: 0;
  background: var(--navy-light); color: var(--text-muted);
}
.rank-1 .rank-badge { background: var(--gold); color: #000; }
.rank-2 .rank-badge { background: #c0c0c0; color: #000; }
.rank-3 .rank-badge { background: #cd7f32; color: #fff; }

.card-body { min-width: 0; }
.card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.provider-name { font-size: 1.15rem; font-weight: 700; color: #fff; }
.provider-badge {
  font-size: 0.7rem; font-weight: 700; padding: 2px 9px;
  border-radius: 10px; text-transform: uppercase; letter-spacing: .05em;
}
.badge-top { background: var(--badge-top); color: #fff; }
.badge-fast { background: var(--badge-fast); color: #fff; }
.badge-value { background: var(--badge-value); color: #000; }
.badge-pro { background: var(--badge-pro); color: #fff; }
.badge-popular { background: var(--badge-popular); color: #fff; }
.badge-privacy { background: #0891b2; color: #fff; }
.badge-business { background: #374151; color: #fff; border: 1px solid #6b7280; }
.badge-cloud { background: #7c3aed; color: #fff; }
.badge-speed { background: #dc2626; color: #fff; }
.badge-wp { background: #21759b; color: #fff; }

.provider-tagline { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; line-height: 1.45; }
.provider-stars { color: var(--gold); font-size: 0.9rem; }

.provider-card-detailed .card-body { gap: 0; }
.card-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin: 14px 0 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 640px) {
  .card-pros-cons { grid-template-columns: 1fr; }
}
.card-pros-cons-col {
  border-radius: var(--radius-sm);
  padding: 10px 10px 8px;
}
.card-pros-cons > .card-pros-cons-col:first-child {
  background: rgba(15, 168, 84, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
}
.card-pros-cons > .card-pros-cons-col:last-child {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.card-pros-cons-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.card-pros-cons > .card-pros-cons-col:first-child .card-pros-cons-label {
  color: var(--pros-accent);
}
.card-pros-cons > .card-pros-cons-col:last-child .card-pros-cons-label {
  color: var(--cons-accent);
}
.card-pros-cons-list {
  margin: 0;
  padding-left: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #fff;
}
.card-pros-cons-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.card-pros-cons-list li:last-child { margin-bottom: 0; }
.card-pros-cons > .card-pros-cons-col:first-child .card-pros-cons-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-top: 0.42em;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pros-accent);
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.25);
}
.card-pros-cons > .card-pros-cons-col:last-child .card-pros-cons-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-top: 0.42em;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cons-accent);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.22);
}
[dir="rtl"] .card-pros-cons-list li { flex-direction: row-reverse; text-align: right; }
.card-meta {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px;
}
.meta-item { display: flex; flex-direction: column; }
.meta-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.meta-value { font-size: 0.9rem; font-weight: 600; color: #fff; }

.card-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  flex-shrink: 0; min-width: 160px;
}
.score-display {
  text-align: center;
}
.score-num { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1; }
.score-denom { font-size: 0.9rem; color: var(--text-muted); }
.btn-deal {
  background: var(--green); color: #fff; padding: 10px 20px;
  border-radius: var(--radius); font-weight: 700; font-size: 0.9rem;
  white-space: nowrap; width: 100%; text-align: center;
  transition: background var(--transition), transform var(--transition);
  display: block;
}
.btn-deal:hover { background: var(--green-hover); transform: translateY(-1px); color: #fff; }
.card-review-link { font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.card-review-link a { color: var(--text-muted); }
.card-review-link a:hover { color: var(--blue); }

/* ── Comparison Table ─────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.comparison-table th {
  background: var(--navy-light); color: var(--text-muted);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 12px 16px; text-align: left; white-space: nowrap;
}
.comparison-table td {
  padding: 13px 16px; border-top: 1px solid var(--border);
  vertical-align: middle; white-space: nowrap;
}
.comparison-table tr:hover td { background: rgba(26,115,232,.05); }
.comparison-table tr:first-child td { background: rgba(245,166,35,.06); }
.comparison-table .score-cell { font-weight: 800; color: #fff; font-size: 1rem; }
.comparison-table .provider-cell { font-weight: 600; color: #fff; }
.comparison-table .btn-deal-sm {
  background: var(--green); color: #fff; padding: 6px 14px;
  border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 700;
  display: inline-block; white-space: nowrap;
}
.comparison-table .btn-deal-sm:hover { background: var(--green-hover); color: #fff; }
.check { color: var(--green); }
.cross { color: #ef4444; }
.rank-num { font-weight: 800; color: var(--text-muted); }

/* ── Trust Section ────────────────────────────────────────────────────────── */
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; margin-top: 40px;
}
.trust-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
}
.trust-icon { font-size: 2rem; margin-bottom: 12px; }
.trust-card h4 { color: #fff; margin-bottom: 8px; }
.trust-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ── Guides Grid ──────────────────────────────────────────────────────────── */
.guides-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.guide-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  transition: border-color var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.guide-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.guide-section-tag {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--blue); margin-bottom: 6px;
}
.guide-card h3 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 8px; flex: 1; }
.guide-card .guide-link {
  font-size: 0.85rem; color: var(--blue); font-weight: 600; margin-top: auto;
  display: flex; align-items: center; gap: 4px;
}
.guide-card:hover .guide-link { color: var(--gold); }

/* Categories page */
.category-section { margin-bottom: 48px; }
.category-section h2 { color: #fff; margin-bottom: 6px; font-size: 1.3rem; }
.category-section .cat-desc { color: var(--text-muted); margin-bottom: 20px; font-size: 0.9rem; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; cursor: pointer;
  background: var(--card-bg); color: #fff; font-weight: 600;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--navy-light); }
.faq-icon { font-size: 1.2rem; color: var(--text-muted); transition: transform 0.3s; flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none; padding: 16px 20px;
  color: var(--text-muted); font-size: 0.95rem;
  background: var(--navy-mid); line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── Author Box ───────────────────────────────────────────────────────────── */
.author-box {
  display: flex; align-items: center; gap: 16px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px;
  margin-bottom: 32px;
}
.author-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border);
}
.author-info .author-name { font-weight: 700; color: #fff; }
.author-info .author-role { font-size: 0.8rem; color: var(--text-muted); }
.author-info .author-bio { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.breadcrumb {
  padding: 12px 0; font-size: 0.85rem;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); }

/* ── Provider Review Page ─────────────────────────────────────────────────── */
.review-hero { padding: 48px 0 32px; }
.review-hero h1 { color: #fff; margin-bottom: 12px; }
.review-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.review-score-big {
  background: var(--navy-light); border: 2px solid var(--gold);
  border-radius: var(--radius); padding: 12px 20px; text-align: center; min-width: 90px;
}
.review-score-big .num { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; }
.review-score-big .den { font-size: 0.8rem; color: var(--text-muted); }
.review-score-big .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin-top: 4px; }
.score-bars { flex: 1; min-width: 240px; }
.score-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.score-bar-label { font-size: 0.8rem; color: var(--text-muted); width: 100px; flex-shrink: 0; }
.score-bar-track { flex: 1; height: 6px; background: var(--navy-light); border-radius: 3px; overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--blue); border-radius: 3px; }
.score-bar-fill.green { background: var(--green); }
.score-bar-val { font-size: 0.8rem; font-weight: 700; color: #fff; width: 28px; text-align: right; }

.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.pros-box, .cons-box {
  border-radius: var(--radius); padding: 20px;
}
.pros-box {
  background: linear-gradient(165deg, rgba(15, 168, 84, 0.12) 0%, var(--card-bg) 42%);
  border: 1px solid rgba(52, 211, 153, 0.28);
}
.cons-box {
  background: linear-gradient(165deg, rgba(239, 68, 68, 0.1) 0%, var(--card-bg) 42%);
  border: 1px solid rgba(248, 113, 113, 0.28);
}
.pros-box h4 { color: var(--pros-accent); margin-bottom: 12px; }
.cons-box h4 { color: var(--cons-accent); margin-bottom: 12px; }
.pros-box li, .cons-box li {
  padding: 10px 0; font-size: 0.9rem; color: #fff;
  border-bottom: 1px solid var(--border); display: flex; gap: 10px;
  line-height: 1.55; align-items: flex-start;
}
.pros-box li:last-child, .cons-box li:last-child { border-bottom: none; }
.pros-box li::before {
  content: '✓';
  color: var(--pros-accent);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.4;
}
.cons-box li::before {
  content: '✕';
  color: var(--cons-accent);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.features-list { list-style: none; }
.features-list li {
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text-muted);
  display: flex; gap: 8px;
}
.features-list li:last-child { border-bottom: none; }
.features-list li::before { content: '→'; color: var(--blue); font-weight: 700; }

.cta-banner {
  background: linear-gradient(135deg, var(--navy-light) 0%, #1a2a5c 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; margin: 32px 0;
}
.cta-banner h3 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: var(--text-muted); margin-bottom: 20px; }
.btn-cta-big {
  background: var(--green); color: #fff; padding: 14px 32px;
  border-radius: var(--radius); font-weight: 700; font-size: 1.05rem;
  display: inline-block;
  transition: background var(--transition), transform var(--transition);
}
.btn-cta-big:hover { background: var(--green-hover); transform: translateY(-1px); color: #fff; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-mid); border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px; margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; font-size: 1.2rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 0.8rem; }
.footer-links a:hover { color: var(--text); }

/* ── Search Overlay ───────────────────────────────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(9,15,34,.92); backdrop-filter: blur(6px);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 80px;
}
.search-overlay.active { display: flex; }
.search-box {
  background: var(--navy-light); border: 1px solid var(--border);
  border-radius: var(--radius); width: 100%; max-width: 640px; padding: 8px;
  display: flex; gap: 8px; align-items: center;
}
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: 1.1rem; padding: 8px 12px;
  font-family: var(--font);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-close {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  padding: 8px; border-radius: var(--radius-sm); font-size: 1.4rem; line-height: 1;
}
.search-results {
  background: var(--navy-light); border: 1px solid var(--border);
  border-radius: var(--radius); margin-top: 8px; max-height: 400px; overflow-y: auto;
  max-width: 640px; width: 100%;
}
.search-result-item {
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--navy-mid); }
.search-result-item .title { color: #fff; font-weight: 600; font-size: 0.95rem; }
.search-result-item .type { color: var(--text-muted); font-size: 0.8rem; }

/* ── Page intro content ───────────────────────────────────────────────────── */
.page-intro {
  background: var(--navy-mid); border-left: 3px solid var(--blue);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 32px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.75;
}

/* ── Language Switcher ────────────────────────────────────────────────────── */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--navy-light); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 5px 10px; cursor: pointer;
  color: var(--text); font-size: 0.82rem; font-weight: 600;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--navy-mid); border-color: var(--blue); color: #fff; }
.lang-btn svg { flex-shrink: 0; }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--navy-light); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 180px;
  box-shadow: var(--shadow); z-index: 200;
  max-height: 360px; overflow-y: auto;
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; color: var(--text-muted); font-size: 0.88rem;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.lang-option:hover { background: var(--navy-mid); color: #fff; }
.lang-option.active { color: #fff; background: rgba(26,115,232,.15); }
.lang-option.active::after { content: '✓'; margin-left: auto; color: var(--blue); font-weight: 700; }
.lang-flag { font-size: 1.1rem; flex-shrink: 0; }

/* ── RTL support ──────────────────────────────────────────────────────────── */
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .breadcrumb { flex-direction: row-reverse; }
[dir="rtl"] .card-actions { align-items: flex-start; }
[dir="rtl"] .provider-card { direction: rtl; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .author-box { flex-direction: row-reverse; }
[dir="rtl"] .page-intro { border-left: none; border-right: 3px solid var(--blue); }
[dir="rtl"] .pros-box li::before, [dir="rtl"] .cons-box li::before { margin-left: 8px; margin-right: 0; }
[dir="rtl"] .features-list li::before { margin-left: 8px; margin-right: 0; }
[dir="rtl"] .guide-link { flex-direction: row-reverse; }
[dir="rtl"] .lang-option.active::after { margin-left: 0; margin-right: auto; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pros-cons-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .provider-card { grid-template-columns: 36px 1fr; }
  .card-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; min-width: unset; margin-top: 12px; }
  .score-display { display: flex; align-items: baseline; gap: 4px; }
  .score-num { font-size: 1.6rem; }
  .btn-deal { width: auto; flex: 1; }
  .hero-stats { gap: 24px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); border-bottom: 1px solid var(--border); padding: 12px 20px; gap: 4px; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .review-meta { flex-direction: column; }
  .card-meta { gap: 12px; }
}

@media (max-width: 480px) {
  .hero { padding: 56px 0 40px; }
  .guides-grid { grid-template-columns: 1fr; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; font-size: 0.82rem; }
}

/* ── Comparison / VS Pages ────────────────────────────────────────────────── */

.vs-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
  text-align: center;
}

.vs-provider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.vs-provider-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.vs-provider-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.vs-provider-score.score-high { background: var(--green); }
.vs-provider-score.score-mid  { background: #f59e0b; }
.vs-provider-score.score-low  { background: #ef4444; }

.vs-provider-price {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}

.vs-divider-word {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 2px;
}

/* Spec comparison table */
.vs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: var(--navy-light);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.vs-table thead tr {
  background: var(--navy-mid);
}

.vs-table th {
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.vs-table th:not(:first-child) { text-align: center; }

.vs-table td {
  padding: 13px 20px;
  font-size: 0.92rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.vs-table td:not(:first-child) { text-align: center; }

.vs-table tbody tr:last-child td { border-bottom: none; }

.vs-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.vs-table td.winner-cell {
  background: rgba(26,115,232,0.12);
  color: #fff;
  font-weight: 700;
  position: relative;
}

.vs-table td.winner-cell::after {
  content: '✓';
  margin-left: 6px;
  color: var(--green);
  font-weight: 900;
}

.vs-label-col { font-weight: 600; color: var(--text-muted); font-size: 0.85rem; }

/* Verdict / winner boxes */
.vs-verdicts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.winner-box {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.winner-box.is-winner {
  border-color: var(--green);
  background: rgba(52,199,89,0.06);
}

.winner-box-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.winner-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.winner-box-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.winner-box .btn { width: 100%; justify-content: center; }

/* How-to article step list */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: flex-start;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .vs-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .vs-divider-word { transform: rotate(90deg); }
  .vs-verdicts { grid-template-columns: 1fr; }
  .vs-table th, .vs-table td { padding: 10px 12px; font-size: 0.82rem; }
  .step-item { grid-template-columns: 40px 1fr; }
}

[dir="rtl"] .vs-header { direction: rtl; }
[dir="rtl"] .steps-list { direction: rtl; }
[dir="rtl"] .vs-table td.winner-cell::after { margin-left: 0; margin-right: 6px; }

/* ── Deal / Coupon Pages ──────────────────────────────────────────────────── */

.deal-hero {
  background: linear-gradient(135deg, var(--navy-mid) 0%, #0d2847 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 32px;
}

.deal-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.deal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.deal-badge-discount {
  background: #ef4444;
  color: #fff;
}

.deal-badge-verified {
  background: rgba(52,199,89,0.15);
  color: var(--green);
  border: 1px solid var(--green);
}

.deal-urgency {
  font-size: 0.82rem;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* The main coupon display box */
.coupon-box {
  background: var(--navy-light);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 32px;
  margin: 28px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.coupon-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--green));
}

.coupon-discount-pct {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}

.coupon-label {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.coupon-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.coupon-original-price {
  font-size: 1.3rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.coupon-deal-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}

.coupon-deal-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.coupon-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* Deal CTA button (prominent green) */
.btn-deal-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(52,199,89,0.3);
  margin: 8px 0;
}

.btn-deal-primary:hover {
  background: #28c76f;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(52,199,89,0.4);
  color: #fff;
  text-decoration: none;
}

/* Deal features checklist */
.deal-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.deal-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.deal-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Plan comparison mini-table */
.deal-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.deal-plan-card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deal-plan-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deal-plan-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.deal-plan-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.deal-plan-original {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.deal-plan-term {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.deal-plan-card .btn-deal { width: 100%; justify-content: center; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 640px) {
  .deal-features { grid-template-columns: 1fr; }
  .coupon-discount-pct { font-size: 2.5rem; }
  .deal-plans { grid-template-columns: 1fr; }
}

[dir="rtl"] .deal-features li { flex-direction: row-reverse; }
[dir="rtl"] .deal-badge-row { flex-direction: row-reverse; }

/* Editorial / methodology blocks (multilingual) */
.editorial-block {
  padding-top: 28px;
  padding-bottom: 28px;
}

.editorial-h2 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.25;
}

.editorial-h2-spaced {
  margin-top: 28px;
}

.editorial-lead,
.editorial-body {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 12px;
  max-width: 58rem;
}

.editorial-lead {
  font-size: 1.05rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-strip-compare {
  margin-top: 20px;
}

.metric-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-chip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.metric-chip-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

[dir="rtl"] .metric-chip {
  text-align: right;
}
