/* =========================================================
   Directory Template — Reusable theme
   Change brand colors and fonts via :root variables below.
   ========================================================= */
:root {
  /* Brand — clean light theme (soft blue) */
  --brand-primary: #2563eb;
  /* primary action / focus */
  --brand-primary-600: #1d4ed8;
  /* hover/pressed */
  --brand-accent: #38bdf8;
  /* soft sky for highlight gradients */
  --brand-accent-600: #0ea5e9;

  /* Surfaces */
  --bg: #f8fafc;
  /* page background */
  --surface: #ffffff;
  /* cards, panels */
  --surface-2: #f1f5f9;
  /* neutral panel / chip background */
  --hover-bg: #eff6ff;
  /* soft blue hover */
  --border: #e2e8f0;
  /* light slate border */
  --text: #0f172a;
  /* primary text */
  --text-muted: #475569;
  /* secondary text */
  --text-soft: #64748b;
  /* tertiary text */

  --warning: #f59e0b;
  --success: #16a34a;
  --danger: #dc2626;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow: 0 8px 24px -14px rgba(15, 23, 42, .15), 0 2px 6px rgba(15, 23, 42, .04);

  /* Soft hero/banner gradient — pastel blue, designed for dark text */
  --hero-gradient: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 45%, #eff6ff 100%);
  --hero-gradient-strong: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  --hero-text: var(--text);
  --hero-text-muted: var(--text-muted);
  /* Clearance below sticky site header (matches prototype nav height) */
  --header-sticky-offset: 3.75rem;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --container: 1200px;
}

[data-theme="dark"] {
  --bg: #0d0e12;
  --surface: #15171d;
  --surface-2: #1d2027;
  --border: #2a2d36;
  --text: #f4f4f5;
  --text-muted: #a1a5b0;
  --text-soft: #6b6f7a;
  --shadow: 0 8px 30px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .4);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0 0 .5rem;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-sm {
  padding: 2.5rem 0;
}

.muted {
  color: var(--text-muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--brand-accent);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  border: 1px solid transparent;
  transition: all .15s ease;
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-primary-600);
}

.btn-accent {
  background: var(--brand-accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--brand-accent-600);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--brand-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-sm {
  padding: .45rem .8rem;
  font-size: .82rem;
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.header-logo {
  height: 35px;
  width: auto;
  object-fit: contain;
  transform: scale(1.5);
  transform-origin: left center;
  margin: -5px 0;
}

@media (max-width: 768px) {
  .header-logo {
    height: 45px;
    transform: scale(1.3);
  }
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: .94rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--text);
}

.icon-btn:hover {
  background: var(--surface-2);
}

.menu-btn {
  display: none;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .nav-actions .btn {
    display: none;
  }
}

/* Mobile drawer
   NOTE: Scoped to :not(.mobile-menu) so it doesn't clobber the
   real .mobile-menu drawer used by header.php (toggled via .active). */
.drawer:not(.mobile-menu) {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: none;
  z-index: 100;
}

.drawer:not(.mobile-menu).open {
  display: block;
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 85%);
  background: var(--surface);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer:not(.mobile-menu) a {
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
}

.search-box {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  max-width: 540px;
}

.search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: .8rem 1rem;
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

.search-box .btn {
  border-radius: 999px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}

.hero-stat .lbl {
  font-size: .85rem;
  color: var(--text-muted);
}

.hero-art {
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--brand-accent) 35%, transparent), transparent 60%),
    radial-gradient(circle at 70% 70%, color-mix(in srgb, var(--brand-primary) 45%, transparent), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
}

.hero-art::after {
  content: "AI";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 9rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--text) 12%, transparent);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: none;
  }
}

/* Categories grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cat-card .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--brand-primary);
  margin-bottom: .8rem;
}

.cat-card h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .98rem;
  margin: 0 0 .15rem;
}

.cat-card .count {
  font-size: .8rem;
  color: var(--text-soft);
}

/* Section header */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
}

/* Company cards */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.company-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: transform .15s ease, box-shadow .15s ease;
}

.company-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.company-card .top {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.company-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
}

.company-card .name {
  font-weight: 600;
  font-size: 1.05rem;
}

.company-card .tag-line {
  font-size: .85rem;
  color: var(--text-muted);
}

.company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge.badge-soft {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
  font-weight: 600;
}

.badge-featured {
  background: color-mix(in srgb, var(--brand-accent) 15%, transparent);
  color: var(--brand-accent-600);
  border-color: transparent;
}

.badge-verified {
  background: color-mix(in srgb, var(--success) 15%, transparent);
  color: var(--success);
  border-color: transparent;
}

.rating {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
}

.rating .stars {
  color: var(--warning);
}

.company-card .footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: .85rem;
  color: var(--text-muted);
}

/* Listings page */
.listings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .listings-layout {
    grid-template-columns: 1fr;
  }

  .filters-card {
    display: none;
  }
}

.filters-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.filter-group {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
  border-bottom: 0;
}

.filter-group h5 {
  margin: 0 0 .6rem;
  font-family: var(--font-sans);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-soft);
  font-weight: 600;
}

.filter-option {
  display: flex;
  justify-content: space-between;
  padding: .3rem 0;
  font-size: .9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-option input {
  margin-right: .55rem;
  accent-color: var(--brand-primary);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.toolbar .count {
  font-size: .9rem;
  color: var(--text-muted);
}

.select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55rem 1rem;
  font-size: .88rem;
  outline: none;
}

.input {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .7rem .9rem;
  font-size: .94rem;
  width: 100%;
  outline: none;
  font-family: inherit;
}

.input:focus,
.select:focus {
  border-color: var(--brand-primary);
}

.textarea {
  min-height: 130px;
  resize: vertical;
}

.label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .35rem;
  color: var(--text);
}

/* Company detail */
.profile-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.profile-header .company-logo {
  width: 84px;
  height: 84px;
  font-size: 1.5rem;
  border-radius: 18px;
}

.profile-header h1 {
  font-size: 2rem;
  margin: 0 0 .35rem;
}

.profile-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .profile-header {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .profile-actions {
    width: 100%;
  }
}

.profile-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.tabs {
  display: flex;
  gap: .5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab {
  padding: .8rem 1rem;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: var(--text);
  border-color: var(--brand-primary);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row .k {
  color: var(--text-muted);
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

/* Reviews */
.review {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.review:last-child {
  border-bottom: 0;
}

.review-head {
  display: flex;
  gap: .8rem;
  align-items: center;
  margin-bottom: .5rem;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--text-muted);
  font-size: .85rem;
}

.review .who {
  font-weight: 600;
  font-size: .92rem;
}

.review .when {
  font-size: .78rem;
  color: var(--text-soft);
}

/* Responsive hardening for all pages */
@media (max-width: 768px) {
  .container {
    padding: 0 .9rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-sm {
    padding: 1.75rem 0;
  }

  .co-details-grid {
    grid-template-columns: 1fr !important;
  }

  .co-actions {
    flex-wrap: wrap;
  }

  .co-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cat-img-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .cat-img-grid {
    grid-template-columns: 1fr;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
  color: inherit;
  text-decoration: none;
  display: block;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.post-cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  position: relative;
  overflow: hidden;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-body {
  padding: 1.25rem;
}

.post-card .meta {
  font-size: .78rem;
  color: var(--text-soft);
  margin-bottom: .35rem;
}

.post-card h3 {
  font-size: 1.15rem;
  margin-bottom: .35rem;
}

.post-card-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .75rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.page-blog-hero {
  background: var(--hero-gradient);
  padding: 5rem 0 3rem;
  text-align: center;
}

.page-blog-hero h1 {
  color: #fff;
  margin-bottom: .75rem;
  font-family: var(--font-display, serif);
}

.page-blog-hero p {
  color: rgba(255, 255, 255, .8);
  margin: 0;
}

.page-blog-hero--detail {
  text-align: left;
}

.page-blog-hero--detail h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.blog-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

.page-blog .pagination-links {
  margin-top: 2.5rem;
}

.page-blog .pagination-links ul.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog .pagination-links .page-item {
  margin: 0;
  list-style: none;
}

.page-blog .pagination-links .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 .65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.page-blog .pagination-links .page-item.active .page-link,
.page-blog .pagination-links .page-item.active a {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.blog-related-section {
  background: var(--surface-2);
}

.blog-related-title {
  margin-bottom: 2rem;
  font-family: var(--font-display, serif);
}

.blog-detail-featured-wrap {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.blog-detail-featured-img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

.blog-detail-main {
  min-width: 0;
}

.author-bio {
  font-size: .9rem;
  margin: 0 0 .75rem;
  line-height: 1.55;
}

.author-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.article {
  max-width: 760px;
  margin: 0 auto;
}

.article h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 1rem 0;
}

.article p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.article h2 {
  margin-top: 2rem;
}

/* Auth */
.auth-wrap {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 1.7rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text-soft);
  font-size: .8rem;
  margin: 1.25rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-row {
  display: grid;
  gap: .5rem;
}

/*
 * NOTE: the previous `.social-btn` rule lived here from the legacy auth-card
 * (an icon-plus-label OAuth button). Auth pages now use `.btn-social`
 * (see front_assets/css/auth.css), so the rule no longer matched the auth
 * UI -- but it *did* still match the footer's `<a class="social-btn">`
 * brand-icon row, overriding the circular brand-color presentation from
 * theme-new.css and turning the icons into rounded squares with a tiny,
 * low-contrast glyph. Rule removed; footer presentation now lives in the
 * `.site-footer-prototype .social-btn` block below.
 */
.form-group {
  margin-bottom: 1rem;
}

/* Dashboard */
.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}

@media (max-width: 900px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-side {
    display: none;
  }
}

.dash-side {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
}

.dash-side h6 {
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--text-soft);
  letter-spacing: .12em;
  margin: 1.2rem .6rem .4rem;
}

.dash-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .65rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: .9rem;
}

.dash-link.active,
.dash-link:hover {
  background: var(--surface-2);
  color: var(--text);
}

.dash-main {
  padding: 2rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.stat-card .lbl {
  color: var(--text-muted);
  font-size: .85rem;
}

.stat-card .val {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-top: .25rem;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.table th,
.table td {
  text-align: left;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

.table th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.table tr:last-child td {
  border-bottom: 0;
}

/* Compare */
.compare-grid {
  display: grid;
  grid-template-columns: 200px repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-grid>div {
  background: var(--surface);
  padding: 1rem;
}

.compare-grid .head {
  background: var(--surface-2);
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-grid h6 {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--text-soft);
  margin: 0 0 .8rem;
}

.footer-grid a {
  display: block;
  padding: .25rem 0;
  color: var(--text-muted);
  font-size: .9rem;
}

.footer-grid a:hover {
  color: var(--text);
}

.newsletter {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
}

.newsletter input {
  flex: 1;
}

.copyright {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  gap: .35rem;
  justify-content: center;
  margin-top: 2rem;
}

.pagination button {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.pagination button.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: var(--text);
  color: var(--bg);
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-size: .9rem;
  transition: all .2s ease;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Utility */
.flex {
  display: flex;
}

.between {
  justify-content: space-between;
}

.center {
  align-items: center;
}

.gap-1 {
  gap: .5rem;
}

.gap-2 {
  gap: 1rem;
}

.mt-1 {
  margin-top: .5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: .5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

/* =========================================================
   TopWeb Feature Parity — Additional Styles
   ========================================================= */

/* ── Company listing card (TopWeb style) ── */
.co-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: box-shadow .15s, transform .15s;
}

.co-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.co-card-logo {
  --co-logo-size: 80px;
  --co-logo-pad: 0.65rem;
  width: var(--co-logo-size);
  height: var(--co-logo-size);
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-2);
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: var(--co-logo-pad);
}

.co-card-logo img,
.co-card-logo .co-card-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.co-card-logo-fallback {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.co-card-body {
  flex: 1;
  min-width: 0;
}

.co-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}

.co-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.co-card-name a {
  color: inherit;
}

.co-card-name a:hover {
  color: var(--brand-primary);
}

.co-card-badges {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.badge-claimed,
.badge-pending,
.badge-unclaimed {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
}

.badge-claimed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-pending {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fde68a;
}

.badge-unclaimed {
  background: var(--surface-2);
  color: var(--text-soft);
  border: 1px solid var(--border);
}

.co-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin: .75rem 0;
}

.co-contact-grid {
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  padding-top: .5rem;
  margin-top: 0;
}

.co-contact-grid .co-detail-item span a {
  color: var(--primary);
  text-decoration: none;
  word-break: break-all;
}

.co-contact-grid .co-detail-item span a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .co-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .co-contact-grid {
    grid-template-columns: 1fr;
  }
}

.co-detail-item strong {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-soft);
  margin-bottom: .2rem;
}

.co-detail-item span {
  font-size: .9rem;
  font-weight: 500;
}

.co-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}

.co-services {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .6rem;
}

.service-chip {
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 500;
  background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
  color: var(--brand-primary);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 25%, transparent);
}

.co-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .75rem;
}

@media (max-width: 600px) {
  .co-card {
    flex-direction: column;
    align-items: stretch;
  }

  .co-card-logo,
  .home-companies-section .co-card-logo,
  .explore-detail-page .company-list-stack .co-card-logo {
    --co-logo-size: min(200px, 50vw);
    --co-logo-pad: 0.75rem;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    border-radius: 12px;
  }
}

/* ── Category image cards (explore) ── */
.cat-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.cat-img-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  transition: transform .15s, box-shadow .15s;
}

.cat-img-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cat-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .1) 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.cat-img-overlay h3 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

/* ── Rating circles ── */
.rating-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.rating-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}

