/* Darbhanga Service Portal — 12-col grid, premium journal typography (fonts enqueued in functions.php) */

:root {
  --dsp-primary: #0f172a;
  --dsp-secondary: #059669;
  --dsp-accent: #f59e0b;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: var(--dsp-primary);
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: var(--dsp-secondary);
  --accent-dark: #047857;
  --accent-soft: #ecfdf5;
  --accent-2: #0d9488;
  --radius: 12px;
  --radius-card: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.08);
  --max: 1200px;
  --gutter: 16px;
  --col: calc((100% - 11 * var(--gutter)) / 12);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (min-width: 900px) {
  :root {
    --gutter: 24px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}

@media (min-width: 900px) {
  body {
    font-size: 1.125rem; /* 18px desktop */
  }
}

/* Responsive typography scale (scoped; do not globally upsize all headings) */
.page-title,
.entry-title,
.listing-single__title {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
}

.section__head h2,
.dsp-heading {
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.2;
}

.psh-prose h2,
.entry-content h2,
.psh-prose h3,
.entry-content h3 {
  line-height: 1.25;
}

.psh-prose,
.entry-content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Sticky footer: keep footer at bottom on short pages */
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: auto;
}

.psh-prose p,
.entry-content p {
  margin: 0 0 1rem;
}

.psh-prose :where(ul, ol),
.entry-content :where(ul, ol) {
  padding-left: 1.15rem;
}

.psh-prose :where(table),
.entry-content :where(table) {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

.psh-prose :where(pre, code),
.entry-content :where(pre, code) {
  max-width: 100%;
  overflow-x: auto;
}

/* Safer long text wrapping */
.psh-card,
.psh-muted,
.page-title,
.entry-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Tap-targets: ensure minimum 48px */
.psh-btn {
  min-height: 48px;
}
.psh-btn--sm {
  min-height: 44px;
}

/* Section headings — Playfair “premium journal” */
.dsp-heading,
.section__head h2,
.page-title,
.hero__title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dsp-heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
  color: var(--dsp-primary);
}

a {
  color: var(--accent-dark);
}

a:hover {
  color: var(--accent);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* —— 12-column grid (24px gutters) —— */
.dsp-container {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.dsp-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

@media (max-width: 899px) {
  .dsp-grid-12 {
    grid-template-columns: 1fr;
  }
}

/* —— Buttons —— */
.psh-btn,
button.psh-btn,
input[type='submit'].psh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--dsp-secondary);
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.psh-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 12px -2px rgb(0 0 0 / 0.12);
}

.psh-btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.06);
}

.psh-btn--accent {
  background: var(--dsp-accent);
  color: var(--dsp-primary);
}

/* —— Top bar —— */
.site-topbar {
  background: var(--dsp-primary);
  color: #fff;
  font-size: 0.8125rem;
}

.site-topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.site-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.site-topbar__btn {
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.site-topbar__btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.site-topbar__btn--cta {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
}

.site-topbar__text {
  opacity: 0.95;
}

.site-topbar__wa {
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.site-topbar__wa:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* —— Sticky glass header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.portal-nav {
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.portal-nav__scroll {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.portal-nav__pill {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text) !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px -1px rgb(0 0 0 / 0.06);
}

.portal-nav__pill:hover {
  border-color: var(--dsp-secondary);
  color: var(--accent-dark) !important;
  background: var(--accent-soft);
}

.portal-nav__pill--accent {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: var(--dsp-secondary);
  color: var(--accent-dark) !important;
}

.portal-nav-section {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portal-nav--page {
  position: sticky;
  top: 0;
  z-index: 90;
}

@media (min-width: 900px) {
  .portal-nav--page {
    top: 0;
  }
}

.portal-nav-section .portal-nav {
  border-top: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* —— Guest hub: listing preview + vendor why-join —— */
.dsp-preview__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

@media (min-width: 900px) {
  .dsp-preview__head {
    flex-direction: row;
    align-items: center;
  }
}

.dsp-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dsp-preview__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 900px) {
  .dsp-preview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dsp-preview__card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}

.dsp-preview__link {
  display: block;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}

.dsp-preview__meta {
  display: grid;
  gap: 4px;
}

.dsp-preview__area {
  font-size: 0.9rem;
}

.dsp-preview__card--locked {
  filter: blur(4px);
  opacity: 0.7;
  pointer-events: none;
}

.dsp-preview {
  position: relative;
}

.dsp-preview__overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dsp-preview__overlay-inner {
  padding: 12px;
  display: grid;
  gap: 8px;
}

@media (min-width: 900px) {
  .dsp-preview__overlay {
    inset: auto 16px 16px 16px;
  }
  .dsp-preview__overlay-inner {
    padding: 14px;
  }
}

.dsp-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

@media (min-width: 900px) {
  .dsp-why__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dsp-why__card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 12px;
}

.site-header__inner,
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
}

.site-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.brand__link {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--dsp-primary);
  font-family: 'Playfair Display', Georgia, serif;
}

.brand__tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.primary-nav {
  margin-top: 12px;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.primary-nav .menu a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
}

.nav-toggle {
  position: absolute;
  right: var(--gutter);
  top: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.site-header__inner {
  position: relative;
  padding-top: 14px;
  padding-bottom: 14px;
}

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

  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .primary-nav {
    margin-top: 0;
  }

  .menu--primary {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .primary-nav:not(.is-open) .menu {
    display: flex;
  }
}

@media (max-width: 899px) {
  .primary-nav .menu {
    display: none;
  }

  .primary-nav.is-open .menu {
    display: flex;
  }

  .menu--primary {
    padding: 10px 0 4px;
  }
  .menu--primary a {
    padding: 10px 8px;
    border-radius: 12px;
  }
}

/* —— Hero —— */
.dsp-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem;
  overflow: hidden;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #134e4a 100%);
  color: #f8fafc;
}

.dsp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.dsp-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(248, 250, 252, 0.75);
  margin: 0 0 10px;
  font-weight: 600;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 12px;
  color: #fff;
}

.hero__sub {
  margin: 0 auto 28px;
  color: rgba(248, 250, 252, 0.88);
  max-width: 42rem;
  font-size: 1.05rem;
}

/* Centered search row */
.dsp-hero-search {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 20px;
}

.dsp-hero-search__field {
  flex: 1 1 200px;
  min-width: 0;
}

.dsp-hero-search__field--area {
  flex: 0 1 200px;
}

.dsp-hero-search input[type='search'],
.dsp-hero-search select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}

