/* ==========================================================================
   TechZTalk — Core Design System
   1. Tokens  2. Base  3. Layout  4. Buttons  5. Forms  6. Badges
   7. Header / Nav  8. Footer  9. Cards  10. Sections  11. Directory
   12. Listing detail  13. Tabs / Accordion / Modal / Alert / Toast
   14. Auth  15. Pricing  16. Compare / Tables  17. Reviews  18. Stepper
   19. Utilities
   ========================================================================== */

/* 1. TOKENS -------------------------------------------------------------- */
:root {
  --primary: #3552f2;
  --primary-600: #2a43d6;
  --primary-700: #2236b3;
  --primary-50: #eef1ff;
  --primary-100: #dfe4ff;
  --secondary: #0f1b3d;          /* deep navy — headings, dark surfaces */
  --text: #16213e;
  --muted: #5d6882;
  --subtle: #8a93a8;
  --background: #ffffff;
  --surface: #f6f8fc;
  --surface-2: #eef2f8;
  --border: #e3e8f1;
  --border-strong: #cfd6e4;

  --success: #12a150;
  --success-50: #e8f7ef;
  --warning: #d98a00;
  --warning-50: #fff5e0;
  --danger: #dc3545;
  --danger-50: #fdecee;
  --star: #f5a524;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3.25rem;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 27, 61, .06);
  --shadow-sm: 0 2px 6px rgba(15, 27, 61, .06), 0 1px 2px rgba(15, 27, 61, .04);
  --shadow: 0 8px 24px rgba(15, 27, 61, .08), 0 2px 6px rgba(15, 27, 61, .04);
  --shadow-lg: 0 20px 48px rgba(15, 27, 61, .14);
  --ring: 0 0 0 4px rgba(53, 82, 242, .18);

  --container: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { color: var(--secondary); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 750; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -.01em; }
h4 { font-size: var(--fs-base); letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--primary-100); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--secondary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
[data-lucide], .icon { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }

/* 3. LAYOUT -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 820px; }
.container-xs { max-width: 560px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 620px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
main { display: block; min-height: 50vh; }

/* 4. BUTTONS ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--secondary); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-weight: 650; font-size: var(--fs-sm); line-height: 1; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s, box-shadow .2s, transform .15s, color .2s;
  text-decoration: none; user-select: none;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { --btn-bg: var(--primary); --btn-fg: #fff; box-shadow: 0 6px 16px rgba(53, 82, 242, .25); }
.btn-primary:hover { --btn-bg: var(--primary-600); }
.btn-dark { --btn-bg: var(--secondary); --btn-fg: #fff; }
.btn-dark:hover { --btn-bg: #1b2a57; }
.btn-outline { --btn-bg: #fff; --btn-fg: var(--secondary); --btn-bd: var(--border-strong); }
.btn-outline:hover { --btn-bd: var(--primary); --btn-fg: var(--primary); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text); }
.btn-ghost:hover { --btn-bg: var(--surface-2); }
.btn-soft { --btn-bg: var(--primary-50); --btn-fg: var(--primary-700); }
.btn-soft:hover { --btn-bg: var(--primary-100); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--secondary); }
.btn-danger-soft { --btn-bg: var(--danger-50); --btn-fg: var(--danger); }
.btn-sm { height: 36px; padding: 0 14px; font-size: var(--fs-xs); }
.btn-lg { height: 52px; padding: 0 28px; font-size: var(--fs-base); border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; }
.btn-icon.btn-sm { width: 34px; height: 34px; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.icon-btn.is-active, .btn.is-active { --btn-bg: var(--primary-50); --btn-fg: var(--primary); --btn-bd: var(--primary-100); }
.fav-btn.is-active [data-lucide], .fav-btn.is-active svg { fill: #ef4466; stroke: #ef4466; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: var(--fs-sm); }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* 5. FORMS --------------------------------------------------------------- */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.label { font-size: var(--fs-sm); font-weight: 650; color: var(--secondary); }
.label .opt { font-weight: 500; color: var(--subtle); }
.hint { font-size: var(--fs-xs); color: var(--subtle); }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; font: inherit; font-size: var(--fs-sm); color: var(--text);
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235d6882' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder, .textarea::placeholder { color: var(--subtle); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--subtle); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.field-error { font-size: var(--fs-xs); color: var(--danger); display: none; }
.is-invalid ~ .field-error, .input-wrap.is-invalid ~ .field-error { display: block; }
.input-wrap { position: relative; }
.input-wrap > [data-lucide], .input-wrap > svg:first-child { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.input-wrap .input.has-icon { padding-left: 42px; }
.input-wrap .toggle-password { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; }
.input-wrap .toggle-password:hover { background: var(--surface-2); }
.check { display: inline-flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); color: var(--text); cursor: pointer; line-height: 1.4; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); flex-shrink: 0; cursor: pointer; }
.check .count { margin-left: auto; color: var(--subtle); font-size: var(--fs-xs); }
.dropzone { border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); background: var(--surface); transition: border-color .2s, background .2s; cursor: pointer; position: relative; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--primary); background: var(--primary-50); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; margin: 0 auto 10px; color: var(--primary); box-shadow: var(--shadow-xs); }
.dropzone strong { color: var(--secondary); }
.dz-files { font-size: var(--fs-xs); color: var(--success); margin-top: 8px; font-weight: 600; }
.chips-input { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle { position: relative; }
.chip-toggle input { position: absolute; opacity: 0; }
.chip-toggle span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s; background: #fff; }
.chip-toggle input:checked + span { background: var(--primary-50); border-color: var(--primary); color: var(--primary-700); }
.chip-toggle input:focus-visible + span { box-shadow: var(--ring); }
.switch { position: relative; display: inline-flex; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border-strong); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-xs); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: var(--ring); }