.rating-svg-container {
  position: relative;
  width: 64px;
  height: 64px;
}

.rating-svg-container svg {
  width: 64px;
  height: 64px;
  transform: rotate(-90deg);
}

.bg-circle {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.progress-circle {
  fill: none;
  stroke: var(--brand-primary);
  stroke-width: 8;
  stroke-dasharray: 251.2;
  stroke-linecap: round;
  transition: stroke-dashoffset .6s ease;
}

.rating-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
}

.rating-label {
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Review card (full) ── */
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.reviewer-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .25rem;
}

.review-usr {
  font-size: .82rem;
  color: var(--text-muted);
}

.review-text p {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.review-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

.stat-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .35rem .75rem;
}

.stat-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-soft);
  display: block;
}

.stat-value {
  font-size: .85rem;
  font-weight: 600;
}

.review-status {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
}

.review-status--approved {
  background: #dcfce7;
  color: #15803d;
}

.review-status--on_hold,
.review-status--pending {
  background: #fef9c3;
  color: #a16207;
}

.review-status--rejected {
  background: #fee2e2;
  color: #dc2626;
}

/* ── Rating breakdown bar ── */
.rating-breakdown {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.rb-item {
  min-width: 140px;
  flex: 1;
}

.rb-label {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .35rem;
}

.rb-bar-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.rb-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.rb-bar-fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 3px;
}

.rb-val {
  font-size: .82rem;
  font-weight: 700;
}

/* ── Profile page ── */
.profile-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 6rem 0 4rem;
}

.profile-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .profile-container {
    grid-template-columns: 1fr;
  }
}

.profile-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: sticky;
  top: 90px;
}

.profile-avatar-wrap {
  position: relative;
  width: 96px;
  margin: 0 auto 1rem;
  cursor: pointer;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  display: block;
}

.profile-avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .75rem;
  border: 2px solid var(--surface);
}

.profile-name {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 .2rem;
}

.profile-email {
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 .5rem;
}

.profile-bio {
  font-size: .85rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 1rem;
}

.profile-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-top: 1rem;
}

.profile-nav-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, color .12s;
  text-align: left;
}

.profile-nav-btn:hover,
.profile-nav-btn.active {
  background: var(--surface-2);
  color: var(--text);
}

.profile-nav-logout {
  color: var(--danger) !important;
}

.profile-nav-logout:hover {
  background: color-mix(in srgb, var(--danger) 10%, transparent) !important;
}

.profile-nav-btn .badge {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  font-size: .7rem;
  padding: .1rem .45rem;
}

.profile-main {
  min-width: 0;
}

.profile-tab {
  display: none;
}

.profile-tab.active {
  display: block;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.profile-card-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: .75rem;
  margin-bottom: 1.25rem;
}

.profile-card-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.avatar-upload-wrap {
  position: relative;
}

.avatar-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .7rem;
  gap: .2rem;
  opacity: 0;
  transition: opacity .15s;
}

.avatar-preview:hover .avatar-overlay {
  opacity: 1;
}

.avatar-hint {
  font-size: .78rem;
  color: var(--text-soft);
  margin: 0;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .input {
  padding-right: 2.5rem;
}

.toggle-pw {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-soft);
  padding: 0;
  font-size: .9rem;
}

.pw-strength {
  margin-top: .4rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.pw-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.pw-bar span {
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: width .2s, background .2s;
  width: 0;
}

.pw-strength span:last-child {
  font-size: .75rem;
  font-weight: 600;
  min-width: 40px;
}

.form-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}

.btn-primary-action {
  padding: .65rem 1.5rem;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
}

.btn-primary-action:hover {
  background: var(--brand-primary-600);
}

.btn-secondary-action {
  padding: .65rem 1.25rem;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.field-error {
  color: var(--danger);
  font-size: .78rem;
  margin-top: .25rem;
  display: block;
}

.req {
  color: var(--danger);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: auto;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s ease;
  z-index: 9999;
  max-width: 320px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast--success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.toast--error {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* ── Q&A toggle ── */
.qa-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .75rem;
  padding: .45rem 1rem;
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  color: var(--brand-primary);
  border: 1.5px solid color-mix(in srgb, var(--brand-primary) 25%, transparent);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.qa-toggle-btn:hover {
  background: var(--brand-primary);
  color: #fff;
}

.qa-toggle-btn svg.chevron {
  transition: transform .25s;
}

.qa-toggle-btn.open svg.chevron {
  transform: rotate(180deg);
}

.qa-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .3s ease;
}

.qa-body.open {
  max-height: 2000px;
  opacity: 1;
}

.qa-answer-item {
  background: var(--surface-2);
  border-left: 3px solid var(--brand-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .75rem 1rem;
  margin-bottom: .75rem;
}

.qa-answer-item .q {
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: .35rem;
}

.qa-answer-item .a {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Notifications page ── */
.notif-page {
  padding: 6rem 0 4rem;
  min-height: 100vh;
}

.notif-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.notif-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: .75rem;
  display: block;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
  position: relative;
}

.notif-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.notif-card.unread {
  background: color-mix(in srgb, var(--brand-primary) 5%, var(--surface));
  border-color: color-mix(in srgb, var(--brand-primary) 30%, transparent);
}

.notif-card.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand-primary);
  border-radius: var(--radius) 0 0 var(--radius);
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  gap: 1rem;
}

.notif-new-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  background: var(--brand-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.notif-time {
  font-size: .8rem;
  color: var(--text-soft);
}

.notif-message {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.55;
}

/* ── Suggest company ── */
.suggest-page {
  padding: 6rem 0 4rem;
  min-height: 100vh;
}

.suggest-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Blog detail layout ── */
.blog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    display: none;
  }
}

.blog-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-soft);
  margin: 0 0 1rem;
  font-family: var(--font-sans);
}

.sidebar-post {
  display: flex;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-post:last-child {
  border-bottom: 0;
}

.sidebar-post img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.sidebar-post h4 {
  font-size: .85rem;
  font-weight: 600;
  margin: 0 0 .25rem;
  font-family: var(--font-sans);
  line-height: 1.4;
}

.sidebar-post h4 a:hover {
  color: var(--brand-primary);
}

.sidebar-post-date {
  font-size: .75rem;
  color: var(--text-soft);
}

.blog-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.blog-body h2,
.blog-body h3 {
  margin-top: 2rem;
}

.blog-body img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.blog-body a {
  color: var(--brand-primary);
  text-decoration: underline;
}

.author-box {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-social {
  display: flex;
  gap: .75rem;
  margin-top: .5rem;
  color: var(--brand-primary);
}

.author-social a:hover {
  opacity: .7;
}

.share-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.share-section>h3 {
  margin-bottom: .75rem;
}

.sidebar-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
}

.sidebar-cta h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 .75rem;
  font-family: var(--font-sans);
}

.sidebar-cta p {
  font-size: .85rem;
  margin: 0 0 1.25rem;
  opacity: .9;
  line-height: 1.5;
}

.btn-sidebar-cta {
  background: #fff !important;
  color: var(--brand-primary) !important;
  width: 100%;
  border: none;
  font-weight: 600;
}

/* —— 404 / not found (prototype 404.html) —— */
.notfound-page {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem;
  text-align: center;
}

.notfound-num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .5rem;
}

.notfound-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 2rem;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
  max-width: 600px;
  margin: 2rem auto 0;
}

.quick-link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, transform .15s;
}

.quick-link-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.quick-link-card .icon {
  font-size: 1.5rem;
  margin-bottom: .4rem;
}

.quick-link-card .lbl {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}

/* —— Sitemap grid (prototype sitemap.html) —— */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.sitemap-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.sitemap-group h3 {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-soft);
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.sitemap-group a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 0;
  font-size: .9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.sitemap-group a:last-child {
  border-bottom: 0;
}

