/* CVC Redesign - Trustpilot Style */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #f8fafc;
  --hero: #0a1628;
  --accent: #2563eb;
  --accent2: #1d4ed8;
  --ink: #1e293b;
  --ink-soft: #64748b;
  --muted: #64748b;
  --bdr: #e2e8f0;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --mint: #10b981;
  --gold: #f59e0b;
  --rose: #e76f51;
  --panel: rgba(255, 255, 255, 0.96);
  --sea: #2563eb;
  --sea-mid: #1d4ed8;
  --white: #ffffff;
  --slate: #1e293b;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --r: 10px;
  --f: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--f); background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.site-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.is-hidden { display: none !important; }

/* ── HEADER ── */
.site-header { background: #fff; border-bottom: 1px solid var(--bdr); position: sticky; top: 0; z-index: 100; }
.header-shell { display: flex; align-items: center; gap: 12px; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); flex-shrink: 0; }
.brand-mark img { height: 28px; width: auto; }
.brand-copy strong { font-size: .85rem; font-weight: 700; }
.brand-copy small { display: none; }
.site-nav { display: flex; gap: 2px; font-size: .82rem; }
.site-nav a { color: var(--ink-soft); font-weight: 500; padding: 6px 8px; border-radius: 6px; transition: color .15s; }
.site-nav a:hover { color: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 4px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ── BUTTONS ── */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--f); font-size: .82rem; font-weight: 600; border: none; border-radius: 8px; padding: 8px 16px; cursor: pointer; transition: all .15s; line-height: 1.3; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent2); }
.button-secondary { background: #fff; color: var(--ink); border: 1px solid var(--bdr); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }
.button-nav-ghost { background: none; color: var(--ink-soft); border: none; padding: 6px 12px; }
.button-nav-ghost:hover { color: var(--accent); }
.button-nav-ghost.is-authenticated { color: var(--mint); }
.button-nav-accent { background: var(--accent); color: #fff; padding: 6px 14px; border-radius: 6px; font-weight: 600; font-size: .8rem; }
.button-nav-accent:hover { background: var(--accent2); }
.button-ghost { background: none; color: var(--ink-soft); border: 1px solid var(--bdr); }
.button-ghost:disabled { opacity: .4; cursor: default; }
.button-review { background: none; color: var(--accent); border: 1px solid var(--accent); font-size: .78rem; padding: 5px 12px; }
.button-review:hover { background: var(--accent); color: #fff; }
.button-compare { background: none; color: var(--ink-soft); border: 1px solid var(--bdr); font-size: .78rem; padding: 5px 12px; }
.button-compare:hover { border-color: var(--accent); color: var(--accent); }
.button-wide { width: 100%; }
.auth-button-disabled { opacity: .5; pointer-events: none; }

/* ── HERO ── */
.hero-shell { position: relative; padding: 18px 0 8px; background: transparent; }
.hero-shell::before { content: ""; position: absolute; inset: 0 0 22px; border-radius: 0 0 38px 38px; background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2563eb 100%); box-shadow: inset 0 -1px 0 rgba(255,255,255,.06); z-index: 0; }
/* Trustpilot hero override - only when search box exists */
.hero-shell:has(.hero-search-box) { padding: 56px 0 48px; text-align: center; }
.hero-shell:has(.hero-search-box)::before { border-radius: 0; inset: 0; }
.hero-copy { position: relative; z-index: 1; text-align: left; max-width: 620px; }
.hero-shell:has(.hero-search-box) .hero-copy { text-align: center; max-width: 680px; margin: 0 auto; }
.hero-shell:has(.hero-search-box) .hero-copy h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; color: #fff; text-align: center; max-width: none; }
.hero-subtitle { font-size: 1.05rem; opacity: .85; margin-bottom: 24px; color: rgba(255,255,255,.9); }
.hero-search-box { max-width: 560px; margin: 0 auto 28px; background: #fff; border-radius: 10px; padding: 4px; display: flex; box-shadow: 0 4px 24px rgba(0,0,0,.18); }
.hero-search-box input { flex: 1; border: none; padding: 10px 14px; font-size: .95rem; outline: none; border-radius: 8px; font-family: var(--f); }
.hero-search-btn { background: var(--accent); color: #fff; border: none; padding: 10px 22px; border-radius: 8px; font-weight: 600; cursor: pointer; font-family: var(--f); font-size: .9rem; }
.hero-search-btn:hover { background: var(--accent2); }
.hero-shell h1 { color: var(--white); margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 2.2rem); text-align: left; }
.hero-copy-dark { color: #fff; }
.hero-copy-dark .eyebrow { color: rgba(255,255,255,.65); }
.hero-copy-dark h1 { color: #fff; }
.hero-copy-dark .lede { color: rgba(255,255,255,.82); }
.hero-copy-dark .muted { color: rgba(255,255,255,.6); }
.hero-copy-dark .inline-note { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.8); }
.hero-copy-dark .inline-note strong { color: #fff; }
.hero-stats-row { display: flex; gap: 24px; margin-top: 18px; font-size: .88rem; color: rgba(255,255,255,.82); }
.hero-shell:has(.hero-search-box) .hero-stats-row { justify-content: center; gap: 32px; margin-top: 22px; }
.hero-actions-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-shell:has(.hero-search-box) .hero-actions-row { justify-content: center; }
.hero-shell:has(.hero-search-box) .hero-stats { display: flex; justify-content: center; gap: 48px; }
.hero-shell:has(.hero-search-box) .hero-stat { text-align: center; }
.hero-shell:has(.hero-search-box) .hero-stat-num { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero-shell:has(.hero-search-box) .hero-stat-label { font-size: .78rem; opacity: .7; color: rgba(255,255,255,.8); }

/* ── TRUST BAR ── */
.trust-bar { background: #fff; border-bottom: 1px solid var(--bdr); padding: 10px 20px; display: flex; align-items: center; justify-content: center; gap: 28px; font-size: .82rem; color: var(--ink-soft); flex-wrap: wrap; }
.trust-bar span { display: flex; align-items: center; gap: 5px; }

/* ── CATEGORY STRIP ── */
.category-strip-wrap { padding: 16px 20px 0; max-width: 1140px; margin: 0 auto; }
.category-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.category-pill { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--bdr); border-radius: 20px; padding: 6px 14px; font-size: .78rem; font-weight: 500; cursor: pointer; transition: all .15s; font-family: var(--f); color: var(--ink); }
.category-pill:hover { border-color: var(--accent); color: var(--accent); }
.category-pill-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.category-pill-active:hover { background: var(--accent2); color: #fff; }
.category-pill-empty { opacity: .45; cursor: default; }
.category-pill-name { font-weight: 600; }
.category-pill-count { color: var(--ink-soft); font-size: .72rem; }
.category-pill-active .category-pill-count { color: rgba(255,255,255,.8); }

/* ── DIRECTORY LAYOUT ── */
.directory-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 20px 0 40px; }
.filters-panel { background: #fff; border: 1px solid var(--bdr); border-radius: var(--r); padding: 16px; position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 80px); overflow-y: auto; }
.panel-heading { margin-bottom: 12px; }
.panel-heading h2 { font-size: .9rem; font-weight: 700; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: .75rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .03em; }
.field input[type="search"], .field select { width: 100%; padding: 7px 10px; border: 1px solid var(--bdr); border-radius: 6px; font-family: var(--f); font-size: .82rem; outline: none; transition: border-color .15s; }
.field input:focus, .field select:focus { border-color: var(--accent); }
.filter-checklist { display: flex; flex-direction: column; gap: 4px; }
.filter-check { display: flex; align-items: center; gap: 6px; font-size: .8rem; cursor: pointer; padding: 2px 0; }
.filter-check input { accent-color: var(--accent); }
.results-column { min-width: 0; }
.results-panel { background: #fff; border: 1px solid var(--bdr); border-radius: var(--r); padding: 16px; }
.results-head { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--bdr); }
.results-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; }
.results-summary strong { font-weight: 700; }
#activeWeightLabel { color: var(--ink-soft); font-size: .78rem; }
.directory-results-search-field, .directory-sort-field { margin-bottom: 0; flex: 0 0 auto; }
.directory-results-search-field input, .directory-sort-field select { width: 140px; padding: 5px 8px; font-size: .78rem; }
.directory-sort-status { color: var(--ink-soft); font-size: .75rem; }

/* ── VENDOR GRID & CARDS (from original) ── */
.vendor-grid { display: grid; gap: 12px; }
.panel, .vendor-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.panel-clickable { cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.panel-clickable:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); border-color: var(--accent); }

.vendor-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; min-width: 0; overflow: hidden; }
.vendor-card-head { display: flex; flex-direction: row; justify-content: space-between; gap: 10px; align-items: center; min-width: 0; flex-wrap: nowrap; overflow: hidden; }
.vendor-card-title { display: flex; gap: 10px; align-items: center; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.vendor-card-title > div { min-width: 0; overflow: hidden; }
.vendor-card-title h3 { margin: 0 0 2px; font-size: 1.05rem; overflow-wrap: anywhere; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; white-space: normal; word-break: break-word; }

.vendor-logo { width: 64px; height: 44px; flex: 0 0 64px; display: grid; place-items: center; border-radius: 0; background: transparent; border: 0; color: #123042; font-weight: 700; letter-spacing: .06em; overflow: visible; position: relative; box-shadow: none; }
.vendor-logo-image { width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; padding: 0; }
.vendor-logo-fallback-text { display: none; }
.vendor-logo.vendor-logo-fallback { background: transparent; border-color: transparent; color: var(--ink); }
.vendor-logo.vendor-logo-fallback .vendor-logo-fallback-text { display: block; font-size: .9rem; }

/* Score rings */
.score-ring { min-width: 44px; max-width: 64px; text-align: center; border-radius: 10px; padding: 4px 8px; border: 1px solid rgba(15,23,42,.08); background: rgba(248,250,252,.9); flex-shrink: 0; flex-grow: 0; align-self: center; }
.score-ring strong { display: block; font-size: .95rem; line-height: 1.2; font-weight: 700; }
.score-ring-online-poor { background: linear-gradient(180deg, rgba(251,146,60,.16), rgba(255,247,237,.96)); border-color: rgba(249,115,22,.28); }
.score-ring-online-neutral { background: linear-gradient(180deg, rgba(148,163,184,.18), rgba(248,250,252,.98)); border-color: rgba(100,116,139,.24); }
.score-ring-online-excellent { background: linear-gradient(180deg, rgba(110,231,183,.18), rgba(240,253,244,.98)); border-color: rgba(22,163,74,.24); }

/* Stars */
.stars-row { font-size: .8rem; letter-spacing: 1px; color: var(--gold); margin-bottom: 2px; }
.star.empty { color: #d1d5db; }

/* Badges */
.state-row { display: flex; gap: 4px; margin-bottom: 2px; }
.state-badge { font-size: .65rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .03em; }
.state-badge.sponsored { background: #fef3c7; color: #92400e; }
.state-badge.verified { background: #dbeafe; color: #1d4ed8; }
.state-badge.new { background: #d1fae5; color: #065f46; }

/* Pills */
.bucket-pill-row { display: flex; flex-wrap: wrap; gap: 4px; }
.company-type-pill { display: inline-flex; align-self: start; padding: 4px 10px; border-radius: 999px; background: rgba(37,99,235,.1); color: var(--accent); font-size: .8rem; font-weight: 600; }
.bucket-pill-secondary { display: inline-flex; align-self: start; padding: 4px 8px; border-radius: 999px; background: rgba(15,23,42,.05); color: var(--ink-soft); font-size: .76rem; font-weight: 600; }
.bucket-pill-system { display: inline-flex; align-self: start; padding: 4px 8px; border-radius: 999px; background: rgba(14,165,233,.1); color: #0369a1; font-size: .76rem; font-weight: 700; letter-spacing: .02em; }

/* Vendor meta */
.vendor-meta { font-size: .78rem; color: var(--ink-soft); margin-bottom: 4px; }
.vendor-summary { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vendor-meta-row { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 0 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vendor-meta-row span { color: var(--ink); font-size: .82rem; line-height: 1.35; }
.vendor-meta-row b { color: var(--ink); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; margin-right: 4px; }
.public-signal-row { margin-top: 6px; font-size: .78rem; color: var(--ink-soft); }

/* Card footer */
.vendor-card-footer { display: flex; flex-direction: column; gap: 8px; margin-top: auto; min-width: 0; }
.vendor-card-actions { gap: 12px; }
.vendor-card-actions .button-wide { display: flex; width: 100%; margin: 0; }
.vendor-card-footer .action-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.vendor-card-footer .action-row .button { width: 100%; }
.text-link { font-size: .75rem; color: var(--ink-soft); }
.text-link:hover { color: var(--accent); }

/* Status key */
.status-key { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.status-key-label { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.status-key-item { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(15,23,42,.08); font-size: .82rem; font-weight: 600; }
.status-key-poor { background: rgba(251,146,60,.16); border-color: rgba(249,115,22,.28); color: #9a3412; }
.status-key-neutral { background: rgba(148,163,184,.18); border-color: rgba(100,116,139,.24); color: #334155; }
.status-key-excellent { background: rgba(110,231,183,.18); border-color: rgba(22,163,74,.24); color: #166534; }

/* Weakness note */
.weakness-note { background: rgba(231,131,113,.08); border: 1px solid rgba(231,131,113,.18); border-radius: 18px; padding: 14px 16px; }
.weakness-note span { display: block; margin-bottom: 8px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #a54b3d; }
.weakness-note p { margin: 0; }

/* ── PAGINATION ── */
.directory-pagination { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--bdr); margin-top: 12px; font-size: .82rem; color: var(--ink-soft); }
.directory-pagination-actions { display: flex; gap: 6px; }
.directory-pagination-actions .button { padding: 5px 12px; font-size: .78rem; }
.chip { display: inline-flex; padding: 5px 12px; border-radius: 6px; font-size: .78rem; font-weight: 500; border: 1px solid var(--bdr); background: #fff; cursor: pointer; transition: .15s; font-family: var(--f); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── COMPARE STRIP ── */
.compare-strip { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--bdr); box-shadow: 0 -2px 12px rgba(0,0,0,.06); z-index: 90; padding: 10px 20px; display: none; }
.compare-strip:not(:empty) { display: block; }
.panel-glow { background: radial-gradient(circle at top right, rgba(37,99,235,.2), transparent 26%), var(--panel); }
.hero-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hero-logo-block img { height: 32px; width: auto; }
.hero-review-trust { font-size: .78rem; margin-top: 10px; }
.compare-strip-copy { display: flex; align-items: center; gap: 8px; font-size: .82rem; white-space: nowrap; }
.compare-strip-label { font-weight: 600; color: var(--accent); }
.compare-strip-items { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.strip-pill { background: #dbeafe; color: var(--accent); border: none; padding: 4px 10px; border-radius: 14px; font-size: .75rem; font-weight: 500; cursor: pointer; font-family: var(--f); }
.strip-pill-empty { background: #f1f5f9; color: var(--ink-soft); }
.compare-strip-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--ink-soft); }
.empty-state h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.empty-state p { font-size: .88rem; max-width: 480px; margin: 0 auto 16px; }
.directory-suggest-actions { display: flex; gap: 8px; justify-content: center; }

/* ── PROFILE PAGE ── */
.profile-shell { min-height: 60vh; padding: 28px 0 64px; }
.profile-breadcrumb { font-size: .82rem; color: var(--ink-soft); margin-bottom: 16px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.profile-breadcrumb a { color: var(--accent); text-decoration: none; }
.profile-breadcrumb a:hover { text-decoration: underline; }
.profile-breadcrumb span[aria-hidden] { color: #cbd5e1; }

/* Hero section */
.profile-hero { background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2563eb 100%); border-radius: 14px; padding: 24px; color: #fff; margin-bottom: 16px; }
.profile-hero-grid { display: flex; flex-direction: column; gap: 16px; }
.profile-hero-copy { color: #fff; }
.profile-hero-copy .eyebrow { color: rgba(255,255,255,.6); margin-bottom: 2px; }
.profile-hero-copy h1 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 4px 0 8px; }
.profile-hero-copy .lede { color: rgba(255,255,255,.82); }
.profile-hero-copy-head { display: flex; align-items: center; gap: 16px; }
.profile-hero-copy-main { flex: 1; }
.profile-hero-head-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.profile-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-hero-actions .button { padding: 8px 16px; font-size: .82rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all .2s; text-align: center; }
.profile-hero-actions .button-review { background: #fff; color: #0a1628; border: none; }
.profile-hero-actions .button-review:hover { background: #e2e8f0; }
.profile-hero-actions .button-secondary { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.profile-hero-actions .button-secondary:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.profile-hero-actions .button-primary { background: #2563eb; color: #fff; border: 1.5px solid #3b82f6; }
.profile-hero-actions .button-primary:hover { background: #1d4ed8; border-color: #2563eb; }
.profile-hero-desc { color: rgba(255,255,255,.75); font-size: .82rem; line-height: 1.5; margin: 0; }
.profile-hero-visual { width: 100%; }
.profile-hero-visual-full { width: 100%; }
.profile-hero-visual-full { position: relative; }

/* Signal card inside hero */
.profile-signal-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 12px 14px; color: #fff; }
.profile-signal-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.profile-signal-head { display: flex; gap: 6px; flex-wrap: wrap; }
.profile-signal-chip { display: inline-block; font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 20px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.profile-signal-chip.is-soft { background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); }
.profile-signal-score { text-align: right; }
.profile-signal-score strong { font-size: 1.4rem; display: block; line-height: 1; }
.profile-signal-score span { font-size: .64rem; color: rgba(255,255,255,.4); }
.profile-signal-section-title { font-size: .68rem; font-weight: 600; display: block; margin-bottom: 6px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .06em; }

/* Scorecard — skeleton bars */
.profile-signal-scorecard { margin-bottom: 0; }
.profile-signal-scorecard .score-table { display: grid; gap: 3px; }
.profile-signal-scorecard .score-row { display: grid; grid-template-columns: 1fr 80px 36px; align-items: center; gap: 6px; font-size: .78rem; }
.profile-signal-scorecard .score-row > span { color: rgba(255,255,255,.6); }
.profile-signal-scorecard .score-row > strong { text-align: right; font-size: .78rem; color: rgba(255,255,255,.45); }
.profile-signal-scorecard .bar-track { height: 5px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.profile-signal-scorecard .bar-fill { height: 100%; border-radius: 3px; background: #22c55e; transition: width .3s; }
.profile-signal-scorecard .bar-fill-empty { background: none !important; border: 1px dashed rgba(255,255,255,.15); height: 3px; border-radius: 2px; }
.profile-signal-scorecard .compact-score-note { font-size: .66rem; color: rgba(255,255,255,.3); margin-top: 4px; }

/* Signal mesh (decorative) */
.profile-signal-mesh { display: none; }

/* Signal summary */
.profile-signal-summary-grid { margin-bottom: 8px; }
.profile-signal-summary strong { font-size: .74rem; color: rgba(255,255,255,.5); display: block; margin-bottom: 4px; }
.profile-signal-summary-list { list-style: none; padding: 0; margin: 0; }
.profile-signal-summary-list li { font-size: .74rem; color: rgba(255,255,255,.55); padding: 1px 0; line-height: 1.4; }

/* Signal meta */
.profile-signal-grid-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.05); }
.profile-signal-metric { }
.profile-signal-metric strong { font-size: .62rem; color: rgba(255,255,255,.35); display: block; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1px; }
.profile-signal-metric span { font-size: .76rem; color: rgba(255,255,255,.65); }
.profile-signal-metric-pill-stack { }
.profile-signal-pill { display: inline-block; font-size: .64rem; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.55); margin: 1px; }

/* Content sections below hero */
.profile-grid { display: grid; gap: 16px; }
.profile-span-full { grid-column: 1 / -1; }
.profile-grid > article { background: var(--panel); border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; }
.profile-grid > article h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.profile-grid > article .section-kicker { font-size: .82rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.profile-grid > article .muted { color: var(--ink-soft); }

/* Vendor description grid */
.vendor-profile-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.profile-detail-item { }
.profile-detail-item strong { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.profile-detail-item p { font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.profile-detail-item-wide { grid-column: 1 / -1; }
.profile-detail-item ul { padding-left: 18px; }
.profile-detail-item li { font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }

/* Vendor statement */
.vendor-statement-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.vendor-statement-body { font-size: .9rem; color: var(--ink-soft); line-height: 1.6; }

/* Overview panel */
.profile-overview-panel .profile-overview-copy { }

/* Score/review grid */
.profile-score-review-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.profile-score-card { padding: 20px; border-radius: 12px; background: var(--panel); border: 1px solid #e2e8f0; }
.profile-score-card h3 { font-size: .85rem; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.metric-list { list-style: none; font-size: .82rem; padding: 0; margin: 0; }
.metric-list li { padding: 5px 0; display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #f1f5f9; }
.metric-list li:last-child { border-bottom: none; }
.metric-list li span { color: var(--ink-soft); }
.metric-list li b { color: var(--ink); }
.metric-list.compact li { font-size: .78rem; }

/* Claim profile */
.claim-profile-panel { background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(37,99,235,.02)) !important; border-color: rgba(37,99,235,.2) !important; }
.claim-profile-inner { display: flex; gap: 24px; align-items: center; }
.claim-profile-copy { flex: 1; }
.claim-profile-copy h2 { margin-bottom: 8px; }
.claim-profile-copy p { font-size: .9rem; color: var(--ink-soft); }
.claim-profile-benefits { list-style: none; padding: 0; margin: 8px 0 0; }
.claim-profile-benefits li { font-size: .85rem; color: var(--ink-soft); padding: 2px 0 2px 18px; position: relative; }
.claim-profile-benefits li::before { content: '✓'; position: absolute; left: 0; color: #059669; font-weight: 700; }
.claim-profile-action { text-align: center; }
.claim-profile-action .button-primary { display: inline-block; background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 10px 24px; font-weight: 600; text-decoration: none; }
.claim-profile-action .button-primary:hover { background: var(--accent2); }
.claim-profile-action .muted { font-size: .78rem; margin-top: 6px; }

/* Source list */
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li { font-size: .85rem; padding: 3px 0; }
.source-list a { color: var(--accent); text-decoration: none; }
.source-list a:hover { text-decoration: underline; }
.compact-source-list li { font-size: .82rem; color: var(--ink-soft); }

/* External review grid */
.external-review-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* Review excerpts */
.review-excerpt-grid { display: grid; gap: 12px; }
.review-excerpt-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; }

/* Related vendors */
.related-vendors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.related-vendor-card { background: var(--panel); border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; text-decoration: none; color: var(--ink); transition: box-shadow .2s, border-color .2s; display: flex; align-items: center; gap: 10px; }
.related-vendor-card:hover { box-shadow: 0 4px 16px rgba(37,99,235,.1); border-color: rgba(37,99,235,.3); }
.related-vendor-card img { width: 40px; height: 30px; object-fit: contain; border-radius: 4px; }
.related-vendor-card h3 { font-size: .9rem; margin: 0; }
.related-vendor-card p { font-size: .78rem; color: var(--ink-soft); margin: 2px 0 0; }

/* Profile hero logo */
.profile-hero-logo-shell { width: 120px; height: 80px; display: grid; place-items: center; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.15); margin-bottom: 0; }
.profile-hero-logo { width: 100%; height: 100%; object-fit: contain; }
.profile-hero-logo-shell-fallback { background: var(--accent); border: none; }
.profile-hero-logo-fallback-text { font-size: 1.2rem; font-weight: 800; color: #fff; }

/* Mobile responsive for profile */
@media (max-width: 900px) {
  .profile-hero-copy-head { flex-direction: column; align-items: flex-start; }
  .profile-hero-head-side { width: 100%; }
  .profile-hero-actions { flex-wrap: wrap; }
  .profile-hero-actions .button { padding: 8px 14px; }
  .vendor-profile-detail-grid { grid-template-columns: 1fr; }
  .claim-profile-inner { flex-direction: column; text-align: center; }
  .profile-signal-grid-meta { flex-direction: column; }
  .profile-signal-scorecard .score-row { grid-template-columns: 1fr 60px 32px; }
}

/* ── COMPARE PAGE ── */
.compare-summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 20px; }
.compare-summary-card { padding: 20px; }
.compare-summary-card h2 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.compare-table-panel { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.compare-table th, .compare-table td { padding: 8px 12px; border: 1px solid var(--bdr); text-align: left; }
.compare-table th { background: #f8fafc; font-weight: 600; }
.empty-table-cell { background: #f8fafc; }

/* ── RFP/ADMIN/AUTH ── */
.page-hero { background: var(--accent); color: #fff; padding: 32px; border-radius: var(--r); margin-bottom: 20px; }
.page-hero .eyebrow { color: rgba(255,255,255,.8); }
.page-hero .lede { color: rgba(255,255,255,.85); }
.static-grid { display: grid; gap: 12px; }
.rfp-brief-panel { padding: 20px; }
.inline-note { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }
.commerce-tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.commerce-tier-card { background: #f8fafc; border: 1px solid var(--bdr); border-radius: 8px; padding: 16px; }
.admin-review-card { background: #f8fafc; border: 1px solid var(--bdr); border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.admin-review-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.admin-pill { background: #dbeafe; color: var(--accent); padding: 3px 8px; border-radius: 4px; font-size: .7rem; font-weight: 500; }
.admin-label { font-size: .72rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; margin-top: 8px; margin-bottom: 4px; }
.admin-review-copy { font-size: .85rem; }
.admin-review-actions { display: flex; gap: 6px; margin-top: 10px; }
.admin-empty-state { text-align: center; padding: 30px; }
.auth-landing-body { background: var(--hero); }
.profile-overview-copy { margin-bottom: 0; }
.vendor-profile-detail-grid { margin-top: 12px; }

/* ── FOOTER ── */
.site-footer { background: #fff; border-top: 1px solid var(--bdr); padding: 24px 0; margin-top: 40px; font-size: .82rem; color: var(--ink-soft); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent); }

/* ── HEADINGS ── */
h1, h2, h3 { font-family: var(--f); margin-top: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(1.8rem, 3.3vw, 2.5rem); line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.2vw, 2.25rem); line-height: 1.06; font-weight: 800; }
h3 { line-height: 1.12; font-weight: 800; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-shell { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .hamburger { display: flex; }
  .site-nav, .nav-right { display: none; width: 100%; }
  .site-nav.is-open, .nav-right.is-open { display: flex; flex-direction: column; padding: 10px 0; gap: 6px; }
  .hero-shell { padding: 36px 0 32px; }
  .hero-copy h1 { font-size: 1.5rem; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 1.3rem; }
  .trust-bar { gap: 12px; font-size: .75rem; }
  .directory-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; max-height: none; }
  .profile-hero-grid { grid-template-columns: 1fr; }
  .profile-detail-grid { grid-template-columns: 1fr; }
  .compare-strip-shell { flex-wrap: wrap; }
  .vendor-card-head { flex-direction: column; }
  .vendor-card-head .score-ring { flex-direction: row; gap: 8px; }
  .vendor-card-footer .action-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-copy h1 { font-size: 1.3rem; }
  .hero-search-box { flex-direction: column; }
  .hero-stats { gap: 16px; }
  .trust-bar { flex-direction: column; gap: 6px; }
  .category-strip { gap: 4px; }
  .category-pill { padding: 4px 10px; font-size: .72rem; }
  .results-summary { flex-direction: column; gap: 6px; align-items: flex-start; }
  .vendor-meta-row { flex-direction: column; gap: 4px; }
  .footer-grid { flex-direction: column; text-align: center; }
}

/* ── MISC ── */
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.muted { color: var(--ink-soft); }
.lede { font-size: 1rem; color: var(--ink-soft); line-height: 1.6; }
.inline-note { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 12px 16px; margin-top: 14px; color: rgba(255,255,255,.8); }
.inline-note strong { color: #fff; }
.auth-state-banner { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); }
.auth-state-banner strong { color: #fff; display: block; margin-bottom: 4px; }
.auth-state-banner p { color: rgba(255,255,255,.75); }
.directory-sort-field { min-width: 160px; margin-top: 2px; }
.directory-sort-field select { min-width: 160px; }
.directory-results-search-field { width: min(300px, 100%); }
.directory-results-search-field input { min-height: 40px; }
.claim-profile-inner { display: flex; gap: 12px; align-items: center; }
.claim-profile-inner .button { flex-shrink: 0; }

/* ── RFP / FORM PAGE HERO ── */
.page-hero { background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2563eb 100%); color: #fff; padding: 48px 0 40px; text-align: center; border-radius: 0; }
.page-hero h1 { color: #fff; max-width: none; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 12px; }
.page-hero p { color: rgba(255,255,255,.82); }
.page-hero .section-kicker { color: rgba(255,255,255,.6); }
.form-page-shell .vendor-rfp-hero { background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2563eb 100%); border-radius: 14px; padding: 36px 32px; text-align: center; margin-bottom: 24px; }
.form-page-shell .vendor-rfp-hero h1 { max-width: none; color: #fff; }
.form-page-shell .vendor-rfp-hero .lede { color: rgba(255,255,255,.82); }
.form-page-shell .vendor-rfp-hero .eyebrow { color: rgba(255,255,255,.6); }

/* RFP Route Cards */
.vendor-route-card { background: var(--panel); border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; transition: box-shadow .2s; }
.vendor-route-card:hover { box-shadow: 0 4px 20px rgba(37,99,235,.1); }
.vendor-route-panel-accent { border-color: var(--accent); background: linear-gradient(135deg, rgba(37,99,235,.04), var(--panel)); }
.vendor-route-num { font-size: 1.6rem; font-weight: 800; color: var(--accent); opacity: .35; }
.vendor-route-tag { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 20px; }
.vendor-route-banner-free { background: #ecfdf5; color: #059669; }
.vendor-route-banner-paid { background: #eff6ff; color: #2563eb; }
.vendor-route-title { display: block; font-size: 1.1rem; margin: 10px 0 8px; color: var(--ink); }
.vendor-route-summary { font-size: .88rem; color: var(--ink-soft); line-height: 1.55; margin-bottom: 12px; }
.vendor-route-points { list-style: none; padding: 0; margin: 0; }
.vendor-route-points li { font-size: .82rem; color: var(--ink-soft); padding: 3px 0 3px 18px; position: relative; }
.vendor-route-points li::before { content: '✓'; position: absolute; left: 0; color: #059669; font-weight: 700; }

/* Sponsor RFP specific */
.sponsor-rfp-page-grid { gap: 24px; }
.sponsor-rfp-heading { margin-bottom: 16px; }
.sponsor-btn-lg { width: 100%; padding: 12px; font-size: .95rem; }
.sponsor-support-panel { background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%); color: #fff; border-radius: 14px; padding: 32px; }
.sponsor-support-panel h2 { color: #fff; }
.sponsor-support-panel p, .sponsor-support-panel .muted { color: rgba(255,255,255,.75); }
.sponsor-support-badge { display: inline-block; background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.sponsor-support-visual { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 24px; }
.sponsor-support-visual > div { display: flex; gap: 10px; align-items: flex-start; }
.sponsor-support-visual strong { color: #fff; flex-shrink: 0; min-width: 80px; }
.sponsor-support-visual span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* Form fields Trustpilot style */
.field span { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: .9rem; font-family: inherit; background: #fff; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.action-row { margin-top: 12px; }
.button-primary { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 10px 24px; font-weight: 600; cursor: pointer; transition: background .2s; }
.button-primary:hover { background: var(--accent2); }

/* Split band for RFP pages */
.split-band { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
@media (max-width: 900px) { .split-band { grid-template-columns: 1fr; } }

/* Vendor RFP table */
.vendor-rfp-table-panel { margin-top: 24px; }
.table-shell { overflow-x: auto; border-radius: 10px; border: 1px solid #e2e8f0; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.compare-table th { background: #f8fafc; padding: 10px 14px; text-align: left; font-weight: 600; color: var(--ink); border-bottom: 2px solid #e2e8f0; }
.compare-table td { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; color: var(--ink-soft); }
.compare-score-header td { background: #f0f4ff; padding: 10px 14px; border-bottom: 2px solid var(--accent); }
.compare-score-header strong { color: var(--accent); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.compare-score-cell { display: flex; align-items: center; gap: 8px; }
.compare-score-bar { display: inline-block; height: 6px; border-radius: 3px; min-width: 4px; }
.compare-score-cell b { font-size: .85rem; color: var(--ink); }

/* Write Review page */
.review-form-layout { gap: 20px; }
.review-score-band { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-score-band-copy { grid-column: 1 / -1; margin-bottom: 8px; }
.review-score-band-copy h2 { font-size: 1.1rem; margin: 4px 0 6px; }
.review-score-input { width: 100%; }
.review-overall-score-field { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(37,99,235,.05), rgba(37,99,235,.02)); border: 1px solid rgba(37,99,235,.15); border-radius: 8px; padding: 16px; }
.button-review { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 12px 32px; font-weight: 600; cursor: pointer; transition: background .2s; font-size: .95rem; }
.button-review:hover { background: var(--accent2); }
.review-trust-note { font-size: .82rem; margin-top: 12px; }
.field-span-2 { grid-column: 1 / -1; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