/* Search box (hero + generic) */
.search-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 8px 8px 8px 20px; box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s; }
.search-box:focus-within { border-color: var(--primary); box-shadow: var(--shadow), var(--ring); }
.search-box > [data-lucide], .search-box > svg { color: var(--subtle); width: 22px; height: 22px; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: var(--fs-lg); color: var(--text); height: 48px; background: transparent; }
.search-box input::placeholder { color: var(--subtle); }
.search-box .search-select { border: 0; border-left: 1px solid var(--border); padding: 0 32px 0 16px; height: 36px; font: inherit; font-size: var(--fs-sm); color: var(--muted); background-color: transparent; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%235d6882' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.search-box .search-select:focus { outline: none; }
.search-inline { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0 14px; height: 46px; }
.search-inline:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.search-inline input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: var(--fs-sm); background: transparent; }
.search-inline svg, .search-inline [data-lucide] { color: var(--subtle); }

/* 6. BADGES -------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--muted); white-space: nowrap; line-height: 1; }
.badge svg, .badge [data-lucide] { width: 13px; height: 13px; }
.badge-primary { background: var(--primary-50); color: var(--primary-700); }
.badge-success { background: var(--success-50); color: #0c7a3d; }
.badge-warning { background: var(--warning-50); color: #9a6200; }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-dark { background: var(--secondary); color: #fff; }
.badge-outline { background: #fff; border: 1px solid var(--border); color: var(--muted); }
.badge-featured { background: linear-gradient(135deg, #fff4dc, #ffe8c2); color: #8a5300; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--border); color: var(--text); font-size: var(--fs-sm); font-weight: 550; transition: all .15s; }
.tag:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

/* Rating */
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.rating strong { color: var(--secondary); font-weight: 700; }
.stars { display: inline-flex; gap: 1px; color: var(--star); letter-spacing: 0; font-size: 14px; line-height: 1; position: relative; }
.stars-bg { color: #dfe3eb; }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--star); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 28px; color: #dfe3eb; cursor: pointer; transition: color .15s, transform .15s; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--star); }
.star-input label:hover { transform: scale(1.1); }
.star-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }

/* Logo placeholder (initials) */
.logo-ph { --c: var(--primary); --s: 48px; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .26); display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 88%, #fff), var(--c)); color: #fff; font-weight: 800; font-size: calc(var(--s) * .36); letter-spacing: -.03em;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.08), 0 4px 10px color-mix(in srgb, var(--c) 28%, transparent); position: relative; overflow: hidden; }
.logo-ph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 15%, rgba(255,255,255,.35), transparent 55%); }
.logo-ph.xs { --s: 32px; } .logo-ph.sm { --s: 40px; } .logo-ph.lg { --s: 64px; } .logo-ph.xl { --s: 88px; }