.sitemap-group a:hover {
  color: var(--brand-primary);
}

.sitemap-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
  flex-shrink: 0;
}

.page-sitemap-hero {
  background: var(--hero-gradient);
  padding: 3rem 0;
}

.page-sitemap-hero h1 {
  color: #fff;
  margin: 0 0 .35rem;
}

.page-sitemap-hero p {
  color: rgba(255, 255, 255, .75);
  margin: 0;
}

.share-btns {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.share-btn-fb {
  background: #1877f2;
}

.share-btn-tw {
  background: #1da1f2;
}

.share-btn-li {
  background: #0077b5;
}

/* ── Get Listed modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-soft);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

/* ── Explore detail hero ── */
.explore-hero {
  padding: 5rem 0 2.5rem;
  background: var(--hero-gradient);
}

.explore-hero h1 {
  color: #fff;
}

.explore-hero p {
  color: rgba(255, 255, 255, .75);
  margin: 0;
}

.explore-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0;
  border: 1px solid var(--border);
}

.explore-hero-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* ── Trending apps swiper ── */
.trending-section {
  padding: 4rem 0;
  background: var(--surface);
}

.trending-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
}

.trending-card .bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trending-card-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .1) 60%);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.trending-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  margin-bottom: .6rem;
}

.trending-card-content h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 .35rem;
}

.trending-card-content p {
  color: rgba(255, 255, 255, .8);
  font-size: .82rem;
  margin: 0 0 .75rem;
}

.app-store-btns {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.app-store-btns img {
  height: 28px;
  width: auto;
  border-radius: 4px;
}

/* ── Swiper overrides ── */
.swiper {
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  flex-shrink: 0;
}

/* ── Company profile (enhanced) ── */
.company-profile-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.company-profile-top {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.company-profile-logo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
  display: grid;
  place-items: center;
}

.company-profile-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-profile-info {
  flex: 1;
  min-width: 0;
}

.company-profile-info h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 .5rem;
}

.company-meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
}

.meta-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  color: var(--text-muted);
}

.meta-link:hover {
  color: var(--brand-primary);
}

.company-profile-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ── Write-for-us page ── */
.wfu-page {
  padding: 6rem 0 4rem;
}

.wfu-hero {
  background: var(--hero-gradient);
  padding: 4rem 0;
  text-align: center;
  color: var(--hero-text, var(--text));
}

.wfu-hero h1 {
  color: var(--hero-text, var(--text));
}

.wfu-hero p {
  color: var(--hero-text-muted, var(--text-muted));
  margin: 0;
}

.wfu-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}

.wfu-topic-chip {
  padding: .75rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--brand-primary);
  font-size: .9rem;
  font-weight: 500;
}

.wfu-email-card {
  margin-top: 3rem;
  text-align: center;
  padding: 2rem;
  background: var(--surface-2);
  border-radius: var(--radius);
}

/* ── Alert boxes ── */
.alert {
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.alert-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.alert-info {
  background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 25%, transparent);
  color: var(--brand-primary);
}

/* ── Responsive nav actions show on mobile ── */
@media (max-width: 900px) {
  .nav-actions .btn-outline {
    display: inline-flex;
  }
}

/* ── Listing pages visual parity ── */
.home-hero {
  background: var(--hero-gradient);
  padding: 5rem 0 4rem;
}

.home-hero-inner {
  text-align: center;
}

