/* ============================================================
   RankHub — design system v2 (no build step, pure CSS)
   ============================================================ */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter.woff2') format('woff2');
}
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/sora.woff2') format('woff2');
}

:root {
    --bg: #070b18;
    --bg-2: #0d1430;
    --surface: #ffffff;
    --surface-2: #f5f7fc;
    --surface-3: #eef1f8;
    --border: #e6e9f2;
    --border-2: #d9deec;
    --text: #131829;
    --text-soft: #525c70;
    --muted: #8b94a8;
    --brand: #6366f1;
    --brand-2: #8b5cf6;
    --brand-3: #d946ef;
    --accent: #10d39e;
    --gold: #f7b733;
    --radius: 18px;
    --radius-sm: 11px;
    --radius-xs: 8px;
    --shadow-sm: 0 1px 2px rgba(13,20,48,.05), 0 2px 6px rgba(13,20,48,.04);
    --shadow: 0 4px 12px rgba(13,20,48,.06), 0 14px 38px rgba(13,20,48,.07);
    --shadow-lg: 0 18px 60px rgba(13,20,48,.16);
    --glow: 0 10px 30px rgba(99,102,241,.4);
    --maxw: 1180px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --display: "Sora", var(--font);
}

/* ---------- Dark theme ---------- */
html[data-theme="dark"] {
    --surface: #131b30;
    --surface-2: #0a0f1e;
    --surface-3: #1b2440;
    --border: #25304c;
    --border-2: #313d5c;
    --text: #eef1f8;
    --text-soft: #aeb6cc;
    --muted: #7b85a0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.25);
    --shadow: 0 4px 12px rgba(0,0,0,.35), 0 14px 38px rgba(0,0,0,.4);
    --shadow-lg: 0 18px 60px rgba(0,0,0,.55);
}
html[data-theme="dark"] body { background: var(--surface-2); }
html[data-theme="dark"] .site-header { background: rgba(10,15,30,.82); border-bottom-color: var(--border); }
html[data-theme="dark"] .nav-cta { background: var(--brand); color: #fff !important; }
html[data-theme="dark"] .nav-cta:hover { background: var(--brand-2); }
html[data-theme="dark"] .search input,
html[data-theme="dark"] .input { background: var(--surface); color: var(--text); border-color: var(--border-2); }
html[data-theme="dark"] .pill { background: var(--surface-3); }
html[data-theme="dark"] .btn-light { background: var(--surface); color: var(--text); border-color: var(--border-2); }
html[data-theme="dark"] .tlogo { background: #f2f4fa; }
html[data-theme="dark"] .pagination a, html[data-theme="dark"] .pagination span { background: var(--surface); color: var(--text-soft); }
html[data-theme="dark"] table.data tr:hover td { background: rgba(255,255,255,.02); }
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text-soft); cursor: pointer; transition: background .15s, color .15s; }
.theme-toggle:hover { background: var(--surface-3); color: var(--text); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--surface-2);
    overflow-x: hidden;
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-2); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; color: var(--text); margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
small { font-size: .82em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 50px 0; }
.section-tight { padding: 36px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 26px; flex-wrap: wrap; }
.section-head p { color: var(--text-soft); margin: 6px 0 0; max-width: 52ch; }
.page-head { display: flex; align-items: center; gap: 22px; margin-bottom: 36px; flex-wrap: wrap; }
.page-icon { width: 90px; height: 90px; object-fit: contain; flex-shrink: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; color: var(--brand); margin-bottom: .55rem; display: inline-flex; align-items: center; gap: 7px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-3)); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(230,233,242,.8); }
.nav { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; color: var(--text); display: inline-flex; align-items: center; gap: 9px; }
.brand:hover { color: var(--text); }
.brand .dot { width: 13px; height: 13px; border-radius: 5px; background: linear-gradient(135deg, var(--brand), var(--brand-3)); box-shadow: 0 0 0 4px rgba(99,102,241,.14); transform: rotate(45deg); }
.brand-mark { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(99,102,241,.4)); }
.tld { color: var(--brand-2); }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-soft); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 9px 16px; border-radius: 10px; background: var(--text); color: #fff !important; font-weight: 700; }
.nav-cta:hover { background: var(--brand); }
.nav-search input { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font-size: .88rem; width: 190px; outline: none; transition: width .22s ease, border-color .15s ease, box-shadow .15s ease; }
.nav-search input::placeholder { color: var(--muted); }
.nav-search input:focus { width: 240px; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 520px at 78% -8%, rgba(217,70,239,.22), transparent 60%), radial-gradient(900px 480px at 12% 0%, rgba(99,102,241,.28), transparent 55%), linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); color: #fff; padding: 90px 0 104px; }
.hero::before { /* dot grid */ content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000 0%, transparent 80%); pointer-events: none; }
.hero .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.hero .orb-1 { width: 340px; height: 340px; background: #7c3aed; top: -80px; right: 8%; animation: float 14s ease-in-out infinite; }
.hero .orb-2 { width: 280px; height: 280px; background: #2563eb; bottom: -120px; left: 6%; animation: float 18s ease-in-out infinite reverse; }
.hero .orb-3 { width: 220px; height: 220px; background: #db2777; top: 30%; left: 45%; opacity: .35; animation: float 22s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-26px) translateX(18px); } }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual img { width: 100%; max-width: 480px; height: auto; filter: drop-shadow(0 30px 60px rgba(124,58,237,.4)); animation: float 9s ease-in-out infinite; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { display: none; } }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: .82rem; font-weight: 600; color: #e7ddff; margin-bottom: 22px; }
.hero-badge .ping { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(16,211,158,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(16,211,158,.5); } 70% { box-shadow: 0 0 0 10px rgba(16,211,158,0); } 100% { box-shadow: 0 0 0 0 rgba(16,211,158,0); } }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 .grad { background: linear-gradient(100deg, #c4b5fd, #f0abfc 60%, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: #c3c9e0; font-size: 1.2rem; max-width: 56ch; margin-top: 18px; }
.hero-search { display: flex; gap: 10px; margin-top: 32px; max-width: 560px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); padding: 8px; border-radius: 16px; backdrop-filter: blur(8px); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.hero-search input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 11px; border: none; background: transparent; color: #fff; font-size: 1.02rem; outline: none; }
.hero-search input::placeholder { color: #9aa3c0; }
.hero-center { text-align: center; max-width: 760px; margin: 0 auto; position: relative; z-index: 2; }
.hero-center h1 { max-width: none; }
.hero-center .lead { margin: 18px auto 0; }
.hero-center .hero-search { margin: 30px auto 0; }
.hero-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.hpill { padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #d7dcf0; font-weight: 600; font-size: .88rem; }
.hpill:hover { background: rgba(255,255,255,.16); color: #fff; }
.hero-featuring { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 34px; color: #8089aa; font-size: .85rem; flex-wrap: wrap; }
.hero-featuring span { letter-spacing: .04em; text-transform: uppercase; font-size: .74rem; font-weight: 600; }
.hero-featuring img { width: 30px; height: 30px; border-radius: 8px; background: #fff; padding: 3px; }

.hero-stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .s-num { font-family: var(--display); font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero-stats .s-label { color: #9aa3c0; font-size: .85rem; }

/* Hero two-column + Editor's Picks podium */
.hero-2col { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 50px; align-items: center; position: relative; z-index: 2; }
.hero-copy { min-width: 0; }
.hero-copy h1 { max-width: 13ch; }
.hero-copy .hero-search { max-width: 520px; }
.podium { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 18px; backdrop-filter: blur(10px); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.podium-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding: 0 6px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.podium-month { font-size: .74rem; color: #c9cfe6; font-weight: 600; background: rgba(255,255,255,.08); padding: 4px 10px; border-radius: 999px; }
.podium-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 13px; transition: background .15s ease; }
.podium-row:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.podium-rank { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: rgba(255,255,255,.1); flex-shrink: 0; font-family: var(--display); }
.rank-1 .podium-rank { background: linear-gradient(135deg, #f7d046, #f59e2e); color: #3a2a00; }
.rank-2 .podium-rank { background: linear-gradient(135deg, #dfe5f2, #9aa3bd); color: #1a2233; }
.rank-3 .podium-rank { background: linear-gradient(135deg, #e0a877, #b06f3e); color: #2a1500; }
.podium .tlogo { width: 40px; height: 40px; margin-bottom: 0; }
.podium-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.podium-info strong { color: #fff; font-size: .96rem; }
.podium-award { color: #c4b5fd; font-size: .78rem; font-weight: 600; }
.podium-rating { color: var(--gold); font-weight: 700; font-size: .86rem; white-space: nowrap; }
.podium-foot { display: block; text-align: center; margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); color: #c4cbe0; font-weight: 600; font-size: .85rem; }
.podium-foot:hover { color: #fff; }
@media (max-width: 980px) {
    .hero-2col { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hero-copy h1 { max-width: none; }
}

/* Trust bar */
.trustbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.trustbar .container { display: flex; gap: 26px; align-items: center; justify-content: center; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; font-size: .88rem; font-weight: 600; color: var(--text-soft); }
.trustbar span { white-space: nowrap; }
.trustbar a { margin-left: auto; font-weight: 700; }
@media (max-width: 760px) { .trustbar a { margin-left: 0; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: .96rem; border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, box-shadow .18s ease, background .15s ease; font-family: var(--font); white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 38px rgba(99,102,241,.55); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--text); border-color: var(--brand); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .14s ease, border-color .2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--border-2); }

.tool-card { display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden; }
.tool-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-3)); opacity: 0; transition: opacity .2s ease; }
.tool-card:hover::after { opacity: 1; }
.card-stretch { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tool-card > *:not(.card-stretch):not(.cmp-btn) { position: relative; z-index: 2; pointer-events: none; }
.tool-card .meta a, .tool-card .meta .pill { pointer-events: auto; }
.tool-card .logo { width: 50px; height: 50px; border-radius: 13px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.25rem; margin-bottom: 14px; box-shadow: 0 6px 16px rgba(99,102,241,.3); font-family: var(--display); }
.tlogo { width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; box-shadow: 0 2px 8px rgba(13,20,48,.07); margin-bottom: 14px; flex-shrink: 0; }
.tlogo img { width: 62%; height: 62%; object-fit: contain; }
.tlogo-letter { width: 100%; height: 100%; place-items: center; font-family: var(--display); font-weight: 800; color: var(--brand); font-size: 1.3rem; background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(217,70,239,.12)); }
.tlogo-lg { width: 78px; height: 78px; border-radius: 19px; }
.tlogo-lg .tlogo-letter { font-size: 1.9rem; }

.tool-card h3 { font-size: 1.14rem; margin: 0 0 5px; }
.tool-card h3 a { color: var(--text); }
.tool-card h3 a:hover { color: var(--brand); }
.tool-card .tagline { color: var(--text-soft); font-size: .92rem; margin: 0 0 16px; flex: 1; }
.tool-card .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .77rem; font-weight: 600; background: var(--surface-3); color: var(--text-soft); border: 1px solid var(--border); }
.pill-free { background: rgba(16,211,158,.1); color: #099b75; border-color: rgba(16,211,158,.22); }
.pill-brand { background: rgba(99,102,241,.1); color: var(--brand); border-color: rgba(99,102,241,.2); }
.rating-sm { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: .82rem; color: var(--gold); }
.price { font-weight: 800; color: var(--text); font-family: var(--display); }
.price small { font-weight: 600; color: var(--muted); }

/* ---------- Tiles ---------- */
.tile { display: block; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .2s ease, border-color .2s; overflow: hidden; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-2); }
.tile::before { content: ""; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.12), transparent 70%); }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(99,102,241,.14), rgba(217,70,239,.14)); display: grid; place-items: center; margin-bottom: 14px; font-size: 1.3rem; }
.ico-tile { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; color: var(--brand); background: linear-gradient(135deg, rgba(99,102,241,.14), rgba(217,70,239,.12)); border: 1px solid rgba(99,102,241,.18); transition: transform .18s ease, box-shadow .2s ease, background .2s ease; }
.tile-img:hover .ico-tile, .cat-tile:hover .ico-tile { transform: translateY(-2px); background: linear-gradient(135deg, rgba(99,102,241,.22), rgba(217,70,239,.18)); box-shadow: 0 10px 24px rgba(99,102,241,.22); }
.ico-svg { width: 30px; height: 30px; }
.ico-tile-lg { width: 84px; height: 84px; border-radius: 22px; }
.ico-tile-lg .ico-svg { width: 42px; height: 42px; }
.tile h3 { margin: 0 0 6px; color: var(--text); }
.tile:hover h3 { color: var(--brand); }
.tile p { margin: 0; color: var(--text-soft); font-size: .92rem; }
.tile .sub { margin-top: 12px; color: var(--muted); font-size: .82rem; }
.tile .arrow { position: absolute; bottom: 22px; right: 22px; color: var(--brand); opacity: 0; transform: translateX(-6px); transition: all .2s ease; font-weight: 800; }
.tile:hover .arrow { opacity: 1; transform: translateX(0); }

/* Compact, content-dense category/audience tiles (horizontal: icon · text · arrow) */
.cat-tile { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.cat-tile::before { display: none; }
.cat-tile .ico-tile { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 0; flex: 0 0 auto; }
.cat-tile .ico-tile .ico-svg { width: 26px; height: 26px; }
.cat-tile .cat-body { flex: 1 1 auto; min-width: 0; }
.cat-tile .cat-body h3 { margin: 0 0 3px; font-size: 1.06rem; line-height: 1.2; }
.cat-tile .cat-body p { margin: 0; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-tile .cat-arrow { flex: 0 0 auto; color: var(--brand); font-weight: 800; font-size: 1.1rem; opacity: .4; transform: translateX(0); transition: opacity .2s ease, transform .2s ease; }
.cat-tile:hover .cat-arrow { opacity: 1; transform: translateX(3px); }

/* Blog cover art (Gemini-generated, 16:9) */
.tile-cover { display: block; width: calc(100% + 52px); max-width: none; height: auto; margin: -26px -26px 16px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.post-hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 18px 0 26px; box-shadow: var(--shadow); border: 1px solid var(--border); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); padding: 22px 0 0; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--text-soft); }
.crumbs span { color: var(--muted); }

/* ---------- Profile ---------- */
.profile-head { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.profile-head .logo-lg { width: 78px; height: 78px; border-radius: 19px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.9rem; font-family: var(--display); box-shadow: 0 10px 26px rgba(99,102,241,.32); }
.profile-head .head-main { flex: 1; min-width: 240px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gold); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 16px; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li { padding: 8px 0 8px 28px; position: relative; color: var(--text-soft); }
.proscons .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.proscons .cons li::before { content: "✕"; position: absolute; left: 0; color: #ef4565; font-weight: 800; }

table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--border); font-size: .94rem; }
table.data th { color: var(--muted); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
table.data tr:last-child td { border-bottom: none; }
.tick { color: var(--accent); font-weight: 800; }
.cross { color: #c3cad6; }

.ratebars { display: flex; flex-direction: column; gap: 12px; }
.ratebar { display: grid; grid-template-columns: 130px 1fr 34px; align-items: center; gap: 12px; }
.uc-ratebars .ratebar { grid-template-columns: 180px 1fr 34px; }
@media (max-width: 560px) { .uc-ratebars .ratebar { grid-template-columns: 120px 1fr 30px; } }
.rb-label { font-size: .9rem; color: var(--text-soft); font-weight: 600; }
.rb-track { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.rb-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-3)); }
.rb-score { font-weight: 800; font-size: .9rem; color: var(--text); text-align: right; font-family: var(--display); }

.profile-layout { display: grid; grid-template-columns: 1fr 320px; align-items: start; gap: 34px; }
.aff-box { position: sticky; top: 90px; border: 1px solid var(--border-2); }
@media (max-width: 860px) {
    .profile-layout { grid-template-columns: 1fr; }
    .aff-box { position: static; }
}
.aff-box .disclosure { font-size: .76rem; color: var(--muted); margin-top: 12px; line-height: 1.4; }

/* ---------- Comparisons hub cards ---------- */
.cmp-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .2s ease, border-color .2s ease; }
.cmp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-2); text-decoration: none; }
.cmp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cmp-type { font-size: .72rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.cmp-type-best_of { background: rgba(247,183,51,.16); color: #b07d10; }
.cmp-type-vs { background: rgba(99,102,241,.12); color: var(--brand); }
.cmp-type-alternatives { background: rgba(16,211,158,.13); color: #099b75; }
.cmp-logos { display: flex; flex-shrink: 0; }
.cmp-logos .tlogo { width: 34px; height: 34px; margin: 0 0 0 -9px; border: 2px solid var(--surface); border-radius: 9px; }
.cmp-logos .tlogo:first-child { margin-left: 0; }
.cmp-card h3 { font-size: 1.12rem; font-family: var(--display); margin: 0 0 6px; color: var(--text); line-height: 1.25; }
.cmp-card p { color: var(--text-soft); font-size: .9rem; flex: 1; margin: 0 0 14px; }
.cmp-card-foot { color: var(--brand); font-weight: 700; font-size: .88rem; }
html[data-theme="dark"] .cmp-logos .tlogo { border-color: var(--surface); }

/* ---------- Compare / money page ---------- */
.byline { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.byline strong { color: var(--text-soft); }
.disclosure-bar { font-size: .72rem; line-height: 1.4; color: var(--muted); margin: 2px 0 18px; text-align: left; opacity: .8; }
.callout { background: rgba(99,102,241,.07); border: 1px solid rgba(99,102,241,.22); border-left: 4px solid var(--brand); border-radius: 12px; padding: 14px 18px; font-size: .92rem; color: var(--text-soft); margin: 0 0 24px; line-height: 1.6; }
.callout strong { color: var(--text); }
.lede { font-size: 1.18rem; line-height: 1.6; color: var(--text); margin: 4px 0 26px; }
.verdict { background: linear-gradient(180deg, #0d1430, #11183a); color: #fff; border-radius: var(--radius); padding: 28px; margin-bottom: 26px; box-shadow: var(--shadow-lg); }
.verdict-tag { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 800; color: #b9a7ff; margin-bottom: 10px; }
.verdict-sum { font-size: 1.18rem; font-weight: 600; color: #fff; margin: 0 0 22px; font-family: var(--display); line-height: 1.4; }
.verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.verdict-pick { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px; }
.verdict-pick .tlogo { margin-bottom: 12px; }
.verdict-pick p { color: #d2d7ec; font-size: .96rem; min-height: 48px; }
.dim { padding: 8px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.dim h2 { font-size: 1.3rem; margin-bottom: 10px; }
.prose { color: var(--text-soft); }
.prose p { margin: 0 0 12px; }
.prose strong { color: var(--text); }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--text); list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--text-soft); }
.method { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-top: 8px; }
.method p { color: var(--text-soft); font-size: .92rem; margin: 0; }

/* Featured tools (internal links from blog/best) */
.featured-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ftool { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); transition: border-color .15s, transform .12s; }
.ftool:hover { border-color: var(--brand); transform: translateY(-1px); text-decoration: none; }
.ftool .tlogo { margin: 0; width: 40px; height: 40px; }
.ftool-info { display: flex; flex-direction: column; gap: 2px; }
.ftool-info strong { color: var(--text); }
@media (max-width: 560px) { .featured-tools { grid-template-columns: 1fr; } }

/* Best-of money page */
.pick-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; }
.pick-box .tlogo { margin: 0 auto 10px; }
.pick-label { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 800; color: var(--brand); margin-bottom: 12px; }
.pick-box strong { font-size: 1.05rem; display: block; margin-bottom: 4px; }
.best-entry { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.best-entry-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.best-entry-head .tlogo { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: #9aa3c0; margin-top: 48px; padding: 56px 0 34px; }
.site-footer a { color: #c3c9e0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; font-family: var(--font); font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: .92rem; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: #6b7390; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Pagination / misc ---------- */
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 32px 0 0; flex-wrap: wrap; justify-content: center; }
.pagination a, .pagination span { display: inline-block; padding: 9px 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); font-size: .9rem; color: var(--text-soft); }
.pagination .active span { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--border-2); border-radius: var(--radius); }

/* ---------- Legal / static pages ---------- */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 18px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--text-soft); }
.legal ul { padding-left: 20px; margin: 0 0 1rem; }
.legal li { margin-bottom: 8px; }
.legal-updated { margin-top: 28px; font-size: .85rem; color: var(--muted); }

/* ---------- All Tools: filters, animated grid, compare ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.fgroup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fgroup-end { margin-left: auto; }
.flabel { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 2px; }
.fchip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-soft); font-weight: 600; font-size: .85rem; cursor: pointer; transition: all .15s ease; }
.fchip:hover { border-color: var(--brand); color: var(--text); }
.fchip.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(99,102,241,.3); }
.fchip-free.active { background: linear-gradient(135deg, var(--accent), #0aa97a); }
.result-count { color: var(--muted); font-size: .88rem; font-weight: 600; margin-bottom: 16px; }

.gtile { will-change: transform; }
.cmp-btn { position: absolute; top: 12px; right: 12px; z-index: 3; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-soft); font-size: .76rem; font-weight: 700; cursor: pointer; transition: all .15s ease; }
.cmp-btn:hover { border-color: var(--brand); color: var(--brand); }
.cmp-btn.on { background: var(--brand); color: #fff; border-color: var(--brand); }

.cmp-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: rgba(13,20,48,.96); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.12); transform: translateY(110%); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.cmp-tray.show { transform: translateY(0); }
.cmp-tray-inner { display: flex; align-items: center; gap: 16px; padding: 14px 22px; flex-wrap: wrap; }
.cmp-slots { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.cmp-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: .85rem; font-weight: 600; cursor: pointer; border: 1px solid rgba(255,255,255,.16); }
.cmp-pill b { color: #c4b5fd; }
.cmp-pill:hover { background: rgba(255,255,255,.18); }
.cmp-actions { display: flex; align-items: center; gap: 14px; }
.cmp-hint { color: #9aa3c0; font-size: .85rem; }

/* Side-by-side compare table */
.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp-table th, .cmp-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: top; }
.cmp-table thead th { border-bottom: 2px solid var(--border-2); background: var(--surface-2); }
.cmp-table .rowlabel { text-align: left; font-weight: 700; color: var(--text-soft); font-size: .9rem; background: var(--surface-2); white-space: nowrap; position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--border); }
.cmp-scroll-hint { display: none; text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
/* Mobile: keep the label column narrow & frozen, scroll the tool columns. */
@media (max-width: 720px) {
    .cmp-table { min-width: 0; }
    .cmp-table th, .cmp-table td { padding: 10px 11px; font-size: .85rem; }
    .cmp-table .rowlabel { white-space: normal; min-width: 96px; max-width: 116px; width: 116px; font-size: .78rem; line-height: 1.25; }
    .cmp-table thead th:not(.rowlabel), .cmp-table tbody td:not(.rowlabel) { min-width: 144px; }
    .cmp-table .cmp-col-head .btn { padding: 9px 12px; font-size: .82rem; }
    .cmp-scroll-hint { display: block; }
}
.cmp-ref-note { display: block; margin-top: 3px; font-size: .68rem; font-weight: 600; color: var(--muted); font-style: italic; }
.cmp-col-head { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 150px; }
.cmp-col-head .tlogo { margin: 0 auto; }
.cmp-col-name { font-family: var(--display); font-weight: 700; color: var(--text); font-size: 1.05rem; }
.cmp-section td { background: var(--surface-3); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .76rem; color: var(--muted); text-align: left; }

@media (max-width: 760px) { .fgroup-end { margin-left: 0; width: 100%; } }

.search { display: flex; gap: 10px; }
.search input { padding: 12px 15px; border-radius: 11px; border: 1px solid var(--border-2); font-size: .98rem; outline: none; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }

/* ---------- Admin ---------- */
.admin-body { background: var(--surface-2); }
.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.admin-side { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); color: #fff; padding: 26px 20px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { color: #aab2cc; padding: 11px 14px; border-radius: 10px; font-weight: 600; font-size: .94rem; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--glow); }
.admin-side-foot { margin-top: auto; font-size: .78rem; color: #5b6486; padding-top: 20px; }
.admin-main { padding: 40px 44px; max-width: 1000px; }
.admin-main h1 { font-size: 1.9rem; }

.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.stat-num { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--text); }
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 600; }

.field { display: block; margin-bottom: 22px; }
.field-label { display: block; font-weight: 700; margin-bottom: 7px; color: var(--text); font-size: .95rem; }
.field-label small { font-weight: 500; color: var(--muted); }
.field-hint { display: block; margin-top: 7px; font-size: .82rem; color: var(--muted); }
.input { width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--border-2); font-size: .96rem; font-family: var(--font); background: var(--surface); outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
select.input { cursor: pointer; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sep { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.models-status { margin-bottom: 18px; }
.flash { padding: 13px 18px; border-radius: 12px; margin-bottom: 22px; font-weight: 600; font-size: .92rem; }
.flash-ok { background: rgba(16,211,158,.12); color: #088a68; border: 1px solid rgba(16,211,158,.25); }
.flash-err { background: rgba(239,69,101,.1); color: #d12c4e; border: 1px solid rgba(239,69,101,.25); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-toggle { display: inline-grid; }
    .nav-actions { margin-left: auto; }
    .nav-links { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 12px 22px 18px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); z-index: 55; }
    .nav-links:not(.open) { display: none; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 8px; border-radius: 8px; }
    .nav-links a:hover { background: var(--surface-3); }
    .nav-search { display: flex; margin: 4px 0; }
    .nav-search input { width: 100%; }
    .nav-search input:focus { width: 100%; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; height: auto; flex-direction: row; align-items: center; gap: 16px; }
    .admin-nav { flex-direction: row; }
    .admin-side-foot { display: none; }
    .admin-main { padding: 28px 20px; }
}
@media (max-width: 560px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .proscons { grid-template-columns: 1fr; }
    .vs-head { grid-template-columns: 1fr; }
    .verdict-grid { grid-template-columns: 1fr; }
    .featured-tools { grid-template-columns: 1fr; }
    .hero { padding: 64px 0 72px; }
    .container { padding: 0 16px; }
    .section { padding: 40px 0; }
    table.data th, table.data td { padding: 10px 9px; font-size: .85rem; }
    .panel { padding: 18px; }
}