.dsp-hero-search select {
  cursor: pointer;
}

.dsp-hero-search select option {
  color: var(--dsp-primary);
  background: #fff;
}

.dsp-hero-search .psh-btn {
  flex: 0 0 auto;
  align-self: stretch;
  padding-left: 24px;
  padding-right: 24px;
}

/* Trust ticker */
.dsp-trust-ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 32px);
  margin-top: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.dsp-trust-ticker__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.92);
}

.dsp-trust-ticker__value {
  font-weight: 700;
  font-size: 1.35rem;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--dsp-accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.hero-actions .psh-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff !important;
}

.dsp-deadline-bell {
  position: relative;
}

.dsp-deadline-bell__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 4px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
}

.dsp-deadline-bell__count.is-empty {
  display: none;
}

.dsp-bhaiya-tip {
  max-width: var(--max);
  margin: 14px auto 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

.dsp-trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dsp-trending-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.dsp-trending-list__item a {
  font-weight: 600;
  text-decoration: none;
  color: var(--dsp-ink, #0f172a);
}

.dsp-trending-list__item a:hover {
  text-decoration: underline;
}

.dsp-trending-list__meta {
  font-size: 0.8rem;
  color: #64748b;
}

.nearme-results {
  margin: 10px auto 0;
  padding-left: 18px;
  color: rgba(248, 250, 252, 0.8);
  max-width: var(--max);
  text-align: left;
}

/* —— Section A: Quick utility action grid —— */
.dsp-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  margin-top: 8px;
}

@media (max-width: 767px) {
  .dsp-action-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dsp-action-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 16px 8px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.dsp-action-grid__item:hover {
  border-color: var(--dsp-secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.dsp-action-grid__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 12px;
  background: linear-gradient(145deg, var(--accent-soft), #d1fae5);
  border: 2px solid rgba(5, 150, 105, 0.2);
}

.dsp-action-grid__label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dsp-primary);
}

/* —— Section B: Bento categories —— */
.dsp-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.dsp-bento__tile {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f172a;
  box-shadow: var(--shadow);
  min-height: 220px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dsp-bento__tile:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.dsp-bento__tile a {
  position: relative;
  display: block;
  min-height: 220px;
  height: 100%;
  padding: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: inherit;
}

.dsp-bento__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.dsp-bento__tile a:hover .dsp-bento__photo {
  transform: scale(1.05);
}

.dsp-bento__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 1.35rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.35) 38%, rgba(15, 23, 42, 0.88) 100%);
}

.dsp-bento__title,
.dsp-bento__meta {
  color: #f8fafc;
  text-shadow: 0 1px 4px rgb(0 0 0 / 0.45);
}

.dsp-bento__tile--pg {
  grid-column: span 7;
}

.dsp-bento__tile--coaching {
  grid-column: span 5;
}

.dsp-bento__tile--tiffin {
  grid-column: span 5;
}

.dsp-bento__tile--library {
  grid-column: span 7;
}

@media (max-width: 899px) {
  .dsp-bento__tile--pg,
  .dsp-bento__tile--coaching,
  .dsp-bento__tile--tiffin,
  .dsp-bento__tile--library {
    grid-column: 1 / -1;
  }
}

.dsp-bento__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 6px;
  display: block;
}

.dsp-bento__meta {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.95;
  display: block;
}

/* —— Generic sections —— */
.section {
  padding: clamp(2rem, 5vw, 3rem) var(--gutter);
}

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

.section__head h2 {
  margin: 0 0 6px;
}

.section--muted {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--split {
  display: grid;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) var(--gutter);
}

@media (min-width: 900px) {
  .section--split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.section--community-budget .section--split__community,
.section--community-budget .section--split__budget {
  min-width: 0;
}

.dsp-community-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dsp-community-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  max-height: 280px;
}

.dsp-community-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.dsp-community-card__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.dsp-community-card__lead {
  margin: 0 0 1.1rem;
}

.dsp-community-card__actions.stack {
  margin: 0;
}

.psh-bc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 480px) {
  .psh-bc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.psh-bc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.psh-bc-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.psh-bc-field .psh-bc-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.psh-bc-field .psh-bc-input:focus {
  outline: none;
  border-color: var(--dsp-secondary);
  box-shadow: 0 0 0 3px rgb(5 150 105 / 0.2);
}

.section--inner {
  max-width: var(--max);
  margin: 0 auto;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.category-card:hover {
  box-shadow: var(--shadow-lg);
}

.category-card__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-family: 'Playfair Display', Georgia, serif;
}

.category-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— Listing cards (portal) —— */
.listing-grid,
.psh-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.psh-listing-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.psh-listing-card:hover {
  box-shadow: var(--shadow-lg);
}

.psh-listing-card__link {
  color: inherit;
  text-decoration: none;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.psh-listing-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.psh-listing-card__media img,
.psh-listing-card__ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.psh-listing-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.psh-listing-card__flash {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.25));
}