.home-hero-title {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.home-hero-subtitle {
  color: rgba(255, 255, 255, .8);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.home-hero-cta,
.home-get-listed-cta {
  font-size: 1rem;
  padding: .85rem 2rem;
}

.home-categories-section {
  background: var(--surface-2);
}

.home-get-listed {
  background: var(--surface);
}

.home-section-title {
  margin-bottom: 2rem;
}

.home-get-listed-text {
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.page-new-ui .listing-hero,
.explore-hero-banner {
  background: var(--hero-gradient);
  padding: 4.5rem 0 3rem;
}

.explore-hero-banner .listing-hero-inner {
  text-align: center;
  max-width: 760px;
}

.listing-hero-inner {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.explore-detail-page .hero-section.small-hero .container {
  text-align: center;
}

.explore-detail-page .content-section .section-title {
  text-align: center;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.explore-detail-page .company-list-stack .co-card-header h3.co-card-name {
  margin: 0;
}

.page-new-ui .listing-hero h1 {
  color: #fff;
  margin-bottom: .7rem;
}

.page-new-ui .listing-hero p {
  color: rgba(255, 255, 255, .82);
  margin: 0;
  font-size: 1.02rem;
}

.categories-grid .category-card,
.categories-grid .cat-img-card {
  text-decoration: none;
}

.owl-carousel .category-card.cat-img-card {
  aspect-ratio: unset;
  min-height: 200px;
}

.category-overlay .category-title {
  color: #fff;
  margin: 0;
  line-height: 1.35;
}

.categories-section .section-head .count {
  font-size: .88rem;
  color: var(--text-muted);
}

.explore-detail-page .company-list-stack .co-services {
  margin-top: 1rem;
}

/* Match homepage: company list uses standard .container width (--container / 1200px) */
.explore-detail-page .content-section .container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.explore-detail-page .company-list-stack {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.explore-detail-page .explore-header-image {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.explore-detail-page .explore-header-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 860px) {
  .company-list-stack .co-details-grid,
  .explore-detail-page .company-list-stack .co-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explore-detail-page .explore-header-image img {
    max-height: 280px;
  }
}

/* ── Header/footer (prototype-aligned, CI includes) ── */
.site-header-prototype .hdr-top-row.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .85rem 0;
}

.site-header-prototype .nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-header-prototype .nav-links>a:not(.btn) {
  font-size: .94rem;
  font-weight: 500;
  color: var(--text-muted);
}

.site-header-prototype .nav-links>a:not(.btn):hover,
.site-header-prototype .nav-links>a:not(.btn).active {
  color: var(--text);
}

.site-header-prototype .nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.hdr-show-mobile-inline-flex {
  display: none !important;
}

.mb-2 {
  margin-bottom: .5rem;
}

@media (max-width: 900px) {
  .hdr-hide-mobile {
    display: none !important;
  }

  .hdr-show-mobile-inline-flex {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

.site-footer-prototype .footer-grid-prototype {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}

.site-footer-prototype .footer-grid-prototype h6 {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--text-soft);
  margin: 0 0 .8rem;
  font-family: var(--font-sans);
}

.site-footer-prototype .footer-grid-prototype a {
  display: block;
  padding: .25rem 0;
  color: var(--text-muted);
  font-size: .9rem;
}

.site-footer-prototype .footer-grid-prototype a:hover {
  color: var(--text);
}

/* Footer logo — do not reuse .header-logo (transform scale breaks layout here) */
.site-footer-prototype .footer-brand-mark {
  display: block;
  margin: 0 0 1.25rem;
  line-height: 0;
  max-width: 100%;
}

.site-footer-prototype .footer-logo {
  display: block;
  width: auto;
  max-width: min(220px, 100%);
  height: auto;
  object-fit: contain;
  object-position: left center;
  transform: none;
  margin: 0;
}

.site-footer-prototype .footer-lead {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 42rem;
  margin: 0 0 1rem;
}

.site-footer-prototype .footer-social-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

/*
 * Footer brand-icon buttons (FontAwesome <i class="fab fa-*">).
 *
 * IMPORTANT: the selector below uses three classes
 * (`.site-footer-prototype .footer-social-row .social-btn`) so its
 * specificity (0,3,0) BEATS the generic footer-link rule
 * `.site-footer-prototype .footer-grid-prototype a` (0,2,1), which forces
 * `display: block`, `padding: .25rem 0`, `color: var(--text-muted)` and
 * `font-size: .9rem` onto every `<a>` inside the footer grid. Without the
 * extra specificity the link inherits `display: block` and `align-items`
 * never gets a chance to center the glyph — the icon ends up flush with
 * the top-left of the box, "going out of the border" as observed.
 */
.site-footer-prototype .footer-social-row .social-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--hover-bg, #eff6ff);
  color: var(--primary-color, #2563eb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.site-footer-prototype .footer-social-row .social-btn:hover,
.site-footer-prototype .footer-social-row .social-btn:focus-visible {
  background: var(--primary-color, #2563eb);
  color: #fff;
  transform: translateY(-2px);
}

.site-footer-prototype .footer-social-row .social-btn>i,
.site-footer-prototype .footer-social-row .social-btn>.fab {
  display: block;
  font-size: 16px;
  line-height: 1;
  margin: 0;
}

/* Share rows + author social — same circular icon buttons as footer */
.social-links.share-social-row,
.author-social.share-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.social-links.share-social-row .social-btn,
.author-social.share-social-row .social-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--hover-bg, #eff6ff);
  color: var(--primary-color, #2563eb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.social-links.share-social-row .social-btn:hover,
.social-links.share-social-row .social-btn:focus-visible,
.author-social.share-social-row .social-btn:hover,
.author-social.share-social-row .social-btn:focus-visible {
  background: var(--primary-color, #2563eb);
  color: #fff;
  transform: translateY(-2px);
  opacity: 1;
}

.social-links.share-social-row .social-btn > i,
.social-links.share-social-row .social-btn > .fab,
.social-links.share-social-row .social-btn > .fas,
.author-social.share-social-row .social-btn > i,
.author-social.share-social-row .social-btn > .fab,
.author-social.share-social-row .social-btn > .fas {
  display: block;
  font-size: 16px;
  line-height: 1;
  margin: 0;
}

.firm-profile-page .firm-share-row {
  margin-top: 0;
}

.share-section .share-social-row {
  margin-top: 0.25rem;
}

.site-footer-prototype .footer-copyright-row {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-soft);
  font-size: .85rem;
}

.site-footer-prototype .footer-sitemap-link {
  color: var(--text-soft);
}

.site-footer-prototype .footer-sitemap-link:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .site-footer-prototype .footer-grid-prototype {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer-prototype .footer-col-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .site-footer-prototype .footer-logo {
    max-width: min(210px, 100%);
  }
}

@media (max-width: 520px) {
  .site-footer-prototype .footer-grid-prototype {
    grid-template-columns: 1fr;
  }

  .site-footer-prototype .footer-brand-mark {
    margin-bottom: 1rem;
  }

  .site-footer-prototype .footer-logo {
    max-width: min(200px, 100%);
  }

  .site-footer-prototype .footer-lead {
    font-size: .88rem;
  }
}

@media (max-width: 375px) {
  .site-footer-prototype .footer-logo {
    max-width: min(180px, 100%);
  }
}

/* Keep existing modal behavior, modernize visual shell only */
.modal-box .modal-title {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.modal-thanks {
  text-align: center;
}

.thanks-image {
  max-width: 200px;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.thanks-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.thanks-copy {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── Vendor dashboard tabs (prototype-aligned pills) ── */
.vendor-tabs-wrapper .vendor-tabs {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin: 0;
  padding: .5rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.vendor-tab-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.vendor-tab-link:hover {
  background: var(--surface-2);
  color: var(--text);
}

.vendor-tab-link.active {
  background: var(--brand-primary);
  color: #fff;
  border: 1px solid transparent;
}

/* ── Claim company (prototype claim.html) ── */
.claim-page {
  padding: 3rem 0 5rem;
  min-height: 80vh;
  background: var(--surface-2);
}

.claim-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1rem;
}

.claim-card-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.claim-card-shell h1 {
  font-size: 1.45rem;
  margin-bottom: .35rem;
  font-family: var(--font-display, serif);
}

.claim-card-shell .sub {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.claim-notice {
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 25%, transparent);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}

.claim-notice-kicker {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-soft);
}

.claim-notice-title {
  font-weight: 700;
  color: var(--brand-primary);
  margin-top: .15rem;
}

.claim-section-title {
  font-size: .95rem;
  font-weight: 700;
  margin: 1.25rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.claim-form-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.claim-footer-note {
  font-size: .8rem;
  color: var(--text-soft);
  margin-top: 1.25rem;
  text-align: center;
}

.claim-thankyou {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}

.claim-thankyou svg {
  margin-bottom: 1rem;
  color: var(--brand-primary);
}

/* ── Write a review landing (prototype write-review.html) ── */
.review-hero {
  background: var(--hero-gradient);
  padding: 4rem 0 3rem;
  text-align: center;
  color: var(--hero-text, var(--text));
}

.review-hero h1 {
  color: var(--hero-text, var(--text));
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: .5rem;
}

.review-hero p {
  color: var(--hero-text-muted, var(--text-muted));
  font-size: 1.05rem;
  margin: 0;
}

.review-search-wrap {
  max-width: 600px;
  margin: -2.5rem auto 0;
  padding: 0 1.25rem 4rem;
}

.review-search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.review-auth-notice {
  background: color-mix(in srgb, var(--warning, #f59e0b) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning, #f59e0b) 35%, transparent);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.review-auth-notice a {
  color: var(--brand-primary);
  font-weight: 600;
}

/* Review submit / edit — company strip (light hero, same as explore / listing) */
.review-company-hero {
  background: var(--hero-gradient);
  color: var(--hero-text, var(--text));
  padding-top: calc(var(--header-sticky-offset) + env(safe-area-inset-top, 0px));
  padding-bottom: 1rem;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.rch-inner,
.review-company-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem 1.25rem;
}

.review-form-page .rch-logo,
.review-company-hero .rch-logo {
  width: 88px;
  height: 88px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.review-company-hero .rch-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.review-company-hero .rch-info {
  flex: 1;
  min-width: 0;
  color: inherit;
}

.review-company-hero .rch-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.review-company-hero .rch-company-name {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.review-company-hero .rch-review-title {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
  min-height: 1.3em;
}

.review-company-hero .rch-stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-company-hero .rch-stars i {
  font-size: 1.1rem;
  color: #d1d5db;
  transition: color 0.15s;
}

.review-company-hero .rch-stars i.active {
  color: var(--warning);
}

.review-company-hero .rch-rating-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-weight: 600;
}

@media (max-width: 560px) {

  .rch-inner,
  .review-company-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .review-form-page .rch-logo,
  .review-company-hero .rch-logo {
    width: 72px;
    height: 72px;
  }

  .review-company-hero .rch-company-name {
    white-space: normal;
  }
}

@media (min-width: 561px) {
  .review-company-hero .rch-company-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.review-form-page {
  padding: 2.5rem 0 5rem;
  background: var(--bg);
  min-height: 40vh;
}

.review-form-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (max-width: 640px) {
  .review-form-page .rating-row {
    flex-direction: column;
    gap: 1rem;
  }

  .review-form-page .rating-item {
    min-width: 0;
    width: 100%;
  }

  .review-form-page .star-rating {
    float: none;
  }
}

.review-flow .form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.review-flow .form-card h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.review-flow .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .review-flow .form-row {
    grid-template-columns: 1fr;
  }
}

.review-flow .form-group {
  margin-bottom: 1rem;
}

.review-flow .form-group label {
  display: block;
  font-weight: 600;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .35rem;
}

.review-flow .form-group label span {
  color: var(--danger);
}

.review-flow .form-control {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .15s;
  box-sizing: border-box;
  background: var(--surface);
  color: var(--text);
}

.review-flow .form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.review-flow select.form-control {
  cursor: pointer;
}

.review-flow textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.review-flow .rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: .5rem;
}

.review-flow .rating-item {
  flex: 1;
  min-width: 130px;
}

.review-flow .rating-item label {
  display: block;
  font-weight: 600;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.review-flow .star-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 3px;
  float: left;
}

.review-flow .star-rating input {
  display: none;
}

.review-flow .star-rating label {
  font-size: 1.6rem;
  color: var(--border);
  cursor: pointer;
  transition: color .12s;
}

.review-flow .star-rating input:checked~label,
.review-flow .star-rating label:hover,
.review-flow .star-rating label:hover~label {
  color: var(--warning);
}

.review-flow .btn-submit {
  padding: .85rem 2rem;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}

.review-flow .btn-submit:hover {
  background: var(--brand-primary-600);
}

.review-flow .alert-error {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
  color: var(--danger);
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: .88rem;
}

.review-flow .field-error {
  color: var(--danger);
  font-size: .78rem;
  margin-top: .25rem;
  display: block;
}

.review-flow .qa-section {
  margin-top: 1.25rem;
}

.review-flow .qa-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.review-flow .qa-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-flow .qa-question {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text);
  margin-bottom: .5rem;
  line-height: 1.5;
}

.review-flow .qa-question-number {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: .72rem;
  margin-right: .5rem;
}

.review-flow .conditional-comment-box {
  display: none;
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.review-flow .conditional-comment-box.show {
  display: block;
}

.review-flow .conditional-comment-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .5rem;
}

.review-flow .conditional-comment-icon {
  width: 28px;
  height: 28px;
  background: var(--warning);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}

.review-flow .conditional-comment-title {
  font-weight: 700;
  font-size: .88rem;
  color: var(--text);
}

.review-flow .conditional-comment-message {
  font-size: .84rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
  line-height: 1.5;
}

.review-flow .edit-notice {
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .88rem;
  color: var(--text-muted);
}

/* Review thank-you (review-success.html) */
.review-success-page {
  padding: 3rem 0 5rem;
  background: var(--bg);
  min-height: 60vh;
}

.review-success-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  text-align: center;
}

.review-success-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.review-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
}

.review-success-card h1 {
  font-size: 1.35rem;
  margin-bottom: .5rem;
  font-family: var(--font-display);
}

.review-success-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: .95rem;
}

.reviews-section-page {
  padding: 2.5rem 0 5rem;
  background: var(--bg);
}

.review-detail-card.detail-section h2.review-display-title {
  display: block;
  margin: 0 0 0.65rem;
  padding: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  gap: 0;
  align-items: unset;
}

.review-detail-card.detail-section h2.review-display-title::before {
  content: none;
  display: none;
}

.review-display-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.review-display-head-main {
  flex: 1 1 220px;
  min-width: 0;
}

.review-display-head-actions {
  flex: 0 0 auto;
  align-self: flex-start;
}

.review-summary-stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
}

.review-summary-stars-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  color: #f59e0b;
  font-size: 0.95rem;
}

.review-summary-score {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.review-summary-count {
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .review-display-head-actions {
    width: 100%;
  }

  .review-display-head-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.review-rating-breakdown {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.5rem;
  margin-bottom: 2rem;
  margin-top: 0.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.25rem;
}

.review-rating-breakdown-item {
  flex: 1 1 140px;
  min-width: min(100%, 140px);
}

.review-rating-breakdown-label {
  font-size: .78rem;
  color: var(--text-soft);
  margin-bottom: .4rem;
  display: block;
  padding-top: 0.1rem;
}

.review-rating-breakdown-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.review-rating-bar-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.review-rating-bar-fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 3px;
}

@media (max-width: 900px) {
  .review-rating-breakdown {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .review-rating-breakdown {
    flex-direction: column;
    padding: 1.15rem 1rem 1.35rem;
    gap: 0.85rem;
  }

  .review-rating-breakdown-item {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
}

/* Review Q&A (company profile / reviews list — matches My Reviews behavior) */
.reviews-section-page .review-qa-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.reviews-section-page .review-qa-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  color: var(--brand-primary);
  border: 1.5px solid color-mix(in srgb, var(--brand-primary) 25%, transparent);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  font-family: inherit;
}

.reviews-section-page .review-qa-toggle-btn:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.reviews-section-page .review-qa-toggle-btn svg {
  flex-shrink: 0;
  transition: transform 0.25s;
}

.reviews-section-page .review-qa-toggle-btn.open svg.chevron {
  transform: rotate(180deg);
}

.reviews-section-page .review-qa-toggle-btn--min {
  margin-top: 14px;
}

.reviews-section-page .review-qa-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.reviews-section-page .review-qa-body.open {
  max-height: 2000px;
  opacity: 1;
}

.reviews-section-page .review-qa-inner {
  padding-top: 14px;
}

.reviews-section-page .review-qa-heading {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reviews-section-page .review-qa-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reviews-section-page .review-qa-item {
  background: var(--surface-2);
  border-left: 3px solid var(--brand-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
}

.reviews-section-page .review-qa-q {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  font-size: 0.875rem;
}

.reviews-section-page .review-qa-q .fa-circle-question {
  color: var(--brand-primary);
  margin-right: 6px;
}

.reviews-section-page .review-qa-a {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.875rem;
  padding-left: 22px;
}

@media (max-width: 520px) {
  .reviews-section-page .review-qa-a {
    padding-left: 0;
  }
}

.review-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.review-modal-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  max-width: 440px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow);
}

.review-modal-dialog--left {
  text-align: left;
}

.review-modal-close {
  position: absolute;
  top: .75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--text-soft);
}

.review-modal-copy-row {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}

.review-modal-copy-row .input {
  flex: 1;
  font-size: .85rem;
}

.review-modal-actions-row {
  display: flex;
  gap: .5rem;
}

.review-modal-actions-row .btn {
  flex: 1;
}

.admin-login-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg);
}

.admin-login-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-sm);
}

.admin-login-shell h1 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: var(--font-display);
}

.admin-login-shell .form-group {
  margin-bottom: 1rem;
}

.admin-login-shell label {
  display: block;
  margin-bottom: .35rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.admin-login-shell input[type="text"],
.admin-login-shell input[type="password"] {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}

.admin-login-shell input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.admin-login-shell .btn-login {
  width: 100%;
  margin-top: .25rem;
}

.admin-login-shell .error {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
  color: var(--danger);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: .88rem;
}

/* Listing rating snippet (blocks/rating_display.php) */
.rating-snippet {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--text-muted);
}

.rating-snippet-stars {
  color: #f59e0b;
  font-size: .95rem;
  line-height: 1;
}

.rating-snippet-val {
  font-weight: 700;
  color: var(--text);
}

.rating-snippet-out {
  font-size: .78rem;
  color: var(--text-soft);
}

.rating-snippet-meta {
  font-size: .78rem;
  color: var(--text-soft);
  font-weight: 500;
  text-decoration: underline;
  margin-left: .15rem;
}

.rating-snippet-count {
  font-size: .78rem;
  color: var(--text-soft);
  font-weight: 500;
  margin-left: .15rem;
}

.rating-snippet--empty {
  font-size: .82rem;
  color: var(--text-soft);
}

/* =========================================================
   Vendor dashboard shell (vendor-profile.html / dashboard-company.html)
   Scope form cards as .fc inside .vendor-dashboard-shell only.
   ========================================================= */
.vendor-dashboard-shell {
  padding: 2rem 0 4rem;
  min-height: calc(100vh - 220px);
  background: var(--bg);
}

.vendor-dashboard-shell .fc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.vendor-dashboard-shell .fc-title {
  font-size: .95rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin: 0 0 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.vendor-dashboard-shell .fc-title i {
  color: var(--brand-primary);
  font-size: .95rem;
}

.vendor-dashboard-shell .fc-title-row {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.vendor-dashboard-shell .fg {
  margin-bottom: 1rem;
}

.vendor-dashboard-shell .fg label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}

.vendor-dashboard-shell .fg label .req {
  color: var(--danger);
}

.vendor-dashboard-shell .fg .err {
  font-size: .75rem;
  color: var(--danger);
  margin-top: .25rem;
  display: block;
}

.vendor-dashboard-shell .form-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.vendor-dashboard-shell .form-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {

  .vendor-dashboard-shell .form-2,
  .vendor-dashboard-shell .form-3 {
    grid-template-columns: 1fr;
  }
}

.vendor-dashboard-shell .char-hint {
  font-size: .72rem;
  color: var(--text-soft);
  margin-top: .25rem;
}

.vendor-dashboard-shell .social-input {
  position: relative;
}

.vendor-dashboard-shell .social-input .input {
  padding-left: 2.25rem;
}

.vendor-dashboard-shell .social-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .85rem;
  pointer-events: none;
  color: var(--text-muted);
}

.vendor-dashboard-shell .save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  margin-top: .5rem;
  border-top: 1px solid var(--border);
}

.vendor-dashboard-shell .banner-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 1.25rem;
}

.vendor-dashboard-shell .banner-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: filter .2s;
}

.vendor-dashboard-shell .banner-wrap:hover img {
  filter: brightness(.75);
}

.vendor-dashboard-shell .banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  background: rgba(0, 0, 0, .35);
}

