/* ==========================================================================
   Listora – Company & website directory theme (Version 2)
   Built on Bootstrap 5.3.3. Brand colours are tokens: change --brand / --accent
   below to recolour the whole site. Dark mode is included.
   ========================================================================== */

:root {
  --brand: #2a4bf2;
  --brand-600: #1f3bd0;
  --brand-50: #eef1ff;
  --accent: #10b981;
  --accent-600: #059669;
  --star: #f5a524;
  --verified: #1d9bf0;
  --ink: #0b1220;
  --muted: #5b6478;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --line: #e5e8f0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05), 0 1px 3px rgba(11, 18, 32, .06);
  --shadow: 0 12px 32px -14px rgba(11, 18, 32, .22);
  --shadow-lg: 0 30px 70px -24px rgba(11, 18, 32, .35);
  --font-head: "Manrope", "Inter", system-ui, sans-serif;

  --bs-primary: var(--brand);
  --bs-primary-rgb: 42, 75, 242;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 42, 75, 242;
  --bs-link-hover-color: var(--brand-600);
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: #1e2638;
  --bs-body-bg: var(--surface-2);
  --bs-border-color: var(--line);
  --bs-border-radius: 12px;
  --bs-border-radius-lg: 18px;
}

[data-bs-theme="dark"] {
  --brand: #7c93ff;
  --brand-600: #a3b3ff;
  --brand-50: rgba(124, 147, 255, .12);
  --accent: #34d399;
  --ink: #e6eaf4;
  --muted: #9aa4ba;
  --surface: #131a2b;
  --surface-2: #0b101c;
  --line: #232c43;
  --shadow: 0 12px 32px -14px rgba(0, 0, 0, .7);
  --bs-body-bg: var(--surface-2);
  --bs-body-color: #d5dbe8;
  --bs-primary-rgb: 124, 147, 255;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 124, 147, 255;
  --bs-border-color: var(--line);
  --bs-secondary-bg: #192238;
  --bs-tertiary-bg: #141b2d;
}

body { background: var(--surface-2); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font-head); color: var(--ink); letter-spacing: -.01em; }
a { text-decoration: none; }
img { max-width: 100%; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2000; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; }
.text-verified { color: var(--verified); }
.text-accent { color: var(--accent) !important; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); background: var(--brand-50); padding: 5px 12px; border-radius: 99px; margin-bottom: 12px; }
.eyebrow.light { color: #fff; background: rgba(255, 255, 255, .16); }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.surface { background: var(--surface); }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; }
.btn-brand { background: var(--brand); color: #fff; border: 0; }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--brand-600); color: #fff; }
[data-bs-theme="dark"] .btn-brand { color: #0b101c; }
.btn-accent { background: var(--accent); color: #fff; border: 0; }
.btn-accent:hover { background: var(--accent-600); color: #fff; }
.btn-soft { background: var(--brand-50); color: var(--brand); border: 0; }
.btn-soft:hover { background: var(--brand); color: #fff; }
.btn-ghost { background: transparent; border: 0; color: var(--ink); }
.btn-ghost:hover, .btn-ghost[aria-expanded="true"] { background: var(--brand-50); color: var(--brand); }
.btn-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 0; background: transparent; color: var(--ink); padding: 0; position: relative; }
.btn-icon:hover { background: var(--brand-50); color: var(--brand); }
.btn-icon.btn-sm { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); }
.btn-icon.active, .btn-icon.saved { color: var(--brand); background: var(--brand-50); }
.badge-dot { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.badge-dot:empty, .badge-dot[data-zero] { display: none; }

/* ---------- Header ---------- */
.site-header { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.brand img { display: block; }
[data-bs-theme="dark"] .brand img { content: url("../images/logo-light.svg"); }
.hdr-search { position: relative; max-width: 620px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; align-items: center; padding: 3px 3px 3px 0; transition: border-color .15s, box-shadow .15s; }
.hdr-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); background: var(--surface); }
.hdr-search > .bi-search { padding: 0 6px 0 16px; color: var(--muted); }
.hdr-search .form-control { border: 0; background: transparent; box-shadow: none; padding-left: 4px; }
.hdr-search .form-select { border: 0; border-left: 1px solid var(--line); border-radius: 0 99px 99px 0; background-color: transparent; max-width: 190px; box-shadow: none; font-size: .9rem; color: var(--muted); }
.subnav { border-top: 1px solid var(--line); }
.subnav .nav-link { color: var(--muted); font-weight: 500; font-size: .9rem; padding: 10px 14px; border-bottom: 2px solid transparent; }
.subnav .nav-link:hover, .subnav .nav-link.active { color: var(--brand); border-bottom-color: var(--brand); }
.mega-menu { width: min(1080px, 94vw); padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: 10px !important; }
.mega-link { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; color: var(--ink); }
.mega-link:hover { background: var(--surface-2); }
.mega-link small { display: block; color: var(--muted); font-size: .75rem; }
.mega-link strong { font-size: .88rem; font-weight: 600; }
.ico { --c: var(--brand); width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); font-size: 1.1rem; }
.m-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-cat { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 10px 4px; border-radius: 12px; background: var(--surface-2); color: var(--ink); font-size: .72rem; line-height: 1.2; }
.m-cat i { font-size: 1.3rem; }

/* ---------- Breadcrumb & page hero ---------- */
.breadcrumb { --bs-breadcrumb-divider-color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.cat-hero { --c: var(--brand); position: relative; color: #fff; padding: 34px 0 90px; overflow: hidden; background: var(--c); }
.cat-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 10, 25, .55), rgba(5, 10, 25, .05) 70%); }
.cat-hero .container { position: relative; z-index: 1; }
.cat-hero .breadcrumb a, .cat-hero .breadcrumb-item.active, .cat-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .85); }
.cat-hero h1 { color: #fff; }
.hero-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .3); flex: none; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; opacity: .95; }
.cat-search { display: flex; background: var(--surface); border-radius: 16px; padding: 6px; box-shadow: var(--shadow-lg); margin-top: -56px; position: relative; z-index: 2; gap: 6px; }
.cat-search .form-control, .cat-search .form-select { border: 0; box-shadow: none; background-color: transparent; }
.cat-search .divider { width: 1px; background: var(--line); margin: 6px 0; }
.page-hero { background: radial-gradient(1200px 300px at 0% 0%, var(--brand-50), transparent), var(--surface); border-bottom: 1px solid var(--line); padding: 32px 0; }