.psh-listing-card__verified {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dsp-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
  z-index: 2;
}

.psh-listing-card__save {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.psh-listing-card__save:hover {
  transform: translateY(-1px);
}

.psh-listing-card__body {
  padding: 16px;
}

.psh-listing-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-family: 'Playfair Display', Georgia, serif;
}

.psh-listing-card__facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}

.psh-listing-card__facts li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.psh-listing-card__facts-icon {
  flex: 0 0 1.1rem;
  opacity: 0.85;
}

.psh-listing-card__claim {
  padding: 8px 12px 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 247, 237, 0.65);
}

.psh-listing-card__claim-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c2410c;
  text-decoration: none;
}

.psh-listing-card__claim-link:hover {
  text-decoration: underline;
}

.psh-listing-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.psh-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 0.82rem;
}

.psh-pill--ok {
  background: #ecfdf3;
  color: var(--accent-2);
}

.psh-pill--hot {
  background: #fff7ed;
  color: #c2410c;
  font-weight: 600;
}

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

.psh-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow);
}

.psh-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
}

.page-title {
  margin: 0 0 8px;
}

.listing-filters {
  max-width: var(--max);
  margin: 16px auto;
  padding: 0 var(--gutter);
}

.listing-filters.psh-card {
  padding: 18px;
  box-shadow: var(--shadow);
}

.listing-filters__grid label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text);
}

.listing-filters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.listing-filters__grid input[type='search'] {
  -webkit-appearance: none;
  appearance: none;
}

.listing-filters__grid select,
.listing-filters__grid input,
.psh-inquiry input,
.psh-inquiry textarea,
.psh-vendor-form input,
.psh-vendor-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.listing-filters__grid select:focus,
.listing-filters__grid input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.listing-filters__actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .listing-filters__actions {
    justify-content: flex-start;
  }
}

.listing-filters__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .listing-filters__top {
    grid-template-columns: 2fr 1fr;
    align-items: end;
  }
}

.listing-filters__search,
.listing-filters__sort {
  display: grid;
  gap: 6px;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}

.listing-filters__ac {
  position: relative;
  display: block;
}

.listing-filters__ac::before {
  content: '⌕';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  pointer-events: none;
}

.listing-filters__search input[type='search'],
.listing-filters__search input[type='text'],
.listing-filters__sort select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.2;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.listing-filters__search input[type='search'],
.listing-filters__search input[type='text'] {
  padding-left: 38px;
}

.listing-filters__search label,
.listing-filters__sort label {
  display: block;
  margin-bottom: 0;
  font-weight: 600;
}

.psh-filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
}

.psh-filter-drawer__backdrop {
  grid-area: 1 / 1;
  background: rgba(15, 23, 42, 0.35);
}

.psh-filter-drawer__panel {
  grid-area: 1 / 1;
  margin-top: auto;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-height: 86vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

@media (min-width: 900px) {
  .psh-filter-drawer {
    position: static;
    inset: auto;
    z-index: auto;
    display: none;
  }
}

.psh-filter-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
}

.psh-filter-drawer__body {
  padding: 12px 14px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 14px;
}

.psh-filter-drawer__foot {
  padding: 12px 14px 16px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.psh-filter-block__title {
  margin: 0 0 10px;
  font-size: 1rem;
}

.psh-filter-checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.psh-filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.psh-filter-range {
  display: grid;
  gap: 10px;
}

.psh-filter-range__labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.psh-filter-stars {
  display: grid;
  gap: 8px;
}

.psh-filter-star {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.listing-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* Autocomplete dropdown for directory search */
.listing-filters__ac {
  display: block;
  position: relative;
}

.psh-ac {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}

.psh-ac__group + .psh-ac__group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.psh-ac__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2px 6px 6px;
}

.psh-ac__item {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.psh-ac__item:hover {
  background: var(--accent-soft);
}

/* Breadcrumbs */
.psh-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.psh-crumbs a {
  text-decoration: none;
}

.psh-crumbs a:hover {
  text-decoration: underline;
}

.listing-filters__chip {
  text-decoration: none;
  font-weight: 600;
}

.listing-filters__chip:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .listing-filters__actions .psh-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 900px) {
  .listing-filters__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dsp-tax-hero__actions {
  justify-content: center;
}

.listing-single {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 48px;
}

.listing-single__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
}

.listing-single__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.listing-single__claim.psh-card {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
}

.listing-single__aside-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.listing-single__aside-subtitle {
  margin: 14px 0 8px;
  font-size: 0.95rem;
}

.listing-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.psh-connect {
  margin-top: 12px;
  border: 1px solid var(--dsp-border);
  border-radius: var(--dsp-radius-md);
  padding: 10px 12px;
  background: var(--dsp-cream);
}

.psh-connect__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.psh-connect__actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.psh-connect__note {
  margin: 6px 0 0;
  font-size: 0.85rem;
}

.psh-safe.psh-card,
.psh-report.psh-card {
  margin-top: 14px;
}

.psh-safe__list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.psh-safe__list li {
  margin: 6px 0;
}

/* Apply-service page desktop layout helpers */
.psh-apply-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.psh-apply-head .stack {
  justify-content: flex-start;
}

@media (min-width: 900px) {
  .psh-apply-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }
  .psh-apply-head > * {
    min-width: 0;
  }
}

/* Sticky compare bar */
.psh-compare-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0));
  z-index: 99960;
  pointer-events: none;
}