.vendor-dashboard-shell .banner-wrap:hover .banner-overlay {
  opacity: 1;
}

.vendor-dashboard-shell .banner-overlay span {
  background: rgba(255, 255, 255, .92);
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
  padding: .45rem 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.vendor-dashboard-shell .logo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color .15s;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.vendor-dashboard-shell .logo-row-info {
  flex: 1 1 12rem;
  min-width: 0;
}

.vendor-dashboard-shell .logo-row:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--border));
}

.vendor-dashboard-shell .logo-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  flex-shrink: 0;
  transition: border-color .15s;
}

.vendor-dashboard-shell .logo-row:hover .logo-circle {
  border-color: var(--brand-primary);
}

.vendor-dashboard-shell .logo-row-info h4 {
  margin: 0 0 .15rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-sans);
}

.vendor-dashboard-shell .logo-row-info p {
  margin: 0;
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.vd-alert {
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: .88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.vd-alert-success {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--success) 35%, transparent);
  color: var(--success);
}

.vd-alert-danger {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
  color: var(--danger);
}

.vendor-dashboard-shell .vd-tips-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
}

.vendor-dashboard-shell .vd-tips-head {
  padding: .85rem 1.15rem;
  background: linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 55%, #000));
  color: #fff;
}

.vendor-dashboard-shell .vd-tips-head h4 {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: #fff;
}

.vendor-dashboard-shell .vd-tips-body {
  padding: 1rem 1.15rem;
}

.vendor-dashboard-shell .vd-tip-item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.vendor-dashboard-shell .vd-tip-item:last-child {
  border-bottom: 0;
}

.vendor-dashboard-shell .vd-tip-item i {
  color: var(--brand-primary);
  margin-top: .15rem;
  flex-shrink: 0;
}

.vendor-dashboard-shell .loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
}

@media (max-width: 640px) {
  .vendor-dashboard-shell .loc-grid {
    grid-template-columns: 1fr;
  }
}

.vendor-dashboard-shell .loc-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .875rem 1rem;
  background: var(--surface-2);
  transition: border-color .15s;
}

.vendor-dashboard-shell .loc-card:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--border));
}

.vendor-dashboard-shell .loc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .5rem;
}

.vendor-dashboard-shell .loc-card-addr {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
}

.vendor-dashboard-shell .loc-card-meta {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

.vendor-dashboard-shell .loc-card-meta i {
  margin-right: .35rem;
  color: var(--brand-primary);
}

.vendor-dashboard-shell .loc-menu-wrap {
  position: relative;
}

.vendor-dashboard-shell .loc-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
}

.vendor-dashboard-shell .loc-menu-btn:hover {
  background: var(--surface);
  color: var(--text);
}

.vendor-dashboard-shell .loc-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 120px;
  z-index: 20;
}

.vendor-dashboard-shell .loc-dropdown.open {
  display: block;
}

.vendor-dashboard-shell .loc-dropdown a {
  display: block;
  padding: .5rem .85rem;
  font-size: .82rem;
  color: var(--text);
  text-decoration: none;
}

.vendor-dashboard-shell .loc-dropdown a:hover {
  background: var(--surface-2);
}

.vendor-dashboard-shell .loc-dropdown a.danger {
  color: var(--danger);
}

.vendor-dashboard-shell .loc-form-wrap {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.vendor-dashboard-shell .loc-form-wrap.show {
  display: block;
}

.vendor-dashboard-shell .loc-form-title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.vendor-dashboard-shell .loc-form-title i {
  color: var(--brand-primary);
}

.vendor-dashboard-shell .loc-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-soft);
}

.vendor-dashboard-shell .loc-empty i {
  font-size: 2rem;
  margin-bottom: .5rem;
  display: block;
  color: var(--border);
}

.vendor-dashboard-shell .ms-container .ms-selectable,
.vendor-dashboard-shell .ms-container .ms-selection {
  border-radius: var(--radius-sm);
  border-color: var(--border);
}

.vendor-dashboard-shell .logo-row-info p i {
  margin-right: .35rem;
  color: var(--brand-primary);
}

.vendor-dashboard-shell .fc.fc-narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.vendor-dashboard-shell .fc.fc-medium {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Vendor portfolio (manage-portfolio.php) */
.vendor-dashboard-shell .portfolio-add-tile {
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  border: 2px dashed color-mix(in srgb, var(--brand-primary) 28%, var(--border));
  border-radius: var(--radius-sm);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  margin-bottom: 1.5rem;
}

.vendor-dashboard-shell .portfolio-add-tile:hover {
  border-color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 14%, transparent);
}

.vendor-dashboard-shell .portfolio-add-tile i {
  font-size: 2.5rem;
  color: var(--brand-primary);
  margin-bottom: .75rem;
  display: block;
  opacity: .65;
}

.vendor-dashboard-shell .portfolio-add-tile h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
  font-family: var(--font-sans);
}

.vendor-dashboard-shell .portfolio-add-tile p {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0;
}

.vendor-dashboard-shell .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.vendor-dashboard-shell .portfolio-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .15s, box-shadow .15s;
}

.vendor-dashboard-shell .portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.vendor-dashboard-shell .portfolio-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
}

.vendor-dashboard-shell .portfolio-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: color-mix(in srgb, var(--brand-primary) 10%, var(--surface-2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.vendor-dashboard-shell .portfolio-card-img-placeholder i {
  font-size: 2.5rem;
  color: var(--brand-primary);
  opacity: .45;
}

.vendor-dashboard-shell .portfolio-card-body {
  padding: 1.1rem;
}

.vendor-dashboard-shell .portfolio-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .5rem;
}

.vendor-dashboard-shell .portfolio-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  font-family: var(--font-sans);
}

.vendor-dashboard-shell .portfolio-card-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: .75rem;
}

.vendor-dashboard-shell .portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.vendor-dashboard-shell .portfolio-tag {
  background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
  color: var(--brand-primary);
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.vendor-dashboard-shell .status-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 999px;
}

.vendor-dashboard-shell .status-active {
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
}

.vendor-dashboard-shell .status-inactive {
  background: var(--surface-2);
  color: var(--text-muted);
}

.vendor-dashboard-shell .card-menu {
  position: relative;
}

.vendor-dashboard-shell .card-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 1.05rem;
  transition: background .15s;
}

.vendor-dashboard-shell .card-menu-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.vendor-dashboard-shell .card-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 130px;
  z-index: 10;
}

.vendor-dashboard-shell .card-dropdown.open {
  display: block;
}

.vendor-dashboard-shell .card-dropdown a {
  display: block;
  padding: .65rem 1rem;
  font-size: .875rem;
  color: var(--text);
  text-decoration: none;
  transition: background .15s;
}

.vendor-dashboard-shell .card-dropdown a:hover {
  background: var(--surface-2);
}

.vendor-dashboard-shell .card-dropdown a.text-danger {
  color: var(--danger);
}

.vendor-dashboard-shell .offcanvas-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 1040;
}

.vendor-dashboard-shell .offcanvas-backdrop.show {
  display: block;
}

.vendor-dashboard-shell .offcanvas-panel {
  position: fixed;
  top: 0;
  right: -480px;
  width: 460px;
  max-width: 100vw;
  height: 100vh;
  background: var(--surface);
  z-index: 1050;
  box-shadow: -4px 0 24px rgba(0, 0, 0, .12);
  transition: right .3s ease;
  display: flex;
  flex-direction: column;
}

