/* =========================================================================
   MakeCash v2 — directory layout inspired by faxianai.com
   Clean, trustworthy, bright, dense card grids, sticky sidebar.
   ========================================================================= */
:root {
  --emerald: #10b981;
  --emerald-d: #047857;
  --sky: #0ea5e9;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.04);
  --shadow: 0 4px 16px rgba(15,23,42,.07);
  --shadow-lg: 0 14px 40px rgba(15,23,42,.12);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1280px;
  --sidebar-w: 240px;
  --grad: linear-gradient(120deg, #10b981 0%, #0ea5e9 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 600px at 50% 0, rgba(16,185,129,.06) 0%, transparent 60%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", "Inter", sans-serif; line-height: 1.22; margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(16,185,129,.28); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(16,185,129,.38); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald-d); }
.btn-light {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: #064e3b;
  background: #fff; padding: 12px 24px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  border: none; cursor: pointer;
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.24); background: #f0fdf4; }

/* ---------- Header (floating glass pill) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  padding: 14px 0;
  pointer-events: none;
  transition: padding .2s ease;
}
.site-header > .header-bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 18px; height: 58px;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(226,232,240,.85);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(15,23,42,.08), 0 2px 8px rgba(15,23,42,.04), inset 0 1px 0 rgba(255,255,255,.6);
  padding: 0 12px 0 18px;
  transition: height .2s ease, box-shadow .2s ease, background .2s ease;
}
.header-bar { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 20px; color: var(--ink); }
.brand-mark { border-radius: 50%; box-shadow: var(--shadow-sm); transition: width .2s ease, height .2s ease; }
.brand-text { transition: font-size .2s ease; }
.brand-text strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }

.top-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.top-nav a { color: var(--ink-2); font-weight: 500; font-size: 13px; padding: 8px 12px; border-radius: 999px; transition: .15s; }
.top-nav a:hover, .top-nav a.active { color: var(--emerald-d); background: rgba(16,185,129,.1); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Scroll-shrunk header */
.site-header.scrolled { padding: 10px 0; }
.site-header.scrolled > .header-bar { height: 50px; }
.site-header.scrolled .brand-mark { width: 30px; height: 30px; }
.site-header.scrolled .brand-text { font-size: 18px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero search ---------- */
.hero { padding: 52px 0 42px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 780px; text-align: center; }
.eyebrow { display: inline-block; font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--emerald-d); background: rgba(16,185,129,.1); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero-title { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -.02em; }
.hero-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17px; color: var(--muted); margin: 14px auto 24px; max-width: 620px; }

.big-search { position: relative; max-width: 680px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); display: flex; align-items: center; padding: 6px 6px 6px 18px; transition: box-shadow .2s; }
.big-search:focus-within { box-shadow: 0 8px 30px rgba(14,165,233,.18); border-color: rgba(14,165,233,.35); }
.search-icon { font-size: 18px; color: var(--muted); margin-right: 8px; }
.big-search input { flex: 1; border: 0; outline: 0; padding: 10px 4px; font-size: 15px; background: transparent; color: var(--ink); }
.big-search .btn { padding: 12px 26px; }

.quick-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.quick-tags a { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
.quick-tags a:hover { border-color: var(--emerald); color: var(--emerald-d); background: rgba(16,185,129,.05); }

.trust-strip { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; padding: 0; margin: 28px 0 0; }
.trust-strip li { display: flex; align-items: center; gap: 6px; }
.ts-num { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 22px; color: var(--ink); }
.ts-lbl { font-size: 13px; color: var(--muted); }

/* ---------- Page body (sidebar + main) ---------- */
.page-body { display: flex; gap: 22px; align-items: flex-start; padding-top: 28px; padding-bottom: 28px; }
.sidebar { width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); }
.sidebar-sticky { position: sticky; top: 82px; }
.sidebar-head { padding: 0 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.sidebar-head h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cat-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cat-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14px; font-weight: 500; transition: .12s; cursor: pointer; }
.cat-menu a:hover { background: #fff; color: var(--emerald-d); }
.cat-menu a.active { background: rgba(16,185,129,.1); color: var(--emerald-d); font-weight: 600; }
.cat-menu .cm-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--gc-accent) 14%, #fff); color: var(--gc-accent);
  border: 1px solid color-mix(in srgb, var(--gc-accent) 26%, #fff); flex: none; }
.cat-menu .cm-icon svg { width: 17px; height: 17px; display: block; }
.cat-menu .cm-count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; background: #f1f5f9; padding: 2px 8px; border-radius: 999px; }

.sidebar-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 16px; box-shadow: var(--shadow-sm); }
.sidebar-box h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.sidebar-box p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.sidebar-box .btn { width: 100%; }
.trust-mini ul { list-style: none; margin: 0; padding: 0; }
.trust-mini li { font-size: 13px; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid #f1f5f9; display: flex; gap: 8px; }
.trust-mini li:last-child { border: 0; }
.trust-mini li::before { content: "✓"; color: var(--emerald); font-weight: 700; }

/* Two-level sidebar menu (reference-site style) */
.sidebar-sticky { position: sticky; top: 82px; }
.cat-menu { list-style: none; margin: 0; padding: 0 4px 0 0; display: flex; flex-direction: column; gap: 4px;
  max-height: calc(100vh - 360px); overflow-y: auto; }
.cat-menu::-webkit-scrollbar { width: 8px; }
.cat-menu::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 8px; }
.cm-item { border-radius: var(--radius-sm); }
.cm-row { display: flex; align-items: center; }
.cm-link { flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14px; font-weight: 500; transition: .12s; cursor: pointer; }
.cm-link:hover { background: #fff; color: var(--emerald-d); }
.cm-link.active { background: rgba(16,185,129,.1); color: var(--emerald-d); font-weight: 600; }
.cm-caret { flex: 0 0 auto; width: 26px; height: 34px; margin-right: 2px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: 12px; line-height: 1; transition: transform .18s ease; padding: 0; }
.cm-item.has-subs.open > .cm-row .cm-caret { transform: rotate(180deg); color: var(--emerald-d); }
.cat-subs { list-style: none; margin: 2px 0 2px; padding: 0 0 0 30px; display: none; }
.cm-item.has-subs.open > .cat-subs { display: block; animation: fadeIn .15s ease; }
.cm-sub { display: block; padding: 7px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); cursor: pointer; transition: .12s; }
.cm-sub:hover { background: #fff; color: var(--emerald-d); }
.cm-sub.active { color: var(--emerald-d); font-weight: 600; background: rgba(16,185,129,.08); }

/* Sub-category filter chips (inside each category panel) */
.sub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.sub-chip { font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: .14s; }
.sub-chip:hover { border-color: var(--emerald); color: var(--emerald-d); }
.sub-chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(16,185,129,.25); }

.main-content { flex: 1; min-width: 0; }
.page-body { min-width: 0; }
.switch-panel { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Section panels ---------- */
.section-panel { padding: 22px 0; }
.section-bar { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-bar h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.section-sub { font-size: 14px; color: var(--muted); }
.section-more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--emerald-d); }
.section-more:hover { text-decoration: underline; }

/* ---------- Dense card grid ---------- */
.dense-grid, .category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-width: 0; }
@media (min-width: 1200px) {
  .dense-grid, .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.res-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(15,23,42,.04), 0 1px 2px rgba(15,23,42,.04);
  display: flex; align-items: flex-start; gap: 12px; padding: 15px; transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease;
  min-width: 0;
  --cat: var(--emerald);
}
.res-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,23,42,.11), 0 4px 12px rgba(16,185,129,.08); border-color: rgba(16,185,129,.25); }
.res-icon {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 11px; background: var(--cat);
  display: grid; place-items: center; color: #fff; font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800; font-size: 18px; text-transform: uppercase; box-shadow: 0 4px 12px rgba(15,23,42,.12);
}
.res-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.res-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.res-title-row h3 { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-desc { font-size: 13px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.res-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 2px; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: normal; line-height: 1.35; display: inline-block; max-width: 100%; }
.badge-cat { color: #fff; }
.badge-diff { background: #f1f5f9; color: var(--ink-2); }
.badge-earn { background: rgba(16,185,129,.12); color: var(--emerald-d); }
.badge-verified { background: rgba(14,165,233,.12); color: #0284c7; }
.badge-popular { background: #fef3c7; color: #b45309; }
.badge-caution { background: #fee2e2; color: #b91c1c; }

.res-note { font-size: 12px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 7px 9px; margin-top: 2px; }
.res-visit { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--emerald-d); display: inline-flex; align-items: center; gap: 3px; opacity: 0; transition: opacity .15s; }
.res-card:hover .res-visit { opacity: 1; }
.res-visit:hover { text-decoration: underline; }

.category-section { margin-bottom: 34px; }
.category-section .section-bar { margin-bottom: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.category-section .section-bar h2 { font-size: 17px; }
.category-section .section-bar .cat-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 16px; }
.category-section .section-bar .cat-icon svg { width: 18px; height: 18px; display: block; }

/* ---------- Pathfinder ---------- */
.pathfinder-section { background: linear-gradient(180deg, #ffffff, #f1f5f9); padding: 52px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 620px; margin: 0 auto 32px; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.pf-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 24px; max-width: 980px; margin: 0 auto; }
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pf-field { display: flex; flex-direction: column; gap: 6px; }
.pf-field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pf-field select { appearance: none; -webkit-appearance: none; width: 100%; padding: 11px 36px 11px 12px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; color: var(--ink); cursor: pointer; }
.pf-field select:focus { outline: 2px solid rgba(16,185,129,.35); border-color: var(--emerald); }
.pf-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.pf-hint { font-size: 13px; color: var(--muted); }
.pf-results { margin-top: 22px; display: grid; gap: 12px; }
.pf-summary { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.25); border-radius: 12px; padding: 12px 16px; color: var(--emerald-d); font-weight: 600; font-size: 14px; }

/* ---------- Trust ---------- */
.trust-section { padding: 52px 0; background: #fff; border-top: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tc-icon { font-size: 24px; margin-bottom: 8px; }
.trust-card h3 { font-size: 15px; font-weight: 700; }
.trust-card p { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }
.disclaimer { margin-top: 26px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 16px 18px; font-size: 13px; color: #9a3412; }

/* ---------- FAQ ---------- */
.faq-section { padding: 52px 0; background: linear-gradient(180deg, #ffffff, #f8fafc); border-top: 1px solid var(--line); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.faq-item[open] { border-color: rgba(16,185,129,.4); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 15px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--emerald); font-weight: 700; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 20px 18px; }
.faq-body p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.faq-body a { color: var(--emerald-d); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 48px 0 22px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; }
.footer-brand .brand { color: #fff; }
.footer-tag { max-width: 300px; font-size: 13px; color: #94a3b8; margin-top: 12px; }
.footer-cols { display: flex; gap: 44px; flex-wrap: wrap; }
.footer-cols h4 { color: #fff; font-size: 13px; margin-bottom: 10px; }
.footer-cols a { display: block; font-size: 13px; color: #94a3b8; padding: 3px 0; }
.footer-cols a:hover { color: var(--emerald); }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid #1e293b; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.fb-legal-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; }
.fb-legal-row a { font-size: 12.5px; color: #94a3b8; text-decoration: none; transition: color .2s; }
.fb-legal-row a:hover { color: #10b981; text-decoration: underline; }
.btn-cookie-settings { appearance: none; -webkit-appearance: none; border: 1px solid #334155; background: transparent; color: #94a3b8; font-size: 12px; padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: all .2s; font-family: inherit; line-height: 1.4; }
.btn-cookie-settings:hover { color: #fff; border-color: #10b981; background: rgba(16,185,129,.12); }
.fb-copy-row { font-size: 12px; color: #64748b; line-height: 1.7; }
.fb-copy-row a { color: #94a3b8; }
.footer-sep { color: #475569; margin: 0 2px; }
@media (max-width: 720px) {
  .fb-legal-row { gap: 6px 12px; }
  .fb-legal-row a, .btn-cookie-settings { font-size: 12px; }
  .fb-copy-row { font-size: 11.5px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .page-body { flex-direction: column; }
  .sidebar { width: 100%; flex: none; }
  .sidebar-sticky { position: static; }
  .cat-menu { flex-direction: row; flex-wrap: nowrap; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
    max-height: none; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .cat-menu::-webkit-scrollbar { display: none; }
  .cm-item { flex: 0 0 auto; }
  .cm-row { display: inline-flex; }
  .cm-link { white-space: nowrap; padding: 8px 14px; border: 1px solid var(--line); background: #fff; border-radius: 999px; }
  .cm-caret, .cat-subs, .sidebar-box { display: none; }
  .dense-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .site-header { padding: 10px 0; }
  .site-header > .header-bar { height: 52px; padding: 0 10px 0 14px; border-radius: 18px; margin: 0 12px; width: auto; }
  .top-nav { display: none; position: absolute; top: 76px; left: 12px; right: 12px; background: rgba(255,255,255,.96); flex-direction: column; gap: 0; padding: 8px 16px 16px; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); }
  .top-nav.open { display: flex; }
  .top-nav a { padding: 11px 0; border-radius: 0; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .hero { padding: 36px 0 30px; }
  .hero-title { font-size: 32px; }
  .big-search { border-radius: 18px; flex-direction: column; padding: 10px; }
  .big-search input { width: 100%; padding: 10px; }
  .big-search .btn { width: 100%; }
  .trust-strip li { flex-direction: column; gap: 0; }
  .dense-grid, .category-grid, .trust-grid, .pf-grid { grid-template-columns: 1fr; }
  .res-visit { opacity: 1; }
  .section-bar h2 { font-size: 17px; }
}

/* ---------- Real brand logos (Clearbit + letter fallback) ---------- */
.res-logo-wrap {
  position: relative; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 11px;
  background: var(--cat); display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 4px 12px rgba(15,23,42,.12);
}
.res-initials {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 18px; text-transform: uppercase;
}
.res-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; opacity: 0; transition: opacity .2s ease; }
.res-logo.loaded { opacity: 1; }

/* ---------- Guides / Education ---------- */
.guides-section { background: #fff; border-top: 1px solid var(--line); padding: 48px 0; }
.guides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (min-width: 1025px) and (max-width: 1280px) { .guides-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; gap: 14px; cursor: pointer; transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.guide-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px; background: #7c3aed1a; display: grid; place-items: center; font-size: 22px; }
.guide-body { flex: 1; min-width: 0; }
.guide-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.guide-read { font-size: 12px; color: var(--muted); }
.guide-body h3 { font-size: 15px; font-weight: 700; }
.guide-body p { font-size: 13px; color: var(--muted); margin: 6px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-more { font-size: 12px; font-weight: 700; color: #7c3aed; }

/* ---------- Detail & guide modals ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  position: relative; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  max-width: 760px; width: 100%; padding: 26px; animation: pop .18s ease;
}
.modal-card-reader { max-width: 720px; }
@keyframes pop { from { transform: translateY(12px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); z-index: 2;
}
.modal-close:hover { background: #f1f5f9; color: var(--ink); }

.dm-hero { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dm-hero-main { flex: 1; min-width: 0; }
.dm-badges { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.dm-hero h2 { font-size: 24px; font-weight: 800; }
.dm-tagline { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.dm-visit { flex: 0 0 auto; }
.dm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.dm-stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.dm-stat-l { display: block; font-size: 12px; color: var(--muted); }
.dm-stat-v { font-weight: 700; font-size: 15px; }
.dm-section { margin-top: 18px; }
.dm-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.dm-section p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.6; }
.dm-steps { margin: 0; padding: 0; list-style: none; }
.dm-steps li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #eef2f7; }
.dm-steps li:last-child { border-bottom: 0; }
.dm-steps .step-n { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.dm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.dm-col h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.pros, .cons { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.pros li, .cons li { margin: 4px 0; }
.dm-pros-h { color: #047857; } .dm-cons-h { color: #b91c1c; }
.dm-caution { margin-top: 16px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 14px 16px; font-size: 13px; color: #9a3412; line-height: 1.55; }
.dm-related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dm-related .res-card { cursor: pointer; }

.reader-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 4px; }
.reader-tag { display: inline-block; font-size: 12px; font-weight: 700; color: #7c3aed; background: #7c3aed1a; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.reader-head h2 { font-size: 24px; font-weight: 800; }
.reader-meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.reader-body { padding-top: 12px; }
.reader-body h3 { font-size: 17px; font-weight: 700; margin: 18px 0 8px; }
.reader-body p { font-size: 15px; color: var(--ink-2); line-height: 1.7; margin: 0 0 12px; }
.reader-body ul { margin: 0 0 12px; padding-left: 20px; font-size: 15px; color: var(--ink-2); }
.reader-body li { margin: 5px 0; }

/* ---------- Responsive for new blocks ---------- */
@media (max-width: 1024px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .dm-related { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .guides-grid { grid-template-columns: 1fr; }
  .dm-hero { flex-wrap: wrap; }
  .dm-visit { width: 100%; }
  .dm-stats { grid-template-columns: 1fr; }
  .dm-cols { grid-template-columns: 1fr; }
  .modal-card { padding: 20px 16px; }
}

/* ---------- Header icon buttons (theme / lang) ---------- */

/* ---------- Directory sort toolbar ---------- */
.dir-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; }
.dt-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dt-sorts { display: flex; gap: 8px; flex-wrap: wrap; }
.dt-chip { font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: .14s; }
.dt-chip:hover { border-color: var(--emerald); color: var(--emerald-d); }
.dt-chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(16,185,129,.25); }

/* ---------- Bookmark star ---------- */
.res-card { position: relative; }
.bm-btn { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.85); color: #f59e0b; font-size: 15px; line-height: 1; cursor: pointer; z-index: 3; transition: .14s; display: grid; place-items: center; }
.bm-btn:hover { transform: scale(1.08); border-color: #f59e0b; }
.bm-btn.on { background: #fef3c7; border-color: #f59e0b; }

/* ---------- New / Editor's pick badges ---------- */
.badge-new { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-pick { background: linear-gradient(120deg,#fde68a,#fca5a5); color: #7c2d12; }

/* ---------- Detail: related guides ---------- */
.dm-guide-links { display: flex; flex-direction: column; gap: 8px; }
.dm-guide-link { display: block; background: #7c3aed1a; color: #6d28d9; font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 10px; transition: .14s; }
.dm-guide-link:hover { background: #7c3aed2b; transform: translateX(2px); }

/* ---------- Newsletter ---------- */
.newsletter-section { padding: 52px 0; background: linear-gradient(180deg, #ffffff, #f1f5f9); border-top: 1px solid var(--line); }
.newsletter-card {
  position: relative; overflow: hidden;
  background:
    linear-gradient(110deg, #0b1220 0%, #0f2847 55%, #064e3b 100%),
    radial-gradient(ellipse 80% 120% at 90% 0%, rgba(16,185,129,.25) 0%, transparent 55%);
  border-radius: 24px; padding: 44px 48px;
  box-shadow: 0 24px 60px rgba(15,23,42,.22);
}
.newsletter-shine {
  position: absolute; top: -60%; left: -20%; width: 70%; height: 220%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.06) 48%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.06) 52%, transparent 60%);
  transform: rotate(12deg); pointer-events: none;
}
.newsletter-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.nl-copy { flex: 1; min-width: 260px; }
.nl-eyebrow {
  display: inline-flex; width: fit-content;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.7); background: rgba(255,255,255,.12);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.nl-copy h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: #fff; }
.nl-copy p { color: rgba(255,255,255,.78); margin-top: 10px; font-size: 15px; line-height: 1.6; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 280px; }
.nl-form input {
  flex: 1; min-width: 220px;
  padding: 14px 18px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; font-size: 15px; outline: 0;
  background: rgba(255,255,255,.1); color: #fff;
  backdrop-filter: blur(4px);
}
.nl-form input::placeholder { color: rgba(255,255,255,.5); }
.nl-form input:focus { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.14); box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
.nl-note { width: 100%; color: #34d399; font-weight: 600; font-size: 14px; }
.nl-consent {
  display: flex; align-items: flex-start; gap: 10px; width: 100%;
  font-size: 13px; color: rgba(255,255,255,.9); line-height: 1.45;
  margin-top: 4px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  cursor: pointer;
}
.nl-consent input {
  width: 22px !important; height: 22px !important; min-width: 22px !important; flex: 0 0 auto !important; align-self: flex-start;
  margin: 1px 0 0 0; padding: 0 !important; box-sizing: border-box;
  border: 2px solid rgba(255,255,255,.55); border-radius: 6px;
  background: rgba(255,255,255,.12);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.nl-consent input:checked {
  background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8 7 12 13 5'/%3E%3C/svg%3E") center/14px no-repeat;
  border-color: #10b981;
}
.nl-consent input:focus { outline: none; box-shadow: 0 0 0 3px rgba(16,185,129,.3); border-color: #10b981; }
.nl-consent a { color: #fff; text-decoration: underline; font-weight: 700; }
.nl-consent a:hover { color: #6ee7b7; }

/* Exit modal sits on white card — need dark text + visible checkbox */
.modal-card-exit .nl-consent {
  color: var(--ink-2); background: #f8fafc; border-color: var(--line);
}
.modal-card-exit .nl-consent input {
  border-color: #94a3b8; background: #fff; margin-bottom: 0;
}
.modal-card-exit .nl-consent input:checked {
  background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8 7 12 13 5'/%3E%3C/svg%3E") center/14px no-repeat;
  border-color: #10b981;
}
.modal-card-exit .nl-consent a { color: var(--emerald-d); }
.modal-card-exit .nl-consent a:hover { color: #047857; }

/* Dark mode: exit modal also dark */
body.dark .modal-card-exit .nl-consent {
  color: #cbd5e1; background: rgba(30,41,59,.55); border-color: rgba(255,255,255,.12);
}
body.dark .modal-card-exit .nl-consent input { border-color: rgba(255,255,255,.45); background: rgba(15,23,42,.5); }
body.dark .modal-card-exit .nl-consent a { color: #34d399; }
body.dark .modal-card-exit .nl-consent a:hover { color: #6ee7b7; }
@media (max-width: 720px) {
  .newsletter-card { padding: 32px 24px; border-radius: 20px; }
  .newsletter-inner { flex-direction: column; align-items: stretch; gap: 24px; }
  .nl-form { flex-direction: column; }
  .nl-form input { width: 100%; }
}

/* ---------- Generated static pages ---------- */
.static-page { background: var(--bg); }
.static-main { min-height: 60vh; }
.static-page .site-header { border-bottom: 1px solid var(--line); }
.dm-related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dm-related-list a { color: var(--emerald-d); font-weight: 600; }
.dm-related-list a:hover { text-decoration: underline; }

/* ===== Scroll progress bar (cross-site premium cue) ===== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 200; background: linear-gradient(90deg,#10b981,#0ea5e9); box-shadow: 0 0 12px rgba(16,185,129,.55); transition: width .08s linear; pointer-events: none; }

/* ===== Page hero band (generated static pages) ===== */
.page-hero { position: relative; border-radius: 22px; padding: 44px 36px 36px; margin: 18px 0 10px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.page-hero-bg { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 170% at 0% 0%, rgba(16,185,129,.18), transparent 55%),
    radial-gradient(120% 170% at 100% 0%, rgba(14,165,233,.18), transparent 55%); }
.page-hero > * { position: relative; z-index: 1; }
.ph-title { font-size: clamp(26px, 4.2vw, 40px); font-weight: 800; line-height: 1.13; letter-spacing: -.02em; margin: 12px 0 0;
  background: linear-gradient(120deg,#0f172a 24%, #0e7490 58%, #047857); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
body.dark .page-hero { background:#0e1726; border-color:#1e293b; }
body.dark .ph-title { background: linear-gradient(120deg,#f8fafc 24%, #67e8f9 58%, #6ee7b7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ph-flag { font-size: 44px; line-height: 1; margin: 6px 0 6px; filter: drop-shadow(0 8px 14px rgba(2,6,23,.22)); }
.cc-active .back-to-top { display: none; }

/* ===== Premium landing cards ===== */
.lp-card { position: relative; overflow: hidden; border-radius: 16px; padding: 16px; background: #fff; text-decoration: none; color: inherit; transition: .18s ease; box-shadow: var(--shadow-sm); }
.lp-card::before { content:""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg,#10b981,#0ea5e9); opacity: 0; transition: .2s; }
.lp-card:hover { border-color: rgba(16,185,129,.45); box-shadow: 0 14px 30px rgba(16,185,129,.16); transform: translateY(-3px); }
.lp-card:hover::before { opacity: 1; }
body.dark .lp-card { background: var(--card); }
body.dark .lp-card:hover { border-color: rgba(16,185,129,.5); }

/* ---------- Dark mode (P3) ---------- */
body.dark { --bg:#0b1220; --card:#111c2e; --ink:#e6edf6; --ink-2:#cbd5e1; --muted:#94a3b8; --line:#1e293b; }
body.dark .site-header { background: rgba(11,18,32,.9); }
body.dark .btn-ghost { background: var(--card); color: var(--ink-2); }
body.dark .cat-menu a, body.dark .cm-link { color: var(--ink-2); }
body.dark .sidebar-box { background: var(--card); }
body.dark .res-card, body.dark .guide-card, body.dark .trust-card, body.dark .faq-item, body.dark .modal-card, body.dark .pf-card, body.dark .newsletter-section, body.dark .goal-card { background: var(--card); }
body.dark .hero, body.dark .faq-section, body.dark .guides-section, body.dark .pathfinder-section { background: linear-gradient(180deg, #0e1726, #0b1220); }
body.dark .dm-stat, body.dark .trust-mini li { background: #0e1726; }
body.dark .badge-diff { background: #1e293b; color: var(--ink-2); }
body.dark .res-initials { color: #fff; }
body.dark .newsletter-section { background: linear-gradient(180deg, #0e1726, #0b1220); }
body.dark .dm-caution, body.dark .disclaimer, body.dark .res-note { color: #fcd9b6; }
body.dark input, body.dark .nl-form input, body.dark .pf-field select { background: #0e1726; color: var(--ink); border-color: var(--line); }
body.dark .bm-btn { background: rgba(17,28,46,.85); }

@media (max-width: 1024px) {
  .dir-toolbar { width: 100%; }
}

/* ===== v6 additions: calculator, compare, exit popup, saved ===== */
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }

/* Compare button on cards */
.cmp-btn {
  position: absolute; top: 10px; right: 44px;
  width: 30px; height: 30px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 16px; line-height: 1; cursor: pointer; transition: .15s; z-index: 2;
}
.cmp-btn:hover { border-color: var(--emerald); color: var(--emerald-d); }
.cmp-btn.on { background: var(--emerald); border-color: var(--emerald); color: #fff; }

/* Compare tray */
.cmp-tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(15,23,42,.12);
}
.cmp-tray-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 12px 20px; flex-wrap: wrap; }
.cmp-tray-label { font-weight: 700; color: var(--ink); }
.cmp-tray-chips { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.cmp-chip { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.cmp-chip button { background: none; border: none; color: #047857; cursor: pointer; font-weight: 700; margin-left: 4px; }
.cmp-tray-actions { display: flex; gap: 8px; }

/* Compare modal table */
.modal-card-wide { max-width: 940px; width: 94%; }
.cmp-head { padding: 4px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.cmp-head h2 { margin: 0 0 4px; }
.cmp-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.cmp-table-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.cmp-table th, .cmp-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.cmp-table thead th { background: #f8fafc; }
.cmp-th-name { font-weight: 700; color: var(--ink); margin: 6px 0 4px; }
.cmp-rowhead { background: #f8fafc; color: var(--ink-2); font-weight: 600; white-space: nowrap; }

/* Calculator */
.calc-section { background: #f8fafc; }
.calc-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.calc-grid .pf-field label { font-weight: 600; color: var(--ink-2); font-size: 13px; display: block; }
.calc-grid input, .calc-grid select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; margin-top: 6px; }
.calc-out { margin-top: 20px; text-align: center; }
.calc-out-main { font-size: 30px; font-weight: 800; color: var(--emerald-d); }
.calc-out-sub { color: var(--ink-2); font-size: 14px; margin-top: 6px; }

/* Exit popup */
.modal-card-exit { max-width: 460px; text-align: center; }
.exit-body { padding: 30px 26px; }
.exit-emoji { font-size: 40px; }
.exit-body h2 { margin: 8px 0; font-size: 22px; }
.exit-body p { color: var(--ink-2); font-size: 14px; }
.exit-body .nl-form { flex-direction: column; }
.exit-body .nl-form input { margin-bottom: 10px; }

/* Saved FAB + modal */
.saved-fab {
  position: fixed; left: 18px; bottom: 70px; z-index: 55;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff; border: none; border-radius: 999px;
  padding: 10px 16px; font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(15,23,42,.25);
}
.saved-fab-star { color: #fbbf24; }
.saved-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.saved-item:last-of-type { border-bottom: none; }
.saved-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ===== Programmatic SEO landing pages (v7) ===== */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 6px 0 4px; }
.lp-card { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; text-decoration: none; color: inherit; transition: .15s; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.lp-card:hover { border-color: var(--emerald); box-shadow: 0 6px 18px rgba(16,185,129,.12); transform: translateY(-2px); }
.lp-card-top { display: flex; align-items: center; gap: 8px; }
.lp-dot { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: 0 0 auto; }
.lp-name { font-weight: 700; font-size: 15px; color: var(--ink); flex: 1; }
.lp-logo { width: 40px; height: 40px; border-radius: 9px; object-fit: contain; background: #f1f5f9; flex: 0 0 auto; border: 1px solid #e2e8f0; }
.reader-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: #f1f5f9; border: 1px solid #e2e8f0; margin-bottom: 8px; display: block; }
.lp-diff { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.diff-low { background: #dcfce7; color: #15803d; }
.diff-medium { background: #fef9c3; color: #a16207; }
.diff-high { background: #fee2e2; color: #b91c1c; }
.lp-desc { font-size: 13px; color: var(--ink-2); margin: 8px 0 10px; line-height: 1.45; }
.lp-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--ink-2); }
.lp-meta span { background: #f1f5f9; border-radius: 8px; padding: 3px 8px; }
.lp-foot-links { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.lp-foot-links a { color: var(--emerald-d); text-decoration: none; font-weight: 600; }
.lp-foot-links a:hover { text-decoration: underline; }
.faq-item { border-top: 1px solid var(--line); padding: 12px 0; }
.faq-item:first-of-type { border-top: none; }
.faq-item h3 { font-size: 15px; margin: 0 0 4px; color: var(--ink); }
.faq-item p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.5; }

/* ===== Home "Browse by goal" section ===== */
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 8px; }
.goal-card {
  position: relative; overflow: hidden;
  display: block; border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; background: #fff; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-sm);
}
.goal-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gc-accent, #10b981), color-mix(in srgb, var(--gc-accent, #10b981) 40%, #0ea5e9));
  opacity: .85; transition: height .2s ease;
}
.goal-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 140% 100% at 0% 0%, color-mix(in srgb, var(--gc-accent, #10b981) 10%, transparent) 0%, transparent 55%);
  opacity: 0; transition: opacity .25s ease;
}
.goal-card:hover {
  border-color: color-mix(in srgb, var(--gc-accent, #10b981) 50%, var(--line));
  box-shadow: 0 14px 36px color-mix(in srgb, var(--gc-accent, #10b981) 18%, rgba(15,23,42,.1));
  transform: translateY(-4px);
}
.goal-card:hover::before { height: 4px; }
.goal-card:hover::after { opacity: 1; }
.goal-card .gc-icon {
  position: relative; z-index: 1;
  width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1; margin-bottom: 14px;
  color: var(--gc-accent, #16a34a);
  background: color-mix(in srgb, var(--gc-accent, #16a34a) 14%, #fff);
  transition: transform .2s ease, background .2s ease;
}
.goal-card:hover .gc-icon { transform: scale(1.06); background: color-mix(in srgb, var(--gc-accent, #16a34a) 22%, #fff); }
.goal-card .gc-icon svg { width: 26px; height: 26px; }
.goal-card .gc-badge {
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 15px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--gc-accent, #10b981), color-mix(in srgb, var(--gc-accent, #10b981) 60%, #0ea5e9)) !important;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--gc-accent, #10b981) 35%, transparent);
}
.goal-card .gc-title { position: relative; z-index: 1; font-weight: 800; font-size: 16px; margin: 8px 0 5px; color: var(--ink); }
.goal-card .gc-sub { position: relative; z-index: 1; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 1024px) {
  .calc-grid { grid-template-columns: 1fr; }
  .lp-grid { grid-template-columns: 1fr 1fr; }
}

/* Affiliate disclosure note on resource pages */
.aff-note { font-size: 13px; color: #64748b; margin: 10px 0 0; max-width: 560px; }
.aff-note a { color: #0ea5e9; text-decoration: underline; }

/* Region landing — local currency & payout panel (#3) */
.lp-pay { margin: 20px 0 4px; }
.lp-pay-inner {
  background: linear-gradient(180deg, #f0fdf9 0%, #ecfeff 100%);
  border: 1px solid #b6f0dd; border-radius: 16px; padding: 18px 20px;
}
.lp-pay-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lp-pay-head h3 { margin: 0; font-size: 17px; color: #0f172a; }
.lp-cur-badge {
  display: inline-flex; align-items: center; font-weight: 700; font-size: 13px;
  background: #0ea5e9; color: #fff; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.lp-pay-money { margin: 8px 0 14px; font-size: 14px; color: #475569; line-height: 1.55; }
.lp-pay-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 22px; }
.lp-pay-item { display: flex; flex-direction: column; }
.lp-pay-name { font-weight: 600; font-size: 14px; color: #0f172a; }
.lp-pay-note { font-size: 12.5px; color: #64748b; line-height: 1.45; }

@media (max-width: 1024px) {
  .lp-pay-list { grid-template-columns: 1fr; }
}

/* =========================================================================
   v10.15 — Premium visual layer + ad-slot inventory
   Adds real image-backed banner slots, hero ambience, section dividers,
   sponsor strip and footer CTA while keeping existing layout intact.
   All image slots have a gradient fallback so they stay premium if the
   image is swapped or slow to load.
   ========================================================================= */

/* ---------- Hero ambience ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 62px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(16,185,129,.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(14,165,233,.14) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 10% 85%, rgba(16,185,129,.12) 0%, transparent 50%),
    linear-gradient(180deg, #f0fdf4 0%, #ffffff 35%, #f8fafc 100%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(16,185,129,.16) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 90%, rgba(14,165,233,.12) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(248,250,252,.6) 100%);
}
.hero-bg-img {
  position: absolute; inset: 0; z-index: 0;
  background: url('../img/hero-bg.svg') center/cover no-repeat;
  opacity: .35;
}
.hero-inner { position: relative; z-index: 1; }

/* Floating decorative orbs */
.hero-deco {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.hero-deco-1 { width: 320px; height: 320px; background: rgba(16,185,129,.22); top: -90px; right: -60px; }
.hero-deco-2 { width: 260px; height: 260px; background: rgba(14,165,233,.18); bottom: -70px; left: -50px; }

/* Hero SVG line-art (charts/arrows) */
.hero-lines {
  position: absolute; z-index: 0; pointer-events: none;
  top: 18%; right: 6%; width: 180px; height: 120px;
  color: rgba(16,185,129,.18);
}
.hero-lines svg { width: 100%; height: 100%; }

/* Premium floating preview cards on the right of the hero */
.hero-visual {
  position: absolute; z-index: 1; pointer-events: none;
  right: 6%; top: 50%; transform: translateY(-50%);
  width: 260px; display: flex; flex-direction: column; gap: 14px;
}
.hv-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 14px 40px rgba(15,23,42,.12), 0 2px 6px rgba(15,23,42,.04), inset 0 1px 0 rgba(255,255,255,.8);
  animation: hvFloat 5s ease-in-out infinite;
}
.hv-card-1 { animation-delay: 0s; transform: translateX(0); }
.hv-card-2 { animation-delay: -1.6s; transform: translateX(24px); }
.hv-card-3 { animation-delay: -3.2s; transform: translateX(12px); }
.hv-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
  background: color-mix(in srgb, var(--hv-accent) 16%, #fff);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--hv-accent) 30%, transparent);
}
.hv-text { display: flex; flex-direction: column; gap: 2px; }
.hv-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.hv-value { font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px; font-weight: 800; color: var(--ink); }
@keyframes hvFloat {
  0%, 100% { transform: translateY(0) translateX(var(--hv-x, 0)); }
  50% { transform: translateY(-10px) translateX(var(--hv-x, 0)); }
}
.hv-card-1 { --hv-x: 0; }
.hv-card-2 { --hv-x: 24px; }
.hv-card-3 { --hv-x: 12px; }

/* Premium glass search bar */
.big-search {
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 8px 30px rgba(15,23,42,.08), 0 1px 3px rgba(15,23,42,.04), inset 0 1px 0 rgba(255,255,255,.8);
}
.big-search:focus-within {
  box-shadow: 0 12px 40px rgba(14,165,233,.18), 0 0 0 4px rgba(14,165,233,.1);
  border-color: rgba(14,165,233,.35);
}
.big-search input { font-size: 15px; }
.big-search .btn-primary { padding: 13px 28px; font-weight: 700; }

@media (max-width: 1200px) {
  .hero-visual { transform: translateY(-50%) scale(.85); right: 2%; opacity: .9; }
}
@media (max-width: 1060px) {
  .hero-visual { display: none; }
}

@media (max-width: 720px) {
  .hero-deco-1 { width: 220px; height: 220px; }
  .hero-deco-2 { width: 180px; height: 180px; }
  .hero-lines { width: 120px; height: 80px; right: 2%; opacity: .7; }
}

/* ---------- Shared ad-slot base ---------- */
.ad-slot {
  position: relative; overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 40px rgba(15,23,42,.18);
  transition: transform .18s ease, box-shadow .2s ease;
}
.ad-slot:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(15,23,42,.24); }
.ad-slot-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, #047857 0%, #0d9488 35%, #2563eb 100%);
  background-size: cover; background-position: center;
}
.ad-slot-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(4,120,87,.92) 0%, rgba(13,148,136,.78) 45%, rgba(37,99,235,.62) 100%);
}
.ad-slot-inner { position: relative; z-index: 2; }

.ad-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.85); background: rgba(255,255,255,.18);
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.ad-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.ad-logo img { width: 28px; height: 28px; object-fit: contain; }
.ad-logo-fallback {
  width: 100%; height: 100%; border-radius: 12px;
  display: grid; place-items: center;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, #10b981, #0ea5e9);
}
.ad-title { font-family: "Plus Jakarta Sans", sans-serif; font-size: 20px; font-weight: 800; color: #fff; line-height: 1.25; }
.ad-desc { font-size: 14px; color: rgba(255,255,255,.88); line-height: 1.5; }
.ad-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: #064e3b;
  background: #fff; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: transform .12s ease, box-shadow .15s ease;
}
.ad-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.24); }

/* ---------- Wide ad banner (hero / footer / inline) ---------- */
.ad-slot-wide { min-height: 180px; }
.ad-slot-wide .ad-slot-inner {
  display: flex; align-items: center; gap: 22px;
  padding: 26px 32px; min-height: 180px;
}
.ad-slot-wide .ad-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ad-slot-wide .ad-actions { flex: 0 0 auto; }
@media (max-width: 720px) {
  .ad-slot-wide .ad-slot-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
  .ad-title { font-size: 18px; }
}

/* ---------- Square ad banner (sidebar) ---------- */
.ad-slot-square { min-height: 340px; display: flex; flex-direction: column; }
.ad-slot-square .ad-slot-inner {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; gap: 12px;
}
.ad-slot-square .ad-logo { margin-bottom: auto; }

/* ---------- Sidebar sponsor widget ---------- */
.sidebar-ad { margin-top: 18px; }

/* ---------- Image-backed ad slots ---------- */
.ad-slot-img { display: block; position: relative; overflow: hidden; border-radius: 20px; }
.ad-slot-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.ad-slot-img:hover img { transform: scale(1.03); }
.ad-slot-img .ad-tag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(15,23,42,.55); color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.12);
}
/* Match container aspect ratio to each ad image so nothing is cropped.
   exness.png = 970 x 90; xm.jpg = 640 x 800. */
.ad-slot-wide.ad-slot-img { min-height: auto; aspect-ratio: 970 / 90; background: #05140f; }
.ad-slot-square.ad-slot-img { min-height: auto; aspect-ratio: 640 / 800; background: linear-gradient(160deg, #0a1628 0%, #0f2847 100%); }
/* On narrow screens the wide banner becomes too short to read; keep a
   minimum height and anchor on the left (text side), cropping only the
   decorative right side. */
@media (max-width: 720px) {
  .ad-slot-wide.ad-slot-img { aspect-ratio: auto; min-height: 110px; }
  .ad-slot-wide.ad-slot-img img { object-position: left center; }
  .ad-slot-square.ad-slot-img { aspect-ratio: auto; min-height: 220px; }
  .ad-slot-square.ad-slot-img img { object-position: left center; }
}

/* ---------- Sponsor logo strip ---------- */
.sponsor-strip {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 22px 26px; box-shadow: var(--shadow-sm);
}
.ss-head {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
  background: var(--bg); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
}
.ss-logos {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.ss-logo {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 130px; height: 48px; padding: 0 16px;
  filter: grayscale(100%); opacity: .62;
  transition: filter .25s ease, opacity .25s ease, transform .2s ease;
  border-radius: 12px;
}
.ss-logo:hover { filter: grayscale(0%); opacity: 1; transform: translateY(-2px); background: rgba(16,185,129,.06); }
.ss-logo img { height: 32px; width: auto; max-width: 110px; object-fit: contain; }
@media (max-width: 720px) {
  .ss-logos { gap: 6px 10px; }
  .ss-logo { min-width: 100px; height: 40px; padding: 0 10px; }
  .ss-logo img { height: 26px; max-width: 90px; }
}

/* ---------- Footer CTA banner ---------- */
.footer-banner {
  position: relative; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(4,120,87,.88) 0%, rgba(13,148,136,.82) 45%, rgba(37,99,235,.68) 100%),
    url('../img/banner-wide.svg') center/cover no-repeat;
  padding: 56px 0;
  margin-top: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.footer-banner::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 120% at 90% 50%, rgba(255,255,255,.12) 0%, transparent 55%);
}
.footer-banner-shine {
  position: absolute; top: -50%; left: -20%; width: 70%; height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.08) 48%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.08) 52%, transparent 60%);
  transform: rotate(12deg);
  pointer-events: none;
}
.footer-banner-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.footer-banner-copy { display: flex; flex-direction: column; gap: 8px; flex: 1 1 460px; }
.footer-banner-copy .btn-light { align-self: flex-start; margin-top: 8px; }
.footer-banner-eyebrow {
  display: inline-flex; width: fit-content;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.85); background: rgba(255,255,255,.16);
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.footer-banner h3 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 28px; font-weight: 800; color: #fff; margin: 0; }
.footer-banner p { color: rgba(255,255,255,.88); margin: 0; font-size: 16px; }
.footer-banner .btn-light {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: #064e3b;
  background: #fff; padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: transform .12s ease, box-shadow .15s ease;
}
.footer-banner .btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.24); }
.footer-banner-ad {
  flex: 0 1 420px; position: relative; display: block;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.footer-banner-ad:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(0,0,0,.28); }
.footer-banner-ad img { width: 100%; height: auto; display: block; }
.footer-banner-ad .ad-tag {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(15,23,42,.55); color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 900px) {
  .footer-banner-inner { flex-direction: column; align-items: stretch; gap: 28px; }
  .footer-banner-copy { text-align: center; align-items: center; }
  .footer-banner-copy .btn-light { align-self: center; }
  .footer-banner-ad { flex: 0 1 auto; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .footer-banner { padding: 38px 0; }
  .footer-banner-inner { padding: 0 20px; }
  .footer-banner h3 { font-size: 22px; }
}

/* ---------- Section dividers & premium section heads ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  max-width: 220px; margin: 0 auto;
}
.section-head.eyebrow-head .eyebrow { margin-bottom: 10px; }

/* Subtle top-gradient accent on trust cards */
.trust-card { position: relative; overflow: hidden; }
.trust-card::before {
  content: ""; display: block; height: 3px; width: 100%;
  background: var(--grad); position: absolute; top: 0; left: 0;
  opacity: 0; transition: opacity .18s ease; border-radius: 20px 20px 0 0;
}
.trust-card:hover::before { opacity: 1; }

/* Glass utility */
.glass {
  background: rgba(255,255,255,.74);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255,255,255,.45);
}

/* ---------- Featured topics / collections ---------- */
.topics-section { padding: 48px 20px 36px; }
.topics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1024px) { .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .topics-grid { grid-template-columns: 1fr; } }
.topic-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 220px; padding: 22px;
  border-radius: 20px; color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(15,23,42,.12);
  transition: transform .18s ease, box-shadow .2s ease;
}
.topic-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(15,23,42,.18); }
.topic-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  opacity: 1;
}
.topic-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 80% at 100% 0%, rgba(255,255,255,.18) 0%, transparent 55%);
}
.topic-icon { position: relative; z-index: 1; font-size: 30px; width: fit-content; }
.topic-card h3 { position: relative; z-index: 1; font-family: "Plus Jakarta Sans", sans-serif; font-size: 18px; font-weight: 800; margin: 0; }
.topic-card p { position: relative; z-index: 1; font-size: 13.5px; color: rgba(255,255,255,.88); margin: 0; line-height: 1.5; }
.topic-cta { position: relative; z-index: 1; margin-top: auto; font-size: 13px; font-weight: 700; color: #fff; }
.topic-card:hover .topic-cta { text-decoration: underline; }
.topic-beginners .topic-bg { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.topic-passive .topic-bg { background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%); }
.topic-ai .topic-bg { background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%); }
.topic-remote .topic-bg { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }

/* ---------- Dark-mode compatibility ---------- */
body.dark .hero-bg {
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(16,185,129,.16) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 90%, rgba(14,165,233,.14) 0%, transparent 50%),
    linear-gradient(180deg, #0e1726 0%, #0b1220 100%);
}
body.dark .hero-bg-img { opacity: .22; }
body.dark .sponsor-strip { background: var(--card); border-color: var(--line); }
body.dark .ss-head { background: #0e1726; border-color: var(--line); color: #94a3b8; }
body.dark .section-divider { background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }
body.dark .ss-logo { opacity: .55; }
body.dark .ss-logo:hover { opacity: 1; }
body.dark .footer-banner { box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
body.dark .site-header > .header-bar {
  background: rgba(15,23,42,.78);
  border-color: rgba(51,65,85,.7);
  box-shadow: 0 8px 28px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.06);
}
body.dark .top-nav a { color: #cbd5e1; }
body.dark .top-nav a:hover, body.dark .top-nav a.active { background: rgba(16,185,129,.15); color: #34d399; }
body.dark .big-search { background: rgba(15,23,42,.72); border-color: rgba(51,65,85,.65); box-shadow: 0 8px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04); }
body.dark .big-search:focus-within { box-shadow: 0 12px 40px rgba(14,165,233,.18), 0 0 0 4px rgba(14,165,233,.12); border-color: rgba(14,165,233,.45); }
body.dark .hv-card { background: rgba(15,23,42,.72); border-color: rgba(51,65,85,.6); box-shadow: 0 14px 40px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.04); }
body.dark .hv-value { color: #e2e8f0; }
body.dark .hv-label { color: #94a3b8; }

/* Force ad slots to stay readable in dark mode (they carry their own background) */
body.dark .ad-slot { border-color: rgba(255,255,255,.12); }

/* =========================================================================
   v10.18 — comprehensive polish: dark toggle, back-to-top, reveal animations,
   saved FAB fix, empty search state, hero count-up, mobile spacing.
   ========================================================================= */

/* ---- Saved FAB: actually hide when empty ---- */
.saved-fab[hidden] { display: none !important; }

/* ---- Theme toggle ---- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(226,232,240,.6); border: 1px solid rgba(226,232,240,.9);
  color: var(--ink); cursor: pointer; font-size: 18px; line-height: 1;
  transition: background .18s, transform .15s; flex: none;
}
.theme-toggle:hover { background: #fff; transform: scale(1.05); }
body.dark .theme-toggle { background: rgba(30,41,59,.8); border-color: rgba(51,65,85,.8); color: #e2e8f0; }
body.dark .theme-toggle:hover { background: rgba(51,65,85,.95); }

/* ---- Back to top ---- */
.back-to-top {
  position: fixed; right: 18px; bottom: 22px; z-index: 56;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; border: none; box-shadow: 0 6px 18px rgba(16,185,129,.35);
  cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { box-shadow: 0 10px 26px rgba(16,185,129,.45); transform: translateY(-2px); }

/* ---- Reveal-on-scroll animations ---- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* Stagger children automatically */
.stagger-children > * { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.stagger-children.in-view > * { opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.in-view > *:nth-child(2) { transition-delay: 60ms; }
.stagger-children.in-view > *:nth-child(3) { transition-delay: 120ms; }
.stagger-children.in-view > *:nth-child(4) { transition-delay: 180ms; }
.stagger-children.in-view > *:nth-child(5) { transition-delay: 240ms; }
.stagger-children.in-view > *:nth-child(6) { transition-delay: 300ms; }

/* Sticky sort toolbar on desktop */
@media (min-width: 1024px) {
  .dir-toolbar {
    position: sticky; top: 84px; z-index: 30;
    background: rgba(248,250,252,.92);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid var(--line); border-radius: 14px;
    padding: 10px 14px; margin: 0 0 14px;
  }
  body.dark .dir-toolbar { background: rgba(11,18,32,.92); }
}

/* ---- Empty search state ---- */
.empty-state {
  background: var(--card); border: 1px dashed var(--line); border-radius: 18px;
  padding: 44px 24px; text-align: center; margin: 18px 0 28px;
}
.empty-state-icon { font-size: 42px; margin-bottom: 10px; }
.empty-state h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.empty-state p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.empty-state-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.empty-state-tags a {
  font-size: 13px; font-weight: 600; color: var(--emerald-d); background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2); padding: 7px 14px; border-radius: 999px;
}
.empty-state-tags a:hover { background: rgba(16,185,129,.14); }

/* ---- Breadcrumbs for generated pages ---- */
.breadcrumbs { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 16px 0 8px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; box-shadow: var(--shadow-sm); }
.breadcrumbs a { color: var(--emerald-d); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--ink); }
body.dark .breadcrumbs { background: #0e1726; }

/* ---- Resource page hero header ---- */
.reader-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(16,185,129,.12) 0%, rgba(14,165,233,.10) 100%);
  border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  margin-bottom: 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  box-shadow: 0 12px 32px rgba(15,23,42,.07);
}
.reader-hero::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg,#10b981,#0ea5e9); }
.reader-hero .reader-logo { width: 68px; height: 68px; border-radius: 16px; box-shadow: var(--shadow); }
.reader-hero-main { flex: 1; min-width: 0; }
.reader-hero-main h1 { font-size: 28px; font-weight: 800; margin: 0 0 4px; }
.reader-hero-main p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---- Count-up stat numbers ---- */
.ts-num { display: inline-block; min-width: 1.2em; }

/* ---- Mobile spacing tune-ups ---- */
@media (max-width: 720px) {
  .hero { padding: 38px 0 28px; }
  .hero-title { font-size: clamp(28px, 8vw, 38px); }
  .hero-sub { font-size: 15px; margin: 12px auto 18px; }
  .big-search { flex-direction: column; align-items: stretch; border-radius: 18px; padding: 8px; }
  .big-search input { padding: 12px 8px; }
  .big-search .btn { width: 100%; margin-top: 4px; }
  .trust-strip { gap: 14px 24px; }
  .ts-num { font-size: 20px; }
  .ts-lbl { font-size: 12px; }
  .saved-fab { left: auto; right: 14px; bottom: 66px; padding: 9px 14px; font-size: 13px; }
  .back-to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
  .dir-toolbar { position: relative; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-delay-1, .reveal-delay-2, .reveal-delay-3,
  .stagger-children > * { transition: none !important; }
}

/* ---------- GDPR cookie consent (v10.23) ---------- */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  padding: 14px; pointer-events: none;
  animation: ccSlideUp .35s ease both;
}
@keyframes ccSlideUp { from { transform: translateY(120%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cc-inner {
  max-width: 1120px; margin: 0 auto; pointer-events: auto;
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(110deg, #0b1220 0%, #0f2847 55%, #064e3b 100%);
  color: #e2e8f0; border: 1px solid rgba(148,163,184,.2);
  border-radius: 18px; padding: 16px 20px;
  box-shadow: 0 18px 48px rgba(2,6,23,.45);
}
.cc-icon { font-size: 28px; line-height: 1; flex: 0 0 auto; }
.cc-text { flex: 1; min-width: 0; }
.cc-text strong { display: block; font-size: 15px; color: #fff; margin-bottom: 3px; font-family: "Plus Jakarta Sans", sans-serif; }
.cc-text p { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(226,232,240,.82); }
.cc-text a { color: #6ee7b7; text-decoration: underline; font-weight: 600; }
.cc-text a:hover { color: #fff; }
.cc-actions { display: flex; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; }
.cc-btn {
  border: 0; cursor: pointer; font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px; font-weight: 700; border-radius: 999px; padding: 10px 16px;
  white-space: nowrap; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.cc-btn:hover { transform: translateY(-1px); }
.cc-accept { background: linear-gradient(135deg, #10b981, #0ea5e9); color: #fff; box-shadow: 0 8px 20px rgba(16,185,129,.35); }
.cc-manage { background: rgba(255,255,255,.1); color: #e2e8f0; border: 1px solid rgba(255,255,255,.22); }
.cc-decline { background: transparent; color: #cbd5e1; border: 1px solid rgba(255,255,255,.22); }
.cc-decline:hover { background: rgba(255,255,255,.08); }

.cc-modal-overlay {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  background: rgba(2,6,23,.6); backdrop-filter: blur(4px); padding: 18px;
}
.cc-modal {
  width: min(520px, 100%); background: #0f172a; color: #e2e8f0;
  border: 1px solid rgba(148,163,184,.22); border-radius: 20px; padding: 24px;
  box-shadow: 0 30px 70px rgba(2,6,23,.55); animation: ccPop .25s ease both;
}
@keyframes ccPop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cc-modal-head { display: flex; align-items: center; justify-content: space-between; }
.cc-modal-head h3 { margin: 0; font-size: 19px; color: #fff; font-family: "Plus Jakarta Sans", sans-serif; }
.cc-x { background: transparent; border: 0; color: #94a3b8; font-size: 26px; line-height: 1; cursor: pointer; }
.cc-x:hover { color: #fff; }
.cc-modal-sub { font-size: 13px; color: rgba(226,232,240,.7); margin: 6px 0 18px; line-height: 1.5; }
.cc-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(148,163,184,.16); }
.cc-row-main { flex: 1; min-width: 0; }
.cc-row-t { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.cc-row-d { font-size: 12.5px; color: rgba(226,232,240,.7); line-height: 1.5; }
.cc-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-slider { position: absolute; inset: 0; border-radius: 999px; background: #334155; transition: background .2s ease; }
.cc-slider::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.cc-switch input:checked + .cc-slider { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch input:disabled + .cc-slider { background: #10b981; opacity: .55; cursor: not-allowed; }
.cc-switch.locked { cursor: not-allowed; }
.cc-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.cc-modal-actions .cc-btn { flex: 1; text-align: center; }

/* Footer privacy links */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; }
.footer-legal a { color: #94a3b8; font-size: 12.5px; text-decoration: none; }
.footer-legal a:hover { color: #cbd5e1; text-decoration: underline; }

@media (max-width: 760px) {
  .cc-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cc-actions { justify-content: stretch; }
  .cc-actions .cc-btn { flex: 1; }
}