.psh-compare-bar__inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  justify-content: center;
  pointer-events: auto;
}

.psh-compare-panel {
  max-width: 720px;
  margin: 10px auto 0;
  border: 1px solid var(--dsp-border);
  background: var(--dsp-paper);
  border-radius: var(--dsp-radius-lg);
  box-shadow: var(--dsp-shadow-lg);
  padding: 12px;
  pointer-events: auto;
}

.psh-compare-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.psh-compare-panel__list {
  display: grid;
  gap: 8px;
}

.psh-compare-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--dsp-border);
  border-radius: 12px;
  background: var(--dsp-cream);
}

.psh-compare-item a {
  font-weight: 800;
  text-decoration: none;
  color: inherit;
}

.psh-compare-item a:hover {
  text-decoration: underline;
}

.psh-compare-panel__note {
  margin: 10px 0 0;
  font-size: 0.85rem;
}

@media (max-width: 899px) {
  .psh-compare-bar {
    bottom: calc(86px + env(safe-area-inset-bottom, 0));
  }
}

/* Sticky mobile CTA bar (listing pages) */
.psh-mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0));
  z-index: 99955;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}

.psh-mobile-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid var(--dsp-border);
  background: var(--dsp-paper);
  box-shadow: var(--dsp-shadow-lg);
  text-decoration: none;
  font-weight: 800;
  color: var(--dsp-ink);
}

@media (min-width: 900px) {
  .psh-mobile-cta {
    display: none;
  }
}

@media (max-width: 899px) {
  /* Avoid collision with bottom nav */
  .psh-mobile-cta {
    bottom: calc(86px + env(safe-area-inset-bottom, 0));
  }
}

/* Vendor listing completeness (vendor hub) */
.psh-vendor-complete {
  margin-top: 10px;
  border: 1px solid var(--dsp-border);
  border-radius: 12px;
  background: var(--dsp-cream);
  padding: 10px 12px;
}

.psh-vendor-complete__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.psh-vendor-complete__bar {
  height: 10px;
  border-radius: 999px;
  background: rgb(15 23 42 / 0.08);
  overflow: hidden;
  margin-top: 8px;
}

.psh-vendor-complete__bar span {
  display: block;
  height: 100%;
  background: var(--dsp-emerald);
}

.psh-vendor-complete__todo {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.9rem;
}

.psh-vendor-complete__todo li {
  margin: 4px 0;
}

.listing-single__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.listing-single__hero {
  margin: 16px 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 10px 0 18px;
}

.listing-single__grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .listing-single__grid {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }
}

.listing-facts dt {
  font-size: 0.85rem;
  color: var(--muted);
}

.listing-facts dd {
  margin: 0 0 10px;
  font-weight: 600;
}

.review-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 40px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.dsp-has-bottom-nav .site-footer {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
}

.menu--footer {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  background: #fff;
  padding: 8px;
  z-index: 100;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.psh-dashboard__grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .psh-dashboard__grid {
    grid-template-columns: 1fr 1fr;
  }

  .psh-card--wide {
    grid-column: 1 / -1;
  }
}

.psh-id-list,
.psh-plan-list,
.psh-vendor-listings,
.psh-leads {
  margin: 0;
  padding-left: 18px;
}

.psh-tag {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.psh-lead-body {
  white-space: pre-wrap;
  background: var(--bg);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

.pagination {
  grid-column: 1 / -1;
  margin-top: 18px;
}

/* Vendor / dashboard wide tables */
.psh-leads-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* —— Responsive tables (dashboard / services) —— */
.psh-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

.psh-table,
.psh-card .widefat {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.psh-table th,
.psh-table td,
.psh-card .widefat th,
.psh-card .widefat td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) {
  .psh-svc-dash .psh-table thead {
    display: none;
  }

  .psh-svc-dash .psh-table tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .psh-svc-dash .psh-table td {
    display: grid;
    grid-template-columns: minmax(100px, 38%) 1fr;
    gap: 8px;
    border: 0;
    padding: 10px 12px;
  }

  .psh-svc-dash .psh-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}

/* —— Bottom navigation (mobile) —— */
.dsp-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99980;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -4px 20px rgb(0 0 0 / 0.08);
}

@media (max-width: 899px) {
  .dsp-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
  }

  .dsp-bottom-nav__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
  }

  .dsp-bottom-nav__link--active {
    color: var(--dsp-secondary);
  }

  .dsp-bottom-nav__icon {
    font-size: 1.25rem;
    line-height: 1;
  }
}

/* —— Student help bubble: smaller + pulse on mobile —— */
@media (max-width: 899px) {
  .psh-ai-assistant-widget {
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0)) !important;
    right: 0.65rem !important;
  }

  .psh-ai-assistant-toggle {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.78rem !important;
    gap: 0.25rem !important;
    animation: dsp-pulse-soft 2.4s ease-in-out infinite !important;
  }
}

@keyframes dsp-pulse-soft {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  }
  50% {
    box-shadow: 0 4px 22px rgba(37, 99, 235, 0.55);
    transform: scale(1.03);
  }
}

/* —— Quick enquiry modal —— */
.dsp-modal[hidden] {
  display: none !important;
}

.dsp-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(15, 23, 42, 0.45);
}

/* Keep help modal above floating assistant widget */
.dsp-help-modal.dsp-modal {
  z-index: 100010;
}

/* Prevent overlap on desktop: hide assistant while help is open */
.dsp-help-open .psh-ai-assistant-widget {
  display: none !important;
}

@media (min-width: 600px) {
  .dsp-modal {
    align-items: center;
  }
}