.vendor-dashboard-shell .offcanvas-panel.open {
  right: 0;
}

.vendor-dashboard-shell .offcanvas-head {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.vendor-dashboard-shell .offcanvas-head h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .25rem;
  font-family: var(--font-sans);
}

.vendor-dashboard-shell .offcanvas-head p {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0;
}

.vendor-dashboard-shell .offcanvas-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.vendor-dashboard-shell .offcanvas-close:hover {
  color: var(--text);
}

.vendor-dashboard-shell .offcanvas-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
}

.vendor-dashboard-shell .offcanvas-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border);
}

.vendor-dashboard-shell .img-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: var(--surface-2);
  margin-bottom: 1.25rem;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vendor-dashboard-shell .img-upload-area:hover {
  border-color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 6%, var(--surface));
}

.vendor-dashboard-shell .img-upload-area.has-image {
  padding: 0;
  border: none;
}

.vendor-dashboard-shell .img-upload-area img {
  width: 100%;
  border-radius: var(--radius-sm);
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.vendor-dashboard-shell .img-upload-area i {
  font-size: 2rem;
  color: var(--text-soft);
  margin-bottom: .5rem;
}

.vendor-dashboard-shell .img-upload-area span {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 600;
}

.vendor-dashboard-shell .oc-form-group {
  margin-bottom: 1.1rem;
}

.vendor-dashboard-shell .oc-form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .35rem;
}

.vendor-dashboard-shell .oc-form-group input,
.vendor-dashboard-shell .oc-form-group textarea,
.vendor-dashboard-shell .oc-form-group select {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .15s;
  box-sizing: border-box;
  background: var(--surface);
  color: var(--text);
}

.vendor-dashboard-shell .oc-form-group input:focus,
.vendor-dashboard-shell .oc-form-group textarea:focus,
.vendor-dashboard-shell .oc-form-group select:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.vendor-dashboard-shell .oc-form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.vendor-dashboard-shell .empty-portfolio {
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.vendor-dashboard-shell .empty-portfolio i {
  font-size: 3.5rem;
  color: var(--border);
  margin-bottom: 1rem;
  display: block;
}

.vendor-dashboard-shell .empty-portfolio h4 {
  color: var(--text-muted);
  margin-bottom: .5rem;
  font-family: var(--font-sans);
}

.vendor-dashboard-shell .empty-portfolio p {
  color: var(--text-soft);
  margin: 0;
}

/* Vendor photos (manage-photos.php) */
.vendor-dashboard-shell .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}

.vendor-dashboard-shell .photo-upload-tile {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--surface-2);
}

.vendor-dashboard-shell .photo-upload-tile:hover {
  border-color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface));
}

.vendor-dashboard-shell .photo-upload-tile i {
  font-size: 2rem;
  color: var(--text-soft);
  margin-bottom: .5rem;
  transition: color .15s;
}

.vendor-dashboard-shell .photo-upload-tile:hover i {
  color: var(--brand-primary);
}

.vendor-dashboard-shell .photo-upload-tile span {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.vendor-dashboard-shell .photo-tile {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.vendor-dashboard-shell .photo-tile img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}

.vendor-dashboard-shell .photo-tile:hover img {
  transform: scale(1.03);
}

.vendor-dashboard-shell .photo-tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  opacity: 0;
  transition: opacity .2s;
}

.vendor-dashboard-shell .photo-tile:hover .photo-tile-overlay {
  opacity: 1;
}

.vendor-dashboard-shell .photo-tile-overlay a {
  color: #fff;
  font-size: 1.3rem;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  text-decoration: none;
}

.vendor-dashboard-shell .photo-tile-overlay a:hover {
  background: rgba(255, 255, 255, .35);
}

.vendor-dashboard-shell .photo-tile-overlay button {
  color: #fff;
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  background: color-mix(in srgb, var(--danger) 75%, transparent);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.vendor-dashboard-shell .photo-tile-overlay button:hover {
  background: var(--danger);
}

.vendor-dashboard-shell .empty-photos {
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.vendor-dashboard-shell .empty-photos i {
  font-size: 3.5rem;
  color: var(--border);
  margin-bottom: 1rem;
  display: block;
}

.vendor-dashboard-shell .empty-photos h4 {
  color: var(--text-muted);
  margin-bottom: .5rem;
  font-family: var(--font-sans);
}

.vendor-dashboard-shell .empty-photos p {
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.vendor-dashboard-shell .upload-progress {
  display: none;
  margin-top: 1rem;
}

.vendor-dashboard-shell .upload-progress .progress-bar-wrap {
  background: var(--border);
  border-radius: var(--radius-sm);
  height: 6px;
  overflow: hidden;
}

.vendor-dashboard-shell .upload-progress .progress-bar-fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: var(--radius-sm);
  transition: width .3s;
  width: 0;
}

/* Vendor FAQ (manage-faq.php) */
.vendor-dashboard-shell .faq-form-wrap {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.vendor-dashboard-shell .faq-form-wrap.show {
  display: block;
}

.vendor-dashboard-shell .faq-form-group {
  margin-bottom: 1rem;
}

.vendor-dashboard-shell .faq-form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .35rem;
}

.vendor-dashboard-shell .faq-form-group .req {
  color: var(--danger);
}

.vendor-dashboard-shell .faq-form-group input,
.vendor-dashboard-shell .faq-form-group textarea {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  box-sizing: border-box;
  background: var(--surface);
  color: var(--text);
}

.vendor-dashboard-shell .faq-form-group input:focus,
.vendor-dashboard-shell .faq-form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.vendor-dashboard-shell .faq-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.vendor-dashboard-shell .faq-form-actions {
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.vendor-dashboard-shell .faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.vendor-dashboard-shell .faq-item:last-child {
  border-bottom: none;
}

.vendor-dashboard-shell .faq-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
}

.vendor-dashboard-shell .faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .5rem;
  flex: 1;
  font-family: var(--font-sans);
}

.vendor-dashboard-shell .faq-answer {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.vendor-dashboard-shell .faq-menu {
  position: relative;
  flex-shrink: 0;
}

.vendor-dashboard-shell .faq-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
}

.vendor-dashboard-shell .faq-menu-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.vendor-dashboard-shell .faq-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 120px;
  z-index: 10;
}

.vendor-dashboard-shell .faq-dropdown.open {
  display: block;
}

.vendor-dashboard-shell .faq-dropdown a {
  display: block;
  padding: .65rem 1rem;
  font-size: .875rem;
  color: var(--text);
  text-decoration: none;
}

.vendor-dashboard-shell .faq-dropdown a:hover {
  background: var(--surface-2);
}

.vendor-dashboard-shell .faq-dropdown a.text-danger {
  color: var(--danger);
}

.vendor-dashboard-shell .empty-faq {
  text-align: center;
  padding: 3rem 1.25rem;
}

.vendor-dashboard-shell .empty-faq i {
  font-size: 3rem;
  color: var(--border);
  margin-bottom: .75rem;
  display: block;
}

.vendor-dashboard-shell .empty-faq h4 {
  color: var(--text-muted);
  margin-bottom: .35rem;
  font-family: var(--font-sans);
}

.vendor-dashboard-shell .empty-faq p {
  color: var(--text-soft);
  margin: 0;
}

/* Vendor job openings (manage-job-opening.php) */
.vendor-dashboard-shell .job-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .15s, box-shadow .15s;
}

.vendor-dashboard-shell .job-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.vendor-dashboard-shell .job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.vendor-dashboard-shell .job-badge {
  display: inline-block;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  margin-right: .35rem;
}

.vendor-dashboard-shell .badge-fulltime {
  background: color-mix(in srgb, var(--brand-primary) 14%, transparent);
  color: var(--brand-primary);
}

.vendor-dashboard-shell .badge-parttime {
  background: color-mix(in srgb, #9333ea 14%, transparent);
  color: #7e22ce;
}

.vendor-dashboard-shell .badge-contract {
  background: color-mix(in srgb, var(--warning) 18%, transparent);
  color: #c2410c;
}

.vendor-dashboard-shell .badge-open {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

.vendor-dashboard-shell .badge-close {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
}

.vendor-dashboard-shell .manage-jobs-wrap .empty-state {
  text-align: center;
  padding: 3rem 1.25rem;
}

.vendor-dashboard-shell .manage-jobs-wrap .empty-state img {
  max-width: 280px;
  margin: 0 auto 1.5rem;
}

/* Vendor team (manage-people.php) */
.vendor-dashboard-shell .people-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: .75rem;
  align-items: end;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 700px) {
  .vendor-dashboard-shell .people-form-row {
    grid-template-columns: 1fr;
  }
}

.vendor-dashboard-shell .pf-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .35rem;
}

.vendor-dashboard-shell .pf-group .req {
  color: var(--danger);
}

.vendor-dashboard-shell .pf-group input,
.vendor-dashboard-shell .pf-group select {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: inherit;
  box-sizing: border-box;
  background: var(--surface);
  color: var(--text);
}

.vendor-dashboard-shell .pf-group input:focus,
.vendor-dashboard-shell .pf-group select:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.vendor-dashboard-shell .people-table {
  width: 100%;
  border-collapse: collapse;
}

.vendor-dashboard-shell .people-table th {
  padding: .75rem .85rem;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid var(--border);
  background: var(--surface-2);
}

.vendor-dashboard-shell .people-table td {
  padding: .85rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text);
  vertical-align: middle;
}

.vendor-dashboard-shell .people-table tr:last-child td {
  border-bottom: none;
}

.vendor-dashboard-shell .people-table tr:hover td {
  background: color-mix(in srgb, var(--surface-2) 70%, var(--surface));
}

.vendor-dashboard-shell .avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 55%, #000));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.vendor-dashboard-shell .person-cell {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.vendor-dashboard-shell .person-name {
  font-weight: 600;
  color: var(--text);
}

.vendor-dashboard-shell .person-email {
  font-size: .8rem;
  color: var(--text-soft);
}

.vendor-dashboard-shell .btn-remove {
  background: none;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--border));
  color: var(--danger);
  padding: .35rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.vendor-dashboard-shell .btn-remove:hover {
  background: var(--danger);
  color: #fff;
}

.vendor-dashboard-shell .empty-people {
  text-align: center;
  padding: 3rem 1.25rem;
}

.vendor-dashboard-shell .empty-people i {
  font-size: 3rem;
  color: var(--border);
  margin-bottom: .75rem;
  display: block;
}

.vendor-dashboard-shell .empty-people h4 {
  color: var(--text-muted);
  margin-bottom: .35rem;
  font-family: var(--font-sans);
}

.vendor-dashboard-shell .empty-people p {
  color: var(--text-soft);
  margin: 0;
}