/* ---------- Chips ---------- */
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 7px 14px; font-size: .86rem; font-weight: 500; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip small { opacity: .6; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 500; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.tag-cat { --c: var(--brand); color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); border-color: transparent; }

/* ---------- Rating ---------- */
.stars { --r: 4; --pct: calc(var(--r) / 5 * 100%); display: inline-block; font-size: .9rem; line-height: 1; letter-spacing: 1px; font-family: Arial, sans-serif; }
.stars::before { content: "★★★★★"; background: linear-gradient(90deg, var(--star) var(--pct), #d4d8e2 var(--pct)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-bs-theme="dark"] .stars::before { background: linear-gradient(90deg, var(--star) var(--pct), #3a445e var(--pct)); -webkit-background-clip: text; background-clip: text; }
.rating { display: inline-flex; align-items: center; gap: 5px; }
.rating b { color: var(--ink); font-weight: 700; }
.rating small { color: var(--muted); }
.score { display: inline-grid; place-items: center; min-width: 44px; height: 32px; padding: 0 8px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; font-family: var(--font-head); }

/* ---------- Company card (list + grid) ---------- */
.co-card { position: relative; display: grid; grid-template-columns: 72px 1fr 170px; gap: 18px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: box-shadow .2s, border-color .2s, transform .2s; }
.co-card + .co-card { margin-top: 14px; }
.co-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.co-card.is-featured { border-color: color-mix(in srgb, var(--star) 55%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--star) 6%, var(--surface)), var(--surface) 60%); }
.ribbon { position: absolute; top: -10px; left: 20px; background: var(--star); color: #3b2500; font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.co-logo img { width: 72px; height: 72px; border-radius: 18px; display: block; box-shadow: var(--shadow-sm); }
.co-name { font-size: 1.12rem; font-weight: 700; margin: 0; }
.co-name a { color: var(--ink); }
.co-name a:hover { color: var(--brand); }
.vbadge { color: var(--verified); font-size: 1.05rem; line-height: 1; }
.co-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .84rem; color: var(--muted); margin-bottom: 8px; }
.co-desc { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.co-actions { display: flex; flex-direction: column; gap: 8px; }
.open-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-600); font-weight: 600; }
.open-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.open-dot.closed { color: #ef4444; }
[data-bs-theme="dark"] .open-dot { color: var(--accent); }
.compare-check { cursor: pointer; margin: 0; }
.compare-check input { position: absolute; opacity: 0; pointer-events: none; }
.compare-check:has(input:checked) { background: var(--brand); color: #fff; }

.co-list.grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.co-list.grid-view .co-card { grid-template-columns: 1fr; margin: 0; gap: 12px; }
.co-list.grid-view .co-actions { flex-direction: row; flex-wrap: wrap; }
.co-list.grid-view .co-actions .btn-brand, .co-list.grid-view .co-actions .btn-soft { flex: 1; }
.co-list.grid-view .co-actions > div { width: 100%; justify-content: flex-start !important; }
.co-list.grid-view .co-logo img { width: 60px; height: 60px; }

@media (max-width: 767.98px) {
  .co-card { grid-template-columns: 56px 1fr; padding: 16px; gap: 14px; }
  .co-logo img { width: 56px; height: 56px; border-radius: 14px; }
  .co-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .co-actions .btn-brand, .co-actions .btn-soft { flex: 1 1 40%; white-space: nowrap; }
  .co-actions > div { flex: 0 0 100%; justify-content: flex-start !important; }
}
.co-list.grid-view .co-actions .btn { white-space: nowrap; }

/* ---------- Mini card ---------- */
.mini-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini-top { height: 78px; background: var(--c); }
.mini-top img { width: 100%; height: 100%; object-fit: cover; }
.mini-logo { margin: -28px 0 8px 16px; position: relative; z-index: 1; }
.mini-logo img { width: 56px; height: 56px; border-radius: 15px; border: 3px solid var(--surface); }
.rail { display: flex; gap: 16px; max-width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; flex: 0 0 240px; }

/* ---------- Home hero ---------- */
.home-hero { position: relative; padding: 70px 0 80px; overflow: hidden; background: var(--surface); }
.home-hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 380px at 85% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
  radial-gradient(700px 420px at 10% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%); }
.home-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%); opacity: .7; }
.home-hero .container { position: relative; z-index: 1; }
.home-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.home-hero h1 .hl { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-search { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 8px; box-shadow: var(--shadow-lg); gap: 4px; }
.big-search .field { display: flex; align-items: center; gap: 8px; flex: 1; padding: 0 12px; min-width: 0; }
.big-search .field i { color: var(--muted); font-size: 1.1rem; }
.big-search .form-control, .big-search .form-select { border: 0; box-shadow: none; padding: 12px 4px; background-color: transparent; font-size: 1rem; }
.big-search .sep { width: 1px; background: var(--line); margin: 8px 0; }
.big-search .btn { border-radius: 14px; padding: 0 26px; }
@media (max-width: 767.98px) {
  .big-search { flex-direction: column; }
  .big-search .sep { width: auto; height: 1px; margin: 0 8px; }
  .big-search .btn { padding: 12px; }
}
.trend a { display: inline-block; font-size: .85rem; color: var(--muted); border: 1px dashed var(--line); padding: 4px 12px; border-radius: 99px; margin: 0 4px 6px 0; background: var(--surface); }
.trend a:hover { color: var(--brand); border-color: var(--brand); }
.hero-board { position: relative; height: 430px; }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px; display: flex; gap: 12px; align-items: center; width: 290px; animation: floaty 6s ease-in-out infinite; }
.float-card img { width: 48px; height: 48px; border-radius: 13px; }
.float-card:nth-child(2) { animation-delay: -2s; }
.float-card:nth-child(3) { animation-delay: -4s; }
.float-stat { position: absolute; background: var(--ink); color: var(--surface); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-lg); }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-strip > div { background: var(--surface); padding: 18px 20px; }
.stat-strip b { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.stat-strip span { color: var(--muted); font-size: .85rem; }
@media (max-width: 767.98px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Category tiles ---------- */
.cat-tile { --c: var(--brand); position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: .2s; overflow: hidden; }
.cat-tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: color-mix(in srgb, var(--c) 9%, transparent); transition: .3s; }
.cat-tile:hover { border-color: var(--c); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.cat-tile:hover::after { transform: scale(1.6); }
.cat-tile .ico { width: 46px; height: 46px; font-size: 1.3rem; border-radius: 14px; }
.cat-tile h3 { font-size: .98rem; font-weight: 700; margin: 0; }
.cat-tile small { color: var(--muted); }
.cat-tile .go { position: absolute; top: 18px; right: 18px; color: var(--muted); transition: .2s; }
.cat-tile:hover .go { color: var(--c); transform: translateX(3px); }

.cat-panel { --c: var(--brand); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; height: 100%; display: flex; flex-direction: column; transition: .2s; }
.cat-panel:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.cat-panel .subs a { display: inline-block; font-size: .84rem; color: var(--muted); padding: 3px 10px; border-radius: 99px; background: var(--surface-2); margin: 0 4px 6px 0; }
.cat-panel .subs a:hover { color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.cat-panel .logos { display: flex; }
.cat-panel .logos img { width: 32px; height: 32px; border-radius: 9px; border: 2px solid var(--surface); margin-left: -8px; }
.cat-panel .logos img:first-child { margin-left: 0; }
.az a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.az a.active, .az a:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.az a.disabled { opacity: .35; pointer-events: none; }

/* ---------- Filters sidebar ---------- */
.filter-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h6 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.filter-group .form-check { margin-bottom: 6px; font-size: .92rem; }
.filter-group .form-check-label { display: flex; justify-content: space-between; width: 100%; }
.filter-group .form-check-label small { color: var(--muted); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 18px; }
.toolbar .form-select { width: auto; border-radius: 10px; font-size: .9rem; }
.view-toggle .btn { border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.view-toggle .btn.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card.brand { background: linear-gradient(140deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); color: #fff; border: 0; }
.side-card.brand h5 { color: #fff; }
.no-results { display: none; text-align: center; padding: 50px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.pagination { --bs-pagination-border-radius: 10px; --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-color: var(--ink); gap: 6px; }
.pagination .page-link { border-radius: 10px !important; }

/* ---------- Company profile ---------- */
.profile-cover { height: 240px; position: relative; overflow: hidden; background: var(--brand); }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.profile-head .logo-xl { width: 128px; height: 128px; border-radius: 30px; border: 5px solid var(--surface); box-shadow: var(--shadow); margin-top: -64px; background: var(--surface); position: relative; }
.profile-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.kpis { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: .9rem; }
.kpis b { color: var(--ink); }
.profile-tabs { position: sticky; top: var(--hdr-h, 112px); z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.profile-tabs .nav-link { color: var(--muted); font-weight: 600; padding: 14px 16px; border-bottom: 2px solid transparent; border-radius: 0; white-space: nowrap; }
.profile-tabs .nav-link.active, .profile-tabs .nav-link:hover { color: var(--brand); border-bottom-color: var(--brand); }
.profile-tabs .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; scroll-margin-top: 180px; }
.block h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact .ico { width: 40px; height: 40px; }
.fact small { display: block; color: var(--muted); font-size: .78rem; }
.fact b { font-weight: 600; color: var(--ink); }
.svc { border: 1px solid var(--line); border-radius: 14px; padding: 16px; height: 100%; transition: .2s; }
.svc:hover { border-color: var(--brand); }
.svc .price { font-weight: 700; color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; gap: 10px; }
.gallery button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; position: relative; }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery .more { position: absolute; inset: 0; background: rgba(5, 10, 25, .55); color: #fff; display: grid; place-items: center; font-weight: 700; }
@media (max-width: 575.98px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; } }
.rating-summary .big { font-family: var(--font-head); font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--ink); }
.bar-row { display: grid; grid-template-columns: 44px 1fr 40px; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); }
.bar-row .progress { height: 8px; border-radius: 99px; background: var(--surface-2); }
.bar-row .progress-bar { background: var(--star); border-radius: 99px; }
.review { padding: 20px 0; border-top: 1px solid var(--line); }
.review img.av { width: 44px; height: 44px; border-radius: 50%; }
.owner-reply { background: var(--surface-2); border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; padding: 12px 16px; font-size: .9rem; margin-top: 12px; }
.star-input { display: inline-flex; gap: 4px; }
.star-input button { border: 0; background: none; font-size: 1.6rem; color: #c8cdd8; padding: 0; line-height: 1; }
.star-input button.on { color: var(--star); }
.hours td { padding: 6px 0; font-size: .9rem; }
.hours tr.today td { font-weight: 700; color: var(--brand); }
.map-ph { position: relative; height: 240px; border-radius: 14px; overflow: hidden; background:
  linear-gradient(0deg, transparent 48%, color-mix(in srgb, var(--brand) 12%, transparent) 48% 52%, transparent 52%),
  linear-gradient(90deg, transparent 30%, color-mix(in srgb, var(--accent) 14%, transparent) 30% 33%, transparent 33%),
  repeating-linear-gradient(0deg, var(--surface-2) 0 38px, var(--line) 38px 39px),
  repeating-linear-gradient(90deg, var(--surface-2) 0 38px, var(--line) 38px 39px); }
.map-ph .pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 2.6rem; color: #ef4444; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); }
.contact-card { position: sticky; top: 180px; }
.contact-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .92rem; word-break: break-word; }
.contact-line:last-of-type { border-bottom: 0; }
.contact-line .ico { width: 36px; height: 36px; font-size: 1rem; }
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 12px; display: none; gap: 8px; box-shadow: 0 -8px 24px -10px rgba(0, 0, 0, .2); }
@media (max-width: 991.98px) { .mobile-cta { display: flex; } body.has-mobile-cta { padding-bottom: 64px; } .contact-card { position: static; } }
.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-bg: var(--surface); --bs-accordion-active-bg: var(--brand-50); --bs-accordion-active-color: var(--brand); --bs-accordion-btn-focus-box-shadow: none; }
.accordion-button { font-weight: 600; }

/* ---------- Home misc ---------- */
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; height: 100%; }
.step .num { position: absolute; top: 18px; right: 22px; font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--line); line-height: 1; }
.step .ico { width: 52px; height: 52px; font-size: 1.4rem; border-radius: 16px; margin-bottom: 16px; }
.nav-pills.pill-tabs { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-pills.pill-tabs .nav-link { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; font-weight: 500; font-size: .9rem; }
.nav-pills.pill-tabs .nav-link.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.rank-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: .15s; }
.rank-row:hover { border-color: var(--brand); color: var(--ink); }
.rank-row .n { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--muted); width: 26px; text-align: center; }
.rank-row img { width: 46px; height: 46px; border-radius: 12px; }
.city-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; padding: 22px; color: #fff; min-height: 130px; background: linear-gradient(140deg, var(--c1), var(--c2)); }
.city-card:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.city-card i { position: absolute; right: 14px; bottom: 4px; font-size: 4.2rem; opacity: .22; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: 100%; }
.quote img { width: 44px; height: 44px; border-radius: 50%; }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; color: var(--muted); font-size: .9rem; }
.trust-row i { color: var(--accent); }