.dsp-modal__panel {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  border: 1px solid var(--line);
}

.dsp-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dsp-modal__head h2 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
}

.dsp-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.dsp-modal label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--dsp-primary);
}

.dsp-modal input,
.dsp-modal textarea,
.dsp-modal select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
}

.dsp-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.dsp-fab-quick {
  position: fixed;
  right: 1rem;
  bottom: calc(5.25rem + env(safe-area-inset-bottom, 0));
  z-index: 99970;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--dsp-accent);
  color: var(--dsp-primary);
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

@media (min-width: 900px) {
  .dsp-fab-quick {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

.dsp-fab-quick:hover {
  transform: scale(1.05);
}

@media (min-width: 900px) {
  .dsp-fab-quick {
    display: none;
  }
}


/* === Professional layer (portal-pro) — merged into main.css for reliable loading === */

:root {
  --dsp-ink: #0c1222;
  --dsp-forest: #064e3b;
  --dsp-emerald: #059669;
  --dsp-emerald-hover: #047857;
  --dsp-gold: #d97706;
  --dsp-cream: #f8fafc;
  --dsp-paper: #ffffff;
  --dsp-border: #e2e8f0;
  --dsp-muted: #64748b;
  --dsp-radius-lg: 16px;
  --dsp-radius-md: 12px;
  --dsp-radius-sm: 8px;
  --dsp-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
  --dsp-shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.06);
  --dsp-shadow-lg: 0 20px 40px -12px rgb(15 23 42 / 0.12);
  --dsp-font: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

body {
  font-family: var(--dsp-font);
  background: var(--dsp-cream);
  color: var(--dsp-ink);
  -webkit-font-smoothing: antialiased;
}

/* —— Trust top bar (always visible) —— */
.site-topbar {
  background: linear-gradient(90deg, var(--dsp-forest) 0%, #065f46 50%, var(--dsp-emerald) 100%);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.site-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.site-topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 220px;
  min-width: 0;
}

.site-topbar__shield {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-topbar__tagline {
  line-height: 1.35;
  opacity: 0.96;
}

.site-topbar__metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 0.8125rem;
}

.site-topbar__metric {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.site-topbar__metric strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-topbar__metric-sep {
  opacity: 0.35;
  font-weight: 300;
}

.site-topbar__wa {
  flex-shrink: 0;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.2);
  border: 1px solid rgb(255 255 255 / 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-topbar__wa:hover {
  background: rgb(255 255 255 / 0.3);
  transform: translateY(-1px);
}

/* —— Header —— */
.site-header {
  background: rgb(255 255 255 / 0.92);
  border-bottom: 1px solid var(--dsp-border);
  box-shadow: var(--dsp-shadow-sm);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'brand toggle'
    'nav nav'
    'actions actions';
  align-items: center;
  gap: 12px 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  grid-area: brand;
  min-width: 0;
}

.nav-toggle {
  grid-area: toggle;
}

.primary-nav {
  grid-area: nav;
}

@media (min-width: 900px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'brand nav actions';
  }

  .primary-nav {
    min-width: 0;
  }

  .menu--primary {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .menu--primary::-webkit-scrollbar {
    display: none;
  }

  .menu--primary li {
    flex: 0 0 auto;
  }

  .site-header__actions {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}

.brand__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand .custom-logo-link img {
  max-height: 44px;
  width: auto;
}

.brand__link {
  font-family: var(--dsp-font);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--dsp-ink) !important;
}

.brand__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #ecfdf5;
  color: var(--dsp-emerald-hover);
  border: 1px solid #a7f3d0;
}

.brand__tagline {
  font-size: 0.8125rem;
  color: var(--dsp-muted);
  margin: 0;
  max-width: 36ch;
}

.site-header__actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  width: 100%;
}

@media (min-width: 900px) {
  .site-header__actions {
    width: auto;
    justify-self: end;
  }
}

.site-header__lang .site-header__lang-text {
  display: inline;
  min-width: 2.2ch;
  text-align: center;
}

.header-cta {
  display: inline-flex;
  white-space: nowrap;
  align-self: center;
}

.nav-toggle {
  justify-self: end;
  border-radius: var(--dsp-radius-sm);
  border: 1px solid var(--dsp-border);
}

.menu--primary a {
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 6px 0;
  border-radius: var(--dsp-radius-sm);
  transition: color 0.15s ease;
}

@media (min-width: 900px) {
  .menu--primary a {
    padding: 8px 4px;
  }

  .menu--primary a:hover {
    color: var(--dsp-emerald) !important;
  }
}

.portal-nav {
  background: var(--dsp-paper);
  border-top: 1px solid var(--dsp-border);
}

.portal-nav__pill {
  font-weight: 600;
  border-radius: var(--dsp-radius-md);
  padding: 10px 16px;
  border: 1px solid var(--dsp-border);
  box-shadow: none;
}

.portal-nav__pill--accent {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #6ee7b7;
  color: var(--dsp-emerald-hover) !important;
}

/* —— Hero —— */
.dsp-hero {
  background: linear-gradient(145deg, #042f2e 0%, #064e3b 38%, #0f766e 100%);
  padding: clamp(2.25rem, 6vw, 4rem) 0 2.5rem;
}

.dsp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgb(255 255 255 / 0.12), transparent 55%);
  pointer-events: none;
}

.dsp-hero {
  position: relative;
}

.dsp-hero__inner {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.2);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: rgb(255 255 255 / 0.95);
}

.hero__title {
  font-family: var(--dsp-font);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__sub {
  font-size: 1.0625rem;
  line-height: 1.55;
  opacity: 0.92;
}

/* Hero search = card */
.dsp-hero-search {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 12px;
  border-radius: var(--dsp-radius-lg);
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: 10px;
}

.dsp-hero-search input[type='search'],
.dsp-hero-search select {
  min-height: 52px;
  border-radius: var(--dsp-radius-md);
  border: 1px solid rgb(255 255 255 / 0.25);
  background: rgb(15 23 42 / 0.35);
  font-size: 1rem;
}

.dsp-hero-search .psh-btn {
  min-height: 52px;
  padding-left: 28px;
  padding-right: 28px;
  font-weight: 700;
  border-radius: var(--dsp-radius-md);
  background: linear-gradient(180deg, #fbbf24 0%, var(--dsp-gold) 100%);
  color: var(--dsp-ink);
  border: none;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.25);
}

.dsp-hero-search .psh-btn:hover {
  filter: brightness(1.06);
}

.dsp-trust-ticker {
  max-width: 720px;
  padding: 16px 20px;
  gap: 20px 32px;
  background: rgb(255 255 255 / 0.14);
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: var(--dsp-radius-lg);
}

.dsp-trust-ticker__item {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.dsp-trust-ticker__value {
  font-family: var(--dsp-font);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #fef3c7;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.2);
}

.dsp-trust-ticker__item span:last-child {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.88;
}

.hero-actions {
  margin-top: 20px;
}

.hero-actions .psh-btn--ghost {
  min-height: 48px;
  padding-left: 20px;
  padding-right: 20px;
  font-weight: 600;
  border-radius: var(--dsp-radius-md);
}

/* —— Trust banner (below hero) —— */
.dsp-trust-banner {
  background: var(--dsp-paper);
  border-bottom: 1px solid var(--dsp-border);
  box-shadow: var(--dsp-shadow-md);
  position: relative;
  z-index: 2;
}

.dsp-trust-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.dsp-trust-banner__card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--dsp-radius-md);
  border: 1px solid var(--dsp-border);
  background: var(--dsp-cream);
}

.dsp-trust-banner__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--dsp-radius-sm);
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.dsp-trust-banner__card h3 {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--dsp-ink);
}