/* ── Firm profile (/firms/*) — company.html + company-reviews + company-portfolio ── */
.firm-profile-page .firm-anchor {
  scroll-margin-top: 96px;
}

.firm-profile-page .cp-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.firm-profile-page .cp-back-wrap {
  margin: 0 0 1.15rem;
}

.firm-profile-page .cp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.firm-profile-page .cp-back-link:hover {
  color: var(--brand-primary);
}

.firm-profile-page .cp-top {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.firm-profile-page .cp-logo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.firm-profile-page .cp-head-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.firm-profile-page .cp-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  width: 100%;
}

.firm-profile-page .cp-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  width: 100%;
  min-width: 0;
}

.firm-profile-page .cp-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}

.firm-profile-page .cp-badges .badge-claimed,
.firm-profile-page .cp-badges .badge-pending,
.firm-profile-page .cp-badges .badge-unclaimed {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.firm-profile-page .cp-badges .badge-claimed i,
.firm-profile-page .cp-badges .badge-pending i,
.firm-profile-page .cp-badges .badge-unclaimed i {
  font-size: 0.68rem;
  line-height: 1;
}

.firm-profile-page .cp-badge-category {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface-2));
  color: var(--brand-primary);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 22%, var(--border));
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  text-align: left;
}

.firm-profile-page .cp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
  display: block;
}

.firm-profile-page .cp-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: .5rem;
}

.firm-profile-page .cp-contact-row a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.firm-profile-page .cp-contact-row a:hover {
  color: var(--brand-primary);
}

.firm-profile-page .cp-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.firm-profile-page .cp-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: flex-end;
  border-bottom: 2px solid var(--border);
  margin: 2rem 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.firm-profile-page .cp-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.firm-profile-page .cp-tab {
  flex-shrink: 0;
  padding: .75rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s, border-color .15s;
  line-height: 1.3;
}

.firm-profile-page .cp-tab:hover {
  color: var(--text);
}

.firm-profile-page .cp-tab.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.firm-profile-page .firm-profile-main {
  padding-top: 0;
}

.firm-profile-page .firm-profile-main > .container {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.firm-profile-page .cp-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .firm-profile-page .cp-layout {
    grid-template-columns: 1fr;
  }
}

/* Phones & small tablets: prevent section cards clipping on the right */
@media (max-width: 768px) {
  .firm-profile-page .cp-hero,
  .firm-profile-page .firm-profile-main {
    overflow-x: clip;
  }

  .firm-profile-page .cp-hero > .container,
  .firm-profile-page .firm-profile-main > .container {
    width: 100%;
    max-width: 100%;
  }

  .firm-profile-page .cp-layout {
    width: 100%;
    min-width: 0;
  }

  .firm-profile-page .cp-layout > * {
    min-width: 0;
    max-width: 100%;
  }

  .firm-profile-page .cp-section,
  .firm-profile-page .firm-sidebar-card,
  .firm-profile-page .firm-profile-reviews .detail-section.review-detail-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .firm-profile-page .cp-section p,
  .firm-profile-page .cp-section .firm-faq-body,
  .firm-profile-page .firm-loc-row span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .firm-profile-page .port-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  }

  .firm-profile-page .firm-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  }

  .firm-profile-page .firm-loc-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  }

  .firm-profile-page .firm-rb-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .firm-profile-page .firm-rb-label {
    width: auto;
    flex: 1 1 100%;
  }

  .firm-profile-page .firm-rb-track {
    flex: 1 1 auto;
    min-width: 0;
  }

  .firm-profile-page .firm-claim-banner {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .firm-profile-page .cp-hero {
    padding: 1.25rem 0 1.5rem;
  }

  .firm-profile-page .cp-hero .container,
  .firm-profile-page .firm-profile-main > .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .firm-profile-page .cp-top {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .firm-profile-page .cp-logo {
    width: 120px;
    height: 120px;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
  }

  .firm-profile-page .cp-logo img {
    padding: 0.65rem;
  }

  .firm-profile-page .cp-head-text {
    width: 100%;
  }

  .firm-profile-page .cp-title {
    font-size: 1.35rem;
  }

  .firm-profile-page .cp-badges {
    gap: 0.45rem;
  }

  .firm-profile-page .cp-badge-category {
    white-space: normal;
    /* flex: 1 1 auto; */
    max-width: 100%;
  }

  .firm-profile-page .cp-contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 0.35rem;
  }

  .firm-profile-page .cp-contact-row a {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.82rem;
  }

  .firm-profile-page .cp-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 0.85rem;
    gap: 0.5rem;
  }

  .firm-profile-page .cp-actions .btn {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .firm-profile-page .cp-tabs {
    margin-top: 1.25rem;
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: hidden;
    row-gap: 0;
  }

  .firm-profile-page .cp-tab {
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    flex: 0 1 auto;
    text-align: center;
    white-space: nowrap;
    margin-bottom: 0;
    border-bottom-width: 2px;
  }

  .firm-profile-page .cp-layout {
    margin-top: 1.25rem;
    gap: 1.25rem;
  }

  .firm-profile-page .cp-section {
    padding: 1.15rem;
  }

  .firm-profile-page .firm-profile-reviews .detail-section.review-detail-card {
    padding: 1.15rem;
  }

  .firm-profile-page .port-grid,
  .firm-profile-page .firm-loc-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .firm-profile-page .firm-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .firm-profile-page .firm-rating-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .firm-profile-page .cp-logo {
    width: 108px;
    height: 108px;
  }
}

@media (max-width: 400px) {
  .firm-profile-page .cp-tab {
    flex: 1 1 100%;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
  }

  .firm-profile-page .cp-tab.active {
    border-bottom-color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 6%, transparent);
  }

  .firm-profile-page .cp-tabs {
    border-bottom: 0;
    gap: 0;
  }
}

.firm-profile-page .cp-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.firm-profile-page .cp-section h2 {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.firm-profile-page .cp-section-headline {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.firm-profile-page .firm-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

@media (max-width: 500px) {
  .firm-profile-page .firm-detail-grid {
    grid-template-columns: 1fr;
  }
}

.firm-profile-page .firm-detail-cell strong {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-soft);
  margin-bottom: .2rem;
}

.firm-profile-page .firm-detail-cell span {
  font-size: .92rem;
  font-weight: 500;
}

.firm-profile-page .firm-rating-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.firm-profile-page .firm-rating-big {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1;
}

.firm-profile-page .firm-stars-row {
  color: var(--warning);
  font-size: 1.1rem;
  letter-spacing: .1rem;
}

.firm-profile-page .firm-rb-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
  font-size: .85rem;
}

.firm-profile-page .firm-rb-label {
  width: 100px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.firm-profile-page .firm-rb-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.firm-profile-page .firm-rb-fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 3px;
}

.firm-profile-page .firm-rb-val {
  width: 28px;
  text-align: right;
  font-weight: 600;
  font-size: .82rem;
}

.firm-profile-page .firm-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.firm-profile-page .firm-sidebar-card h3 {
  font-size: .95rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin: 0 0 .85rem;
}

.firm-profile-page .firm-claim-banner {
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 25%, transparent);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.firm-profile-page .firm-profile-reviews.reviews-section-page {
  padding: 0;
  background: transparent;
}

.firm-profile-page .firm-profile-reviews .detail-section.review-detail-card {
  padding: 1.35rem 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.firm-profile-page .port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.firm-profile-page .port-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}

.firm-profile-page .port-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.firm-profile-page .port-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface-2);
}

.firm-profile-page .port-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.firm-profile-page .port-body {
  padding: 1rem;
}

.firm-profile-page .port-title {
  font-weight: 700;
  font-size: .95rem;
  margin: 0 0 .35rem;
}

.firm-profile-page .port-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 .6rem;
}

.firm-profile-page .port-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.firm-profile-page .port-tag {
  background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
  color: var(--brand-primary);
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 999px;
}

.firm-profile-page .firm-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}

.firm-profile-page .firm-photo-tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.firm-profile-page .firm-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}

.firm-profile-page .firm-photo-tile:hover img {
  transform: scale(1.05);
}

.firm-profile-page .firm-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  color: #fff;
  font-size: 1.25rem;
}

.firm-profile-page .firm-photo-tile:hover .firm-photo-overlay {
  opacity: 1;
}

.firm-profile-page .firm-faq-details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
  overflow: hidden;
}

.firm-profile-page .firm-faq-details summary {
  padding: .9rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .92rem;
  background: var(--surface);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.firm-profile-page .firm-faq-details summary::-webkit-details-marker {
  display: none;
}

.firm-profile-page .firm-faq-details summary::after {
  content: '▼';
  font-size: .65rem;
  color: var(--text-soft);
  transition: transform .25s;
}

.firm-profile-page .firm-faq-details[open] summary::after {
  transform: rotate(180deg);
}

.firm-profile-page .firm-faq-details summary:hover {
  background: var(--surface-2);
}

.firm-profile-page .firm-faq-body {
  padding: .85rem 1rem;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.firm-profile-page .firm-loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.firm-profile-page .firm-loc-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.firm-profile-page .firm-loc-city {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand-primary);
  margin-bottom: .5rem;
}

.firm-profile-page .firm-loc-row {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .35rem;
}

.firm-profile-page .firm-empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: .9rem;
}

.firm-profile-page #firm-iq-success {
  display: none;
  text-align: center;
  padding: 1rem;
}

/* =========================================================
   Hero banners — dark text on pastel light gradient.
   Applies to every hero that uses `var(--hero-gradient)`.
   ========================================================= */
.home-hero,
.page-blog-hero,
.page-sitemap-hero,
.explore-hero,
.explore-hero-banner,
.page-new-ui .listing-hero,
.review-hero,
.review-company-hero,
.wfu-hero {
  color: var(--hero-text, var(--text));
}

.home-hero h1,
.home-hero .home-hero-title,
.page-blog-hero h1,
.page-sitemap-hero h1,
.explore-hero h1,
.explore-hero-banner h1,
.page-new-ui .listing-hero h1,
.review-hero h1,
.review-company-hero h1,
.wfu-hero h1 {
  color: var(--hero-text, var(--text));
  text-shadow: none;
}

.home-hero p,
.home-hero .home-hero-subtitle,
.page-blog-hero p,
.page-sitemap-hero p,
.explore-hero p,
.explore-hero-banner p,
.page-new-ui .listing-hero p,
.review-hero p,
.review-company-hero p,
.wfu-hero p {
  color: var(--hero-text-muted, var(--text-muted));
}

/* Pill chips / meta links inside hero banners on light gradient */
.home-hero .meta-link,
.review-company-hero .meta-link,
.explore-hero .meta-link,
.explore-hero-banner .meta-link {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: var(--text);
}