/* 7. HEADER / NAV -------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-xs); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--secondary); letter-spacing: -.03em; flex-shrink: 0; }
.brand:hover { color: var(--secondary); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(140deg, #5b74ff 0%, var(--primary) 50%, #1c2f9e 100%); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(53, 82, 242, .3); }
.brand-mark svg { width: 20px; height: 20px; }
.brand span b { color: var(--primary); font-weight: 800; }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.main-nav a { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: 8px; color: var(--text); font-size: var(--fs-sm); font-weight: 600; transition: background .15s, color .15s; }
.main-nav a:hover { background: var(--surface-2); color: var(--secondary); }
.main-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-50); }
.has-dropdown { position: relative; }
.has-dropdown > a svg { width: 14px; height: 14px; transition: transform .2s; }
.dropdown { position: absolute; top: calc(100% + 8px); left: -12px; width: 520px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s var(--ease); }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown:hover > a svg { transform: rotate(180deg); }
.dropdown a { height: auto; padding: 10px 12px; gap: 12px; align-items: center; }
.dropdown .dd-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.dropdown small { display: block; color: var(--subtle); font-weight: 500; font-size: 12px; }
.dropdown .dd-all { grid-column: 1 / -1; justify-content: center; border-top: 1px solid var(--border); border-radius: 0; margin-top: 6px; padding-top: 12px; color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-search { position: relative; display: flex; align-items: center; }
.header-search .input { height: 40px; width: 220px; padding-left: 38px; border-radius: 10px; background: var(--surface); border-color: var(--border); transition: width .25s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.header-search .input:focus { width: 280px; background: #fff; }
.header-search > svg, .header-search > [data-lucide] { position: absolute; left: 12px; color: var(--subtle); width: 16px; height: 16px; pointer-events: none; }
.header-search kbd { position: absolute; right: 10px; font: 600 11px var(--font); color: var(--subtle); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; background: #fff; pointer-events: none; }
.nav-toggle, .search-toggle { display: none; }
.mobile-panel { display: none; }

/* 8. FOOTER -------------------------------------------------------------- */
.site-footer { background: var(--secondary); color: #b8c1d9; padding: 72px 0 28px; margin-top: 0; }
.site-footer a { color: #b8c1d9; font-size: var(--fs-sm); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand span b { color: #8ea0ff; }
.footer-brand p { font-size: var(--fs-sm); max-width: 300px; color: #93a0bf; }
.footer-col h3 { color: #fff; font-size: var(--fs-sm); margin-bottom: 16px; letter-spacing: 0; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.newsletter { display: flex; gap: 8px; margin-top: 18px; max-width: 340px; }
.newsletter .input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; height: 42px; }
.newsletter .input::placeholder { color: #8793b3; }
.newsletter .btn { height: 42px; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.07); }
.socials a:hover { background: var(--primary); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 24px; font-size: var(--fs-xs); color: #7d89a8; }
.footer-bottom ul { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.footer-bottom a { font-size: var(--fs-xs); color: #7d89a8; }

/* 9. CARDS --------------------------------------------------------------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-xs); }
.card-hover { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-title { font-size: var(--fs-lg); margin-bottom: 4px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h2, .card-head h3 { margin: 0; font-size: var(--fs-lg); }

/* Product card */
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; min-width: 0; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.pc-top { display: flex; gap: 14px; align-items: flex-start; }
.pc-title { flex: 1; min-width: 0; }
.pc-title h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.pc-title h3 a { color: var(--secondary); }
.pc-title h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.pc-title h3 a:hover { color: var(--primary); }
.pc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); }
.pc-desc { color: var(--muted); font-size: var(--fs-sm); margin: 14px 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pc-actions { display: flex; gap: 8px; position: relative; z-index: 1; }
.pc-tools { position: absolute; top: 16px; right: 16px; display: flex; gap: 4px; z-index: 2; }
.icon-btn { --btn-bg: #fff; --btn-fg: var(--muted); --btn-bd: var(--border); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd); transition: all .15s; }
.icon-btn:hover { --btn-fg: var(--primary); --btn-bd: var(--primary-100); --btn-bg: var(--primary-50); }
.icon-btn svg, .icon-btn [data-lucide] { width: 16px; height: 16px; }
.price-tag { font-size: var(--fs-xs); font-weight: 650; color: var(--secondary); }
.price-tag small { color: var(--subtle); font-weight: 500; }
.product-card.is-list { flex-direction: row; align-items: center; gap: 20px; }
.product-card.is-list .pc-top { flex: 1.2; }
.product-card.is-list .pc-desc { flex: 1.5; margin: 0; min-height: 0; }
.product-card.is-list .pc-foot { border: 0; padding: 0; margin: 0; flex-direction: column; align-items: flex-end; }
.product-card.is-list .pc-tools { position: static; order: 5; }

/* Company card */
.company-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; min-width: 0; }
.company-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.company-card .cc-head { display: flex; gap: 14px; align-items: center; }
.company-card h3 { font-size: 1.05rem; margin: 0 0 2px; }
.company-card h3 a { color: var(--secondary); }
.company-card p { color: var(--muted); font-size: var(--fs-sm); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; background: var(--surface); border-radius: 10px; }
.cc-facts div { min-width: 0; }
.cc-facts dt { font-size: 11px; color: var(--subtle); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cc-facts dd { margin: 2px 0 0; font-size: var(--fs-xs); font-weight: 650; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-foot { display: flex; gap: 8px; margin-top: auto; }
.cc-foot .btn { flex: 1; }

/* Category card */
.cat-card { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: all .2s var(--ease); min-width: 0; }
.cat-card:hover { border-color: var(--primary-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.cat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--cat-bg, var(--primary-50)); color: var(--cat-fg, var(--primary)); flex-shrink: 0; transition: transform .2s; }
.cat-card:hover .cat-icon { transform: scale(1.06) rotate(-3deg); }
.cat-icon svg, .cat-icon [data-lucide] { width: 22px; height: 22px; }
.cat-card h3 { font-size: var(--fs-base); margin: 0; }
.cat-card span { font-size: var(--fs-xs); color: var(--subtle); }
.cat-card .arrow { margin-left: auto; color: var(--border-strong); transition: color .2s, transform .2s; width: 18px; height: 18px; }
.cat-card:hover .arrow { color: var(--primary); transform: translateX(3px); }

/* Mini list item (AI tools / recently added) */
.mini-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; transition: background .15s; position: relative; min-width: 0; }
.mini-item:hover { background: var(--surface); }
.mini-item .mi-body { flex: 1; min-width: 0; }
.mini-item h4 { margin: 0; font-size: var(--fs-sm); }
.mini-item h4 a { color: var(--secondary); }
.mini-item h4 a::after { content: ""; position: absolute; inset: 0; }
.mini-item p { margin: 0; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-item .mi-side { text-align: right; font-size: var(--fs-xs); color: var(--muted); flex-shrink: 0; }

/* 10. SECTIONS ----------------------------------------------------------- */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(900px 420px at 50% -8%, rgba(53, 82, 242, .12), transparent 70%), radial-gradient(600px 300px at 90% 20%, rgba(124, 92, 255, .08), transparent 70%), linear-gradient(180deg, #fbfcff, #fff); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px; opacity: .35; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); }
.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: #fff; border: 1px solid var(--border); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); box-shadow: var(--shadow-xs); margin-bottom: 24px; }
.hero-pill .badge { height: 22px; }
.hero h1 { font-size: var(--fs-4xl); letter-spacing: -.035em; margin-bottom: 18px; font-weight: 800; }
.hero h1 .accent { background: linear-gradient(100deg, var(--primary) 10%, #7a5cff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: var(--fs-lg); color: var(--muted); max-width: 620px; margin: 0 auto 36px; }
.hero .search-box { max-width: 760px; margin: 0 auto; }
.popular { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.popular > span { font-size: var(--fs-sm); color: var(--subtle); font-weight: 600; margin-right: 4px; }
.popular .tag { height: 30px; font-size: var(--fs-xs); }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; font-size: var(--fs-sm); color: var(--muted); flex-wrap: wrap; }
.avatar-stack { display: flex; }
.avatar-stack .logo-ph { --s: 30px; border: 2px solid #fff; margin-left: -8px; font-size: 11px; box-shadow: none; }
.avatar-stack .logo-ph:first-child { margin-left: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-value { font-size: var(--fs-3xl); font-weight: 800; color: var(--secondary); letter-spacing: -.03em; line-height: 1.1; }
.stat-value span { color: var(--primary); }
.stat-label { color: var(--muted); font-size: var(--fs-sm); font-weight: 550; margin-top: 4px; }

.ai-panel { display: grid; grid-template-columns: 260px 1fr; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.ai-tabs { background: var(--surface); padding: 12px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.ai-tabs [role="tab"] { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 0; background: transparent; text-align: left; color: var(--text); font-weight: 600; font-size: var(--fs-sm); transition: background .15s, color .15s; }
.ai-tabs [role="tab"]:hover { background: #fff; }
.ai-tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--primary); box-shadow: var(--shadow-xs); }
.ai-tabs [role="tab"] .count { margin-left: auto; font-size: 11px; color: var(--subtle); font-weight: 600; }
.ai-content { padding: 16px; }
.ai-content [role="tabpanel"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.ai-content [role="tabpanel"][hidden] { display: none; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step-card { position: relative; padding: 32px 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step-num { font-size: 13px; font-weight: 800; color: var(--primary); letter-spacing: .08em; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.step-num::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, var(--primary-100), transparent); }
.step-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
.step-icon svg, .step-icon [data-lucide] { width: 24px; height: 24px; }
.step-card p { color: var(--muted); margin: 0; font-size: var(--fs-sm); }

.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 64px; background: var(--secondary); color: #c8d0e6; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -120px; top: -200px; background: radial-gradient(circle, rgba(53, 82, 242, .55), transparent 65%); }
.cta-band::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band h2 { color: #fff; font-size: 2.25rem; }
.cta-band p { font-size: var(--fs-lg); margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-actions small { color: #8e9ab9; display: flex; align-items: center; gap: 6px; }
.cta-list { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.cta-list li { display: flex; align-items: center; gap: 10px; color: #dfe4f3; font-size: var(--fs-sm); }
.cta-list svg { color: #8ea0ff; width: 18px; height: 18px; }

/* Page hero (inner pages) */
.page-hero { padding: 48px 0 40px; background: linear-gradient(180deg, #f8faff 0%, #fff 100%); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: var(--muted); font-size: var(--fs-lg); max-width: 720px; margin: 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--subtle); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); font-weight: 550; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.breadcrumb [aria-current] { color: var(--secondary); font-weight: 600; }

/* 11. DIRECTORY ---------------------------------------------------------- */
.directory { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; padding: 32px 0 80px; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); max-height: calc(100vh - var(--header-h) - 40px); display: flex; flex-direction: column; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.filters-head h2 { font-size: var(--fs-base); margin: 0; display: flex; align-items: center; gap: 8px; }
.filters-head .link-btn { border: 0; background: none; color: var(--primary); font-weight: 650; font-size: var(--fs-xs); padding: 4px; }
.filters-body { overflow-y: auto; padding: 4px 20px; flex: 1; overscroll-behavior: contain; }
.filter-group { border-bottom: 1px solid var(--border); padding: 14px 0; }
.filter-group:last-child { border-bottom: 0; }
.filter-group > button { width: 100%; display: flex; align-items: center; justify-content: space-between; border: 0; background: none; padding: 4px 0; font-weight: 700; font-size: var(--fs-sm); color: var(--secondary); }
.filter-group > button svg { width: 16px; height: 16px; color: var(--subtle); transition: transform .2s; }
.filter-group > button[aria-expanded="false"] svg { transform: rotate(-90deg); }
.filter-options { display: grid; gap: 10px; padding-top: 12px; }
.filter-options[hidden] { display: none; }
.filters-foot { display: none; padding: 16px 20px; border-top: 1px solid var(--border); gap: 10px; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.results-bar .count { font-size: var(--fs-sm); color: var(--muted); }
.results-bar .count strong { color: var(--secondary); }
.results-tools { display: flex; gap: 10px; align-items: center; }
.results-tools .select { height: 40px; width: auto; min-width: 180px; }
.view-toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle button { width: 40px; height: 38px; border: 0; background: #fff; color: var(--muted); display: grid; place-items: center; }
.view-toggle button[aria-pressed="true"] { background: var(--primary-50); color: var(--primary); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border-radius: 99px; background: var(--primary-50); color: var(--primary-700); font-size: var(--fs-xs); font-weight: 600; border: 0; }
.filter-chip svg { width: 14px; height: 14px; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.results-grid.is-list { grid-template-columns: minmax(0, 1fr); }
.empty-state { text-align: center; padding: 64px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); grid-column: 1 / -1; }
.empty-state .es-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--subtle); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: var(--fs-sm); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination [aria-current] { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-trigger { display: none; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 27, 61, .45); z-index: 150; opacity: 0; visibility: hidden; transition: .2s; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.promo-card { background: linear-gradient(145deg, var(--primary-50), #f4f0ff); border: 1px solid var(--primary-100); border-radius: var(--radius); padding: 20px; }
.promo-card h3 { font-size: var(--fs-base); }
.promo-card p { font-size: var(--fs-sm); color: var(--muted); }

/* Compare bar (floating) */
.compare-bar { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); z-index: 120; background: var(--secondary); color: #fff; border-radius: 16px; padding: 12px 12px 12px 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); max-width: calc(100% - 32px); }
.compare-bar.is-visible { transform: translate(-50%, 0); }
.compare-bar .cb-items { display: flex; gap: 6px; }
.compare-bar .logo-ph { --s: 32px; font-size: 12px; box-shadow: none; border: 2px solid var(--secondary); }
.compare-bar .cb-text { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.compare-bar .cb-clear { background: none; border: 0; color: #9aa6c6; font-size: var(--fs-xs); font-weight: 600; }

/* 12. LISTING DETAIL ----------------------------------------------------- */
.detail-hero { padding: 36px 0 0; background: linear-gradient(180deg, #f7f9ff, #fff); border-bottom: 1px solid var(--border); }
.detail-head { display: flex; gap: 24px; align-items: flex-start; }
.detail-head .logo-ph { --s: 96px; border-radius: 24px; font-size: 34px; }
.detail-title { flex: 1; min-width: 0; }
.detail-title h1 { font-size: 2.25rem; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.verified { display: inline-flex; color: var(--primary); }
.verified svg { width: 24px; height: 24px; }
.detail-tagline { font-size: var(--fs-lg); color: var(--muted); margin-bottom: 14px; }
.detail-meta { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); }
.detail-meta > * { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta svg { width: 16px; height: 16px; }
.detail-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.detail-nav { display: flex; gap: 4px; margin-top: 28px; overflow-x: auto; scrollbar-width: none; }
.detail-nav::-webkit-scrollbar { display: none; }
.detail-nav a { padding: 14px 16px; font-size: var(--fs-sm); font-weight: 650; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.detail-nav a:hover { color: var(--secondary); }
.detail-nav a.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding: 40px 0 80px; align-items: start; }
.detail-section { scroll-margin-top: calc(var(--header-h) + 24px); padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.detail-section:last-child { border-bottom: 0; }
.detail-section h2 { font-size: var(--fs-xl); margin-bottom: 18px; }
.prose p { color: #3c4763; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.feature-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.feature h3 { font-size: var(--fs-sm); margin: 0 0 3px; }
.feature p { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { border: 1px solid var(--border); border-radius: 14px; padding: 20px; position: relative; background: #fff; }
.plan.is-popular { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.plan .badge { position: absolute; top: -12px; left: 20px; }
.plan h3 { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 8px; }
.plan .amount { font-size: var(--fs-2xl); font-weight: 800; color: var(--secondary); letter-spacing: -.02em; }
.plan .amount small { font-size: var(--fs-xs); color: var(--subtle); font-weight: 500; }
.plan ul { list-style: none; display: grid; gap: 8px; margin-top: 14px; font-size: var(--fs-xs); color: var(--text); }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { width: 15px; height: 15px; color: var(--success); margin-top: 1px; }
.shots { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.shot { border-radius: 14px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; position: relative; cursor: zoom-in; aspect-ratio: 16 / 10; padding: 0; text-align: left; }
.shots .shot:first-child { grid-row: span 2; aspect-ratio: auto; }
.shot:hover { box-shadow: var(--shadow); }
/* CSS-generated mock UI screenshot */
.mock { position: absolute; inset: 0; display: grid; grid-template-columns: 22% 1fr; background: #fff; }
.mock-side { background: color-mix(in srgb, var(--c, var(--primary)) 7%, #f7f9fc); padding: 10% 10%; display: flex; flex-direction: column; gap: 8%; border-right: 1px solid var(--border); }
.mock-side i { display: block; height: 6px; border-radius: 4px; background: color-mix(in srgb, var(--c, var(--primary)) 25%, #e6e9f0); }
.mock-side i:first-child { width: 60%; height: 10px; background: var(--c, var(--primary)); margin-bottom: 10%; }
.mock-main { padding: 6%; display: flex; flex-direction: column; gap: 6%; }
.mock-row { display: flex; gap: 5%; }
.mock-kpi { flex: 1; height: 0; padding-bottom: 14%; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.mock-chart { flex: 1; border-radius: 10px; background:
  linear-gradient(180deg, color-mix(in srgb, var(--c, var(--primary)) 18%, transparent), transparent),
  var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.mock-chart::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 14%; height: 55%; background: linear-gradient(90deg, var(--c, var(--primary)) 0 7%, transparent 7% 12%, var(--c, var(--primary)) 12% 19%, transparent 19% 24%, var(--c, var(--primary)) 24% 31%, transparent 31% 36%, var(--c, var(--primary)) 36% 43%, transparent 43% 48%, var(--c, var(--primary)) 48% 55%, transparent 55% 60%, var(--c, var(--primary)) 60% 67%, transparent 67% 72%, var(--c, var(--primary)) 72% 79%, transparent 79% 84%, var(--c, var(--primary)) 84% 91%, transparent 91%);
  -webkit-mask-image: linear-gradient(0deg, #000 0 30%, rgba(0,0,0,.7) 30% 60%, rgba(0,0,0,.4) 60%); mask-image: linear-gradient(0deg, #000 0 30%, rgba(0,0,0,.7) 30% 60%, rgba(0,0,0,.4) 60%); opacity: .55; clip-path: polygon(0 60%, 7% 60%, 7% 40%, 12% 40%, 12% 70%, 19% 70%, 19% 30%, 24% 30%, 24% 50%, 31% 50%, 31% 20%, 36% 20%, 36% 45%, 43% 45%, 43% 10%, 48% 10%, 48% 35%, 55% 35%, 55% 25%, 60% 25%, 60% 5%, 67% 5%, 67% 30%, 72% 30%, 72% 15%, 79% 15%, 79% 0, 84% 0, 84% 20%, 91% 20%, 91% 100%, 0 100%); }
.mock.v2 { grid-template-columns: 1fr; grid-template-rows: 14% 1fr; }
.mock.v2 .mock-side { flex-direction: row; align-items: center; padding: 0 5%; gap: 4%; border-right: 0; border-bottom: 1px solid var(--border); }
.mock.v2 .mock-side i { width: 12%; margin: 0; }
.mock.v2 .mock-side i:first-child { width: 10%; margin: 0 auto 0 0; }
.mock-lines { flex: 1; display: flex; flex-direction: column; gap: 9%; justify-content: center; }
.mock-lines i { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); }
.mock-lines i:nth-child(1) { width: 80%; } .mock-lines i:nth-child(2) { width: 95%; } .mock-lines i:nth-child(3) { width: 60%; } .mock-lines i:nth-child(4) { width: 72%; }
.shot-label { position: absolute; left: 10px; bottom: 10px; font-size: 11px; font-weight: 650; color: var(--muted); background: rgba(255,255,255,.92); border: 1px solid var(--border); padding: 3px 8px; border-radius: 6px; }

.sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.sidebar-card h2, .sidebar-card h3 { font-size: var(--fs-base); margin-bottom: 14px; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.facts { display: grid; gap: 0; margin: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.facts dt svg { width: 16px; height: 16px; color: var(--subtle); }
.facts dd { margin: 0; font-weight: 650; color: var(--secondary); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.big-rating { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.big-rating .score { font-size: 2.75rem; font-weight: 800; color: var(--secondary); letter-spacing: -.04em; line-height: 1; }
.big-rating .stars { font-size: 18px; }
.social-row { display: flex; gap: 8px; }
.social-row a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); }
.social-row a:hover { color: var(--primary); border-color: var(--primary-100); background: var(--primary-50); }
.social-row svg { width: 16px; height: 16px; }
.claim-box { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); background: var(--surface); border-radius: 12px; padding: 16px; }
.claim-box svg { color: var(--primary); flex-shrink: 0; }
.claim-box p { margin: 0 0 6px; }

/* 13. TABS / ACCORDION / MODAL / ALERT / TOAST ---------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs [role="tab"] { border: 0; background: none; padding: 12px 16px; font-weight: 650; font-size: var(--fs-sm); color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs [role="tab"]:hover { color: var(--secondary); }
.tabs [role="tab"][aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pills { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; flex-wrap: wrap; }
.tab-pills [role="tab"] { border: 0; background: none; padding: 8px 16px; border-radius: 9px; font-weight: 650; font-size: var(--fs-sm); color: var(--muted); }
.tab-pills [role="tab"][aria-selected="true"] { background: #fff; color: var(--secondary); box-shadow: var(--shadow-xs); }
[role="tabpanel"][hidden] { display: none; }

.accordion { display: grid; gap: 10px; }
.acc-item { border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.acc-item.is-open { border-color: var(--primary-100); box-shadow: var(--shadow-xs); }
.acc-item h3 { margin: 0; font-size: var(--fs-base); }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 0; background: none; text-align: left; font-weight: 650; color: var(--secondary); font-size: var(--fs-sm); }
.acc-trigger svg { width: 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease); flex-shrink: 0; }
.acc-item.is-open .acc-trigger svg { transform: rotate(45deg); color: var(--primary); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s var(--ease); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 20px 18px; margin: 0; color: var(--muted); font-size: var(--fs-sm); }

.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 27, 61, .5); backdrop-filter: blur(2px); }
.modal-dialog { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98); transition: transform .25s var(--ease); }
.modal-dialog.lg { max-width: 860px; }
.modal.is-open .modal-dialog { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: var(--fs-lg); }
.modal-body { padding: 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.modal-close { width: 36px; height: 36px; border-radius: 9px; border: 0; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; }
.modal-close:hover { background: var(--border); color: var(--secondary); }
.modal .shot { aspect-ratio: 16 / 10; width: 100%; cursor: default; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: var(--fs-sm); border: 1px solid; }
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert p { margin: 0; }
.alert strong { display: block; margin-bottom: 2px; }
.alert-info { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary-700); }
.alert-success { background: var(--success-50); border-color: #bfe8d1; color: #0c6b36; }
.alert-warning { background: var(--warning-50); border-color: #f6dfae; color: #855400; }
.alert-danger { background: var(--danger-50); border-color: #f6c6cc; color: #a8202d; }

.toast-region { position: fixed; top: 84px; right: 20px; z-index: 400; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--secondary); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: var(--fs-sm); font-weight: 550; animation: toastIn .3s var(--ease); max-width: 340px; }
.toast svg { width: 18px; height: 18px; color: #7ee2a8; }
.toast.is-leaving { animation: toastOut .25s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* 14. AUTH --------------------------------------------------------------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: var(--fs-2xl); }
.auth-form > p { color: var(--muted); margin-bottom: 28px; }
.divider { display: flex; align-items: center; gap: 12px; font-size: var(--fs-xs); color: var(--subtle); margin: 22px 0; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-google { --btn-bg: #fff; --btn-fg: var(--secondary); --btn-bd: var(--border-strong); }
.btn-google:hover { --btn-bd: var(--subtle); }
.auth-switch { text-align: center; font-size: var(--fs-sm); color: var(--muted); margin-top: 24px; }
.auth-switch a { font-weight: 700; }
.auth-aside { background: var(--secondary); color: #c8d0e6; padding: 64px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; isolation: isolate; }
.auth-aside::before { content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; left: -200px; bottom: -300px; background: radial-gradient(circle, rgba(53, 82, 242, .5), transparent 65%); }
.auth-aside h2 { color: #fff; font-size: 2rem; max-width: 460px; }
.auth-aside .quote { margin-top: 40px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 24px; max-width: 460px; }
.auth-aside .quote p { color: #e3e8f6; font-size: var(--fs-base); }
.auth-aside .quote .row { color: #9aa6c6; font-size: var(--fs-sm); }
.auth-aside .quote strong { color: #fff; display: block; }
.auth-stats { display: flex; gap: 32px; margin-top: 36px; }
.auth-stats strong { display: block; font-size: var(--fs-2xl); color: #fff; font-weight: 800; }
.auth-stats span { font-size: var(--fs-xs); color: #9aa6c6; }
.pw-meter { display: flex; gap: 4px; margin-top: 4px; }
.pw-meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--border); transition: background .2s; }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--warning); }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: #7cc46a; }
.pw-meter[data-score="4"] i { background: var(--success); }

/* 15. PRICING ------------------------------------------------------------ */
.billing-toggle { display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-top: 24px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, transform .2s; }
.price-card:hover { box-shadow: var(--shadow); }
.price-card.is-featured { border: 2px solid var(--primary); box-shadow: 0 20px 50px rgba(53, 82, 242, .15); }
.price-card .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.price-card .plan-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); margin-bottom: 18px; }
.price-card h2 { font-size: var(--fs-xl); margin-bottom: 4px; }
.price-card .plan-desc { color: var(--muted); font-size: var(--fs-sm); min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 12px 0 24px; }
.price .amount { font-size: 3rem; font-weight: 800; color: var(--secondary); letter-spacing: -.04em; line-height: 1; }
.price .per { color: var(--subtle); font-size: var(--fs-sm); }
.price-card ul { list-style: none; display: grid; gap: 12px; margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.price-card li.off { color: var(--subtle); }
.price-card li.off svg { color: var(--border-strong); }

/* 16. COMPARE / TABLES --------------------------------------------------- */
.table-wrap { position: relative; width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table thead th { background: var(--surface); font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfe; }
.table .cell-product { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.table .cell-product strong { display: block; color: var(--secondary); }
.table .cell-product small { color: var(--subtle); }
.compare-table { min-width: 760px; table-layout: fixed; }
.compare-table th[scope="row"] { width: 200px; background: var(--surface); color: var(--muted); font-weight: 650; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; position: sticky; left: 0; z-index: 1; }
.compare-table thead th { background: #fff; text-transform: none; letter-spacing: 0; vertical-align: top; padding: 22px 18px; }
.compare-table thead th:first-child { background: var(--surface); position: sticky; left: 0; z-index: 2; }
.compare-head { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; position: relative; }
.compare-head strong { font-size: var(--fs-base); color: var(--secondary); }
.compare-head .remove { position: absolute; top: -8px; right: -6px; }
.compare-table ul { list-style: none; display: grid; gap: 6px; }
.compare-table li { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-xs); }
.compare-table li svg { width: 14px; height: 14px; color: var(--success); margin-top: 2px; }
.yes { color: var(--success); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.no { color: var(--subtle); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.compare-add { border: 2px dashed var(--border-strong); border-radius: 12px; min-height: 120px; display: grid; place-items: center; color: var(--muted); background: var(--surface); font-weight: 600; font-size: var(--fs-sm); width: 100%; }
.compare-add:hover { border-color: var(--primary); color: var(--primary); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 650; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--success); } .status-review { color: var(--warning); } .status-draft { color: var(--subtle); }

/* 17. REVIEWS ------------------------------------------------------------ */
.rating-summary { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.rating-summary .score { font-size: 3.75rem; font-weight: 800; color: var(--secondary); letter-spacing: -.04em; line-height: 1; }
.rating-summary .stars { font-size: 20px; margin: 8px 0 4px; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 52px 1fr 44px; align-items: center; gap: 12px; font-size: var(--fs-sm); color: var(--muted); }
.bar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--star); border-radius: 8px; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.review-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--secondary); background: var(--surface-2); flex-shrink: 0; font-size: var(--fs-sm); }
.review-head strong { display: block; color: var(--secondary); font-size: var(--fs-sm); }
.review-head small { color: var(--subtle); font-size: var(--fs-xs); }
.review-head .stars { margin-left: auto; }
.review-card h3 { font-size: var(--fs-base); margin: 4px 0 8px; }
.review-card p { color: #3c4763; font-size: var(--fs-sm); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.pros-cons div { padding: 12px 14px; border-radius: 10px; font-size: var(--fs-xs); }
.pros-cons .pro { background: var(--success-50); color: #0c5d30; }
.pros-cons .con { background: var(--danger-50); color: #8f1f2a; }
.pros-cons strong { display: block; margin-bottom: 2px; }
.review-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--subtle); padding-top: 14px; border-top: 1px solid var(--border); }
.helpful-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.helpful-btn svg { width: 14px; height: 14px; }
.helpful-btn:hover { border-color: var(--primary-100); color: var(--primary); }
.helpful-btn.is-active { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }
/* Phase 7: official vendor response + the author's own review */
.review-response { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--primary-100); background: var(--surface); border-radius: 0 10px 10px 0; }
.review-response .badge { margin-bottom: 6px; }
.review-response p { margin: 4px 0; white-space: pre-line; }
.review-response small { color: var(--subtle); }
.review-card.is-mine { border-color: var(--primary-100); box-shadow: 0 0 0 3px var(--primary-50); }
.helpful-btn[disabled] { opacity: .6; cursor: default; }

/* 18. STEPPER (Submit listing) ------------------------------------------- */
.submit-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; padding: 40px 0 80px; align-items: start; }
.stepper { list-style: none; position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.stepper li { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; position: relative; }
.stepper .s-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); border: 2px solid var(--border-strong); color: var(--muted); background: #fff; flex-shrink: 0; transition: all .2s; }
.stepper .s-num svg { width: 16px; height: 16px; }
.stepper strong { display: block; font-size: var(--fs-sm); color: var(--secondary); }
.stepper small { color: var(--subtle); font-size: var(--fs-xs); }
.stepper li.is-active { background: var(--primary-50); }
.stepper li.is-active .s-num { border-color: var(--primary); background: var(--primary); color: #fff; }
.stepper li.is-done .s-num { border-color: var(--success); background: var(--success); color: #fff; }
.progress { height: 6px; background: var(--surface-2); border-radius: 6px; overflow: hidden; margin-bottom: 28px; }
.progress span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--primary), #7a5cff); border-radius: 6px; transition: width .35s var(--ease); }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-step[hidden] { display: none; }
.form-step-head { margin-bottom: 28px; }
.form-step-head .eyebrow { margin-bottom: 6px; }
.form-step-head h2 { margin-bottom: 4px; }
.form-step-head p { color: var(--muted); margin: 0; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.preview-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.preview-top { padding: 24px; background: linear-gradient(180deg, #f7f9ff, #fff); display: flex; gap: 18px; align-items: center; border-bottom: 1px solid var(--border); }
.preview-top h3 { font-size: var(--fs-xl); margin: 0 0 4px; }
.preview-top p { margin: 0; color: var(--muted); }
.preview-body { padding: 24px; display: grid; gap: 20px; }
.preview-body h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); margin-bottom: 6px; }
.preview-body p { margin: 0; font-size: var(--fs-sm); }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.success-state { text-align: center; padding: 32px 0; }
.success-state .ok { width: 72px; height: 72px; border-radius: 50%; background: var(--success-50); color: var(--success); display: grid; place-items: center; margin: 0 auto 20px; }
.success-state .ok svg { width: 36px; height: 36px; }

/* Misc page blocks */
.value-grid .card h3 { margin-top: 14px; }
.value-grid .card p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.contact-info { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ci-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.contact-item strong { display: block; color: var(--secondary); font-size: var(--fs-sm); }
.contact-item span, .contact-item a { font-size: var(--fs-sm); color: var(--muted); }
.not-found { text-align: center; padding: 100px 0; }
.not-found .code { font-size: 8rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; background: linear-gradient(180deg, var(--primary), #a7b4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found p { color: var(--muted); font-size: var(--fs-lg); max-width: 480px; margin: 0 auto 28px; }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; }
.subcats a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; background: #fff; border: 1px solid var(--border); color: var(--text); font-size: var(--fs-sm); font-weight: 600; }
.subcats a:hover, .subcats a.is-active { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.subcats a span { color: var(--subtle); font-size: var(--fs-xs); font-weight: 500; }
.category-hero-inner { display: flex; gap: 24px; align-items: center; }
.category-hero-inner .cat-icon { width: 72px; height: 72px; border-radius: 20px; }
.category-hero-inner .cat-icon svg { width: 34px; height: 34px; }
.seo-copy { color: var(--muted); font-size: var(--fs-sm); columns: 2; column-gap: 40px; }
.seo-copy h2 { column-span: all; font-size: var(--fs-xl); color: var(--secondary); }
.alt-hero { display: flex; gap: 20px; align-items: center; }
.alt-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: box-shadow .2s, border-color .2s; }
.alt-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.alt-rank { font-size: var(--fs-xs); font-weight: 800; color: var(--primary); }
.alt-card h3 { margin: 0 0 4px; font-size: var(--fs-lg); }
.alt-card h3 a { color: var(--secondary); }
.alt-card p { color: var(--muted); font-size: var(--fs-sm); margin: 8px 0 12px; }
.alt-card .alt-side { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 150px; }
.check-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.check-list li { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text); }
.check-list svg { width: 14px; height: 14px; color: var(--success); }

/* 19. UTILITIES ---------------------------------------------------------- */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }
.hidden, [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Late component tweaks */
.product-card .pc-top { padding-right: 76px; }
.product-card.is-list .pc-top { padding-right: 0; }
.filters .close-drawer { display: none; }
button.mini-item { font: inherit; color: inherit; cursor: pointer; }
.logo-grid { display: flex; align-items: center; gap: 12px; }
svg.icon { display: inline-block; vertical-align: -3px; }
.main-nav a { white-space: nowrap; }
.mobile-search { display: none; }

/* ==========================================================================
   Phase 2 additions — functional states (no visual redesign)
   ========================================================================== */
/* Skeleton loading */
.sk { display: block; background: linear-gradient(90deg, var(--surface-2) 0%, #f7f9fc 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: skShimmer 1.4s ease-in-out infinite; border-radius: 6px; }
.sk-line { height: 12px; margin: 6px 0; }
.sk-line.w30 { width: 30%; } .sk-line.w40 { width: 40%; } .sk-line.w50 { width: 50%; } .sk-line.w60 { width: 60%; } .sk-line.w70 { width: 70%; } .sk-line.w80 { width: 80%; } .sk-line.w90 { width: 90%; }
.sk-logo { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.sk-logo.sm { width: 40px; height: 40px; }
.sk-btn { width: 96px; height: 32px; border-radius: 8px; }
.sk-block { height: 56px; border-radius: 10px; }
.sk-card { pointer-events: none; }
.sk-card:hover { transform: none; box-shadow: none; }
@keyframes skShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* Small verified tick next to names */
.verified-sm { display: inline-flex; color: var(--primary); margin-left: 4px; vertical-align: -2px; }
.verified-sm svg { width: 15px; height: 15px; }

/* Generic text button */
.link-btn { border: 0; background: none; color: var(--primary); font-weight: 650; font-size: var(--fs-xs); padding: 4px; cursor: pointer; font-family: inherit; }
.link-btn:hover { color: var(--primary-700); text-decoration: underline; }

/* Filters: toggles, overflow lists, zero counts */
.toggle-row { justify-content: space-between; width: 100%; align-items: center; }
.filter-options .is-extra { display: none; }
.filter-options.show-all .is-extra { display: inline-flex; }
.show-more { justify-self: start; padding-left: 0; }
.check.is-zero { opacity: .5; }
.dir-heading { font-size: var(--fs-xl); margin-bottom: 14px; }

/* Pagination buttons */
.pagination .pg-btn { min-width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: var(--fs-sm); background: #fff; font-family: inherit; cursor: pointer; }
.pagination .pg-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Clickable card helper + clickable side area in mini items */
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mi-side { position: relative; z-index: 1; }

/* Search autocomplete */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 130; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; max-height: min(70vh, 460px); overflow-y: auto; text-align: left; }
.header-search .suggest { width: 340px; left: auto; right: 0; }
.suggest-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); padding: 8px 10px 4px; }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--text); }
.suggest-item:hover, .suggest-item.is-active { background: var(--primary-50); color: var(--secondary); }
.suggest-item strong { display: block; font-size: var(--fs-sm); color: var(--secondary); line-height: 1.3; }
.suggest-item small { display: block; font-size: 12px; color: var(--subtle); }
.suggest-all { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 650; color: var(--primary); }
.cat-icon.xs { width: 32px; height: 32px; border-radius: 9px; }
.cat-icon.xs svg { width: 16px; height: 16px; }

/* Submit: clickable completed steps, counters near the limit */
.stepper .step-btn { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.stepper .step-btn:disabled { cursor: default; }
.hint.is-near { color: var(--warning); font-weight: 650; }
.preview-card-wrap { max-width: 420px; }
.preview-card-wrap .product-card:hover { transform: none; }

/* Review avatar images */
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.empty-state .es-title { font-size: var(--fs-lg); margin-bottom: 6px; }
.status-rejected { color: var(--danger); }
.preview-banner { background: var(--secondary); color: #fff; padding: 10px 0; font-size: var(--fs-sm); position: sticky; top: var(--header-h); z-index: 90; }
.preview-banner .badge { background: rgba(255,255,255,.15); color: #fff; }
.preview-banner svg { vertical-align: -3px; }

/* ---- Sponsored placements (Phase 10): clearly labelled, separate from organic results ---- */
.sponsored-slot { margin: 0 0 20px; }
.sponsored-home { padding-top: 8px; padding-bottom: 8px; }
.sponsored-strip { border: 1px dashed var(--border); border-radius: 14px; padding: 14px; background: var(--surface); }
.sponsored-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 12px; }
.sponsored-head small { color: var(--muted); }
.badge-sponsored { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* ---- Search & discovery (Phase 11) ---- */
.search-notice { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); display: grid; gap: 6px; }
.search-notice-cats { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; }
.chip:hover, .chip:focus-visible { border-color: var(--primary); color: var(--primary-700); }
.chip .icon { width: 14px; height: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.no-results { display: grid; gap: 24px; grid-column: 1 / -1; }
.nr-block h3 { font-size: var(--fs-md); margin: 0 0 10px; }
.suggest-type { margin-left: auto; flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--subtle); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 1px 8px; }
.suggest-item > span:not(.suggest-type):not(.cat-icon) { min-width: 0; }
.suggest-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); color: var(--muted); flex-shrink: 0; }
.suggest-icon .icon { width: 15px; height: 15px; }
@media (max-width: 640px) { .header-search .suggest { width: auto; left: 0; right: 0; } .suggest-item { padding: 10px; } }