.dsp-trust-banner__card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--dsp-muted);
}

/* —— Section rhythm —— */
.dsp-heading,
.section__head h2,
.page-title {
  font-family: var(--dsp-font);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dsp-ink);
}

.section__lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--dsp-muted);
  max-width: 52ch;
}

.section__head .section__lead {
  margin: 0;
}

.section__head {
  margin-bottom: 1.5rem;
}

.section--muted {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: var(--dsp-border);
}

/* —— Buttons —— */
.psh-btn,
button.psh-btn {
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 700;
  border-radius: var(--dsp-radius-md);
  background: var(--dsp-emerald);
  box-shadow: var(--dsp-shadow-md);
}

.psh-btn:hover {
  background: var(--dsp-emerald-hover);
}

.psh-btn--ghost {
  background: var(--dsp-paper);
  color: var(--dsp-ink);
  border: 1px solid var(--dsp-border);
  box-shadow: var(--dsp-shadow-sm);
}

.psh-btn--sm {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* —— Action grid —— */
.dsp-action-grid__item {
  border-radius: var(--dsp-radius-lg);
  padding: 20px 12px;
  border: 1px solid var(--dsp-border);
  box-shadow: var(--dsp-shadow-sm);
}

.dsp-action-grid__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ecfdf5, #fff);
  border: 2px solid #a7f3d0;
}

/* —— Bento —— */
.dsp-bento__tile {
  border-radius: var(--dsp-radius-lg);
  box-shadow: var(--dsp-shadow-md);
  min-height: 168px;
}

/* —— Listing cards —— */
.psh-listing-card {
  border-radius: var(--dsp-radius-lg);
  border: 1px solid var(--dsp-border);
  box-shadow: var(--dsp-shadow-sm);
  overflow: hidden;
}

.psh-listing-card:hover {
  box-shadow: var(--dsp-shadow-lg);
  transform: translateY(-2px);
}

.psh-listing-card__title {
  font-family: var(--dsp-font);
  font-weight: 700;
}

.psh-listing-card__verified {
  width: auto;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

/* —— Forms (global) —— */
.dsp-field,
.listing-filters__grid label,
.psh-inquiry label,
.psh-vendor-form label,
.dsp-modal label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dsp-ink);
  margin-bottom: 0;
}

.listing-filters__grid label {
  margin-bottom: 0;
}

.dsp-input,
.listing-filters__grid select,
.listing-filters__grid input,
.psh-inquiry input,
.psh-inquiry textarea,
.psh-vendor-form input,
.psh-vendor-form textarea,
.dsp-modal input,
.dsp-modal textarea,
.dsp-modal select {
  width: 100%;
  margin-top: 8px;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--dsp-font);
  border: 1px solid var(--dsp-border);
  border-radius: var(--dsp-radius-md);
  background: var(--dsp-paper);
  color: var(--dsp-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dsp-modal textarea {
  min-height: 100px;
  resize: vertical;
}

.dsp-input:focus,
.listing-filters__grid select:focus,
.listing-filters__grid input:focus,
.psh-inquiry input:focus,
.psh-inquiry textarea:focus,
.psh-vendor-form input:focus,
.psh-vendor-form textarea:focus,
.dsp-modal input:focus,
.dsp-modal textarea:focus {
  outline: none;
  border-color: var(--dsp-emerald);
  box-shadow: 0 0 0 3px rgb(5 150 105 / 0.2);
}

/* Quick help (FAQ chatbot) */

.dsp-help-modal {
  position: fixed;
}

.dsp-help-modal .dsp-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dsp-help-modal__panel {
  position: relative;
  z-index: 1;
  width: calc(100vw - 24px);
  max-width: 980px;
  max-height: min(74vh, 720px);
  overflow: hidden;
}

.dsp-help__list[hidden],
.dsp-help__answer[hidden] {
  display: none !important;
}

.dsp-help__body {
  display: grid;
  gap: 10px;
}

.dsp-help__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 900px) {
  .dsp-help__layout {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }

  .dsp-help__list {
    max-height: 520px;
  }

  .dsp-help__answer {
    max-height: 540px;
  }
}