.home-hero .meta-link:hover,
.review-company-hero .meta-link:hover,
.explore-hero .meta-link:hover,
.explore-hero-banner .meta-link:hover {
  background: rgba(15, 23, 42, 0.10);
}

/* CTA button on pastel hero stays brand-primary (white text on solid blue) */
.home-hero .btn-accent,
.home-hero .home-hero-cta,
.review-hero .btn-primary,
.wfu-hero .btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.45);
}

.home-hero .btn-accent:hover,
.home-hero .home-hero-cta:hover,
.review-hero .btn-primary:hover,
.wfu-hero .btn-primary:hover {
  background: var(--brand-primary-600);
  border-color: var(--brand-primary-600);
}

/* =====================================================================
   Responsive guardrails (2026-05 audit)
   Applies at the end of the cascade so it wins where useful.
   Targets the standard breakpoints: 1440 / 1024 / 768 / 480 / 375 / 320
   ===================================================================== */

/* Cross-cutting baseline */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
svg,
video,
canvas,
picture {
  max-width: 100%;
  height: auto;
}

table {
  max-width: 100%;
  border-collapse: collapse;
}

/* Any element with .table-responsive wraps tables so they scroll horizontally
   on narrow viewports without breaking the page layout. */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prevent very long unbroken strings (URLs, slugs, hashes, emails) from forcing horizontal scroll. */
p,
li,
td,
th,
dd,
dt,
blockquote,
figcaption,
.muted,
.card,
.blog-card-title,
.company-card,
.vendor-card,
.explore-card,
.review-card,
.wfu-email-card a,
.auth-footer a,
.footer-grid a {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.wfu-email-card a {
  display: inline-block;
  max-width: 100%;
}

/* Fluid typography across the design system */
h1 {
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.18;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

/* Forms always fluid */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
textarea,
select,
.form-control {
  max-width: 100%;
}

/* Ensure inputs do not trigger iOS auto-zoom (font-size >= 16px) */
@media (max-width: 768px) {

  input,
  select,
  textarea,
  .form-control {
    font-size: 16px;
  }
}

/* Modals are sometimes 90vh + fixed widths — make them fluid on narrow viewports */
.modal-box,
.modal-content {
  width: min(100%, 500px);
}

@media (max-width: 480px) {

  .modal-box,
  .modal-content {
    padding: 1.25rem;
    border-radius: 12px;
  }
}

/* ---- Container tweaks for narrow viewports ---- */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: .75rem;
    padding-right: .75rem;
  }
}

/* ---- 1440px+ : keep large-screen content readable ---- */
@media (min-width: 1440px) {
  :root {
    --container: 1280px;
  }
}

/* ---- 1024px (laptops) : tighten hero spacing, grid columns ---- */
@media (max-width: 1024px) {

  .hero,
  .home-hero,
  .page-blog-hero,
  .page-sitemap-hero,
  .explore-hero,
  .explore-hero-banner,
  .review-hero,
  .wfu-hero {
    padding-top: clamp(3rem, 8vw, 5rem);
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
  }

  .section {
    padding: 3rem 0;
  }
}

/* ---- 768px (tablet) : collapse multi-column grids ---- */
@media (max-width: 768px) {

  .hero-inner,
  .home-hero .hero-inner,
  .home-hero-grid,
  .two-col,
  .two-col-grid,
  .three-col,
  .three-col-grid,
  .four-col,
  .four-col-grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  .company-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }

  .co-details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid,
  .footer-grid-prototype {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .copyright,
  .footer-copyright-row {
    flex-direction: column;
    text-align: center;
    gap: .5rem;
  }

  .nav-actions .btn-accent {
    display: none;
  }

  .article {
    padding: 0 1rem;
  }
}

/* ---- 480px (small mobile) ---- */
@media (max-width: 480px) {

  .footer-grid,
  .footer-grid-prototype {
    grid-template-columns: 1fr;
  }

  .co-details-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hero-stats>* {
    flex: 1 1 calc(50% - .5rem);
  }

  .search-box {
    flex-direction: column;
    gap: .5rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .search-box input {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
  }

  .search-box .btn {
    width: 100%;
  }

  /* Buttons fill width on tiny screens to avoid awkward wrap */
  .btn-block-mobile {
    display: block;
    width: 100%;
  }

  /* Stack vendor banner cta column on mobile */
  .vd-banner,
  .profile-banner,
  .vendor-profile-header {
    text-align: center;
    padding: 1.5rem 1.25rem;
  }

  .vd-banner .vd-banner-actions {
    justify-content: center;
  }

  /* Tabs that overflow should scroll instead of wrap into vertical stack of broken pill buttons */
  .tabs,
  .nav-tabs,
  .vendor-tabs,
  .auth-tabs,
  .vd-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar,
  .nav-tabs::-webkit-scrollbar,
  .vendor-tabs::-webkit-scrollbar,
  .auth-tabs::-webkit-scrollbar,
  .vd-tabs::-webkit-scrollbar {
    display: none;
  }
}

/* ---- 375px (iPhone X / 11 / 12) ---- */
@media (max-width: 375px) {
  .container {
    padding-left: .85rem;
    padding-right: .85rem;
  }

  .btn {
    padding: .6rem .9rem;
    font-size: .88rem;
  }

  .btn-sm {
    padding: .4rem .65rem;
    font-size: .78rem;
  }

  .nav {
    gap: .75rem;
  }

  /* Hide secondary header chrome on very small screens */
  .hdr-write-review-btn {
    display: none;
  }
}

/* ---- 320px (legacy phones) ---- */
@media (max-width: 320px) {
  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .container {
    padding-left: .65rem;
    padding-right: .65rem;
  }

  .footer-grid,
  .footer-grid-prototype {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Card padding tightens to keep more reading width on small phones */
  .cp-section,
  .card,
  .review-flow .form-card,
  .auth-card {
    padding: 1rem !important;
  }

  .firm-profile-page .firm-profile-reviews .detail-section.review-detail-card {
    padding: 1rem !important;
  }
}

/* ---- Auto-wrap data tables in vendor/admin views ---- */
.vendor-dashboard-shell table,
.auth-profile-page table,
.dashboard-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

@media (min-width: 992px) {

  .vendor-dashboard-shell table,
  .auth-profile-page table,
  .dashboard-content table {
    display: table;
    white-space: normal;
  }
}

/* ---- Card grids: explicit auto-fit so layouts always reflow ---- */
.cards-auto,
.explore-grid,
.company-list,
.blog-grid,
.related-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* ---- Owl carousel: do not force height:auto on nested card images (breaks .category-card fill) ---- */
.owl-carousel .item {
  box-sizing: border-box;
}

.owl-carousel .item>img {
  width: 100%;
  height: auto;
  display: block;
}

.owl-carousel .item .category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Sticky/fixed header offset for in-page anchors ---- */
:target {
  scroll-margin-top: 84px;
}

/* ---- Home / Explore / listing pages — spacing & images (small screens) ---- */
.page-blog-hero .container,
.explore-tech-posts-page .page-blog-hero .container,
.explore-page .page-blog-hero .container {
  padding-left: clamp(0.75rem, 3vw, 1.5rem);
  padding-right: clamp(0.75rem, 3vw, 1.5rem);
}

@media (max-width: 768px) {
  .home-hero {
    padding: clamp(2.75rem, 12vw, 4rem) 0 clamp(2.25rem, 8vw, 3rem);
  }

  .explore-hero-img {
    margin: 1.25rem 0;
  }

  .explore-hero-img img {
    height: auto;
    min-height: 200px;
    max-height: 52vw;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .content-section .section-title {
    font-size: clamp(1.15rem, 4.5vw, 1.5rem);
    padding: 0 0.25rem;
  }

  .company-list-stack {
    padding: 0 0.15rem;
  }
}

@media (max-width: 480px) {
  .home-section-title {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
    line-height: 1.25;
    padding: 0 0.35rem;
  }
}

/* ---- Home company list — TopWeb-scale cards (also explore-detail listing) ---- */
.home-companies-heading {
  margin-bottom: 2rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.home-companies-section .co-card,
.explore-detail-page .company-list-stack .co-card {
  padding: 2rem;
  gap: 2rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
}

.home-companies-section .co-card-logo,
.explore-detail-page .company-list-stack .co-card-logo {
  --co-logo-size: 200px;
  --co-logo-pad: 0.85rem;
  flex: 0 0 auto;
  align-self: flex-start;
  border-radius: 12px;
  background: var(--surface-2);
}

.home-companies-section .co-card-name,
.explore-detail-page .company-list-stack .co-card-name {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
}

.home-companies-section .co-details-grid,
.explore-detail-page .company-list-stack .co-details-grid {
  gap: 1rem;
  margin: 1rem 0;
}

.home-companies-section .co-detail-item strong,
.explore-detail-page .company-list-stack .co-detail-item strong {
  font-size: 0.8rem;
}

.home-companies-section .co-detail-item span,
.explore-detail-page .company-list-stack .co-detail-item span {
  font-size: 1.05rem;
}

.home-companies-section .co-actions,
.explore-detail-page .company-list-stack .co-actions {
  margin-top: 1rem;
  gap: 0.75rem;
}

.home-companies-section .co-actions .btn,
.explore-detail-page .company-list-stack .co-actions .btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.95rem;
}

@media (max-width: 900px) {

  .home-companies-section .co-card,
  .explore-detail-page .company-list-stack .co-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .home-companies-section .co-card-logo,
  .explore-detail-page .company-list-stack .co-card-logo {
    --co-logo-size: min(200px, 72vw);
    --co-logo-pad: 0.85rem;
    flex: 0 0 auto;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
  }

  .home-companies-section .co-details-grid,
  .explore-detail-page .company-list-stack .co-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {

  .home-companies-section .co-card,
  .explore-detail-page .company-list-stack .co-card {
    padding: 1.15rem;
    gap: 1rem;
  }

  .home-companies-section .co-card-logo,
  .explore-detail-page .company-list-stack .co-card-logo {
    --co-logo-size: min(200px, 50vw);
    --co-logo-pad: 0.75rem;
  }

  .home-companies-section .co-card-header,
  .explore-detail-page .company-list-stack .co-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .home-companies-section .co-card-name,
  .explore-detail-page .company-list-stack .co-card-name {
    font-size: 1.1rem;
    line-height: 1.35;
  }

  .home-companies-section .co-details-grid,
  .explore-detail-page .company-list-stack .co-details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .home-companies-section .co-actions,
  .explore-detail-page .company-list-stack .co-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-companies-section .co-actions .btn,
  .explore-detail-page .company-list-stack .co-actions .btn {
    width: 100%;
    text-align: center;
  }
}