/* ---------- Search page ---------- */
.result-group-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 14px; }
.suggest-box { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; }
.suggest-box a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.suggest-box a:hover { background: var(--surface-2); }

/* ---------- CTA strip & footer ---------- */
.cta-strip { padding: 56px 0 0; }
.cta-card { position: relative; overflow: hidden; border-radius: 26px; padding: 40px; color: #fff; background: radial-gradient(500px 260px at 100% 0%, rgba(16, 185, 129, .55), transparent 70%), linear-gradient(120deg, #1a2fb8, var(--brand) 60%, #3d6bff); }
.cta-card h3 { color: #fff; }
.site-footer { background: #0a0f1d; color: #c4cbdc; padding: 56px 0 24px; margin-top: -60px; padding-top: 110px; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 14px; }
.site-footer a { color: #aab3c8; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 7px; }
.site-footer .form-control { background: #141b2e; border-color: #222b44; color: #fff; }
.social a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #141b2e; }
.social a:hover { background: var(--brand); }

/* ---------- Floating UI ---------- */
.back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 1040; width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--ink); color: var(--surface); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s; }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
body.has-mobile-cta .back-to-top { bottom: 80px; }
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1045; background: var(--ink); color: var(--surface); padding: 12px 0; transform: translateY(110%); visibility: hidden; transition: transform .25s, visibility .25s; }
.compare-tray.show { transform: none; visibility: visible; }
.compare-tray .btn-outline-light { color: var(--surface); border-color: color-mix(in srgb, var(--surface) 40%, transparent); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.lightbox .modal-content { background: transparent; border: 0; }
.lightbox img { border-radius: 16px; width: 100%; }
.min-w-0 { min-width: 0; }

/* ---------- Phase 2: category profile sections ---------- */
.highlight-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.highlight-row > div { background: var(--surface); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.highlight-row i { grid-row: span 2; font-size: 1.3rem; color: var(--brand); }
.highlight-row b { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); line-height: 1.2; }
.highlight-row small { color: var(--muted); font-size: .78rem; }
.data-table { --bs-table-bg: transparent; font-size: .92rem; }
.data-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { border-color: var(--line); }
.data-table td:first-child { font-weight: 600; color: var(--ink); }
.person { text-align: center; border: 1px solid var(--line); border-radius: 16px; padding: 18px 14px; height: 100%; }
.person img { width: 72px; height: 72px; border-radius: 50%; }
.item-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); transition: .2s; }
.item-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.item-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.item-badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--surface); font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.plan .item-badge { left: auto; right: 14px; top: -11px; background: var(--brand); color: #fff; }
.item-card .price, .plan .amt { font-family: var(--font-head); font-weight: 800; color: var(--ink); }
.hstep { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 18px; height: 100%; }
.hstep > i { font-size: 1.5rem; color: var(--brand); }
.hstep .n { position: absolute; top: 12px; right: 14px; font-family: var(--font-head); font-weight: 800; color: var(--line); font-size: 1.6rem; }
.plan { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.plan.hl { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .amt { font-size: 1.8rem; }
.plan li { margin-bottom: 7px; } .plan li i { color: var(--accent); }
.feature-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .88rem; }
.feature-chip i { color: var(--accent); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px 20px; }
.check-list.cols-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.check-list i { color: var(--accent); margin-right: 6px; }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: .9rem; background: var(--brand-50); color: var(--ink); }
.note i { font-size: 1.2rem; color: var(--brand); }
.note-warn { background: color-mix(in srgb, var(--star) 14%, transparent); }
.note-warn i { color: #b45309; }
.veg, .nonveg { display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1.5px solid #16a34a; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.veg::after, .nonveg::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.nonveg { border-color: #b91c1c; } .nonveg::after { background: #b91c1c; }
.emi-out { background: var(--surface-2); border-radius: 14px; padding: 16px; }
.emi-out b { font-family: var(--font-head); font-size: 1.6rem; color: var(--ink); display: block; }
.form-range::-webkit-slider-thumb { background: var(--brand); }
.form-range::-moz-range-thumb { background: var(--brand); }
.status-lost { background: #ef4444 !important; color: #fff !important; } .status-found { background: var(--accent) !important; color: #fff !important; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: 0; }
.lb-row img { width: 38px; height: 38px; border-radius: 50%; }
.lb-row .pos { width: 28px; font-weight: 800; font-family: var(--font-head); color: var(--muted); text-align: center; }
.itin .day { font-weight: 800; color: var(--brand); font-family: var(--font-head); }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.logo-wall span { display: grid; place-items: center; height: 56px; border: 1px dashed var(--line); border-radius: 12px; font-weight: 800; font-family: var(--font-head); color: var(--muted); letter-spacing: .02em; }

.mobile-cta .btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-cta .btn-ico-only { flex: 0 0 48px !important; padding-left: 0; padding-right: 0; }

/* ---------- Phase 3: business pages ---------- */
.site-footer.no-cta { margin-top: 56px; padding-top: 56px; }
.bill-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px; }
.bill-toggle button { border: 0; background: transparent; padding: 7px 16px; border-radius: 99px; font-weight: 600; font-size: .88rem; color: var(--muted); }
.bill-toggle button.active { background: var(--ink); color: var(--surface); }
.bill-toggle .save { font-size: .7rem; color: var(--accent); margin-left: 4px; }
.bill-toggle button.active .save { color: #6ee7b7; }
.plan { background: var(--surface); }
.dash-preview { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); }
.kpi-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; height: 100%; }
.kpi-tile small { color: var(--muted); }
.kpi-tile b { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--ink); line-height: 1.2; margin: 2px 0; }
.delta { font-size: .78rem; font-weight: 600; }
.delta.up { color: var(--accent-600); } .delta.down { color: #dc2626; }
[data-bs-theme="dark"] .delta.up { color: var(--accent); } [data-bs-theme="dark"] .delta.down { color: #f87171; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bars span { flex: 1; height: var(--h); background: var(--brand); border-radius: 4px 4px 0 0; opacity: .9; }
.bars.sm { height: 90px; }
/* single-series bar chart: one hue, thin bars, recessive grid, hover/focus tooltip */
.bar-chart { position: relative; height: 230px; padding-left: 34px; }
.bar-chart .grid { position: absolute; inset: 0 0 22px 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.bar-chart .grid span { font-size: .7rem; color: var(--muted); border-top: 1px solid var(--line); line-height: 0; padding-top: 0; width: 100%; }
.bar-chart .grid span:last-child { border-top-color: color-mix(in srgb, var(--muted) 45%, transparent); }
.bar-chart .cols { position: absolute; left: 34px; right: 0; top: 0; bottom: 0; display: flex; gap: 2px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-col small { height: 22px; line-height: 22px; font-size: .7rem; color: var(--muted); }
.bar-col .bar { position: relative; width: min(18px, 70%); height: calc((100% - 22px) * var(--v) / 100); background: var(--brand); border-radius: 4px 4px 0 0; cursor: pointer; outline: none; }
.bar-col .bar:hover, .bar-col .bar:focus-visible { background: var(--brand-600); }
.bar-col .bar::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface); font-size: .75rem; font-weight: 600; white-space: nowrap; padding: 5px 9px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2; }
.bar-col .bar:hover::after, .bar-col .bar:focus-visible::after { opacity: 1; }
.bar-col:nth-child(even) small { visibility: hidden; }
@media (min-width: 768px) { .bar-col:nth-child(even) small { visibility: visible; } }
.ring { --p: 50; width: 72px; height: 72px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font-family: var(--font-head); color: var(--ink); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.dash-side { position: sticky; top: calc(var(--hdr-h, 112px) + 16px); }
.dash-nav { display: grid; gap: 2px; }
.dash-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.dash-link:hover { background: var(--surface-2); color: var(--ink); }
.dash-link.active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.dash-link .cnt { margin-left: auto; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
@media (max-width: 991.98px) { .dash-side { position: static; } .dash-nav { display: flex; overflow-x: auto; scrollbar-width: none; } .dash-link { white-space: nowrap; } }
.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; margin-top: 16px; box-shadow: var(--shadow); }
.svc-edit { display: grid; grid-template-columns: auto 1fr 160px auto; gap: 8px; align-items: center; }
@media (max-width: 575.98px) { .svc-edit { grid-template-columns: 1fr auto; } .svc-edit .bi-grip-vertical { display: none; } }
.thumb-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; padding: 0; }

/* wizard */
.wizard-progress { display: flex; gap: 6px; }
.wp-item { flex: 1; text-align: center; position: relative; color: var(--muted); }
.wp-item span { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 4px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); font-weight: 700; position: relative; z-index: 1; }
.wp-item::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.wp-item:first-child::before { display: none; }
.wp-item small { font-size: .75rem; font-weight: 600; }
.wp-item.active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.wp-item.active { color: var(--brand); }
.wp-item.done span { background: var(--accent); border-color: var(--accent); color: #fff; font-size: 0; }
.wp-item.done span::after { content: "\F26E"; font-family: bootstrap-icons; font-size: 1rem; }
.wp-item.done::before, .wp-item.active::before { background: var(--accent); }
.wz-step { display: none; }
.wz-step.active { display: block; animation: fadeIn .25s; }
.wz-done { display: none; }
.wz-done.show { display: block; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
.hours-row { display: grid; grid-template-columns: 150px 1fr auto 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours-row input:disabled { opacity: .45; }
@media (max-width: 575.98px) { .hours-row { grid-template-columns: 1fr 1fr; } .hours-row .form-switch { grid-column: 1 / -1; } .hours-row > span { display: none; } }
.dropzone { position: relative; display: grid; place-items: center; text-align: center; min-height: 140px; border: 2px dashed var(--line); border-radius: 16px; background: var(--surface-2); color: var(--muted); font-size: .88rem; cursor: pointer; overflow: hidden; transition: .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); color: var(--brand); }
.dropzone.square { aspect-ratio: 1; min-height: 0; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.select-card { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.select-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.select-card:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.sel-dot { position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.select-card:has(input:checked) .sel-dot { border: 6px solid var(--brand); }
.claim-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.claim-row img { border-radius: 12px; }
.otp { display: flex; gap: 8px; }
.otp input { width: 48px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 700; border-radius: 12px; }

/* inbox */
.inbox { display: grid; grid-template-columns: 340px 1fr; min-height: 560px; overflow: hidden; }
.inbox-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.enq-list { overflow-y: auto; max-height: 620px; }
.enq-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); }
.enq-item img { border-radius: 50%; flex: none; }
.enq-item:hover { background: var(--surface-2); }
.enq-item.active { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand); }
.enq-item.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-left: 6px; vertical-align: middle; }
.enq-detail { display: none; } .enq-detail.active { display: block; }
.msg { background: var(--surface-2); border-radius: 4px 16px 16px 16px; padding: 12px 14px; max-width: 86%; margin-bottom: 10px; }
.msg.me { background: var(--brand-50); border-radius: 16px 4px 16px 16px; margin-left: auto; }
.msg small { color: var(--muted); font-size: .75rem; }
@media (max-width: 991.98px) {
  .inbox { grid-template-columns: 1fr; }
  .inbox-list { border-right: 0; }
  .inbox .inbox-detail { display: none; }
  .inbox.show-detail .inbox-list { display: none; }
  .inbox.show-detail .inbox-detail { display: block; }
}

/* compare */
.cmp-table { --bs-table-bg: transparent; min-width: 720px; }
.cmp-table th, .cmp-table td { padding: 14px 16px; border-color: var(--line); vertical-align: middle; text-align: center; }
.cmp-table tbody th { text-align: left; font-size: .85rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cmp-table .cmp-label, .cmp-table tbody th { position: sticky; left: 0; background: var(--surface); z-index: 1; width: 180px; }
.cmp-table tbody tr:nth-child(even) td, .cmp-table tbody tr:nth-child(even) th { background: var(--surface-2); }
.cmp-head { position: relative; padding-top: 6px; }
.cmp-head img { border-radius: 14px; }
.cmp-x { position: absolute; top: -4px; right: -4px; }
.cmp-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); padding: 10px; }
.compare-plans td:first-child { font-weight: 500; }

.bar-col:nth-last-child(-n+3) .bar::after { left: auto; right: -4px; transform: none; }
.bar-col:nth-child(-n+2) .bar::after { left: -4px; transform: none; }
.cmp-table { table-layout: fixed; }
.cmp-table thead th:not(.cmp-label) { width: 24%; }

/* ---------- Phase 4: visitor & info pages ---------- */
.auth-wrap { padding: 48px 0; background: radial-gradient(800px 400px at 0% 0%, var(--brand-50), transparent), radial-gradient(600px 300px at 100% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent); }
.auth-card { display: grid; grid-template-columns: 1fr 1.15fr; max-width: 980px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); }
.auth-side { display: flex; flex-direction: column; padding: 40px; color: #fff; background: radial-gradient(400px 260px at 100% 0%, rgba(16, 185, 129, .55), transparent 70%), linear-gradient(150deg, #1a2fb8, var(--brand)); }
[data-bs-theme="dark"] .auth-side { background: radial-gradient(400px 260px at 100% 0%, rgba(16, 185, 129, .35), transparent 70%), linear-gradient(150deg, #101a5c, #1f3bd0); }
.auth-side h2 { color: #fff; font-size: 1.7rem; }
.auth-points li { margin: 12px 0; opacity: .92; } .auth-points i { margin-right: 8px; color: #6ee7b7; }
.auth-logos { display: flex; align-items: center; padding-top: 24px; }
.auth-logos img { width: 34px; height: 34px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .7); margin-left: -8px; }
.auth-logos img:first-child { margin-left: 0; }
.auth-main { padding: 40px; }
@media (max-width: 767.98px) { .auth-card { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-main { padding: 26px 20px; } .auth-wrap { padding: 24px 0; } }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin-bottom: 16px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 14px; }
.seg .btn { border: 0; border-radius: 10px; font-size: .85rem; color: var(--muted); padding: 8px 6px; }
.seg .btn-check:checked + .btn { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength span { height: 5px; border-radius: 3px; background: var(--line); transition: background .2s; }
.strength[data-score="1"] span:nth-child(-n+1) { background: #ef4444; }
.strength[data-score="2"] span:nth-child(-n+2) { background: #f59e0b; }
.strength[data-score="3"] span:nth-child(-n+3) { background: #84cc16; }
.strength[data-score="4"] span { background: var(--accent); }
.reset-step { display: none; } .reset-step.active { display: block; animation: fadeIn .25s; }
.timeline { border-left: 2px solid var(--line); padding-left: 22px; }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item::before { content: ""; position: absolute; left: -29px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.tl-item b { display: block; font-family: var(--font-head); color: var(--brand); }
.tl-item span { color: var(--muted); }
.legal p { color: var(--muted); line-height: 1.75; }
.legal-sec { scroll-margin-top: 140px; padding-bottom: 12px; }
.legal-sec + .legal-sec { border-top: 1px solid var(--line); padding-top: 22px; }
#toc .dash-link { font-size: .88rem; padding: 7px 10px; }
.nf-art { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--ink); }
.nf-art i { display: grid; place-items: center; width: .95em; height: .95em; border-radius: 50%; font-size: .55em; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: var(--shadow-lg); }
.faq-group { scroll-margin-top: 140px; }
.auth-side .eyebrow { align-self: flex-start; }