.dsp-help__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 900px) {
  .dsp-help__topics {
    flex-direction: column;
  }
}

.dsp-help__topic {
  text-align: left;
  border: 1px solid var(--dsp-border);
  background: var(--dsp-paper);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  width: 100%;
}

@media (min-width: 900px) {
  .dsp-help__topic {
    border-radius: 12px;
  }
}

@media (max-width: 899px) {
  .dsp-help__topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .dsp-help__topic {
    border-radius: 12px;
  }
}

.dsp-help__topic.is-active {
  border-color: var(--dsp-emerald);
}

.dsp-help__search-input {
  width: 100%;
}

.dsp-help__qa {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.dsp-help__list,
.dsp-help__answer {
  grid-row: 2;
}

.dsp-help__list {
  margin-top: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: auto;
  max-height: 46vh;
  padding-right: 4px;
}

.dsp-help__item:hover {
  border-color: var(--dsp-emerald);
}

.dsp-help__item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--dsp-border);
  background: var(--dsp-paper);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
}

.dsp-help__answer {
  margin-top: 0;
  display: grid;
  gap: 10px;
  overflow: auto;
  max-height: 52vh;
  padding-right: 4px;
}

.dsp-help__answer .dsp-help__q {
  margin: 2px 0 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.dsp-help__answer .dsp-help__a {
  font-size: 0.95rem;
  line-height: 1.55;
}

.dsp-help__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 900px) {
  .dsp-help__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
  .dsp-help__actions .psh-btn {
    width: 100%;
    justify-content: center;
  }
}

.psh-card,
.listing-filters {
  border-radius: var(--dsp-radius-lg);
  border: 1px solid var(--dsp-border);
  box-shadow: var(--dsp-shadow-sm);
}

.page-header .page-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

/* —— Footer —— */
.site-footer {
  background: var(--dsp-ink);
  color: rgb(255 255 255 / 0.85);
  border-top: none;
  margin-top: 0;
}

.site-footer a {
  color: #a7f3d0;
}

.site-footer__copy {
  color: rgb(255 255 255 / 0.55);
  font-size: 0.8125rem;
}

/* —— Bottom nav —— */
.dsp-bottom-nav {
  background: var(--dsp-paper);
  border-top: 1px solid var(--dsp-border);
  box-shadow: 0 -8px 30px rgb(15 23 42 / 0.08);
}

.dsp-bottom-nav__link {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 10px 6px;
}

.dsp-bottom-nav__link--active {
  color: var(--dsp-emerald);
}

/* —— Modal —— */
.dsp-modal__panel {
  border-radius: var(--dsp-radius-lg);
  box-shadow: var(--dsp-shadow-lg);
  padding: 24px;
}

.dsp-modal__head h2 {
  font-family: var(--dsp-font);
  font-weight: 800;
}

.dsp-modal .dsp-field {
  display: block;
  margin-bottom: 1rem;
}

.dsp-modal .dsp-field:last-of-type {
  margin-bottom: 0;
}

.dsp-fab-quick {
  background: linear-gradient(180deg, #fbbf24, var(--dsp-gold));
  color: var(--dsp-ink);
  box-shadow: var(--dsp-shadow-lg);
}

/* —— Homepage trust bar (metrics) —— */
.dsp-trust-bar {
  background: var(--dsp-paper);
  border-bottom: 1px solid var(--dsp-border);
}

.dsp-trust-bar__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  text-align: center;
}

@media (min-width: 600px) {
  .dsp-trust-bar__inner {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
  }
}

.dsp-trust-bar__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dsp-trust-bar__value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--dsp-font);
  color: var(--dsp-ink);
  line-height: 1.2;
}

.dsp-trust-bar__label {
  font-size: 0.8125rem;
  color: var(--dsp-muted);
  font-weight: 600;
}

/* —— Header account dropdown —— */
.site-header__account {
  position: relative;
}

.site-header__account-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.site-header__account-trigger::-webkit-details-marker {
  display: none;
}

.site-header__account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--line);
  font-weight: 800;
  font-size: 0.875rem;
}

.site-header__account-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1099px) {
  .site-header__account-name {
    display: none;
  }
}

.site-header__account-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  padding: 8px;
  background: var(--dsp-paper);
  border: 1px solid var(--dsp-border);
  border-radius: var(--dsp-radius-md);
  box-shadow: var(--dsp-shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 200;
}

.site-header__lang {
  position: relative;
}

.site-header__qa {
  white-space: nowrap;
}

.site-header__account-link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--dsp-radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.site-header__account-link:hover {
  background: var(--dsp-cream);
}

/* —— Auth modal (guest) —— */
.dsp-auth-modal.dsp-modal {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 600px) {
  .dsp-auth-modal.dsp-modal {
    align-items: center;
  }
}

.dsp-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.dsp-auth-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.dsp-auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.dsp-auth-tabs__btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--dsp-radius-sm);
  border: 1px solid var(--dsp-border);
  background: var(--dsp-paper);
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: inherit;
}

.dsp-auth-tabs__btn--active {
  border-color: var(--dsp-emerald);
  box-shadow: var(--dsp-shadow-sm);
}

.dsp-auth-panel__primary {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  box-sizing: border-box;
  gap: 10px;
  align-items: center;
}

.dsp-auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header__tool-ico {
  margin-right: 6px;
}

@media (max-width: 520px) {
  .site-header__tool-text {
    display: none;
  }
}

.dsp-auth-panel__lead {
  margin: 0 0 8px;
  font-size: 0.9375rem;
}

.dsp-auth-panel__note {
  margin: 0;
  font-size: 0.875rem;
}

.dsp-auth-panel__register {
  margin-top: 12px;
}

/* —— Footer quick links —— */
.site-footer__mega {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .site-footer__mega {
    grid-template-columns: 1.1fr 1.9fr;
    align-items: start;
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__logo {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-family: var(--dsp-font);
  font-size: 1.1rem;
}

.site-footer__tag {
  margin: 0;
}

.site-footer__brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.site-footer__social-link:hover {
  transform: translateY(-1px);
}

.site-footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

@media (min-width: 900px) {
  .site-footer__cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.site-footer__col-title {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__fineprint {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer__copy {
  margin: 0;
}

.site-footer .menu--footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.site-footer .menu--footer a {
  font-size: 0.875rem;
  text-decoration: none;
}

/* —— Auth / account pages —— */
.psh-auth-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  .psh-auth-grid {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }
}

.psh-auth-card__title {
  margin: 0 0 10px;
}

.psh-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
}

.psh-auth-divider::before,
.psh-auth-divider::after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}

.psh-auth-page form label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
}

.psh-auth-page form input {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

/* —— Hub guest landing —— */
.dsp-hub-guest {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dsp-tax-hero__inner {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 900px) {
  .dsp-tax-hero__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.dsp-tax-hero__eyebrow {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dsp-muted);
}

.dsp-tax-hero__title {
  margin: 0;
}

.dsp-tax-hero__meta {
  margin: 6px 0 0;
}

.dsp-tax-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

@media (min-width: 560px) {
  .dsp-tax-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
  }
}

.dsp-empty-state__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

@media (min-width: 560px) {
  .dsp-empty-state__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.dsp-tax-extra__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .dsp-tax-extra__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dsp-tax-extra__item {
  padding: 12px;
  border: 1px solid var(--dsp-border);
  border-radius: var(--dsp-radius-md);
  background: var(--dsp-paper);
}

/* —— Horizontal strip scroller —— */
.dsp-strip__scroller .psh-listing-grid {
  display: flex;
  gap: var(--gutter);
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.dsp-strip__scroller--auto .psh-listing-grid {
  scroll-snap-type: none;
  scrollbar-width: none;
}
.dsp-strip__scroller--auto .psh-listing-grid::-webkit-scrollbar {
  display: none;
}

.dsp-strip__scroller .psh-listing-grid > * {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

@media (min-width: 900px) {
  /* Show 3 at once on desktop for auto-scrollers */
  .dsp-strip__scroller--auto .psh-listing-grid > * {
    flex: 0 0 calc((100% - 2 * var(--gutter)) / 3);
  }
  /* Fallback / manual strips */
  .dsp-strip__scroller:not(.dsp-strip__scroller--auto) .psh-listing-grid > * {
    flex-basis: 340px;
  }
}

.dsp-guest-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dsp-guest-hero__auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

@media (min-width: 560px) {
  .dsp-guest-hero__auth {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.dsp-value-grid__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .dsp-value-grid__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .dsp-value-grid__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dsp-value-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.dsp-value-grid__skeleton {
  margin-bottom: 12px;
}

.dsp-skel,
.dsp-skel-row {
  display: block;
  border-radius: var(--dsp-radius-sm);
  background: linear-gradient(
    90deg,
    var(--line) 0%,
    var(--dsp-border) 50%,
    var(--line) 100%
  );
  background-size: 200% 100%;
  animation: dsp-skel-pulse 1.2s ease-in-out infinite;
}

.dsp-skel--line {
  height: 12px;
  margin-bottom: 8px;
}

.dsp-skel--short {
  max-width: 60%;
}

.dsp-skel-row {
  height: 48px;
  margin-bottom: 10px;
}

@keyframes dsp-skel-pulse {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.dsp-fomo__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dsp-fomo__row {
  border-bottom: 1px solid var(--dsp-border);
}

.dsp-fomo__row:last-child {
  border-bottom: 0;
}

.dsp-fomo__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  text-decoration: none;
}

@media (min-width: 560px) {
  .dsp-fomo__link {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.dsp-fomo__title {
  font-weight: 700;
}

.dsp-fomo__meta {
  font-size: 0.875rem;
  color: var(--dsp-muted);
}

.dsp-fomo__row--locked .dsp-fomo__title,
.dsp-fomo__row--locked .dsp-fomo__meta {
  filter: blur(4px);
  user-select: none;
}

.dsp-fomo__unlock {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* —— Onboarding wizard overlay —— */
.psh-onboard {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--gutter, 16px);
  background: rgba(15, 23, 42, 0.45);
}

@media (min-width: 600px) {
  .psh-onboard {
    align-items: center;
  }
}

.psh-onboard__panel {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow: auto;
  background: var(--dsp-paper);
  border-radius: var(--dsp-radius-lg);
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid var(--dsp-border);
  box-shadow: var(--dsp-shadow-lg);
}

.psh-onboard__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.psh-onboard__step {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}

.psh-onboard__step label {
  display: block;
  margin-bottom: 8px;
}

.psh-onboard__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
