/* NeonDream — design system v2: ink surfaces + violet “neon” accent + Syne display headings */

/* Site-wide: readable wrapping, no horizontal page scroll */
html {
  -webkit-text-size-adjust: 100%;
  font-family: "Space Grotesk", system-ui, sans-serif;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Keyboard / SR: jump past chrome into primary content (aligned with high-trust B2B site patterns). */
.nd-skip-link:focus-visible {
  position: fixed;
  top: max(0.5rem, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10900;
  padding: 0.5rem 1.15rem;
  background: var(--nd-primary);
  color: #fff !important;
  border-radius: var(--nd-btn-radius);
  box-shadow: var(--nd-glow);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  outline: 2px solid var(--nd-accent);
  outline-offset: 3px;
  clip: auto !important;
  clip-path: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
}

/* Consistent keyboard focus — complements Bootstrap; improves scanability vs default thin rings. */
body.nd-body
  :where(a, button, summary, input:not([type="hidden"]), select, textarea, [role="button"]):focus-visible {
  outline: 2px solid var(--nd-accent);
  outline-offset: 3px;
}

body.nd-body #nd-main-content:focus-visible {
  outline: 2px solid var(--nd-accent);
  outline-offset: 4px;
}

body.nd-body .btn:focus-visible {
  box-shadow: none;
}

/* Expo (main_layout_vw100): body spans full viewport width; main fills width (not a narrow column). */
body.nd-body.nd-body--vw100 {
  width: 100vw;
  max-width: 100%;
  box-sizing: border-box;
}

body.nd-body {
  /* 60-30-10 color rule
     60% = quiet base surfaces
     30% = support surfaces/cards
     10% = action accents (CTA, active, focus) */
  --nd-color-base-60: #edf2fb;
  --nd-color-support-30: #dbe7f5;
  --nd-color-accent-10: #2563eb;
  --nd-color-accent-10-strong: #1d4ed8;
  --nd-color-accent-10-soft: rgba(37, 99, 235, 0.16);

  overflow-x: clip;
  overflow-y: visible;
  max-width: 100%;
  line-height: 1.55;
  /* Bootstrap 5 theme tokens (forms, .btn-primary, links) */
  --bs-primary: var(--nd-color-accent-10);
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: var(--nd-color-accent-10-strong);
  --bs-link-hover-color: #1e40af;
  --bs-body-bg: var(--nd-color-base-60);
  --bs-body-color: #0f172a;
  --bs-border-color: #d8e2f0;
  --bs-secondary: #64748b;
  --bs-secondary-rgb: 100, 116, 139;
  --bs-secondary-color: #64748b;
  /* App tokens */
  --nd-page-bg: var(--nd-color-base-60);
  --nd-surface: #f8fbff;
  --nd-surface-support: var(--nd-color-support-30);
  --nd-text: #0f172a;
  --nd-text-muted: #64748b;
  --nd-border: #d8e2f0;
  --nd-primary: var(--nd-color-accent-10);
  --nd-primary-hover: var(--nd-color-accent-10-strong);
  --nd-tap-muted: #eff6ff;
  --nd-accent: var(--nd-color-accent-10);
  --nd-accent-soft: var(--nd-color-accent-10-soft);
  --nd-accent-hover: var(--nd-color-accent-10-strong);
  --nd-glow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 10px 30px rgba(15, 23, 42, 0.1);
}

.nd-main {
  min-width: 0;
  max-width: 100%;
  min-height: 50vh;
  overflow-x: clip;
  overflow-y: visible; /* do not create a y scrollport; keeps child position:sticky tied to viewport */
  overflow-wrap: break-word;
}

.nd-main :where(p, li, dd, blockquote) {
  line-height: 1.65;
}

.nd-main :where(a.link-dark, a.text-dark, .alert a) {
  text-underline-offset: 0.12em;
}

.nd-main h1,
.nd-main h2,
.nd-main h3,
.nd-main .h1,
.nd-main .h2,
.nd-main .h3 {
  font-family: "Syne", "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Expo home: main spans full viewport width (see nd-body--vw100 parent). */
main.nd-main.container-fluid.nd-main--vw100 {
  width: 100%;
  max-width: 100vw;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Space below sticky site header so page content does not touch the nav bar */
body.nd-body:not(.nd-body--no-chrome):not(.nd-body--hide-top-nav):not(.nd-body--chat-thread)
  main.nd-main.container-fluid {
  padding-top: 0.5rem;
}

@media (min-width: 768px) {
  body.nd-body:not(.nd-body--no-chrome):not(.nd-body--hide-top-nav):not(.nd-body--chat-thread)
    main.nd-main.container-fluid {
    padding-top: 0.65rem;
  }
}

/* WebView / narrow viewports: content images never exceed main width */
.nd-main img {
  max-width: 100%;
}

.nd-main .table-responsive {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
  .nd-main .table-sm th.text-nowrap,
  .nd-main .table-sm td.text-nowrap {
    white-space: normal;
  }
}

/* Shared width helpers (replace inline max-width in templates) */
.nd-narrow-form-shell {
  width: 100%;
  max-width: min(100%, 24rem);
  margin-left: auto;
  margin-right: auto;
}

.nd-prose-measure {
  max-width: min(100%, 42rem);
}

.nd-messages-stack {
  width: 100%;
  max-width: min(100%, 40rem);
  margin-left: auto;
  margin-right: auto;
}

.nd-page-not-found {
  max-width: min(100%, 28rem);
}

.nd-tag-category-hero {
  max-height: min(14rem, 42vw);
}

.nd-body {
  /* Default Bootstrap Icon (`.bi`) size — see unified `.nd-body .bi` rules below. */
  --nd-icon-size: 1rem;
  /* Default tap target token (mobile block bumps + uses this). */
  --nd-touch-min: 3rem;
  /* Site-wide radius = Bootstrap utility `.rounded-3` (default --bs-border-radius-lg, 0.5rem) */
  --nd-unified-round: 0.5rem;
  --nd-expo-hero-radius: var(--nd-unified-round);
  --nd-expo-min-card-radius: var(--nd-unified-round);
  --nd-chrome-radius: var(--nd-unified-round);
  --nd-btn-radius: var(--nd-unified-round);
  --nd-bottom-match-radius: 1.5rem;
  --nd-rounded-5: var(--nd-unified-round);
  --bs-btn-border-radius: var(--nd-btn-radius);
  --bs-btn-border-radius-sm: var(--nd-btn-radius);
  --bs-btn-border-radius-lg: var(--nd-btn-radius);
  --bs-border-radius: var(--nd-unified-round);
  --bs-border-radius-sm: var(--nd-unified-round);
  --bs-border-radius-lg: var(--nd-unified-round);
  --bs-border-radius-xl: var(--nd-unified-round);
  --bs-border-radius-xxl: var(--nd-unified-round);
  /* Full capsules for `.rounded-pill` — separate from card/input radius */
  --bs-border-radius-pill: 50rem;
  --bs-card-border-radius: var(--nd-unified-round);
  --bs-card-inner-border-radius: var(--nd-unified-round);
  --bs-modal-border-radius: var(--nd-unified-round);
  --bs-dropdown-border-radius: var(--nd-unified-round);
  --bs-toast-border-radius: var(--nd-unified-round);
  --bs-accordion-border-radius: var(--nd-unified-round);
  /* Fixed bottom nav horizontal inset (viewport-relative; mirrors main px-3 / px-md-4) */
  --nd-shell-inset: 1rem;
  min-height: 100vh;
  background:
    radial-gradient(1200px 520px at 100% 0%, rgba(37, 99, 235, 0.08), transparent 65%),
    var(--nd-page-bg);
  color: var(--nd-text);
  padding-bottom: 7.5rem;
}

/* Mobile-first usability foundation (applies site-wide) */
.nd-main {
  font-size: clamp(0.97rem, 0.45vw + 0.9rem, 1.02rem);
}

.nd-main .card,
.nd-main .list-group-item,
.nd-main .alert {
  border-radius: var(--nd-unified-round) !important;
  border-color: var(--nd-border);
}

.nd-main .card {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--nd-surface) 86%, var(--nd-surface-support) 14%),
    var(--nd-surface)
  );
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.nd-body .btn {
  min-height: var(--nd-touch-min);
  padding-inline: 1rem;
  font-weight: 600;
  border-radius: var(--nd-btn-radius) !important;
}

.nd-body .btn.rounded-pill,
.nd-body .btn[class*="rounded-"] {
  border-radius: var(--nd-btn-radius) !important;
}

.nd-body .form-control,
.nd-body .form-select {
  min-height: var(--nd-touch-min);
  font-size: 1rem;
  border-radius: var(--nd-unified-round);
}

.nd-body .form-label {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.nd-body .nd-image-upload-input {
  border-color: rgba(255, 255, 255, 0.58);
  background-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.35) inset,
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.nd-upload-help {
  flex-basis: 100%;
  margin-top: 0.35rem;
  color: var(--nd-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 767.98px) {
  body.nd-body main.nd-main.container-fluid {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  .nd-main h1,
  .nd-main .h1 {
    font-size: clamp(1.55rem, 5.6vw, 2rem);
  }

  .nd-main h2,
  .nd-main .h2 {
    font-size: clamp(1.25rem, 4.7vw, 1.62rem);
  }
}

/* /tag/ only: remove main content padding per design request */
body.nd-body.nd-body--tag-main-p0 main#nd-main-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (min-width: 768px) {
  .nd-body {
    --nd-shell-inset: 1.5rem;
  }
}

body.nd-body .rounded-5-border {
  border-radius: var(--nd-unified-round) !important;
  border: 1px solid var(--nd-border);
}

body.nd-body.nd-body--glass .rounded-5-border {
  border-color: rgba(255, 255, 255, 0.52);
}

/* Site-wide glass (body.nd-body--glass): mesh page bg + frosted chrome and common panels */
body.nd-body.nd-body--glass {
  background-color: #cfd9e8;
  background-image:
    radial-gradient(120% 85% at 18% -8%, rgba(196, 181, 253, 0.35) 0%, transparent 48%),
    radial-gradient(90% 70% at 92% 12%, rgba(56, 189, 248, 0.22) 0%, transparent 45%),
    radial-gradient(125% 90% at 50% -18%, rgba(255, 255, 255, 0.62) 0%, transparent 52%),
    linear-gradient(168deg, #f0f4fc 0%, #e8eef8 36%, #dce6f2 70%, #cfd9e8 100%);
}

body.nd-body.nd-body--glass .nd-profile-page--glass.nd-profile-page--landing {
  background: none;
}

body.nd-body.nd-body--glass .nd-header {
  background: rgba(255, 255, 255, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 2px 18px rgba(15, 23, 42, 0.07),
    inset 0 -1px 0 rgba(255, 255, 255, 0.55);
}

body.nd-body.nd-body--glass .nd-header-toolstrip {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

/* Bottom spread pill uses its own liquid-glass stack (see .nd-pill.nd-pill--spread). */
body.nd-body.nd-body--glass .nd-pill:not(.nd-pill--spread) {
  background: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.58) !important;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 2px 16px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.nd-body.nd-body--glass .nd-nav-unread-dot {
  border-color: rgba(255, 255, 255, 0.88);
}

body.nd-body.nd-body--glass .nd-page-topbar,
body.nd-body.nd-body--glass .nd-account-settings-sticky-top {
  background-color: rgba(255, 255, 255, 0.42);
  border-bottom-color: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

body.nd-body.nd-body--glass .nd-page-topbar .nd-back-btn,
body.nd-body.nd-body--glass .nd-account-settings-sticky-top .nd-back-btn {
  background-color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.nd-body.nd-body--glass .nd-product-actions {
  background: rgba(255, 255, 255, 0.55);
  border-top-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

body.nd-body.nd-body--glass .nd-expo-panel,
body.nd-body.nd-body--glass .nd-expo-tier {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.nd-body.nd-body--glass .nd-expo-card-footer {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.nd-body.nd-body--glass .nd-expo-min__hero-panel {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

body.nd-body.nd-body--glass .nd-expo-min-card {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 2px 12px rgba(15, 23, 42, 0.06);
}

body.nd-body.nd-body--glass .nd-tag-item-card.nd-tag-item-card--grid {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 8px 22px rgba(15, 23, 42, 0.07);
}

body.nd-body.nd-body--glass .nd-tag-item-card.nd-tag-item-card--grid .nd-tag-item-body {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.nd-body.nd-body--glass .nd-tag-card {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

body.nd-body.nd-body--glass .nd-tag-card-visual {
  background-color: rgba(255, 255, 255, 0.75);
}

body.nd-body.nd-body--glass .nd-tag-page .nd-tag-admin-card.card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

body.nd-body.nd-body--glass .nd-tag-page__lead {
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

body.nd-body.nd-body--glass .nd-main .card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow:
    0 2px 14px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.nd-body.nd-body--glass .nd-account-panel--session .card-body {
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.92) 0%, rgba(255, 255, 255, 0.88) 100%);
}

body.nd-body.nd-body--glass .nd-account-toc__link {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.nd-body.nd-body--glass .nd-chat-topbar {
  background: rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

body.nd-body.nd-body--glass .nd-chat-stream-wrap {
  background: rgba(236, 238, 244, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.nd-body.nd-body--glass .nd-chat-bar {
  background: rgba(236, 238, 244, 0.55);
  border-top-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

body.nd-body.nd-body--glass .nd-chat-composer-inner {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

@media (prefers-reduced-transparency: reduce) {
  body.nd-body.nd-body--glass .nd-header,
  body.nd-body.nd-body--glass .nd-header-toolstrip,
  body.nd-body.nd-body--glass .nd-pill:not(.nd-pill--spread),
  body.nd-body.nd-body--glass .nd-page-topbar,
  body.nd-body.nd-body--glass .nd-account-settings-sticky-top,
  body.nd-body.nd-body--glass .nd-product-actions,
  body.nd-body.nd-body--glass .nd-expo-panel,
  body.nd-body.nd-body--glass .nd-expo-tier,
  body.nd-body.nd-body--glass .nd-expo-card-footer,
  body.nd-body.nd-body--glass .nd-expo-min__hero-panel,
  body.nd-body.nd-body--glass .nd-expo-min-card,
  body.nd-body.nd-body--glass .nd-tag-item-card.nd-tag-item-card--grid,
  body.nd-body.nd-body--glass .nd-tag-item-card.nd-tag-item-card--grid .nd-tag-item-body,
  body.nd-body.nd-body--glass .nd-tag-card,
  body.nd-body.nd-body--glass .nd-tag-product-grid .nd-tag-card-label--grid,
  body.nd-body.nd-body--glass .nd-tag-page .nd-tag-admin-card.card,
  body.nd-body.nd-body--glass .nd-main .card,
  body.nd-body.nd-body--glass .nd-account-toc__link,
  body.nd-body.nd-body--glass .nd-page-topbar .nd-back-btn,
  body.nd-body.nd-body--glass .nd-account-settings-sticky-top .nd-back-btn,
  body.nd-body.nd-body--glass .nd-chat-topbar,
  body.nd-body.nd-body--glass .nd-chat-stream-wrap,
  body.nd-body.nd-body--glass .nd-chat-bar,
  body.nd-body.nd-body--glass .nd-chat-composer-inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.nd-body.nd-body--glass .nd-header,
  body.nd-body.nd-body--glass .nd-pill:not(.nd-pill--spread),
  body.nd-body.nd-body--glass .nd-page-topbar,
  body.nd-body.nd-body--glass .nd-account-settings-sticky-top,
  body.nd-body.nd-body--glass .nd-product-actions,
  body.nd-body.nd-body--glass .nd-chat-topbar,
  body.nd-body.nd-body--glass .nd-chat-composer-inner {
    background: rgba(255, 255, 255, 0.96);
  }

  body.nd-body.nd-body--glass .nd-header-toolstrip {
    background: var(--nd-page-bg);
    border-color: var(--nd-border);
  }

  body.nd-body.nd-body--glass .nd-expo-panel,
  body.nd-body.nd-body--glass .nd-expo-tier,
  body.nd-body.nd-body--glass .nd-expo-card-footer,
  body.nd-body.nd-body--glass .nd-expo-min__hero-panel,
  body.nd-body.nd-body--glass .nd-expo-min-card,
  body.nd-body.nd-body--glass .nd-tag-item-card.nd-tag-item-card--grid,
  body.nd-body.nd-body--glass .nd-tag-item-card.nd-tag-item-card--grid .nd-tag-item-body,
  body.nd-body.nd-body--glass .nd-tag-card,
  body.nd-body.nd-body--glass .nd-tag-product-grid .nd-tag-card-label--grid,
  body.nd-body.nd-body--glass .nd-tag-page .nd-tag-admin-card.card,
  body.nd-body.nd-body--glass .nd-main .card {
    background: #fff;
    border-color: var(--nd-border);
  }

  body.nd-body.nd-body--glass .nd-chat-stream-wrap,
  body.nd-body.nd-body--glass .nd-chat-bar {
    background: var(--nd-page-bg);
    border-color: var(--nd-border);
  }
}

/* Bootstrap Icons — one size + alignment everywhere on .nd-body */
.nd-body .bi {
  font-size: var(--nd-icon-size);
  line-height: 1;
  vertical-align: -0.125em;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nd-body .form-control {
  border-color: var(--nd-border);
  background-color: var(--nd-surface);
}

.nd-body .form-control:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 0.2rem var(--nd-accent-soft);
}

.nd-body .btn-dark {
  --bs-btn-bg: var(--nd-primary);
  --bs-btn-border-color: var(--nd-primary);
  --bs-btn-hover-bg: var(--nd-primary-hover);
  --bs-btn-hover-border-color: var(--nd-primary-hover);
  --bs-btn-active-bg: var(--nd-primary-hover);
  --bs-btn-active-border-color: var(--nd-primary-hover);
  --bs-btn-disabled-bg: var(--nd-primary);
  --bs-btn-disabled-border-color: var(--nd-primary);
}

.nd-body .link-dark {
  color: var(--nd-primary) !important;
}

.nd-body .link-dark:hover,
.nd-body .link-dark:focus {
  color: var(--nd-primary-hover) !important;
}

.nd-body .btn-outline-dark {
  --bs-btn-color: var(--nd-text);
  --bs-btn-border-color: var(--nd-border);
  --bs-btn-hover-color: var(--nd-text);
  --bs-btn-hover-bg: var(--nd-tap-muted);
  --bs-btn-hover-border-color: #d0d3d9;
  --bs-btn-active-color: var(--nd-text);
  --bs-btn-active-bg: #e4e6eb;
  --bs-btn-active-border-color: #d0d3d9;
  --bs-btn-disabled-color: var(--nd-text-muted);
  --bs-btn-disabled-border-color: var(--nd-border);
}

.nd-body .btn-outline-secondary {
  --bs-btn-color: var(--nd-text-muted);
  --bs-btn-border-color: var(--nd-border);
  --bs-btn-hover-color: var(--nd-text);
  --bs-btn-hover-bg: var(--nd-tap-muted);
  --bs-btn-hover-border-color: #d0d3d9;
  --bs-btn-active-color: var(--nd-text);
  --bs-btn-active-bg: #e4e6eb;
  --bs-btn-active-border-color: #d0d3d9;
}

.nd-body .text-dark {
  color: var(--nd-text) !important;
}

/* e.g. /chat/<slug>/ — no top/bottom chrome */
.nd-body--no-chrome {
  padding-bottom: 1rem;
}

/* Public profile (other user): fixed message CTA above safe area */
.nd-body--no-chrome.nd-body--profile-message {
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0));
}

/* Public profile (other user) WITH bottom nav:
   stack message bar above the dock and reserve space for both. */
.nd-body--profile-message:not(.nd-body--no-chrome) {
  padding-bottom: calc(
    5.25rem + var(--nd-bottom-dock-stack-height, 0px) + env(safe-area-inset-bottom, 0)
  );
}

.nd-body--profile-message:not(.nd-body--no-chrome) .nd-profile-public-message-bar {
  bottom: calc(var(--nd-bottom-dock-stack-height, 0px) + env(safe-area-inset-bottom, 0));
}

.nd-profile-public-message-btn {
  min-height: 2.75rem;
}

.nd-profile-public-back-btn {
  min-width: 5.25rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Account settings: fixed “Save profile” bar (replaces bottom nav padding) */
.nd-body--no-chrome.nd-body--account-settings-sticky {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0));
}

.nd-body--account-settings-sticky:not(.nd-body--no-chrome) {
  padding-bottom: calc(6.25rem + env(safe-area-inset-bottom, 0));
}

.nd-body--no-chrome .nd-chat-detail {
  min-height: 100dvh;
  min-height: 100svh;
}

/* Chat thread: lock page scroll; only .nd-chat-stream scrolls; composer stays usable */
html:has(body.nd-body--chat-thread) {
  height: 100%;
}

body.nd-body--no-chrome.nd-body--chat-thread {
  height: 100%;
  max-height: 100dvh;
  max-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nd-body--chat-thread .nd-main.container-fluid {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Chat thread: strip outer page padding + full-viewport message area */
.nd-body--chat-thread .nd-chat-detail {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  --nd-chat-keyboard-gap: 0px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
}

.nd-body--no-chrome.nd-body--chat-thread .nd-chat-detail {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  height: auto;
}

.nd-body--chat-thread .nd-chat-topbar {
  padding-left: max(0.75rem, env(safe-area-inset-left, 0));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0));
}

.nd-body--chat-thread .nd-chat-bar {
  padding-left: max(0.75rem, env(safe-area-inset-left, 0));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0));
}

@media (max-width: 767.98px) {
  .nd-body--chat-thread .nd-chat-bar {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--nd-chat-keyboard-gap, 0px));
    z-index: 1040;
    margin-top: 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
  }

  .nd-body--chat-thread .nd-chat-stream-wrap {
    padding-bottom: calc(5.85rem + env(safe-area-inset-bottom, 0px) + var(--nd-chat-keyboard-gap, 0px));
  }
}

.nd-body--chat-thread .nd-chat-stream-wrap {
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  margin-left: calc(50% - 50vw);
}

/* Tag product detail: bottom pill nav (save + message) */
.nd-body--product-actions {
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0));
}

.nd-product-actions {
  z-index: 1030;
  background-color: var(--nd-surface);
  border-top: 1px solid var(--nd-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

/* Hide fixed CTAs while scrolling (public profile message bar). */
body.nd-fixed-cta-scroll-hidden .nd-profile-public-message-bar {
  transform: translate3d(0, calc(100% + 0.75rem), 0);
  opacity: 0;
  pointer-events: none;
}

.nd-profile-public-message-bar {
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0.24, 1), opacity 0.28s ease;
  will-change: transform;
}

.nd-product-actions-inner {
  width: 100%;
  max-width: min(100%, 720px);
  margin-left: auto;
  margin-right: auto;
}

.nd-product-actions-icon {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nd-btn-radius);
}

.nd-product-actions-ico {
  font-size: 1.1rem;
  line-height: 1;
}

.nd-product-actions-icon.nd-product-card-heart--active {
  background-color: var(--nd-primary);
  border-color: var(--nd-primary);
  color: #fff;
}

.nd-product-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nd-text-muted);
}

.nd-solar-breadcrumb {
  --bs-breadcrumb-divider: "/";
  --bs-breadcrumb-item-padding-x: 0.35rem;
  margin-bottom: 0;
}

.nd-solar-faq-item summary {
  cursor: pointer;
  list-style-position: outside;
}

.nd-solar-faq-item summary::-webkit-details-marker {
  color: var(--nd-text-muted, #64748b);
}

.nd-solar-internal-nav a {
  text-decoration: none;
}

.nd-solar-internal-nav a:hover {
  text-decoration: underline;
}

.nd-solar-product-lead .h4 {
  word-break: break-word;
}

.nd-product-seller-card {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

a:hover .nd-product-seller-card {
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12) !important;
}

.nd-product-seller-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px));
}

.nd-product-seller-avatar-fallback {
  font-size: 0.72rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
  padding: 0.2rem;
}

.nd-logo--image {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.nd-logo-img {
  display: block;
  height: 1.8rem;
  width: auto;
  max-width: 6rem;
  object-fit: contain;
}

.nd-site-logo-preview {
  display: block;
  max-height: 2.5rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
}

.nd-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-width: 0;
  /* True full-bleed width inside padded body (works with overflow-x: clip on body) */
  width: 100vw;
  max-width: none;
  margin-left: calc((100% - 100vw) / 2);
  margin-right: calc((100% - 100vw) / 2);
  box-sizing: border-box;
  background-color: var(--nd-surface);
  border-bottom: 1px solid var(--nd-border);
  border-radius: 0 0 var(--nd-chrome-radius) var(--nd-chrome-radius);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
}

.nd-header-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100vw;
  max-width: none;
  margin-left: calc((100% - 100vw) / 2);
  margin-right: calc((100% - 100vw) / 2);
  box-sizing: border-box;
  padding: 0.52rem 0.6rem;
  padding-top: max(0.52rem, env(safe-area-inset-top, 0));
  padding-right: max(0.6rem, env(safe-area-inset-right, 0));
  padding-left: max(0.6rem, env(safe-area-inset-left, 0));
  min-height: 2.6rem;
}

@media (min-width: 768px) {
  .nd-header-inner {
    gap: 0.8rem;
    padding-left: max(0.8rem, env(safe-area-inset-left, 0));
    padding-right: max(0.8rem, env(safe-area-inset-right, 0));
    padding-top: max(0.6rem, env(safe-area-inset-top, 0));
    padding-bottom: 0.6rem;
    min-height: 2.8rem;
  }
}

.nd-header-start {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.nd-header-brand.nd-logo--image {
  min-width: 0;
}

.nd-header-end {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.nd-header-toolstrip {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  padding: 0.16rem 0.28rem;
  background-color: var(--nd-tap-muted);
  border: 1px solid var(--nd-border);
  border-radius: var(--bs-border-radius-xl);
}

.nd-header-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.88rem;
  border-radius: var(--bs-border-radius-xl);
  color: var(--nd-text);
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.nd-header-tool.nd-header-tool--icon {
  width: 1.88rem;
  height: 1.88rem;
  min-width: 1.88rem;
  min-height: 1.88rem;
}

.nd-header-tool.nd-header-tool--label {
  width: auto;
  padding: 0 0.55rem;
  gap: 0.42rem;
  justify-content: flex-start;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

.nd-header-tool-label {
  line-height: 1;
  white-space: nowrap;
}

.nd-header-tool:hover {
  background-color: #e2e8f0;
  color: var(--nd-text);
}

.nd-header-tool.is-active {
  background-color: var(--nd-primary);
  color: #fff;
}

.nd-header-tool.is-active:hover {
  background-color: var(--nd-primary-hover);
  color: #fff;
}

.nd-header-text-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nd-text-muted);
  text-decoration: none;
  padding: 0.28rem 0.4rem;
  border-radius: var(--nd-chrome-radius);
}

.nd-header-text-link:hover {
  color: var(--nd-text);
  background-color: var(--nd-tap-muted);
}

.nd-header-register {
  font-weight: 600;
}

.nd-logo {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--nd-text);
  text-decoration: none;
  border-radius: var(--nd-chrome-radius);
}

@media (min-width: 768px) {
  .nd-logo {
    font-size: 1.6rem;
  }
}

.nd-logo:hover {
  color: var(--nd-text);
  opacity: 0.85;
}

/* Bottom dock: full-width “stadium” on small screens; centered capsule from md up */
.nd-bottom-nav.nd-bottom-nav--dock {
  --nd-bottom-dock-max: 300px;
  --nd-bottom-bar-radius: var(--nd-unified-round);
  --nd-bottom-bar-icon: 1.16rem;
  --nd-liquid-glass-blur: 28px;
  --nd-liquid-glass-sat: 200%;
  --nd-pill-pad-y: 0.4rem;
  --nd-pill-pad-x: 0.48rem;
  --nd-disk: 2.85rem;
  --nd-pill-gap: 4px;
  --nd-bar-item-min-height: 2.9rem;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0.24, 1), opacity 0.28s ease;
  will-change: transform;
}

/* Hidden while user scrolls (see bottom-nav-scroll-hide.js) */
body.nd-bottom-nav-scroll-hidden .nd-bottom-nav.nd-bottom-nav--dock {
  transform: translate3d(0, calc(100% + 0.75rem), 0);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .nd-bottom-nav.nd-bottom-nav--dock {
    transition-duration: 0.05s;
  }
}

/* Soft lift: hairline + faint wash so the dock reads above page content */
.nd-bottom-nav.nd-bottom-nav--dock::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0) 0%,
    rgba(248, 250, 252, 0.42) 55%,
    rgba(248, 250, 252, 0.62) 100%
  );
  opacity: 0.85;
  z-index: 0;
}

@media (min-width: 768px) {
  .nd-bottom-nav.nd-bottom-nav--dock {
    --nd-bottom-dock-max: 300px;
    --nd-bottom-bar-radius: var(--nd-chrome-radius, 1.25rem);
    --nd-bottom-bar-icon: 1.05rem;
    --nd-pill-pad-y: 0.34rem;
    --nd-pill-pad-x: 0.52rem;
    --nd-disk: 2.68rem;
    --nd-pill-gap: 4px;
    --nd-bar-item-min-height: 2.62rem;
    --nd-liquid-glass-blur: 26px;
    --nd-liquid-glass-sat: 188%;
  }
}

.nd-bottom-nav.nd-bottom-nav--dock .nd-bottom-inner--dock {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: 100%;
  max-width: min(72rem, 100%);
  margin-inline: auto;
  box-sizing: border-box;
  padding: 0 max(var(--nd-shell-inset, 1rem), 0.55rem) env(safe-area-inset-bottom, 0);
}

.nd-pill {
  display: flex;
  align-items: center;
  gap: var(--nd-pill-gap);
  padding: var(--nd-pill-pad-y) var(--nd-pill-pad-x);
  background-color: var(--nd-surface) !important;
  border: 1px solid var(--nd-border);
  box-shadow: var(--nd-glow);
  border-radius: var(--nd-chrome-radius);
  overflow: hidden;
}

/* Bottom bar: equal-width columns + Apple-style liquid glass */
.nd-pill.nd-pill--spread {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  justify-items: stretch;
  gap: var(--nd-pill-gap, 0.12rem);
  overflow: hidden;
  width: var(--nd-bottom-dock-max, 300px);
  max-width: var(--nd-bottom-dock-max, 300px);
  min-width: var(--nd-bottom-dock-max, 300px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  border-radius: var(--nd-chrome-radius, 1rem) var(--nd-chrome-radius, 1rem) 0 0;
  padding: calc(var(--nd-pill-pad-y) + 0.04rem) calc(var(--nd-pill-pad-x) + 0.06rem);
  border: 1px solid rgba(255, 255, 255, 0.52);
  background-color: rgba(255, 255, 255, 0.22) !important;
  background-image: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.32) 38%,
    rgba(255, 255, 255, 0.12) 72%,
    rgba(255, 255, 255, 0.2) 100%
  );
  backdrop-filter: blur(var(--nd-liquid-glass-blur)) saturate(var(--nd-liquid-glass-sat));
  -webkit-backdrop-filter: blur(var(--nd-liquid-glass-blur)) saturate(var(--nd-liquid-glass-sat));
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.35) inset,
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 -1px 0 rgba(15, 23, 42, 0.06) inset;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.nd-pill.nd-pill--spread::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  opacity: 0.55;
  background: radial-gradient(
    120% 85% at 18% 0%,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0) 58%
  );
}

body.nd-body.nd-body--glass .nd-pill.nd-pill--spread {
  --nd-liquid-glass-blur: 30px;
  --nd-liquid-glass-sat: 210%;
  border-color: rgba(255, 255, 255, 0.58);
  background-color: rgba(255, 255, 255, 0.26) !important;
}

.nd-pill.nd-pill--spread.nd-pill--spread-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nd-pill.nd-pill--spread.nd-pill--spread-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nd-pill.nd-pill--spread.nd-pill--spread-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nd-pill.nd-pill--spread.nd-pill--spread-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.nd-pill.nd-pill--spread > a.nd-pill-item {
  position: relative;
  z-index: 1;
  width: clamp(2.7rem, 22vw, 3.4rem);
  min-width: clamp(2.7rem, 22vw, 3.4rem);
  min-height: 3.1rem;
  height: auto;
  max-height: 3.5rem;
  padding: 0.2rem 0.12rem;
  justify-self: center;
  align-self: center;
  box-sizing: border-box;
  border-radius: var(--bs-border-radius-xxl, 1rem);
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

/* Inactive: accent blue (swap vs former dark-muted default). */
.nd-pill.nd-pill--spread > a.nd-pill-item:not(.is-active) {
  color: #7d82a8;
}

.nd-pill.nd-pill--spread > a.nd-pill-item:hover:not(.is-active) {
  color: #6e74a0;
  background-color: rgba(99, 102, 241, 0.08);
  box-shadow: inset 0 0 0 1px rgba(125, 130, 168, 0.18);
}

.nd-pill.nd-pill--spread > a.nd-pill-item .nd-pill-item-stack {
  min-width: 0;
  width: 100%;
  height: 100%;
  gap: 0.14rem;
  justify-content: center;
}

.nd-pill.nd-pill--spread .nd-pill-ico {
  font-size: clamp(1.15rem, 4.4vw, 1.35rem);
  line-height: 1;
}

.nd-pill.nd-pill--spread .nd-pill-item--expo-center .nd-pill-ico {
  font-size: calc(var(--nd-bottom-bar-icon, 1.1rem) * 1.14);
}

.nd-pill.nd-pill--spread .nd-pill-item--expo-center .nd-pill-lbl {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nd-pill.nd-pill--spread > a.nd-pill-item .nd-pill-lbl {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(0.56rem, 2.5vw, 0.66rem);
  font-weight: 500;
}

@media (min-width: 768px) {
  .nd-pill.nd-pill--spread > a.nd-pill-item .nd-pill-lbl {
    font-size: clamp(0.5rem, 0.9vw, 0.56rem);
  }
}

/* Active: ink/black stack (replaces former blue/indigo gradient). */
.nd-pill.nd-pill--spread .nd-pill-item.is-active {
  color: #fff;
  background-color: #4f83ff;
  background-image: linear-gradient(
    162deg,
    #5d95ff 0%,
    #4f83ff 52%,
    #3f6ff2 100%
  );
  backdrop-filter: blur(12px) saturate(138%);
  -webkit-backdrop-filter: blur(12px) saturate(138%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 8px 22px rgba(79, 131, 255, 0.42),
    0 2px 8px rgba(63, 111, 242, 0.3);
}

.nd-pill.nd-pill--spread .nd-pill-item.is-active:hover {
  color: #fff;
  background-image: linear-gradient(
    162deg,
    #6ba0ff 0%,
    #588bff 50%,
    #4577f7 100%
  );
}

.nd-pill.nd-pill--spread .nd-nav-unread-dot {
  top: -0.04rem;
  right: 0.02rem;
  width: 0.45rem;
  height: 0.45rem;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.nd-pill.nd-pill--spread .nd-pill-item.is-active .nd-nav-unread-dot {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

@media (prefers-reduced-transparency: reduce) {
  .nd-pill.nd-pill--spread {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-image: none !important;
    background-color: var(--nd-surface) !important;
    border: 1px solid var(--nd-border) !important;
    box-shadow: var(--nd-glow) !important;
  }

  .nd-pill.nd-pill--spread::before {
    opacity: 0;
  }

  body.nd-body.nd-body--glass .nd-pill.nd-pill--spread {
    background-color: rgba(255, 255, 255, 0.96) !important;
    border-color: var(--nd-border) !important;
  }

  .nd-pill.nd-pill--spread .nd-pill-item.is-active {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-image: none !important;
    background: linear-gradient(145deg, #334155 0%, #0f172a 48%, #020617 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 28px rgba(15, 23, 42, 0.35);
  }
}

@keyframes nd-expo-heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.14);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.09);
  }
  70% {
    transform: scale(1);
  }
}

.nd-pill.nd-pill--spread .nd-pill-item.is-active .nd-pill-ico {
  transform-origin: center center;
  animation: nd-expo-heartbeat-bar 1.35s ease-in-out infinite;
  will-change: transform;
}

.nd-pill-ico.nd-pill-ico--expo-pulse {
  transform-origin: center center;
  animation: nd-expo-heartbeat 1.35s ease-in-out infinite;
  will-change: transform;
}

/* Tighter pulse inside the fixed-width bar so neighbors are not covered */
.nd-pill.nd-pill--spread .nd-pill-ico.nd-pill-ico--expo-pulse {
  animation-name: nd-expo-heartbeat-bar;
}

@keyframes nd-expo-heartbeat-bar {
  0%,
  100% {
    transform: scale(1);
  }
  18% {
    transform: scale(1.07);
  }
  36% {
    transform: scale(1);
  }
  52% {
    transform: scale(1.05);
  }
  74% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nd-pill.nd-pill--spread .nd-pill-item.is-active .nd-pill-ico {
    animation: none;
  }

  .nd-pill-ico.nd-pill-ico--expo-pulse {
    animation: none;
  }
}

.nd-pill-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--nd-disk);
  height: var(--nd-disk);
  padding: 0.2rem 0.35rem;
  border-radius: var(--nd-chrome-radius);
  text-decoration: none;
  /* Bottom dock uses .nd-pill--spread overrides; default pill stays muted. */
  color: var(--nd-text-muted);
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nd-pill-item-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  line-height: 1;
  text-align: center;
}

/* Unread DM indicator on bottom-nav chat icon */
.nd-nav-unread-dot {
  position: absolute;
  top: 0;
  right: 0.1rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background-color: #dc2626;
  border: 2px solid var(--nd-surface);
  box-sizing: content-box;
  z-index: 2;
  pointer-events: none;
}

.nd-pill-item.is-active .nd-nav-unread-dot {
  border-color: var(--nd-primary);
}

.nd-pill-lbl {
  font-size: 0.52rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .nd-pill-lbl {
    font-size: 0.48rem;
  }
}

.nd-pill-item:hover {
  color: var(--nd-text);
  background-color: var(--nd-tap-muted);
}

.nd-pill-item.is-active {
  background: linear-gradient(145deg, #334155 0%, #0f172a 48%, #020617 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 28px rgba(15, 23, 42, 0.32);
}

.nd-pill-item.is-active:hover {
  color: #fff;
  background: linear-gradient(145deg, #475569 0%, #1e293b 52%, #000 100%);
}

/* One-handed use: larger tap targets + bottom thumb zone (mobile; ~44px min) */
@media (max-width: 767.98px) {
  body.nd-body {
    --nd-icon-size: 1.08rem;
  }

  body.nd-body:not(.nd-body--no-chrome) {
    padding-bottom: 7.65rem;
  }

  /* Header chrome: ~20% shorter than global touch minimum (still tappable) */
  .nd-header .nd-header-tool.nd-header-tool--icon {
    width: 2.2rem;
    height: 2.2rem;
    min-width: 2.2rem;
    min-height: 2.2rem;
  }

  .nd-header .nd-header-tool.nd-header-tool--label {
    min-width: 0;
    width: auto;
    padding: 0 0.55rem;
    font-size: 0.86rem;
  }

  .nd-header-toolstrip {
    gap: 0.16rem;
    padding: 0.256rem 0.336rem;
  }

  .nd-header-brand.nd-logo {
    min-height: 2.2rem;
    min-width: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.16rem;
    box-sizing: border-box;
  }

  .nd-header-brand.nd-logo--image {
    min-height: 2.2rem;
    min-width: 2.2rem;
    padding: 0.28rem 0.44rem;
    display: inline-flex;
    align-items: center;
  }

  .nd-chat-topbar-back,
  .nd-back-btn {
    min-height: var(--nd-touch-min);
    min-width: auto;
    padding: 0.4rem 0.75rem 0.4rem 0.55rem;
  }

  .nd-back-btn__text {
    font-size: 0.875rem;
  }

  .nd-bottom-nav.nd-bottom-nav--dock {
    --nd-bottom-dock-max: 80vw;
    --nd-pill-pad-y: 0.44rem;
    --nd-pill-pad-x: 0.42rem;
    --nd-disk: 2.92rem;
    --nd-pill-gap: 4px;
    --nd-bar-item-min-height: 3rem;
    --nd-bottom-bar-icon: 1.2rem;
  }

  .nd-bottom-nav.nd-bottom-nav--dock .nd-bottom-inner--dock {
    padding: 0 max(var(--nd-shell-inset, 1rem), 0.5rem) env(safe-area-inset-bottom, 0);
  }

  .nd-pill-lbl {
    font-size: 0.6rem;
  }

  .nd-main .form-control:not(textarea) {
    min-height: 2.65rem;
  }

  .nd-main select.form-select {
    min-height: 2.65rem;
  }

  .nd-main .btn-sm {
    min-height: 2.55rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .nd-product-card-heart {
    width: 2.5rem;
    height: 2.5rem;
  }

  .nd-tag-admin-toolbar .nd-tag-icon-btn {
    width: var(--nd-touch-min);
    height: var(--nd-touch-min);
  }

  .nd-tag-drag-handle {
    width: 2.25rem;
    height: 2.25rem;
  }

  .nd-page-topbar {
    gap: 0.75rem;
  }

  .nd-account-toc__link {
    padding: 0.38rem 0.85rem;
  }

  .nd-main .btn,
  .nd-main .btn-close,
  .nd-pill-item {
    touch-action: manipulation;
  }
}

/* —— Expo home (/) — responsive layout + tier cards —— */
.nd-expo-page {
  width: 100%;
  max-width: min(100%, 72rem);
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0.25rem;
}

.nd-expo-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nd-expo-stack {
    gap: 1.35rem;
  }
}

.nd-expo-panel {
  background-color: var(--nd-surface);
}

.nd-expo-hero-card {
  border-radius: var(--nd-unified-round);
}

.nd-expo-hero-row {
  min-height: 0;
}

.nd-expo-hero-card .nd-expo-carousel {
  box-shadow: none;
  border-radius: 0;
  position: relative;
  min-height: 10.5rem;
}

@media (min-width: 576px) {
  .nd-expo-hero-card .nd-expo-carousel {
    min-height: 0;
  }
}

/* Taller on narrow phones (2:1), wide strip from sm (3:1) */
.nd-expo-ratio-hero {
  --bs-aspect-ratio: 50%;
}

@media (min-width: 576px) {
  .nd-expo-ratio-hero {
    --bs-aspect-ratio: calc(100% / 3);
  }
}

.nd-expo-ratio-3x1 {
  --bs-aspect-ratio: calc(100% / 3);
}

.nd-expo-hero-col--slides .nd-expo-carousel {
  border-radius: var(--nd-unified-round) var(--nd-unified-round) 0 0;
}

.nd-expo-hero-col--video .nd-expo-video-frame {
  border-radius: 0 0 var(--nd-unified-round) var(--nd-unified-round);
}

@media (min-width: 401px) {
  .nd-expo-hero-col--slides .nd-expo-carousel {
    border-radius: var(--nd-unified-round) 0 0 var(--nd-unified-round);
  }

  .nd-expo-hero-col--video .nd-expo-video-frame {
    border-radius: 0 var(--nd-unified-round) var(--nd-unified-round) 0;
  }
}

.nd-expo-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #4a4a4a 0%, #353535 100%);
}

.nd-expo-slide--alt {
  background: linear-gradient(145deg, #5a5a5a 0%, #404040 100%);
}

.nd-expo-slide-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.875rem, 2.5vw, 1rem);
}

.nd-expo-carousel-ctrl {
  width: 3rem;
  min-width: 3rem;
  opacity: 1;
}

.nd-expo-carousel-ico {
  font-size: 1.1rem;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.nd-expo-video-wrap {
  background-color: #0d0d0d;
  padding: 0.75rem;
  border-radius: var(--nd-unified-round);
}

.nd-expo-video-caption {
  margin: 0 0 0.5rem;
}

.nd-expo-video-frame iframe {
  border: 0;
}

.nd-expo-tier {
  background-color: var(--nd-surface);
}

.nd-expo-tier-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.95rem 1rem 0.75rem;
  border-bottom: 1px solid var(--nd-border);
}

@media (min-width: 576px) {
  .nd-expo-tier-head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 1.1rem 1.15rem 0.85rem;
  }
}

.nd-expo-tier-title {
  letter-spacing: 0.04em;
}

.nd-expo-tier--diamond .nd-expo-tier-head {
  border-top: 3px solid #c5a059;
}

.nd-expo-tier--vvip .nd-expo-tier-head {
  border-top: 3px solid #5c3d9e;
}

.nd-expo-tier--gold .nd-expo-tier-head {
  border-top: 3px solid #d4af37;
}

.nd-expo-tier--silver .nd-expo-tier-head {
  border-top: 3px solid #9ca3af;
}

.nd-expo-tier-body {
  padding: 0.65rem 0.4rem 0.95rem;
}

@media (min-width: 768px) {
  .nd-expo-tier-body {
    padding: 0.85rem 0.65rem 1.1rem;
  }
}

.nd-expo-exhibitor-row {
  margin-left: 0;
  margin-right: 0;
}

.nd-expo-exhibitor-cell {
  padding: 0.2rem;
}

@media (min-width: 768px) {
  .nd-expo-exhibitor-cell {
    padding: 0.35rem;
  }
}

.nd-expo-card {
  border-radius: var(--nd-unified-round) !important;
}

.nd-expo-card-visual {
  border-radius: var(--nd-unified-round) var(--nd-unified-round) 0 0;
  overflow: hidden;
}

/* Exhibitor card media: width : height = 2 : 1 */
.nd-expo-exhibitor-image-2x1.ratio {
  --bs-aspect-ratio: 50%;
}

/* Profile (and similar) hero: cover photo intended aspect width:height = 2:1 */
.nd-cover-photo-2x1.ratio {
  --bs-aspect-ratio: 50%;
}

.nd-expo-card-footer {
  background-color: var(--nd-surface);
  border-top: 1px solid var(--nd-border);
  border-radius: 0 0 var(--nd-unified-round) var(--nd-unified-round);
  padding: 0.55rem 0.65rem;
}

@media (min-width: 768px) {
  .nd-expo-card-footer {
    padding: 0.75rem 0.9rem;
  }
}

.nd-expo-card-name {
  color: var(--nd-text);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
}

@media (min-width: 576px) {
  .nd-expo-card-name {
    font-size: 0.875rem;
  }
}

.nd-expo-fav-btn {
  width: 2rem;
  height: 2rem;
  padding: 0 !important;
  border: 1px solid var(--nd-border);
  background-color: #f0f2f5;
  color: var(--nd-text);
}

@media (min-width: 576px) {
  .nd-expo-fav-btn {
    width: 2.25rem;
    height: 2.25rem;
  }
}

.nd-expo-fav-btn:hover {
  background-color: #e4e6eb;
  color: var(--nd-text);
}

.nd-expo-fav-btn--active {
  background-color: var(--nd-primary);
  border-color: var(--nd-primary);
  color: #fff;
}

.nd-expo-fav-btn--active:hover {
  background-color: var(--nd-primary-hover);
  border-color: var(--nd-primary-hover);
  color: #fff;
}

/* —— Expo minimal (/) —— */
.nd-expo-min {
  width: 100%;
  max-width: min(100%, 92rem);
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.5rem 3rem;
}

/* Mobile (narrow viewports): full-bleed home shell; web uses centered max-width above. */
@media (max-width: 400px) {
  .nd-expo-min {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* When main is already vw100 width, skip breakout (avoids overflow / double margins). */
  main.nd-main--vw100 .nd-expo-min {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.nd-expo-min__intro {
  margin-bottom: 2rem;
  padding-top: 0.25rem;
}

.nd-expo-min__deck-note {
  margin-top: 0.65rem;
  max-width: 38rem;
  line-height: 1.45;
}

.nd-expo-min__kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nd-text-muted, #6b7280);
  margin: 0 0 0.35rem;
}

.nd-expo-min__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--nd-text, #111);
  margin: 0;
  line-height: 1.2;
}

.nd-expo-min__hero {
  margin-bottom: 2.75rem;
}

.nd-expo-min__hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--nd-border, #e5e7eb);
  border: 1px solid var(--nd-border, #e5e7eb);
  border-radius: var(--nd-expo-hero-radius, 6px);
  overflow: hidden;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Web (viewport > 400px): one row — video left, slides right. */
@media (min-width: 401px) {
  .nd-expo-min__hero-grid {
    /* total width = 50vw */
    width: 100%;
    grid-template-columns: 2fr 3fr; /* image > video (video left, image right) */
    align-items: stretch;
    gap: 0.9rem;
    background-color: transparent;
    border: 0;
  }

  /* Slides moved to /tag/ — video-only hero spans full width. */
  .nd-expo-min__hero-grid:has(> :only-child) {
    grid-template-columns: 1fr;
  }

  .nd-expo-min__hero-panel {
    height: 100%;
  }
}

.nd-expo-min__hero-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background-color: #fff;
}

.nd-expo-min__hero-label {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nd-text-muted, #6b7280);
}

.nd-expo-min__carousel {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

/* Expo hero carousel arrows: compact hit target + frosted glass */
.nd-expo-min__carousel .carousel-control-prev.nd-expo-min__ctrl,
.nd-expo-min__carousel .carousel-control-next.nd-expo-min__ctrl {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.nd-expo-min__carousel .carousel-control-prev.nd-expo-min__ctrl {
  left: 0.5rem;
  right: auto;
}

.nd-expo-min__carousel .carousel-control-next.nd-expo-min__ctrl {
  right: 0.5rem;
  left: auto;
}

.nd-expo-min__ctrl {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 2px 12px rgba(15, 23, 42, 0.1);
  opacity: 0.88;
  transition:
    opacity 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

/* Video panel: darker glass so chevrons read on bright frames */
.nd-expo-min__ctrl.nd-expo-min__ctrl--on-dark {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 2px 14px rgba(0, 0, 0, 0.35);
  opacity: 0.92;
}

.nd-expo-min__ctrl:hover {
  opacity: 1;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 4px 18px rgba(15, 23, 42, 0.14);
}

.nd-expo-min__ctrl.nd-expo-min__ctrl--on-dark:hover {
  background: rgba(15, 23, 42, 0.52);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 4px 20px rgba(0, 0, 0, 0.45);
}

.nd-expo-min__ctrl:focus-visible {
  opacity: 1;
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 2px;
}

.nd-expo-min__ctrl.nd-expo-min__ctrl--on-dark:focus-visible {
  outline-color: rgba(255, 255, 255, 0.85);
}

/* Slides: dark icon on light glass; video: light icon on dark glass */
.nd-expo-min__hero-panel--slides .nd-expo-min__ctrl .bi {
  color: var(--nd-text, #111);
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
}

.nd-expo-min__ctrl--on-dark .bi {
  color: #fff;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.65));
}

@media (prefers-reduced-transparency: reduce) {
  .nd-expo-min__ctrl {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nd-expo-min__hero-panel--slides .nd-expo-min__ctrl:not(.nd-expo-min__ctrl--on-dark) {
    background: rgba(255, 255, 255, 0.92);
  }

  .nd-expo-min__ctrl.nd-expo-min__ctrl--on-dark {
    background: rgba(30, 41, 59, 0.88);
  }
}

.nd-expo-min__ratio {
  --bs-aspect-ratio: 56.25%;
}

/* Expo home: image slideshow is 3:1 (width:height) */
.nd-expo-min__ratio--slides {
  --bs-aspect-ratio: calc(100% / 3);
  aspect-ratio: 3 / 1;
}

/* VVIP: full-bleed width, 100vh tall; pulled up so top aligns with site header (under it, z below chrome). */
.nd-expo-vvip-video-hero {
  /* ~54px circles: closer to mobile tab-bar tap targets than default 2.25rem arrows */
  --nd-vvip-hero-ctrl-size: clamp(3rem, 11vw, 3.375rem);
  --nd-vvip-hero-ctrl-icon: clamp(1.22rem, 4vw, 1.4rem);
  --nd-vvip-hero-pull: calc(var(--nd-sticky-subnav-top, 4.75rem) + 0.5rem);
  position: relative;
  z-index: 1010;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: calc(-1 * var(--nd-vvip-hero-pull));
  margin-bottom: 1rem;
  height: 100vh;
  min-height: 100vh;
  box-sizing: border-box;
  border-radius: var(--nd-chrome-radius, 14px);
  overflow: visible;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 18px 48px rgba(15, 23, 42, 0.14),
    0 4px 14px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

@media (min-width: 768px) {
  .nd-expo-vvip-video-hero {
    --nd-vvip-hero-pull: calc(var(--nd-sticky-subnav-top, 5rem) + 0.65rem);
    /* Non-mobile: lock hero to portrait 9:16 while keeping full viewport height. */
    width: min(100vw, calc(100vh * 9 / 16));
    max-width: min(100vw, calc(100vh * 9 / 16));
    height: 100vh;
    min-height: 100vh;
    margin-left: auto;
    margin-right: auto;
  }
}

.nd-expo-vvip-video-hero__carousel {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

/* Single clip: no Bootstrap carousel (avoids one-slide swipe / wrap glitches). */
.nd-expo-vvip-video-hero__carousel--single {
  height: 100%;
}

.nd-expo-vvip-video-hero__carousel--single > .nd-expo-vvip-video-hero__frame {
  height: 100%;
}

.nd-expo-vvip-video-hero__carousel,
.nd-expo-vvip-video-hero__inner,
.nd-expo-vvip-video-hero__inner .carousel-item,
.nd-expo-vvip-video-hero__frame {
  height: 100%;
}

.nd-expo-vvip-video-hero__frame {
  position: relative;
  width: 100%;
  background: #0b1220;
  overflow: hidden;
  border-radius: inherit;
}

.nd-expo-vvip-video-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  /* Ensure hero overlay controls (mute/profile/chat) are always clickable */
  pointer-events: none;
}

/* VVIP hero only: bigger prev/next + softer glass (other pages keep compact carousel controls). */
.nd-expo-vvip-video-hero .nd-expo-vvip-video-hero__carousel.nd-expo-min__carousel .carousel-control-prev.nd-expo-min__ctrl,
.nd-expo-vvip-video-hero .nd-expo-vvip-video-hero__carousel.nd-expo-min__carousel .carousel-control-next.nd-expo-min__ctrl {
  width: var(--nd-vvip-hero-ctrl-size);
  height: var(--nd-vvip-hero-ctrl-size);
}

.nd-expo-vvip-video-hero .nd-expo-vvip-video-hero__carousel.nd-expo-min__carousel .carousel-control-prev.nd-expo-min__ctrl {
  left: max(0.5rem, env(safe-area-inset-left, 0px));
}

.nd-expo-vvip-video-hero .nd-expo-vvip-video-hero__carousel.nd-expo-min__carousel .carousel-control-next.nd-expo-min__ctrl {
  right: max(0.5rem, env(safe-area-inset-right, 0px));
}

.nd-expo-vvip-video-hero .nd-expo-min__ctrl.nd-expo-min__ctrl--on-dark {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(10, 16, 28, 0.36);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 2px 14px rgba(0, 0, 0, 0.28);
  opacity: 0.86;
}

.nd-expo-vvip-video-hero .nd-expo-min__ctrl.nd-expo-min__ctrl--on-dark:hover {
  background: rgba(10, 16, 28, 0.48);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 3px 18px rgba(0, 0, 0, 0.36);
}

.nd-expo-vvip-video-hero .nd-expo-min__ctrl.nd-expo-min__ctrl--on-dark .bi {
  font-size: var(--nd-vvip-hero-ctrl-icon);
}

@media (prefers-reduced-transparency: reduce) {
  .nd-expo-vvip-video-hero .nd-expo-min__ctrl.nd-expo-min__ctrl--on-dark {
    background: rgba(22, 30, 48, 0.82);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Profile / chat / mute stack: below the centered “next” control on the right */
.nd-expo-vvip-video-hero__side-actions {
  position: absolute;
  right: max(0.5rem, env(safe-area-inset-right, 0px));
  top: calc(50% + (var(--nd-vvip-hero-ctrl-size) / 2) + 0.35rem);
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  pointer-events: auto;
}

.nd-expo-vvip-video-hero__side-actions__owner-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.nd-expo-vvip-video-hero__side-actions .nd-expo-vvip-video-hero__side-btn.nd-expo-min__ctrl {
  position: relative;
  top: auto;
  bottom: auto;
  transform: none;
  box-sizing: border-box;
  width: var(--nd-vvip-hero-ctrl-size);
  height: var(--nd-vvip-hero-ctrl-size);
  min-width: var(--nd-vvip-hero-ctrl-size);
  min-height: var(--nd-vvip-hero-ctrl-size);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.nd-expo-vvip-video-hero__side-actions a.nd-expo-vvip-video-hero__side-btn:hover {
  color: inherit;
}

/* Expo home: snap-scroll video hero — light “booth” shell */
.nd-expo-video-hero.nd-expo-video-hero--light {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0.85rem 0.75rem 0.35rem;
  margin-bottom: 2rem;
  border-radius: var(--nd-unified-round);
  background:
    radial-gradient(95% 95% at 12% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 52%),
    radial-gradient(80% 70% at 92% 10%, rgba(56, 189, 248, 0.1) 0%, transparent 48%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border: 1px solid var(--nd-border, #e2e8f0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 40px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);
}

.nd-expo-video-hero__mast {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nd-expo-video-hero__mast-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.nd-expo-video-hero__booth-mark {
  flex-shrink: 0;
  width: 2.45rem;
  height: 2.45rem;
  margin-top: 0.12rem;
  border-radius: var(--nd-unified-round);
  background: linear-gradient(145deg, rgba(224, 231, 255, 0.95), rgba(191, 219, 254, 0.85));
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  position: relative;
}

.nd-expo-video-hero__booth-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: var(--nd-unified-round);
  border: 1px dashed rgba(79, 70, 229, 0.35);
  opacity: 0.75;
  pointer-events: none;
}

.nd-expo-video-hero__mast-titles {
  flex: 1 1 auto;
  min-width: 0;
}

.nd-expo-video-hero__kicker {
  font-family: "Syne", "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(0.92rem, 3.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--nd-text, #0f172a);
  margin: 0 0 0.25rem;
  line-height: 1.15;
}

.nd-expo-video-hero__tagline {
  font-size: 0.8125rem;
  color: var(--nd-text-muted, #64748b);
  margin: 0;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.nd-expo-video-hero__mast-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.nd-expo-video-hero__pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--nd-unified-round);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #334155;
  background: #fff;
  border: 1px solid var(--nd-border, #e2e8f0);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.nd-expo-video-hero__pulse {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.35);
  animation: nd-expo-booth-pulse 1.8s ease-in-out infinite;
}

@keyframes nd-expo-booth-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.78;
    transform: scale(1.18);
  }
}

.nd-expo-video-hero__counter {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--nd-text-muted, #64748b);
}

.nd-expo-video-hero__counter-slash {
  margin: 0 0.15rem;
  opacity: 0.45;
}

.nd-expo-video-hero__viewport {
  position: relative;
  padding: 2px;
  border-radius: var(--nd-unified-round);
  background: linear-gradient(
    125deg,
    rgba(129, 140, 248, 0.35) 0%,
    rgba(56, 189, 248, 0.22) 42%,
    rgba(192, 132, 252, 0.28) 100%
  );
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.nd-expo-video-hero__strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  --nd-hero-slide-half: min(36vw, 8.25rem);
  scroll-padding-inline: calc(50% - var(--nd-hero-slide-half));
  padding: 0.5rem calc(50% - var(--nd-hero-slide-half)) 0.65rem;
  margin: 0;
  width: 100%;
  min-width: 0;
  border-radius: max(0px, calc(var(--nd-unified-round) - 1px));
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(99, 102, 241, 0.09), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}

.nd-expo-video-hero__strip::-webkit-scrollbar {
  display: none;
}

.nd-expo-video-hero__slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
  scroll-snap-stop: normal;
  width: 72vw;
  max-width: 16.5rem;
}

.nd-expo-video-hero__card {
  border-radius: var(--nd-unified-round);
  overflow: visible;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.38s ease,
    filter 0.38s ease,
    box-shadow 0.38s ease;
}

.nd-expo-video-hero__slide:not(.is-active) .nd-expo-video-hero__card {
  transform: scale(0.9);
  opacity: 0.94;
  filter: none;
  overflow: hidden;
  border-radius: var(--nd-unified-round);
  background: #fff;
  border: 1px solid var(--nd-border, #e2e8f0);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.nd-expo-video-hero__slide.is-active .nd-expo-video-hero__card {
  transform: scale(1);
  opacity: 1;
  filter: none;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(99, 102, 241, 0.85),
    0 14px 36px rgba(99, 102, 241, 0.18),
    0 10px 28px rgba(15, 23, 42, 0.1);
}

.nd-expo-video-hero__frame {
  position: relative;
  border-radius: max(0px, calc(var(--nd-unified-round) - 1px));
  overflow: hidden;
  background: #f1f5f9;
}

/* Inactive = rounded square thumbnail; active = vertical broadcast (9:16). */
.nd-expo-video-hero__slide:not(.is-active) .nd-expo-video-hero__frame {
  aspect-ratio: 1 / 1;
  width: min(100%, 11.75rem);
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--nd-unified-round);
  background: #e8ecf4;
  border: 1px solid var(--nd-border, #e2e8f0);
}

.nd-expo-video-hero__slide.is-active .nd-expo-video-hero__frame {
  aspect-ratio: 9 / 16;
  height: auto;
  width: 100%;
  border-radius: var(--nd-unified-round);
  background: #0f172a;
}

.nd-expo-video-hero__iframe,
.nd-expo-video-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 0;
  object-fit: cover;
}

.nd-expo-video-hero__hit {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

@media (min-width: 992px) {
  .nd-expo-video-hero__hit {
    display: block;
  }
}

.nd-expo-video-hero--light .nd-expo-video-hero__scanlines {
  display: none;
}

.nd-expo-video-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    168deg,
    rgba(2, 6, 23, 0.05) 0%,
    rgba(15, 23, 42, 0.28) 42%,
    rgba(2, 6, 23, 0.92) 100%
  );
  pointer-events: none;
}

.nd-expo-video-hero__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1rem 1.15rem;
  z-index: 4;
  pointer-events: none;
}

.nd-expo-video-hero__actions {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
  pointer-events: auto;
}

.nd-expo-video-hero__slide:not(.is-active) .nd-expo-video-hero__actions {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.nd-expo-video-hero__slide--clone .nd-expo-video-hero__actions {
  display: none !important;
}

.nd-expo-video-hero__mute-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--nd-unified-round);
  color: #fff;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.nd-expo-video-hero__mute-btn:hover {
  background: rgba(30, 41, 59, 0.82);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px);
}

.nd-expo-video-hero__mute-btn .bi {
  font-size: 1.18rem;
}

.nd-expo-video-hero__copy .nd-expo-video-hero__cta {
  pointer-events: auto;
}

.nd-expo-video-hero__title {
  font-family: "Syne", "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.05rem, 4.2vw, 1.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.nd-expo-video-hero__deck {
  font-size: clamp(0.78rem, 3vw, 0.875rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  margin: 0 0 0.85rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.nd-expo-video-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.58rem 1.2rem;
  border-radius: var(--nd-unified-round);
  font-size: 0.875rem;
  font-weight: 600;
  color: #f8fafc;
  text-decoration: none;
  background: transparent;
  border: 2px solid rgba(165, 180, 252, 0.95);
  box-shadow:
    0 0 22px rgba(129, 140, 248, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.nd-expo-video-hero__cta:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.35);
  border-color: rgba(226, 232, 240, 0.92);
  transform: translateY(-2px);
  box-shadow:
    0 0 36px rgba(129, 140, 248, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@media (min-width: 401px) {
  .nd-expo-video-hero.nd-expo-video-hero--light {
    padding: 1.1rem 1.15rem 0.85rem;
    margin-bottom: 2.5rem;
  }

  .nd-expo-video-hero__mast {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
  }

  .nd-expo-video-hero__mast-meta {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
  }

  .nd-expo-video-hero__strip {
    gap: clamp(0.55rem, 1.4vw, 0.85rem);
    --nd-hero-slide-half: min(13vw, 8.35rem);
    scroll-padding-inline: calc(50% - var(--nd-hero-slide-half));
    padding: 0.65rem calc(50% - var(--nd-hero-slide-half)) 0.85rem;
  }

  .nd-expo-video-hero__slide {
    scroll-snap-align: center;
    scroll-snap-stop: normal;
    width: min(26vw, 16.5rem);
    max-width: 16.5rem;
    flex: 0 0 auto;
  }

  .nd-expo-video-hero__copy {
    padding: 1.35rem 1.45rem 1.65rem;
  }

  .nd-expo-video-hero__cta {
    padding: 0.65rem 1.45rem;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nd-expo-video-hero__pulse {
    animation: none;
  }

  .nd-expo-video-hero__slide:not(.is-active) .nd-expo-video-hero__card,
  .nd-expo-video-hero__slide.is-active .nd-expo-video-hero__card {
    transform: none !important;
    transition: none;
  }
}

.nd-expo-video-hero__empty {
  margin-top: 0.5rem;
}

.nd-expo-video-hero__empty--light {
  margin-top: 0;
  border-radius: var(--nd-unified-round);
  border: 1px dashed var(--nd-border, #cbd5e1);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--nd-text-muted, #64748b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.nd-expo-video-hero__empty--light .fw-semibold {
  color: var(--nd-text, #0f172a);
}

.nd-expo-min__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  color: #9ca3af;
}

.nd-expo-min__ph--muted {
  background-color: #eceef2;
}

.nd-expo-min__video-inner iframe {
  border: 0;
}

.nd-expo-min__tier {
  margin-bottom: 2.75rem;
}

.nd-expo-min__tier:last-child {
  margin-bottom: 0;
}

.nd-expo-min__tier-label {
  font-family: "Syne", "Space Grotesk", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nd-text-muted, #6b7280);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--nd-border, #e5e7eb);
}

/* Bootstrap .row + g-* adds margin-top: -gutter-y, which pulls the grid over the tier
   label above — reset top margin so headings and cards never overlap. */
.nd-expo-min__row.row {
  margin-top: 0;
}

.nd-expo-min__empty {
  padding: 0.5rem 0;
}

.nd-expo-min-card-wrap:focus-visible .nd-expo-min-card,
.nd-expo-min-card-wrap:hover .nd-expo-min-card {
  border-color: #cbd5e1;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.nd-expo-min-card {
  border: 1px solid var(--nd-border, #e5e7eb);
  border-radius: var(--nd-expo-min-card-radius, 4px);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nd-expo-min-card__ratio {
  --bs-aspect-ratio: 62.5%;
}

.nd-expo-min-card__ratio--cover {
  --bs-aspect-ratio: 50%;
}

.nd-expo-min-card__cover-img {
  object-fit: cover;
}

.nd-expo-min-card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
}

.nd-expo-min-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--nd-border, #e5e7eb);
  min-height: 2.75rem;
}

.nd-expo-min-card__name-row {
  flex: 1 1 auto;
  min-width: 0;
}

.nd-expo-min-card__name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--nd-text, #111);
  min-width: 0;
}

/* Verified-style marks next to display names (VVIP plan = blue, admin role = black) */
.nd-name-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  flex-shrink: 0;
}

.nd-name-badge {
  display: inline-flex;
  font-size: 0.92em;
  line-height: 1;
}

.nd-name-badge--vvip {
  color: #2563eb;
}

.nd-name-badge--admin {
  color: #2563eb;
}

.nd-tag-home-highlight__title {
  letter-spacing: 0.08em;
}

.nd-expo-min-card__mark {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nd-text-muted, #6b7280);
}

/* —— Tag / Categories page (page bg transparent; cards stay dark) —— */
.nd-tag-page {
  width: 100%;
  max-width: min(100%, 72rem);
  margin-left: auto;
  margin-right: auto;
  padding: 0 0 0.5rem;
}

/* Match Expo (/) page titles — clamp size, tight tracking */
.nd-tag-heading {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0;
  color: var(--nd-text, #111);
}

.nd-tag-page__hero {
  margin-bottom: 1.25rem;
  padding-top: 0.25rem;
}

.nd-tag-page__hero-row {
  align-items: flex-start;
}

/* Subtitle + bottom rule like .nd-expo-min__tier-label on home */
.nd-tag-page__lead {
  margin: 0.35rem 0 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--nd-border, #e5e7eb);
  max-width: 38rem;
  line-height: 1.45;
}

.nd-tag-admin-toolbar .nd-tag-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nd-tag-admin-card {
  background-color: #fff;
}

.nd-tag-page .nd-tag-admin-card.card {
  border-radius: var(--nd-expo-hero-radius, 6px);
  overflow: hidden;
  border-color: var(--nd-border, #e5e7eb);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nd-tag-sort-wrap {
  min-height: 0;
}

.nd-tag-drag-handle {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  z-index: 3;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: grab;
  opacity: 0.92;
}

.nd-tag-drag-handle:active {
  cursor: grabbing;
}

.nd-tag-sort-ghost {
  opacity: 0.45;
}

.nd-tag-sort-chosen .nd-tag-card {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.22);
}

.nd-tag-card {
  background-color: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-expo-min-card-radius, 4px);
  padding: 0.65rem 0.65rem 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.nd-tag-card:hover {
  background-color: var(--nd-tap-muted);
  color: var(--nd-text);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.nd-tag-card-visual {
  aspect-ratio: 1 / 1;
  width: 100%;
  background-color: #fff;
  margin-bottom: 0.65rem;
  border-radius: var(--nd-expo-min-card-radius, 4px);
  overflow: hidden;
}

.nd-tag-card-label {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--nd-text);
}

@media (min-width: 768px) {
  .nd-tag-card-label {
    font-size: 0.85rem;
  }
}

/* Category tiles share the same grid + thumb proportions as product cards */
.nd-tag-product-grid .nd-tag-card.nd-tag-card--aligned-product-grid {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: var(--nd-expo-min-card-radius, 4px);
  background-color: var(--nd-surface);
  color: var(--nd-text);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.15s ease;
}

.nd-tag-product-grid .nd-tag-card-visual {
  aspect-ratio: 1 / 1;
  width: 100%;
  margin-bottom: 0;
  border-radius: 0;
  background-color: #e8eaef;
}

.nd-tag-product-grid .nd-tag-card-label--grid {
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--nd-text);
  padding: 0.625rem 0.75rem 0.75rem;
  text-align: start;
}

.nd-tag-product-grid .nd-tag-card-visual img {
  transition: transform 0.22s ease;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
}

body.nd-body.nd-body--glass .nd-tag-product-grid .nd-tag-card-label--grid {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Product cards: favorite (client toggle; top-right on grids) — same radius as Expo CTAs */
.nd-product-card-heart {
  width: 2rem;
  height: 2rem;
  padding: 0 !important;
  border-radius: var(--nd-btn-radius, var(--nd-chrome-radius)) !important;
  border: 1px solid var(--nd-border);
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--nd-text);
  line-height: 1;
}

.nd-product-card-heart:hover {
  background-color: #fff;
  color: var(--nd-text);
}

.nd-product-card-heart--active {
  background-color: var(--nd-primary);
  border-color: var(--nd-primary);
  color: #fff;
}

.nd-product-card-heart--active:hover {
  background-color: var(--nd-primary-hover);
  border-color: var(--nd-primary-hover);
  color: #fff;
}

.nd-exhibitor-fav--active {
  color: #fecaca !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
}

.nd-rate-star {
  border: 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  box-shadow: none !important;
  padding: 0.1rem 0.22rem !important;
  min-width: auto !important;
}

.nd-rate-star i {
  color: currentColor !important;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1;
}

.nd-rate-star.active {
  border: 0 !important;
  background: transparent !important;
  color: var(--nd-primary, #2563eb) !important;
  font-weight: 600;
}

.nd-tag-item-rating {
  line-height: 1.2;
}

.nd-tag-item-wrap .nd-product-card-heart,
.nd-profile-showcase-wrap .nd-product-card-heart {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 4;
}

/* Search page — query + watt + submit on one row; top nav visible on /search/ */
.nd-search-page-form-wrap {
  -webkit-overflow-scrolling: touch;
}

.nd-search-page-form--row,
.nd-search-page-form--bar {
  min-width: min(100%, 36rem);
}

.nd-search-page-form--bar {
  box-sizing: border-box;
  padding: 0.4rem 0.5rem;
  background: var(--nd-search-kw-bg, rgba(255, 255, 255, 0.9));
  border: 1px solid var(--nd-search-kw-border, rgba(148, 163, 184, 0.35));
  border-radius: var(--nd-chrome-radius, var(--nd-unified-round));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 24px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nd-search-page-form--bar .nd-search-page-form__input {
  background-color: var(--nd-search-kw-input-bg, rgba(248, 250, 252, 0.95)) !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
  color: var(--nd-search-kw-text, #1e293b) !important;
}

.nd-search-page-form--bar .nd-search-page-form__input::placeholder {
  color: var(--nd-search-kw-muted, #64748b);
  opacity: 1;
}

.nd-search-page-form--bar .nd-search-page-form__input:focus {
  background-color: var(--nd-search-kw-input-focus-bg, #ffffff) !important;
  border-color: rgba(96, 165, 250, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.nd-search-page-form__watt {
  width: 5.5rem;
  min-width: 5rem;
}

.nd-search-lb-scroll {
  overflow-x: visible;
}

.nd-search-lb-card {
  flex: 1 1 min(100%, 14rem);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.nd-search-lb-card:hover {
  border-color: var(--bs-primary) !important;
}

/*
 * Search / mobile: keep BOTH search bars sticky under top header.
 * Uses shared sticky-top offset var so it aligns with other sticky chrome.
 */
@media (max-width: 767.98px) {
  body.nd-body--search-sticky-keyword:not(.nd-body--no-chrome) {
    --nd-search-keyword-top-offset: calc(var(--nd-sticky-subnav-top, 0px) + 0.35rem);
  }

  body.nd-body--search-sticky-keyword:not(.nd-body--no-chrome) .nd-search-page-forms {
    position: sticky;
    top: var(--nd-search-keyword-top-offset);
    z-index: 1025;
    margin-bottom: 1rem !important;
    padding: 0.45rem;
    background: var(--nd-search-kw-bg, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--nd-search-kw-border, rgba(148, 163, 184, 0.35));
    border-radius: var(--nd-chrome-radius, var(--nd-unified-round));
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.7) inset,
      0 10px 24px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  body.nd-body--search-sticky-keyword:not(.nd-body--no-chrome) .nd-search-page-forms .nd-search-page-watt {
    margin-bottom: 0.5rem !important;
  }

  body.nd-body--search-sticky-keyword:not(.nd-body--no-chrome) .nd-search-keyword-sticky-spacer {
    display: none !important;
  }

  body.nd-body--search-sticky-keyword:not(.nd-body--no-chrome) .nd-search-keyword-sticky {
    position: static;
    top: auto;
    z-index: auto;
  }

  body.nd-body--search-sticky-keyword:not(.nd-body--no-chrome) .nd-search-keyword-sticky-inner {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.nd-body--search-sticky-keyword:not(.nd-body--no-chrome) .nd-tag-page.nd-search-page {
    padding-top: 0.2rem;
  }
}

@media (min-width: 768px) {
  body.nd-body--search-sticky-keyword .nd-search-keyword-sticky-spacer {
    display: none !important;
  }

  body.nd-body--search-sticky-keyword .nd-search-keyword-sticky-inner {
    max-width: min(72rem, 100%);
    margin-left: auto;
    margin-right: auto;
    padding: 0.45rem 0.6rem;
  }
}

.nd-search-page-form--keyword-only {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.nd-search-keyword-input-wrap {
  width: 100%;
}

.nd-search-page-form__input--with-trailing {
  padding-right: 5.25rem;
}

.nd-search-keyword-trailing {
  z-index: 2;
  pointer-events: auto;
}

.nd-search-q-clear {
  border: 0 !important;
  line-height: 1;
  text-decoration: none !important;
}

.nd-search-q-clear:hover,
.nd-search-q-clear:focus {
  color: var(--bs-body-color, #1a1c1e) !important;
}

/*
 * Search page — keyword bar: light glass surface.
 * Scoped to sticky inner so wattage row and rest of page stay unchanged.
 */
.nd-search-keyword-sticky-inner {
  --nd-search-kw-bg: rgba(255, 255, 255, 0.9);
  --nd-search-kw-border: rgba(148, 163, 184, 0.35);
  --nd-search-kw-input-bg: rgba(248, 250, 252, 0.95);
  --nd-search-kw-input-focus-bg: #ffffff;
  --nd-search-kw-text: #1e293b;
  --nd-search-kw-muted: #64748b;
  box-sizing: border-box;
  padding: 0.4rem 0.5rem;
  background: var(--nd-search-kw-bg);
  border: 1px solid var(--nd-search-kw-border);
  border-radius: var(--nd-chrome-radius, var(--nd-unified-round));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 24px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nd-search-keyword-sticky-inner .nd-search-page-form__input {
  background-color: var(--nd-search-kw-input-bg) !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
  color: var(--nd-search-kw-text) !important;
}

.nd-search-keyword-sticky-inner .nd-search-page-form__input::placeholder {
  color: var(--nd-search-kw-muted);
  opacity: 1;
}

.nd-search-keyword-sticky-inner .nd-search-page-form__input:focus {
  background-color: var(--nd-search-kw-input-focus-bg) !important;
  border-color: rgba(96, 165, 250, 0.65) !important;
  color: var(--nd-search-kw-text) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.nd-search-keyword-sticky-inner .nd-search-q-clear {
  color: var(--nd-search-kw-muted) !important;
}

.nd-search-keyword-sticky-inner .nd-search-q-clear:hover,
.nd-search-keyword-sticky-inner .nd-search-q-clear:focus {
  color: var(--nd-search-kw-text) !important;
}

@media (prefers-reduced-transparency: reduce) {
  .nd-search-keyword-sticky-inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    --nd-search-kw-bg: #ffffff;
  }
}

.nd-search-page-form__input {
  min-height: 2.75rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  font-size: 0.95rem;
}

.nd-search-page-form__submit {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nd-search-page-form--bar .nd-search-page-form__submit {
  --bs-btn-color: #334155;
  --bs-btn-border-color: rgba(100, 116, 139, 0.42);
  --bs-btn-hover-color: #0f172a;
  --bs-btn-hover-bg: rgba(226, 232, 240, 0.7);
  --bs-btn-hover-border-color: rgba(100, 116, 139, 0.56);
  --bs-btn-active-color: #0f172a;
  --bs-btn-active-bg: rgba(226, 232, 240, 0.88);
  --bs-btn-active-border-color: rgba(100, 116, 139, 0.6);
  --bs-btn-bg: transparent;
  --bs-btn-disabled-bg: transparent;
}

/* /listings/<user>/ — wider shell for 2-up mobile + 6-up from sm */
.nd-exhibitor-listings-page {
  max-width: min(100%, 52rem);
  padding: 0 0 0.5rem;
}

.nd-product-card-heart--table {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tag / search product grids — 2-up below sm; 6-up from sm (--lg-3 name kept for templates) */
.nd-tag-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  align-items: stretch;
}

/* Tag categories board: keep gutters visually consistent on mobile */
#nd-tag-category-sort.nd-tag-product-grid {
  gap: 0.75rem;
  padding: 0.35rem;
  border-radius: var(--nd-chrome-radius);
}

#nd-tag-category-sort .nd-tag-product-grid__cell {
  padding: 0;
}

@media (min-width: 576px) {
  .nd-tag-product-grid--lg-3,
  .nd-tag-product-grid--lg-4,
  .nd-tag-product-grid--profile-showcase {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.nd-tag-product-grid__cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.nd-tag-product-grid__cell .nd-tag-item-wrap {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Fill stretched grid cell: link + article + body flex chain */
.nd-tag-product-grid .nd-tag-item-wrap > a.stretched-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  align-items: stretch;
}

.nd-tag-product-grid .nd-tag-item-wrap > a.stretched-link > .nd-tag-item-card {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.nd-tag-product-grid .nd-tag-item-visual {
  --bs-aspect-ratio: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  background-color: #e8eaef;
}

.nd-tag-product-grid .nd-tag-item-visual img {
  transition: transform 0.22s ease;
}

.nd-tag-product-grid .nd-tag-item-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.375rem;
  padding: 0.625rem 0.75rem 0.75rem;
}

.nd-tag-product-grid .nd-tag-item-body .nd-tag-item-meta {
  margin-top: auto;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--nd-text-muted);
  line-height: 1.35;
}

.nd-tag-product-grid .nd-profile-showcase .ratio {
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .nd-tag-product-grid {
    gap: 0.75rem 1rem;
  }
}

@media (max-width: 575.98px) {
  #nd-tag-category-sort.nd-tag-product-grid {
    gap: 0.65rem;
    padding: 0.25rem;
  }
}

.nd-tag-product-grid--profile-sections {
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .nd-tag-product-grid--profile-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .nd-tag-product-grid--profile-sections {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.nd-tag-product-grid--stack {
  grid-template-columns: 1fr;
}

.nd-tag-product-grid__cell > a.text-decoration-none {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.nd-tag-product-grid__cell > a.text-decoration-none > article {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.nd-tag-product-grid__cell .nd-profile-showcase-wrap {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.nd-tag-product-grid__cell .nd-profile-showcase-wrap > a {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.nd-tag-product-grid__cell .nd-profile-showcase-wrap > a > article {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Profile section cards: wrap > article (no outer link) */
.nd-tag-product-grid__cell .nd-profile-showcase-wrap > article {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.nd-tag-product-grid .nd-profile-showcase .card-body {
  flex: 1 1 auto;
  min-height: 0;
}

/* Product grid tiles (tag category, search, favorites) */
.nd-tag-item-card.nd-tag-item-card--grid {
  border-radius: var(--nd-expo-min-card-radius, 4px);
  background-color: var(--nd-surface);
  color: var(--nd-text);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

.nd-tag-item-card.nd-tag-item-card--grid .nd-tag-item-body {
  background-color: var(--nd-surface);
}

.nd-tag-item-title--clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.35;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--nd-text);
}

.nd-tag-item-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.nd-tag-item-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.42rem;
  border-radius: var(--nd-btn-radius);
  line-height: 1;
}

.nd-tag-item-pill--vvip {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  color: #292524;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.nd-tag-item-pill--featured {
  background: linear-gradient(180deg, #2d2d2d 0%, #0a0a0a 100%);
  color: #fafafa;
}

.nd-tag-item-pill--verified {
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.28);
}

@media (hover: hover) and (pointer: fine) {
  .nd-tag-page a.stretched-link:hover .nd-tag-item-card.nd-tag-item-card--grid,
  .nd-tag-page a.text-decoration-none:hover .nd-tag-item-card.nd-tag-item-card--grid {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.75) inset,
      0 2px 6px rgba(0, 0, 0, 0.06),
      0 14px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
  }

  .nd-tag-page .nd-tag-product-grid a.nd-tag-card--aligned-product-grid:hover,
  .nd-tag-page .nd-tag-product-grid a.nd-tag-card--aligned-product-grid:focus-visible {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.75) inset,
      0 2px 6px rgba(0, 0, 0, 0.06),
      0 14px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    background-color: var(--nd-surface);
    color: var(--nd-text);
  }

  .nd-tag-page a.stretched-link:hover .nd-tag-item-visual img,
  .nd-tag-page a.text-decoration-none:hover .nd-tag-item-visual img {
    transform: scale(1.04);
  }

  .nd-tag-page .nd-tag-product-grid a.nd-tag-card--aligned-product-grid:hover .nd-tag-card-visual img,
  .nd-tag-page .nd-tag-product-grid a.nd-tag-card--aligned-product-grid:focus-visible .nd-tag-card-visual img {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nd-tag-item-card.nd-tag-item-card--grid,
  .nd-tag-product-grid .nd-tag-item-visual img,
  .nd-tag-product-grid .nd-tag-card-visual img {
    transition: none;
  }

  .nd-tag-page a.stretched-link:hover .nd-tag-item-card.nd-tag-item-card--grid,
  .nd-tag-page a.text-decoration-none:hover .nd-tag-item-card.nd-tag-item-card--grid {
    transform: none;
  }

  .nd-tag-page .nd-tag-product-grid a.nd-tag-card--aligned-product-grid:hover,
  .nd-tag-page .nd-tag-product-grid a.nd-tag-card--aligned-product-grid:focus-visible {
    transform: none;
  }

  .nd-tag-page a.stretched-link:hover .nd-tag-item-visual img,
  .nd-tag-page a.text-decoration-none:hover .nd-tag-item-visual img {
    transform: none;
  }

  .nd-tag-page .nd-tag-product-grid a.nd-tag-card--aligned-product-grid:hover .nd-tag-card-visual img,
  .nd-tag-page .nd-tag-product-grid a.nd-tag-card--aligned-product-grid:focus-visible .nd-tag-card-visual img {
    transform: none;
  }
}

/* —— Chat: inbox (Messenger-style list) —— */
.nd-chat-page--hub {
  width: 100%;
  max-width: min(100%, 42rem);
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 0.5rem 2rem;
  color: #050505;
}

@media (min-width: 768px) {
  .nd-chat-page--hub {
    padding: 1.25rem 0.75rem 2.5rem;
  }
}

.nd-chat-hub-head {
  margin-bottom: 1.25rem;
}

.nd-chat-hub-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #050505;
}

/* /chat/ hub — unread badge next to title (updated by chat-nav-unread.js) */
.nd-chat-hub-unread-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #dc2626;
  box-shadow: 0 0 0 2px #fff;
  flex-shrink: 0;
  vertical-align: middle;
}

.nd-chat-hub-block + .nd-chat-hub-block {
  margin-top: 1.5rem;
}

.nd-chat-hub-section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #65676b;
  margin-bottom: 0.65rem;
  text-transform: none;
  letter-spacing: 0;
}

.nd-chat-role-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--nd-expo-min-card-radius, 4px);
  background: #fff;
  color: #050505;
  border: 1px solid #e4e6eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.nd-chat-role-card:hover {
  color: #050505;
  background-color: #f2f3f5;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.nd-chat-role-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #f0f2f5;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.nd-chat-role-card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
}

.nd-chat-role-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.nd-chat-role-card-desc {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #65676b;
  line-height: 1.35;
}

.nd-chat-role-card-chevron {
  opacity: 0.35;
  font-size: 1rem;
  color: #65676b;
}

.nd-chat-thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nd-chat-thread-card {
  background-color: #fff;
  border: 1px solid #e4e6eb;
  border-radius: var(--nd-expo-min-card-radius, 4px);
  padding: 0.75rem 0.85rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.nd-chat-thread-card--unread {
  border-color: #fecaca;
  background-color: #fff5f5;
}

.nd-chat-thread-row-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: #dc2626;
  box-shadow: 0 0 0 2px #fff5f5;
}

.nd-chat-thread-card--unread .nd-chat-preview {
  color: #374151;
  font-weight: 500;
}

.nd-chat-thread {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nd-chat-avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px));
  background: #e4e6eb;
  color: #050505;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.nd-chat-thread-body {
  flex: 1;
  min-width: 0;
}

.nd-chat-thread-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #050505;
}

.nd-chat-thread-chevron {
  font-size: 0.9rem;
  color: #bcc0c4;
}

.nd-chat-preview {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #65676b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nd-chat-thread-link {
  display: block;
  color: inherit;
}

.nd-chat-thread-link:hover .nd-chat-thread-card {
  border-color: #e4e6eb;
  background-color: #f2f3f5;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.nd-chat-thread-link:hover .nd-chat-thread-card--unread {
  border-color: #fca5a5;
  background-color: #ffe4e6;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.12);
}

.nd-chat-empty {
  background-color: #f2f3f5;
  border-color: #e4e6eb !important;
  color: #65676b;
}

/* —— Chat thread (Messenger-style: flat gray, blue sends) —— */
.nd-chat-detail {
  display: flex;
  flex-direction: column;
  max-width: min(100%, 36rem);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  min-width: 0;
  min-height: calc(100dvh - 2rem);
  padding: 0.25rem 0.65rem 0;
  background: #fff;
}

@media (min-width: 576px) {
  .nd-chat-detail {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

.nd-body--no-chrome .nd-chat-detail {
  max-width: 100%;
  padding-left: max(0.65rem, env(safe-area-inset-left, 0));
  padding-right: max(0.65rem, env(safe-area-inset-right, 0));
}

.nd-chat-topbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: max(0.65rem, env(safe-area-inset-top, 0)) 0 0.75rem;
  position: sticky;
  top: 0;
  z-index: 1025;
  background: #fff;
  border-bottom: 1px solid #e4e6eb;
  margin-bottom: 0;
}

.nd-chat-topbar-back,
.nd-back-btn {
  flex-shrink: 0;
  min-height: 2.5rem;
  height: auto;
  width: auto;
  min-width: 2.5rem;
  padding: 0.35rem 0.65rem 0.35rem 0.5rem;
  gap: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px));
  background: #f0f2f5;
  color: #050505;
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1.2;
  transition: background 0.12s ease, transform 0.1s ease;
}

.nd-chat-topbar-back .bi,
.nd-back-btn .bi {
  flex-shrink: 0;
}

.nd-back-btn__text {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  max-width: 6.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 576px) {
  .nd-back-btn__text {
    max-width: 10rem;
  }
}

.nd-chat-topbar-back:hover,
.nd-back-btn:hover {
  background: #e4e6eb;
  color: #050505;
}

.nd-chat-topbar-back:active,
.nd-back-btn:active {
  transform: scale(0.96);
}

/* When site header is visible, in-page sticky bars sit below it (matches .nd-header-inner stack) */
.nd-body:not(.nd-body--no-chrome) {
  --nd-sticky-subnav-top: calc(
    max(0.52rem, env(safe-area-inset-top, 0px)) + 2.6rem + 0.52rem + 1px
  );
}

@media (min-width: 768px) {
  .nd-body:not(.nd-body--no-chrome) {
    --nd-sticky-subnav-top: calc(
      max(0.6rem, env(safe-area-inset-top, 0px)) + 0.6rem + 2.8rem + 0.6rem + 1px
    );
  }
}

/* Tag / search headers: sticky bar so back (and title row) stay visible while scrolling */
.nd-page-topbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  position: sticky;
  top: var(--nd-sticky-subnav-top, 0px);
  z-index: 1018;
  padding-top: max(0.35rem, env(safe-area-inset-top, 0));
  padding-bottom: 0.65rem;
  margin: 0 -0.125rem 0.75rem;
  background-color: rgba(240, 242, 245, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nd-border);
}

.nd-body:not(.nd-body--no-chrome) .nd-page-topbar {
  padding-top: 0.45rem;
}

/* Search (etc.): no site header — sticky in-page bars anchor to safe area only */
.nd-body.nd-body--hide-top-nav:not(.nd-body--no-chrome) {
  --nd-sticky-subnav-top: max(0.35rem, env(safe-area-inset-top, 0px));
}

.nd-body.nd-body--hide-top-nav:not(.nd-body--no-chrome) .nd-page-topbar {
  padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
}

/* Same #f0f2f5 as body — white back control so it stays visible */
.nd-page-topbar .nd-back-btn,
.nd-account-settings-sticky-top .nd-back-btn {
  background-color: var(--nd-surface);
  border: 1px solid var(--nd-border);
}

.nd-page-topbar .nd-back-btn:hover,
.nd-account-settings-sticky-top .nd-back-btn:hover {
  background-color: var(--nd-tap-muted);
  border-color: #d0d3d9;
}

.nd-chat-topbar-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.nd-chat-topbar-avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px));
  background: #e4e6eb;
  color: #050505;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  padding: 0.2rem;
  overflow-wrap: anywhere;
}

.nd-chat-topbar-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #050505;
}

.nd-chat-topbar-name--clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.nd-chat-stream-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.75rem 0.5rem 0.85rem;
  margin-top: 0;
  border-radius: 0;
  background: #f0f2f5;
  border: none;
  border-bottom: none;
}

@media (min-width: 576px) {
  .nd-chat-stream-wrap {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
}

.nd-chat-stream-label {
  letter-spacing: 0;
  font-weight: 600;
  text-align: center;
  padding: 0.35rem 0.75rem 0.85rem;
  color: #65676b !important;
  font-size: 0.75rem !important;
}

.nd-chat-stream {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem 0.35rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 576px) {
  .nd-chat-stream {
    gap: 0.55rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
}

.nd-chat-row {
  display: flex;
}

.nd-chat-row--in {
  justify-content: flex-start;
}

.nd-chat-row--out {
  justify-content: flex-end;
}

.nd-chat-bubble {
  max-width: min(92%, 23rem);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
  padding: 0.65rem 0.9rem;
  word-wrap: break-word;
}

.nd-chat-bubble--in {
  background-color: #e4e6eb;
  color: #050505;
  border: none;
  border-radius: var(--nd-unified-round);
  box-shadow: none;
}

.nd-chat-bubble--out {
  background: #000000;
  color: #fff;
  border-radius: var(--nd-unified-round);
  box-shadow: none;
}

.nd-chat-bubble--typing {
  border: none;
  background: #e4e6eb;
  padding: 0.65rem 0.95rem;
  border-radius: var(--nd-unified-round);
}

.nd-chat-typing {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
  height: 0.5rem;
}

.nd-chat-typing span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #65676b;
  opacity: 0.45;
  animation: nd-chat-dot 1.2s ease-in-out infinite;
}

.nd-chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.nd-chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

.nd-chat-empty-hint {
  padding: 2.5rem 1.25rem;
  line-height: 1.5;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  color: #65676b;
  font-size: 0.9375rem;
}

@keyframes nd-chat-dot {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  40% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.nd-chat-bar {
  flex-shrink: 0;
  padding: 0.65rem 0 calc(0.85rem + env(safe-area-inset-bottom, 0));
  margin-top: auto;
  background: #f0f2f5;
  border-top: 1px solid #e4e6eb;
}

@media (min-width: 768px) {
  .nd-body--chat-thread .nd-chat-bar {
    position: sticky;
    bottom: 0;
    z-index: 1030;
  }
}

.nd-body--no-chrome .nd-chat-bar {
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0));
}

.nd-chat-composer {
  margin: 0;
}

.nd-chat-composer-inner {
  border-color: transparent !important;
  background: #fff !important;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px)) !important;
  min-width: 0;
  gap: 0.45rem;
  padding: 0.35rem 0.45rem 0.35rem 0.85rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  touch-action: manipulation;
}

.nd-chat-readonly-note {
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px));
}

.nd-chat-composer-inner .form-control {
  font-size: 0.9375rem;
  min-height: 2.4rem;
  min-width: 0;
  padding-left: 0.1rem;
  padding-right: 0.1rem;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nd-chat-composer-inner .form-control:focus {
  box-shadow: none !important;
}

.nd-chat-composer-inner .form-control::placeholder {
  color: #8a8d91;
}

.nd-chat-composer-icon {
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px)) !important;
}

.nd-chat-send {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000000 !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px)) !important;
  transition: background 0.12s ease, transform 0.1s ease;
}

.nd-chat-send:hover {
  background: #1a1a1a !important;
  color: #fff !important;
}

.nd-chat-send:active {
  transform: scale(0.95);
}

.nd-chat-send:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.nd-chat-send .bi {
  margin-left: 2px;
  margin-top: 0;
}

@media (max-width: 767.98px) {
  .nd-chat-send {
    min-width: 2.75rem;
    min-height: 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .nd-chat-composer-icon {
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* Profile page — responsive layout + hero */
.nd-profile-page {
  width: 100%;
  max-width: min(100%, 26rem);
}

@media (min-width: 576px) {
  .nd-profile-page {
    max-width: min(100%, 34rem);
  }
}

@media (min-width: 768px) {
  .nd-profile-page {
    max-width: min(100%, 44rem);
  }
}

@media (min-width: 992px) {
  .nd-profile-page {
    max-width: min(100%, 52rem);
  }
}

@media (min-width: 1200px) {
  .nd-profile-page {
    max-width: min(100%, 58rem);
  }
}

/* Profile — luxury landing treatment (shell radius = site unified round) */
.nd-profile-page--landing {
  --nd-profile-shell-radius: var(--nd-unified-round);
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  background: linear-gradient(180deg, #fafbfc 0%, #f1f4f8 42%, #e8ecf2 100%);
}

@media (min-width: 576px) {
  .nd-profile-page--landing {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
}

/* Landing profile article — full viewport width on small screens (escape main px-3) */
@media (max-width: 767.98px) {
  main.nd-main.container-fluid > article.nd-profile-page.nd-profile-page--landing {
    width: 100vw;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px)) !important;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) {
  main.nd-main.container-fluid > article.nd-profile-page.nd-profile-page--landing {
    width: auto;
    max-width: unset;
    margin-left: unset !important;
    margin-right: unset !important;
  }
}

.nd-profile-hero-lux {
  position: relative;
}

.nd-profile-hero--lux {
  box-shadow: 0 24px 55px -22px rgba(15, 23, 42, 0.22);
}

/* Cover + identity: mobile = stacked; md+ = one row, equal height, unequal width */
.nd-profile-top-lux {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (min-width: 768px) {
  .nd-profile-page--landing .nd-profile-top-lux {
    flex-direction: row;
    align-items: stretch;
    gap: 0.85rem;
    min-height: 0;
  }

  .nd-profile-page--landing .nd-profile-top-lux > .nd-profile-hero-lux {
    flex: 1.55 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .nd-profile-page--landing .nd-profile-top-lux > .nd-profile-hero-lux > .nd-profile-hero {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  .nd-profile-page--landing .nd-profile-top-lux > .nd-profile-identity-wrap {
    flex: 1 1 0;
    min-width: min(100%, 15.5rem);
    max-width: min(100%, 40%);
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
  }

  .nd-profile-page--landing .nd-profile-top-lux .nd-profile-identity {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .nd-profile-page--landing .nd-profile-top-lux .nd-profile-identity .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
  }

  /* Side-by-side: cover fills column height (drop fixed 2:1 ratio) */
  .nd-profile-page--landing .nd-profile-top-lux .nd-profile-hero--lux.ratio::before {
    display: none !important;
  }

  .nd-profile-page--landing .nd-profile-top-lux .nd-profile-hero--lux.ratio {
    flex: 1 1 auto;
    height: 100%;
    min-height: 11.5rem;
  }

  /* Narrow identity column: stack avatar / copy / CTA */
  .nd-profile-page--landing .nd-profile-top-lux .nd-profile-identity .card-body > .row {
    flex-direction: column;
    align-items: stretch;
    row-gap: 0.75rem;
  }

  .nd-profile-page--landing .nd-profile-top-lux .nd-profile-identity .col-auto:first-child {
    align-self: center;
  }

  .nd-profile-page--landing .nd-profile-top-lux .nd-profile-identity .col-12.col-sm-auto {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
  }

  .nd-profile-page--landing .nd-profile-top-lux .nd-profile-settings-cta {
    width: 100%;
  }
}

/* Hero + identity: tighter, matched radius; hero flat bottom so overlap reads clean */
.nd-profile-page--landing .nd-profile-hero--lux {
  border-radius: var(--nd-profile-shell-radius) var(--nd-profile-shell-radius) 0 0 !important;
}

.nd-profile-identity--lux {
  border-radius: var(--nd-profile-shell-radius, 0.8125rem) !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 22px 50px -28px rgba(15, 23, 42, 0.35), 0 1px 0 rgba(255, 255, 255, 0.85) inset !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.nd-profile-name--lux {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a !important;
}

.nd-profile-tagline--lux {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: #64748b !important;
}

.nd-profile-section-title--lux {
  font-weight: 800;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem !important;
}

.nd-profile-surface {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 6px 28px -14px rgba(15, 23, 42, 0.14);
}

.nd-profile-prose--lux {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #475569 !important;
}

.nd-profile-lead-muted {
  max-width: 38rem;
  line-height: 1.5;
}

.nd-profile-showcase--lux {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 10px 32px -14px rgba(15, 23, 42, 0.22);
}

a:hover .nd-profile-showcase--lux,
.nd-profile-showcase--lux:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -16px rgba(15, 23, 42, 0.3);
}

.nd-profile-shop-banner {
  box-shadow: 0 14px 36px -16px rgba(15, 23, 42, 0.2);
}

.nd-profile-settings-cta {
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.28);
}

/* Profile — glassmorphism (frosted panels; use with .nd-profile-page--landing) */
.nd-profile-page--glass.nd-profile-page--landing {
  background:
    radial-gradient(125% 90% at 50% -18%, rgba(255, 255, 255, 0.58) 0%, transparent 52%),
    linear-gradient(168deg, #eef3fb 0%, #e6edf6 38%, #dde5f0 72%, #d4deeb 100%);
}

.nd-profile-page--glass .nd-profile-hero--lux {
  box-shadow:
    0 28px 60px -28px rgba(15, 23, 42, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14);
}

.nd-profile-page--glass .nd-profile-identity--lux {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 2px 18px rgba(15, 23, 42, 0.07),
    0 26px 52px -30px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.38) !important;
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}

/* Row layout (md+): outer corners only — must follow .nd-profile-identity--lux + glass identity rules */
@media (min-width: 768px) {
  .nd-profile-page--landing .nd-profile-top-lux .nd-profile-hero--lux {
    border-radius: var(--nd-profile-shell-radius) 0 0 var(--nd-profile-shell-radius) !important;
  }

  .nd-profile-page--landing.nd-profile-page--glass .nd-profile-top-lux .nd-profile-identity--lux,
  .nd-profile-page--landing .nd-profile-top-lux .nd-profile-identity--lux {
    border-radius: 0 var(--nd-profile-shell-radius) var(--nd-profile-shell-radius) 0 !important;
  }
}

.nd-profile-page--glass .nd-profile-avatar {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.7),
    0 10px 28px -10px rgba(15, 23, 42, 0.28);
}

.nd-profile-page--glass .nd-profile-surface,
.nd-profile-page--glass .nd-profile-about-card {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  box-shadow:
    0 2px 16px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.nd-profile-page--glass .nd-profile-shop-banner {
  box-shadow:
    0 14px 36px -14px rgba(15, 23, 42, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.nd-profile-page--glass .nd-profile-showcase--lux {
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 10px 32px -14px rgba(15, 23, 42, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nd-profile-page--glass a:hover .nd-profile-showcase--lux,
.nd-profile-page--glass .nd-profile-showcase--lux:hover {
  box-shadow:
    0 18px 44px -14px rgba(15, 23, 42, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.nd-profile-page--glass .nd-profile-plan-card {
  background: rgba(255, 255, 255, 0.66) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow:
    0 4px 22px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.nd-profile-page--glass .nd-profile-footer {
  background: linear-gradient(
    168deg,
    rgba(46, 46, 50, 0.78) 0%,
    rgba(30, 30, 34, 0.85) 48%,
    rgba(18, 18, 22, 0.9) 100%
  );
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nd-profile-page--glass .nd-profile-section-title--lux {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

.nd-profile-page--glass .nd-tag-page__lead {
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

.nd-profile-page--glass .nd-profile-settings-cta {
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@media (prefers-reduced-transparency: reduce) {
  .nd-profile-page--glass .nd-profile-identity--lux,
  .nd-profile-page--glass .nd-profile-surface,
  .nd-profile-page--glass .nd-profile-about-card,
  .nd-profile-page--glass .nd-profile-plan-card,
  .nd-profile-page--glass .nd-profile-footer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nd-profile-page--glass .nd-profile-identity--lux {
    background: rgba(255, 255, 255, 0.96) !important;
  }

  .nd-profile-page--glass .nd-profile-surface,
  .nd-profile-page--glass .nd-profile-about-card {
    background: #fff !important;
  }

  .nd-profile-page--glass .nd-profile-plan-card {
    background: #fff !important;
  }

  .nd-profile-page--glass .nd-profile-footer {
    background: linear-gradient(165deg, #3a3a3c 0%, #2a2a2c 45%, #1a1a1c 100%);
  }
}

/* Pricing block — full viewport width on small screens (break out of article / body padding) */
@media (max-width: 767.98px) {
  .nd-profile-pricing--bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }
}

@media (min-width: 768px) {
  .nd-profile-pricing--bleed {
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.nd-profile-hero {
  margin-bottom: 0;
}

.nd-profile-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nd-profile-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.08) 42%,
    transparent 72%
  );
  pointer-events: none;
}

.nd-profile-visitor-cover-baseline {
  background: linear-gradient(135deg, #eef2f7 0%, #e2e8f0 48%, #f8fafc 100%);
}

.nd-profile-identity-wrap {
  position: relative;
  z-index: 2;
  /* Light overlap only — large negative margin hid too much of the cover */
  margin-top: clamp(-0.65rem, -1.75vw, -1.1rem);
  margin-bottom: 0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

@media (min-width: 576px) {
  .nd-profile-identity-wrap {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.nd-profile-identity {
  background-color: #fff;
}

.nd-profile-avatar {
  width: clamp(3.5rem, 12vw, 5.25rem);
  height: clamp(3.5rem, 12vw, 5.25rem);
  font-size: clamp(0.75rem, 2.5vw, 1rem);
}

.nd-profile-avatar-fallback {
  line-height: 1;
}

.nd-profile-name {
  font-size: clamp(1.15rem, 3.2vw, 1.65rem);
  letter-spacing: -0.02em;
}

.nd-profile-tagline {
  max-width: 36rem;
}

.nd-profile-body {
  max-width: 100%;
}

/* Logged-in visitor /profile/ — skip lux hero; centered shell (no huge empty cover band) */
.nd-profile-visitor-self {
  max-width: min(100%, 40rem);
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .nd-profile-visitor-self {
    max-width: min(100%, 44rem);
  }
}

@media (min-width: 992px) {
  .nd-profile-visitor-self {
    max-width: min(100%, 48rem);
  }
}

.nd-profile-page--visitor-lite .nd-profile-body--visitor-lite.container {
  max-width: min(100%, 44rem);
}

@media (min-width: 992px) {
  .nd-profile-page--visitor-lite .nd-profile-body--visitor-lite.container {
    max-width: min(100%, 48rem);
  }
}

.nd-profile-section-title {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nd-text-muted);
}

.nd-profile-prose {
  max-width: 42rem;
}

/* About: ~80vw wide column, capped so it never overflows the card */
.nd-profile-about-copy {
  width: 80vw;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.nd-profile-about-card .nd-profile-prose {
  max-width: none;
}

.nd-profile-about-card {
  border-color: var(--nd-border) !important;
}

.nd-profile-showcase-media {
  --bs-aspect-ratio: 75%;
  background-color: #e4e6eb;
}

.nd-profile-showcase .card-body {
  min-height: 4.5rem;
}

.nd-profile-price-tile {
  border-color: var(--nd-border) !important;
}

/* Profile — plan pricing cards (admin roster): one plan per full-width card */
.nd-profile-plan-card {
  border-color: var(--nd-border) !important;
}

.nd-profile-plan-card__list li::marker {
  color: var(--nd-text-muted);
}

.nd-profile-social {
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.92;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nd-profile-social svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.nd-profile-social:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nd-profile-footer-text,
.nd-profile-contact-block {
  max-width: 22rem;
}

.nd-profile-contact-block {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .nd-profile-contact-block {
    max-width: 28rem;
  }
}

/* Profile footer — redesigned contact + more panels */
.nd-profile-footer-inner {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.nd-profile-footer-panels {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 768px) {
  .nd-profile-footer-panels {
    grid-template-columns: 1.25fr 1fr;
    align-items: start;
    gap: 1.1rem;
  }
}

.nd-profile-footer-heading {
  margin: 0.35rem 0 0.55rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.nd-profile-footer-card {
  border-radius: var(--nd-unified-round);
  padding: 0.9rem 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nd-profile-footer-list {
  display: grid;
  gap: 0.55rem;
}

.nd-profile-footer-row {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.55rem;
  align-items: start;
}

.nd-profile-footer-row dt {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.2;
}

.nd-profile-footer-row dt i {
  display: inline-flex;
  width: 1.6rem;
  justify-content: center;
  font-size: 1.05rem;
}

.nd-profile-footer-row dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.nd-profile-footer-row a {
  color: rgba(255, 255, 255, 0.92);
}

.nd-profile-footer-row a:hover {
  color: #fff;
}

.nd-profile-card-dark {
  background: linear-gradient(145deg, #2c2c2e 0%, #1c1c1e 100%);
}

.nd-profile-footer {
  background: linear-gradient(165deg, #3a3a3c 0%, #2a2a2c 45%, #1a1a1c 100%);
}

.nd-profile-footer-bleed {
  margin-top: 0.5rem;
}

/* Account settings — page shell + grouped panels */
.nd-account-page {
  width: 100%;
  max-width: min(100%, 26rem);
}

@media (min-width: 576px) {
  .nd-account-page {
    max-width: min(100%, 34rem);
  }
}

@media (min-width: 768px) {
  .nd-account-page {
    max-width: min(100%, 44rem);
  }
}

@media (min-width: 992px) {
  .nd-account-page {
    max-width: min(100%, 52rem);
  }
}

@media (min-width: 1200px) {
  .nd-account-page {
    max-width: min(100%, 58rem);
  }
}

.nd-account-page-title {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--nd-text);
}

/* Same radius as Expo home (/) — profile preview, uploads, save bar, TOC pills */
.nd-account-page .btn.rounded-pill,
.nd-account-settings-save-bar .btn.rounded-pill,
.nd-account-page .badge.rounded-pill.nd-account-role-badge {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-account-page .form-control.rounded-3,
.nd-account-page .form-select.rounded-3,
.nd-account-page .form-control.rounded-2,
.nd-account-page textarea.form-control.rounded-3 {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-account-page .nd-account-local-file-preview__img.rounded-3,
.nd-account-page .nd-account-preview-img--square-ad.rounded-2 {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-account-page .nd-account-preview-img--avatar {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-account-page .nd-account-preview-x {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-account-page .nd-account-toc__link {
  border-radius: var(--nd-chrome-radius) !important;
}

/* —— Account settings: sticky TOC under title — desktop one row; xs ~3 rows — */
.nd-account-toc-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-padding-inline: 0.25rem;
}

.nd-account-toc-nav::-webkit-scrollbar {
  height: 5px;
}

.nd-account-toc-nav::-webkit-scrollbar-thumb {
  border-radius: var(--nd-unified-round);
  background: rgba(15, 23, 42, 0.18);
}

@media (max-width: 575.98px) {
  .nd-account-toc-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
    gap: 0.45rem;
    padding-bottom: 0.1rem;
  }

  .nd-account-toc-nav .nd-account-toc__link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.9rem;
    min-height: 2.9rem;
    padding-inline: 0.55rem;
    gap: 0;
  }

  .nd-account-toc-nav .nd-account-toc__label {
    display: none;
  }

  .nd-account-toc-nav .nd-account-toc__icon {
    display: inline-block;
    font-size: 1.08rem;
  }
}

.nd-profile-page .nd-profile-avatar {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-profile-page .btn.rounded-pill {
  border-radius: var(--nd-chrome-radius) !important;
}

#nd-profile-crop-modal .btn.rounded-pill,
#nd-profile-crop-modal .nd-profile-crop-stage.rounded-3 {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-account-lead {
  max-width: min(100%, 40rem);
}

.nd-account-toc__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: var(--nd-btn-radius);
  border: 1px solid var(--nd-border);
  background-color: var(--nd-surface);
  color: var(--nd-text-muted);
  line-height: 1.35;
}

.nd-account-toc__link:hover {
  color: var(--nd-text);
  border-color: #cbd0d9;
  background-color: #fafbfc;
}

.nd-account-toc__icon {
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
}

.nd-account-toc__label {
  display: none;
}

.nd-account-toc__link.is-active {
  color: #fff;
  border-color: rgba(59, 130, 246, 0.85);
  background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 52%, #2563eb 100%);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
}

.nd-account-toc-nav .nd-account-toc__link.is-active,
.nd-account-toc-nav .nd-account-toc__link[aria-current="location"] {
  color: #fff !important;
  border-color: rgba(59, 130, 246, 0.92) !important;
  background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 52%, #2563eb 100%) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28) !important;
}

.nd-account-toc-nav .nd-account-toc__link.is-active .nd-account-toc__icon,
.nd-account-toc-nav .nd-account-toc__link[aria-current="location"] .nd-account-toc__icon {
  color: #fff !important;
}

.nd-account-group-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.nd-account-group-head__main {
  flex: 1 1 auto;
  min-width: 0;
}

.nd-account-group-head__toggle .form-check {
  padding-left: 0;
}

.nd-account-group-head__toggle .form-check-input {
  float: none;
  margin-left: 0;
  margin-top: 0.2rem;
}

.nd-account-step-badge {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px));
  background: #0f172a;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 0.1rem;
}

.nd-account-fieldset--group {
  /* Toolbar + sticky TOC clearance for #anchors */
  scroll-margin-top: 9rem;
}

.nd-account-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nd-text-muted);
}

.nd-account-panel-title {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  letter-spacing: 0.02em;
  color: var(--nd-text);
}

.nd-account-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--nd-text);
}

.nd-account-subpanel {
  border-color: var(--nd-border) !important;
}

.nd-account-fieldset {
  border-color: var(--nd-border) !important;
}

/* Visitor account settings: edge-to-edge form on small viewports */
@media (max-width: 767.98px) {
  .nd-account-page .nd-account-panel--visitor-fullbleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
  }

  .nd-account-page .nd-account-panel--visitor-fullbleed__body {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

.nd-account-panel--session .card-body {
  background: linear-gradient(180deg, #fffefb 0%, #fff 100%);
}

.nd-account-section-block {
  border: 1px solid var(--nd-border) !important;
}

.nd-account-settings-sticky-top {
  position: sticky;
  top: var(--nd-sticky-subnav-top, 0px);
  z-index: 1018;
  padding: max(0.35rem, env(safe-area-inset-top, 0)) 0 0.65rem;
  margin: 0 -0.125rem 0.75rem;
  background-color: rgba(240, 242, 245, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nd-border);
}

.nd-account-settings-save-bar {
  pointer-events: auto;
}

.nd-account-settings-save-bar .nd-product-actions-inner {
  padding-top: 0.65rem;
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0));
}

.nd-account-analytics-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(147, 197, 253, 0.72);
  background:
    linear-gradient(145deg, rgba(96, 165, 250, 0.95), rgba(37, 99, 235, 0.92)),
    rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 8px 20px rgba(37, 99, 235, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.nd-account-analytics-btn i {
  font-size: 0.95rem;
  line-height: 1;
}

.nd-account-analytics-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 10px 24px rgba(37, 99, 235, 0.42);
  filter: brightness(1.03);
}

.nd-account-analytics-btn:active {
  transform: translateY(0);
}

/* Save bar: Analytics must match Save-profile shape, but use red tone */
.nd-account-settings-save-bar .nd-account-analytics-btn {
  border-radius: var(--nd-chrome-radius) !important;
  border-color: rgba(248, 113, 113, 0.78) !important;
  background:
    linear-gradient(150deg, rgba(239, 68, 68, 0.98) 0%, rgba(220, 38, 38, 0.97) 52%, rgba(185, 28, 28, 0.98) 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 10px 24px rgba(185, 28, 28, 0.34) !important;
}

.nd-account-settings-save-bar .nd-account-analytics-btn:hover,
.nd-account-settings-save-bar .nd-account-analytics-btn:focus-visible {
  color: #fff !important;
  border-color: rgba(252, 165, 165, 0.9) !important;
  background:
    linear-gradient(150deg, rgba(248, 113, 113, 0.98) 0%, rgba(239, 68, 68, 0.98) 52%, rgba(220, 38, 38, 0.99) 100%) !important;
}

.nd-body .nd-account-settings-save-bar .nd-account-analytics-btn,
.nd-body .nd-account-settings-save-bar .nd-account-analytics-btn:hover,
.nd-body .nd-account-settings-save-bar .nd-account-analytics-btn:focus-visible {
  color: #fff !important;
  border-color: rgba(248, 113, 113, 0.82) !important;
  background:
    linear-gradient(150deg, rgba(239, 68, 68, 0.99) 0%, rgba(220, 38, 38, 0.99) 52%, rgba(185, 28, 28, 0.99) 100%) !important;
}

.nd-analytics-bottom-bar {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.nd-analytics-tier-pill {
  min-height: var(--nd-control-h, 2.6rem);
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(37, 99, 235, 0.1);
  color: #1e40af;
  letter-spacing: 0.04em;
}

/* Tag category topbar: fully transparent background */
.nd-tag-page .nd-page-topbar {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Account settings — expo media preview grid */
.nd-account-settings {
  max-width: none;
}

.nd-admin-accounts-table-wrap {
  max-height: min(70vh, 36rem);
  overflow: auto;
}

.nd-admin-accounts-table .nd-admin-accounts-msg {
  min-width: 10rem;
  max-width: 18rem;
}

.nd-account-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 0.5rem;
}

.nd-account-media-tile {
  margin: 0;
}

/* Account settings — Expo video tiles: 2 / 4 / 6 per row (mobile / tablet / desktop) */
.nd-account-video-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .nd-account-video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .nd-account-video-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.nd-account-video-tile {
  min-width: 0;
}

/* Account settings — image tiles with top-right remove */
.nd-account-preview-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

.nd-account-preview-wrap--favicon,
.nd-account-preview-wrap--navlogo,
.nd-account-preview-wrap--square-ad {
  line-height: 0;
}

.nd-account-preview-img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.nd-account-preview-img--avatar {
  width: 7.5rem;
  height: 7.5rem;
}

.nd-account-preview-img--cover {
  max-height: 10rem;
  width: auto;
  max-width: min(100%, 28rem);
  object-fit: contain;
  object-position: left center;
}

.nd-account-preview-img--banner {
  max-height: 8rem;
  width: auto;
  max-width: min(100%, 36rem);
  object-fit: contain;
}

.nd-account-preview-img--card {
  max-height: 9rem;
  width: auto;
  max-width: min(100%, 20rem);
}

.nd-account-preview-img--expo-slide {
  min-height: 5rem;
  max-height: 6rem;
}

.nd-account-preview-img--favicon,
.nd-account-preview-img--navlogo {
  object-fit: contain;
}

.nd-account-preview-x {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nd-account-preview-wrap--favicon .nd-account-preview-x {
  width: 1.45rem;
  height: 1.45rem;
  top: 0.2rem;
  right: 0.2rem;
}

.nd-account-preview-x:hover {
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
}

.nd-account-preview-x:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.nd-account-local-file-preview__img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Full-screen entrance ads (site admin uploads in account settings) */
body.nd-entrance-ad-open {
  overflow: hidden;
}

.nd-entrance-ad {
  position: fixed;
  inset: 0;
  /* Below Bootstrap modal (1055) so image crop / dialogs stay usable on the same page */
  z-index: 1035;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0))
    max(1rem, env(safe-area-inset-right, 0))
    max(1rem, env(safe-area-inset-bottom, 0))
    max(1rem, env(safe-area-inset-left, 0));
  background: rgba(5, 5, 5, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nd-entrance-ad.is-visible {
  opacity: 1;
}

.nd-entrance-ad__panel {
  width: min(92vw, 22rem);
  max-height: min(88dvh, 36rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.nd-entrance-ad__figure {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--nd-chrome-radius, 6px);
  overflow: hidden;
  background: var(--nd-surface, #fff);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--nd-border, #e4e6eb);
}

.nd-entrance-ad__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nd-entrance-ad__actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nd-entrance-ad__close {
  min-width: 3rem;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Role-based public profiles (@/username) --- */
.nd-padmin-surface {
  background: var(--nd-surface, #fff);
}

.nd-padmin-mission {
  font-size: 1.05rem;
  line-height: 1.55;
}

.nd-padmin-stat-value {
  font-size: 1.45rem;
}

/* Admin profile: platform stats — single horizontal row (not 2×2) */
.nd-padmin-stats {
  flex-wrap: nowrap;
}

.nd-padmin-stats > .col {
  min-width: 0;
}

.nd-padmin-stat-label {
  font-size: 0.7rem;
  line-height: 1.2;
}

@media (min-width: 400px) {
  .nd-padmin-stat-label {
    font-size: inherit;
  }
}

.nd-padmin-logo {
  max-height: 3rem;
  width: auto;
}

.nd-padmin-fe-initial {
  font-size: 0.85rem;
}

.nd-storefront {
  max-width: 72rem;
}

.nd-storefront--accent .btn-dark {
  background-color: var(--nd-store-accent, var(--nd-primary));
  border-color: var(--nd-store-accent, var(--nd-primary));
}

.nd-store-hero {
  position: relative;
}

.nd-store-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.2));
}

.nd-store-hero-ph {
  background: linear-gradient(135deg, #1e1e24 0%, #3d3d47 100%);
}

.nd-store-plan-badge--silver {
  background: linear-gradient(135deg, #e8e8ee, #c8cbd4);
  color: #111;
}

.nd-store-plan-badge--gold {
  background: linear-gradient(135deg, #f3e7c8, #d4af37);
  color: #1a1408;
}

.nd-store-plan-badge--diamond {
  background: linear-gradient(135deg, #e8f6ff, #b8dcff);
  color: #0b2239;
}

.nd-store-plan-badge--vvip {
  background: #111;
  color: #f5e6b8;
  border: 1px solid rgba(212, 175, 55, 0.7);
}

/* Visitor public profile — scales with viewport (was fixed ~36rem) */
.nd-pvisitor {
  width: 100%;
  max-width: min(100%, 36rem);
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .nd-pvisitor {
    max-width: min(100%, 44rem);
  }
}

@media (min-width: 992px) {
  .nd-pvisitor {
    max-width: min(100%, 58rem);
  }
}

.nd-pvisitor-avatar {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
}

img.nd-pvisitor-avatar {
  object-fit: cover;
}

.nd-pvisitor-details dd {
  overflow-wrap: anywhere;
}

.nd-pvisitor-chat-list .list-group-item {
  min-width: 0;
}

.nd-pvisitor-card {
  background: var(--nd-surface);
}

/* --- Exhibitor profile: enterprise marketing layout (Sunrun-style landing) --- */
.nd-sunrun-store {
  --sr-cta: var(--nd-store-accent, #e85d04);
  max-width: 75rem;
}

.nd-sr-hero-media {
  /* Stable hero ratio + rounded corners; no auto-crop zooming. */
  aspect-ratio: 1600 / 686;
  max-height: 50vh;
  overflow: hidden;
  border-radius: 1rem;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.nd-sr-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.nd-sr-hero-ph.nd-sr-hero-img {
  min-height: min(12rem, 50vh);
  max-height: 50vh;
  width: 100%;
  background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #415a77 100%);
}

.nd-sr-hero-scrim {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.nd-sr-hero-panel {
  z-index: 2;
}

.nd-sr-hero-title {
  font-size: clamp(1.65rem, 4.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.nd-sr-hero-deck {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.45;
  max-width: 38rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.nd-sr-btn-primary {
  background-color: var(--sr-cta) !important;
  border-color: var(--sr-cta) !important;
  color: #fff !important;
}

.nd-sr-btn-primary:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.nd-sr-band--light {
  background: var(--nd-surface, #fff);
}

.nd-sr-mini-prop-icon {
  font-size: 1.35rem;
  color: var(--sr-cta);
}

/* At a glance metrics: use blue accent instead of orange */
.nd-sr-band--light .nd-sr-mini-prop-icon {
  color: var(--nd-primary, #2563eb);
}

.nd-sr-mini-prop-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nd-text-muted, #65676b);
}

.nd-sr-mini-prop-value {
  font-size: 1.05rem;
}

.nd-sr-section-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 44rem;
}

.nd-sr-lead {
  max-width: 28rem;
}

.nd-sr-panel {
  background: var(--nd-surface, #fff);
  border: 1px solid var(--nd-border, #e4e6eb);
  border-radius: var(--nd-unified-round);
}

/* Exhibitor public profile footer/contact redesign (high contrast on glass backgrounds) */
.nd-sr-footer-zone {
  padding: 1rem;
  border-radius: calc(var(--nd-unified-round) + 4px);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(150deg, rgba(19, 32, 52, 0.82) 0%, rgba(15, 23, 42, 0.88) 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.nd-sr-footer-zone .nd-sr-section-title {
  color: #f8fafc;
}

.nd-sr-footer-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97) 0%, rgba(241, 245, 249, 0.95) 100%);
  border-color: rgba(203, 213, 225, 0.9);
}

.nd-sr-footer-card .text-secondary {
  color: #475569 !important;
}

.nd-sr-footer-card .btn-outline-dark {
  color: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.82) !important;
}

.nd-sr-footer-map-btn {
  box-shadow: 0 10px 22px rgba(14, 116, 144, 0.24);
}

.nd-sr-footer-zone .nd-sr-btn-primary {
  color: #2563eb !important;
}

.nd-sr-contact-primary-row .btn {
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .nd-sr-footer-card {
    padding: 1rem !important;
  }

  .nd-sr-contact-primary-row {
    flex-wrap: wrap;
  }

  .nd-sr-contact-primary-row .btn {
    flex: 1 1 100%;
    width: 100%;
    white-space: normal;
    line-height: 1.3;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .nd-sr-footer-zone {
    padding: 0.75rem;
  }

  .nd-sr-footer-card .btn-sm {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
    justify-content: center;
  }
}

/* Global icon polish: solid-friendly, clean Apple-like, subtle depth */
i.bi {
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  filter: drop-shadow(0 1px 1.5px rgba(15, 23, 42, 0.18));
}

/* =========================================================
   Global monochrome glass layer (site-wide)
   - Buttons & cards: black/white only
   - Media (images/videos/profile photos): keep original color
   ========================================================= */

.nd-body {
  --nd-bw-bg-0: #f3f5f8;
  --nd-bw-bg-1: #e8edf3;
  --nd-bw-bg-2: #dde4ed;
  --nd-bw-ink: #0f1115;
  --nd-bw-muted: #5a6170;
  --nd-bw-border: rgba(255, 255, 255, 0.72);
  --nd-bw-glass: rgba(255, 255, 255, 0.56);
  --nd-bw-glass-strong: rgba(255, 255, 255, 0.74);
  --nd-bw-radius: 12px;
  background-color: var(--nd-bw-bg-0);
  background-image:
    radial-gradient(110% 70% at 0% -10%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(90% 70% at 100% 20%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(165deg, var(--nd-bw-bg-0) 0%, var(--nd-bw-bg-1) 55%, var(--nd-bw-bg-2) 100%);
}

.nd-body .nd-header,
.nd-body .nd-page-topbar,
.nd-body .nd-account-settings-sticky-top,
.nd-body .nd-pill:not(.nd-pill--spread),
.nd-body .nd-product-actions,
.nd-body .card,
.nd-body .list-group-item,
.nd-body .nd-sr-panel {
  background: var(--nd-bw-glass) !important;
  border: 1px solid var(--nd-bw-border) !important;
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 8px 24px rgba(15, 23, 42, 0.1);
}

.nd-body .card,
.nd-body .nd-sr-panel {
  border-radius: var(--nd-bw-radius) !important;
}

.nd-body .btn:not(.btn-link) {
  color: var(--nd-bw-ink) !important;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.68) 60%,
    rgba(255, 255, 255, 0.56) 100%
  ) !important;
  border: 1px solid var(--nd-bw-border) !important;
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 8px 20px rgba(15, 23, 42, 0.1);
}

.nd-body .btn-dark,
.nd-body .btn-primary {
  color: #fff !important;
  background: linear-gradient(160deg, rgba(24, 24, 26, 0.96), rgba(8, 8, 10, 0.96)) !important;
  border-color: rgba(26, 26, 28, 0.92) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.nd-body .btn-outline-dark,
.nd-body .btn-outline-secondary {
  color: #111 !important;
  border-color: rgba(17, 17, 17, 0.25) !important;
}

.nd-body .form-control,
.nd-body .form-select,
.nd-body textarea {
  background: var(--nd-bw-glass-strong) !important;
  border: 1px solid var(--nd-bw-border) !important;
  color: var(--nd-bw-ink) !important;
}

.nd-body .text-secondary,
.nd-body .text-muted {
  color: var(--nd-bw-muted) !important;
}

/* Spacing pass: normalize key content rhythm */
.nd-body .nd-main > section,
.nd-body .nd-main > .card,
.nd-body .nd-main > .container > section {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .nd-body .nd-main > section,
  .nd-body .nd-main > .card,
.nd-body .nd-main > .container > section {
  margin-bottom: 1.25rem;
  }
}

/* Global page-shell spacing (all major pages) */
.nd-body {
  --nd-page-shell-x: clamp(0.8rem, 2.5vw, 1.5rem);
  --nd-page-shell-y: clamp(0.5rem, 1.2vw, 0.9rem);
  --nd-page-stack-gap: clamp(0.9rem, 1.8vw, 1.35rem);
}

.nd-body .nd-main.container-fluid {
  padding-left: var(--nd-page-shell-x);
  padding-right: var(--nd-page-shell-x);
  padding-bottom: calc(var(--nd-page-stack-gap) + 0.15rem);
}

.nd-body .nd-main > * + * {
  margin-top: var(--nd-page-stack-gap);
}

.nd-body .nd-main :is(
  .nd-tag-page,
  .nd-search-page,
  .nd-promotions-page,
  .nd-profile-page,
  .nd-account-page,
  .nd-chat-page--hub,
  .nd-sunrun-store,
  .nd-padmin
) {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: var(--nd-page-shell-y);
  padding-bottom: var(--nd-page-shell-y);
}

/* Prevent first block from tucking under sticky chrome on key pages */
.nd-body .nd-main :is(
  .nd-tag-page,
  .nd-search-page,
  .nd-promotions-page,
  .nd-chat-page--hub
) > :first-child {
  margin-top: 0.2rem;
}

@media (max-width: 767.98px) {
  .nd-body {
    --nd-page-shell-x: max(0.72rem, env(safe-area-inset-left, 0px));
  }

  .nd-body .nd-main.container-fluid {
    padding-left: var(--nd-page-shell-x);
    padding-right: max(0.72rem, env(safe-area-inset-right, 0px));
  }
}

/* Global accent shift: monochrome */
.nd-body {
  --bs-primary: #111827;
  --nd-primary: #111827;
  --nd-accent: #111827;
  --nd-accent-hover: #0b1220;
}

.nd-body .text-primary,
.nd-body .link-primary {
  color: #111827 !important;
}

.nd-body .btn.btn-primary,
.nd-body .btn-outline-primary {
  --bs-btn-bg: #111827;
  --bs-btn-border-color: #111827;
  --bs-btn-hover-bg: #0b1220;
  --bs-btn-hover-border-color: #0b1220;
  --bs-btn-active-bg: #030712;
  --bs-btn-active-border-color: #030712;
  --bs-btn-color: #fff;
}

.nd-sr-prose {
  max-width: 46rem;
  line-height: 1.65;
}

.nd-sr-product-card .nd-tag-item-card {
  border-radius: var(--nd-unified-round);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--nd-border, #e4e6eb);
}

.nd-sr-media-tile,
.nd-sr-video-wrap {
  border: 1px solid var(--nd-border, #e4e6eb);
}

@media (max-width: 991.98px) {
  .nd-sr-hero-cta-stack .btn-lg {
    font-size: 1rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }
}

/* Exhibitor storefront — Sunrun-style fixed header + edge-to-edge hero */
.nd-header--sunrun {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nd-header--sunrun .nd-header-inner {
  min-height: 2.8rem;
}

.nd-header-brand--exhibitor .nd-header-exhibitor-title {
  font-size: 0.875rem;
  max-width: min(42vw, 14rem);
}

.nd-logo-img--exhibitor {
  width: 32px;
  height: 32px;
  max-width: none;
  object-fit: contain;
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px));
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.nd-logo-img--exhibitor-fallback {
  width: 32px;
  height: 32px;
  font-size: 0.65rem;
  background: #111827;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--nd-chrome-radius, var(--nd-expo-hero-radius, 6px));
}

.nd-header-exhibitor-links a:hover {
  color: var(--sr-cta, #e87722) !important;
}

/* Keep quick actions visually aligned with profile icon button style */
.nd-header--sunrun .nd-header-tool.nd-header-tool--quick {
  background: linear-gradient(145deg, #334155 0%, #0f172a 48%, #020617 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 20px rgba(15, 23, 42, 0.28);
}

.nd-header--sunrun .nd-header-tool.nd-header-tool--quick:hover,
.nd-header--sunrun .nd-header-tool.nd-header-tool--quick:focus-visible {
  background: linear-gradient(145deg, #475569 0%, #1e293b 52%, #000 100%);
  color: #fff;
}

.nd-body--exhibitor-storefront main.nd-main.container-fluid {
  padding-left: max(0.75rem, env(safe-area-inset-left, 0));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0));
}

.nd-body--exhibitor-storefront section[id^="sr-"] {
  scroll-margin-top: 4rem;
}

.nd-sr-hero-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.nd-sr-lead-strip {
  border-radius: var(--nd-unified-round);
}

@media (prefers-reduced-motion: reduce) {
  .nd-sr-hero-img {
    transition: none;
  }
}

/* =========================
   Liquid Glass Redesign v4
   ========================= */
body.nd-body.nd-body--glass {
  --nd-glass-bg: rgba(255, 255, 255, 0.42);
  --nd-glass-bg-strong: rgba(255, 255, 255, 0.58);
  --nd-glass-border: rgba(255, 255, 255, 0.66);
  --nd-glass-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 -1px 0 rgba(15, 23, 42, 0.08) inset,
    0 10px 30px rgba(15, 23, 42, 0.12);
}

body.nd-body.nd-body--glass {
  background-color: #dfe8f5;
  background-image:
    radial-gradient(120% 78% at 15% -12%, rgba(255, 255, 255, 0.62) 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 18%, rgba(125, 211, 252, 0.25) 0%, transparent 52%),
    radial-gradient(88% 62% at 50% 108%, rgba(196, 181, 253, 0.2) 0%, transparent 52%),
    linear-gradient(168deg, #f4f8ff 0%, #eaf1fb 34%, #dee9f6 68%, #d4e0ef 100%);
}

body.nd-body.nd-body--glass .nd-header,
body.nd-body.nd-body--glass .nd-header-toolstrip,
body.nd-body.nd-body--glass .nd-main .card,
body.nd-body.nd-body--glass .nd-main .list-group-item,
body.nd-body.nd-body--glass .nd-page-topbar,
body.nd-body.nd-body--glass .nd-account-settings-sticky-top,
body.nd-body.nd-body--glass .nd-product-actions,
body.nd-body.nd-body--glass .nd-chat-topbar,
body.nd-body.nd-body--glass .nd-chat-bar,
body.nd-body.nd-body--glass .nd-chat-composer-inner,
body.nd-body.nd-body--glass .nd-pill:not(.nd-pill--spread) {
  background: var(--nd-glass-bg) !important;
  border: 1px solid var(--nd-glass-border) !important;
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  box-shadow: var(--nd-glass-shadow);
}

body.nd-body.nd-body--glass .nd-pill.nd-pill--spread {
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0.3) 100%) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(20px) saturate(175%);
  -webkit-backdrop-filter: blur(20px) saturate(175%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.76) inset,
    0 -1px 0 rgba(15, 23, 42, 0.08) inset,
    0 12px 30px rgba(15, 23, 42, 0.12);
}

body.nd-body.nd-body--glass .nd-pill.nd-pill--spread .nd-pill-item.is-active {
  background:
    linear-gradient(155deg, rgba(114, 168, 255, 0.98) 0%, rgba(59, 130, 246, 0.97) 52%, rgba(37, 99, 235, 0.98) 100%) !important;
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 8px 20px rgba(37, 99, 235, 0.35);
}

body.nd-body.nd-body--glass .form-control,
body.nd-body.nd-body--glass .form-select,
body.nd-body.nd-body--glass textarea {
  background: var(--nd-glass-bg-strong) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

body.nd-body.nd-body--glass .form-control:focus,
body.nd-body.nd-body--glass .form-select:focus,
body.nd-body.nd-body--glass textarea:focus {
  background: rgba(255, 255, 255, 0.74) !important;
  border-color: rgba(59, 130, 246, 0.58) !important;
  box-shadow: 0 0 0 0.22rem rgba(59, 130, 246, 0.16) !important;
}

body.nd-body.nd-body--glass .btn {
  backdrop-filter: blur(10px) saturate(145%);
  -webkit-backdrop-filter: blur(10px) saturate(145%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

/* Global buttons: liquid-glass baseline across the whole website */
.nd-body .btn:not(.btn-link),
.nd-body .nd-back-btn {
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.56) 45%, rgba(255, 255, 255, 0.42) 100%) !important;
  backdrop-filter: blur(12px) saturate(155%);
  -webkit-backdrop-filter: blur(12px) saturate(155%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 -1px 0 rgba(15, 23, 42, 0.06) inset,
    0 10px 24px rgba(15, 23, 42, 0.1);
}

.nd-body .btn.btn-dark,
.nd-body .btn.btn-primary,
.nd-body .nd-account-analytics-btn {
  color: #fff !important;
  border-color: rgba(147, 197, 253, 0.74) !important;
  background:
    linear-gradient(150deg, rgba(96, 165, 250, 0.98) 0%, rgba(59, 130, 246, 0.97) 50%, rgba(37, 99, 235, 0.98) 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 10px 24px rgba(37, 99, 235, 0.32);
}

.nd-body .btn:not(.btn-link):hover,
.nd-body .nd-back-btn:hover,
.nd-body .nd-account-analytics-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

/* =========================================
   Global UX Rhythm Audit Pass (May 2026)
   - Consistent spacing, sizing, tap targets
   - Safer harmonization across all pages
   ========================================= */
.nd-body {
  --nd-space-1: 0.25rem;
  --nd-space-2: 0.5rem;
  --nd-space-3: 0.75rem;
  --nd-space-4: 1rem;
  --nd-space-5: 1.25rem;
  --nd-space-6: 1.5rem;
  --nd-space-7: 2rem;
  --nd-control-h: 2.6rem;
  --nd-control-h-sm: 2.15rem;
}

.nd-body .nd-main :is(
  .nd-tag-page,
  .nd-search-page,
  .nd-promotions-page,
  .nd-profile-page,
  .nd-account-page,
  .nd-chat-page--hub,
  .nd-sunrun-store,
  .nd-padmin
) {
  row-gap: var(--nd-space-5);
}

.nd-body .nd-main .card,
.nd-body .nd-main .nd-sr-panel,
.nd-body .nd-main .nd-account-fieldset--group > .card,
.nd-body .nd-main .nd-account-fieldset--group > .nd-sr-panel {
  border-radius: var(--nd-chrome-radius) !important;
}

.nd-body .nd-main .card-body {
  padding: var(--nd-space-4) !important;
}

.nd-body .form-control,
.nd-body .form-select,
.nd-body textarea.form-control {
  min-height: var(--nd-control-h);
  padding-top: 0.56rem;
  padding-bottom: 0.56rem;
}

.nd-body .btn:not(.btn-link),
.nd-body .nd-back-btn {
  min-height: var(--nd-control-h);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.nd-body .btn.btn-sm,
.nd-body .btn-sm.nd-back-btn {
  min-height: var(--nd-control-h-sm);
}

.nd-body .nd-tag-page__hero,
.nd-body .nd-search-page__hero,
.nd-body .nd-promotions-page__hero {
  margin-bottom: var(--nd-space-4);
}

.nd-body .nd-tag-product-grid {
  gap: var(--nd-space-3);
}

.nd-body .nd-account-settings-sticky-top {
  padding-bottom: var(--nd-space-3);
}

.nd-body .nd-account-settings-save-bar .nd-product-actions-inner {
  gap: var(--nd-space-2) !important;
}

.nd-body .nd-account-toc-nav {
  gap: var(--nd-space-2);
}

@media (min-width: 768px) {
  .nd-body .nd-main .card-body {
    padding: var(--nd-space-5) !important;
  }

  .nd-body .nd-tag-product-grid {
    gap: var(--nd-space-4);
  }
}

@media (max-width: 767.98px) {
  .nd-body {
    --nd-control-h: 2.45rem;
  }

  .nd-body .nd-main .card-body {
    padding: var(--nd-space-3) !important;
  }

  .nd-body .nd-tag-page,
  .nd-body .nd-search-page,
  .nd-body .nd-promotions-page,
  .nd-body .nd-profile-page,
  .nd-body .nd-account-page,
  .nd-body .nd-sunrun-store {
    padding-bottom: var(--nd-space-6);
  }
}

/* Global button rounding: match Bootstrap rounded-3 (~0.5rem) */
.nd-body .btn,
.nd-body .nd-back-btn,
.nd-body .nd-account-analytics-btn,
.nd-body button,
.nd-body input[type="button"],
.nd-body input[type="submit"],
.nd-body input[type="reset"],
.nd-body a[class*="btn"] {
  border-radius: 0.5rem !important;
}

/* Global button rounding upgrade: rounded-4 feel, including nav buttons */
.nd-body {
  --nd-btn-radius: 0.75rem;
}

.nd-body .btn,
.nd-body .nd-back-btn,
.nd-body .nd-account-analytics-btn,
.nd-body button,
.nd-body input[type="button"],
.nd-body input[type="submit"],
.nd-body input[type="reset"],
.nd-body a[class*="btn"],
.nd-body .nd-header .nd-header-tool,
.nd-body .nd-bottom-nav a,
.nd-body .nd-bottom-nav button,
.nd-body .nd-page-topbar a,
.nd-body .nd-page-topbar button {
  border-radius: var(--nd-btn-radius) !important;
}

/* Nav containers rounded-4 */
.nd-body .nd-header,
.nd-body .nd-header .nd-header-inner,
.nd-body .nd-bottom-nav,
.nd-body .nd-bottom-nav-wrap,
.nd-body .nd-mobile-bottom-nav,
.nd-body .nd-page-topbar {
  border-radius: 0.75rem !important;
  overflow: hidden;
}

/* Increase rounding further (rounded-5 feel) */
.nd-body {
  --nd-btn-radius: 1rem;
}

.nd-body .nd-header,
.nd-body .nd-header .nd-header-inner,
.nd-body .nd-bottom-nav,
.nd-body .nd-bottom-nav-wrap,
.nd-body .nd-mobile-bottom-nav,
.nd-body .nd-page-topbar {
  border-radius: 1rem !important;
}

/* Tag category top bar: remove glass effect completely (solid / clean surface). */
body.nd-body .nd-tag-page > .nd-page-topbar {
  background: var(--nd-surface) !important;
  background-image: none !important;
  border: 1px solid var(--nd-border) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Expo desktop split layout: video on left, exhibitor plan cards on right */
.nd-expo-websplit {
  display: block;
}

.nd-expo-websplit__video,
.nd-expo-websplit__cards {
  min-width: 0;
}

@media (min-width: 1200px) {
  .nd-expo-websplit {
    display: grid;
    grid-template-columns: 20vw 70vw;
    gap: 1.5vw;
    justify-content: center;
    align-items: start;
  }

  .nd-expo-websplit__video {
    position: sticky;
    top: calc(var(--nd-sticky-subnav-top, 4.75rem) + 0.5rem);
    height: calc(100vh - (var(--nd-sticky-subnav-top, 4.75rem) + 1rem));
    display: flex;
    align-items: center;
  }

  .nd-expo-websplit__video .nd-expo-vvip-video-hero {
    position: relative;
    top: auto;
    width: 20vw;
    max-width: 20vw;
    aspect-ratio: 9 / 16;
    height: auto !important;
    min-height: 0 !important;
    margin-left: 0;
    margin-right: 0;
  }

  .nd-expo-websplit__cards {
    width: 70vw;
    max-width: 70vw;
  }

  /* Right column: larger exhibitor cards on web view */
  .nd-expo-websplit__cards .nd-expo-min__row > .col-12.col-sm-6.col-lg-4.col-xl-3 {
    width: 50%;
  }

  .nd-expo-websplit__cards .nd-expo-min-card {
    position: relative;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(226, 238, 255, 0.9));
    box-shadow:
      0 10px 26px rgba(15, 23, 42, 0.14),
      0 1px 0 rgba(255, 255, 255, 0.85) inset;
  }

  .nd-expo-websplit__cards .nd-expo-min-card__ratio--cover {
    --bs-aspect-ratio: 56.25%;
  }

  .nd-expo-websplit__cards .nd-expo-min-card__foot {
    min-height: 3.25rem;
    padding: 0.85rem 0.95rem;
  }

  .nd-expo-websplit__cards .nd-expo-min-card__name {
    font-size: 0.95rem;
    font-weight: 600;
  }

  .nd-expo-websplit__cards .nd-expo-min-card::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -40%;
    width: 45%;
    height: 340%;
    background: linear-gradient(
      110deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.45) 48%,
      rgba(255, 255, 255, 0.08) 65%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-180%) rotate(12deg);
    pointer-events: none;
    animation: nd-card-shine 4.8s ease-in-out infinite;
  }

  .nd-expo-websplit--no-video {
    grid-template-columns: 1fr;
  }
}

/* Top nav redesign: clean capsule, tighter hierarchy, bottom-nav visual family */
.nd-body .nd-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100vw;
  max-width: none;
  margin-left: calc((100% - 100vw) / 2);
  margin-right: calc((100% - 100vw) / 2);
  border-radius: 0 0 1.2rem 1.2rem !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  border-top: 0 !important;
  background: linear-gradient(
    180deg,
    rgba(236, 245, 255, 0.72) 0%,
    rgba(223, 235, 250, 0.64) 100%
  ) !important;
  backdrop-filter: blur(14px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(125%) !important;
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.94) inset !important;
  overflow: visible !important;
}

.nd-body .nd-header .nd-header-inner {
  width: 100%;
  max-width: min(100%, 72rem);
  margin: 0 auto;
  padding: max(0.56rem, env(safe-area-inset-top, 0px)) max(0.72rem, env(safe-area-inset-right, 0px)) 0.56rem max(0.72rem, env(safe-area-inset-left, 0px));
  min-height: 3.05rem;
  gap: 0.62rem;
  border-radius: 0 0 1rem 1rem !important;
}

.nd-body .nd-header .nd-header-brand.nd-logo--image {
  padding: 0.28rem 0.4rem;
  border-radius: 0.8rem;
}

.nd-body .nd-header .nd-logo-img {
  height: 2rem;
  max-width: 6.4rem;
}

.nd-body .nd-header .nd-header-toolstrip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem;
  border-radius: 0.9rem !important;
  border: 1px solid rgba(156, 173, 198, 0.36) !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(232, 242, 255, 0.56) 100%
  ) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86) inset,
    0 6px 16px rgba(15, 23, 42, 0.07) !important;
  backdrop-filter: blur(10px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
}

.nd-body .nd-header .nd-header-tool {
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0 0.62rem;
  border-radius: 0.78rem !important;
  border: 1px solid transparent;
  color: #172554 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nd-body .nd-header .nd-header-tool .nd-header-tool-icon {
  font-size: 1.02rem;
}

.nd-body .nd-header .nd-header-tool:hover,
.nd-body .nd-header .nd-header-tool:focus-visible {
  color: #0f172a !important;
  border-color: rgba(147, 197, 253, 0.52);
  background: linear-gradient(160deg, rgba(219, 234, 254, 0.96), rgba(191, 219, 254, 0.82)) !important;
}

.nd-body .nd-header .nd-header-tool.is-active {
  color: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.88) !important;
  background: linear-gradient(160deg, #60a5fa 0%, #2563eb 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 6px 16px rgba(37, 99, 235, 0.34) !important;
}

@media (max-width: 767.98px) {
  .nd-body .nd-header {
    border-radius: 0 0 1rem 1rem !important;
  }

  .nd-body .nd-header .nd-header-inner {
    min-height: 2.9rem;
    gap: 0.48rem;
    padding: max(0.48rem, env(safe-area-inset-top, 0px)) max(0.54rem, env(safe-area-inset-right, 0px)) 0.5rem max(0.54rem, env(safe-area-inset-left, 0px));
  }

  .nd-body .nd-header .nd-logo-img {
    height: 1.85rem;
    max-width: 5.7rem;
  }

  .nd-body .nd-header .nd-header-toolstrip {
    padding: 0.22rem;
    gap: 0.22rem;
  }

  .nd-body .nd-header .nd-header-tool {
    min-width: 2.02rem;
    min-height: 2.02rem;
    padding: 0 0.52rem;
  }
}

@keyframes nd-card-shine {
  0%,
  62% {
    transform: translateX(-180%) rotate(12deg);
    opacity: 0;
  }
  70% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(360%) rotate(12deg);
    opacity: 0;
  }
}

@media (min-width: 1440px) {
  .nd-expo-min {
    max-width: min(100%, 102rem);
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }
}

/* Bottom nav: extra rounded corners */
.nd-body #nd-bottom-nav,
.nd-body #nd-bottom-nav .nd-pill,
.nd-body #nd-bottom-nav .nd-pill--spread {
  border-radius: 1.5rem !important;
}

.nd-body #nd-bottom-nav {
  overflow: hidden;
}

/* Bottom nav: flat bottom edge */
.nd-body #nd-bottom-nav,
.nd-body #nd-bottom-nav .nd-pill,
.nd-body #nd-bottom-nav .nd-pill--spread {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* Keep page chrome visually aligned with the bottom nav's rounded glass family. */
.nd-body :where(
  .card,
  .alert,
  .list-group-item,
  .modal-content,
  .dropdown-menu,
  .accordion-item,
  .form-control,
  .form-select,
  .btn
) {
  border-radius: var(--nd-bottom-match-radius, 1.5rem) !important;
}

/* Tag category page (/tag/<slug>/): keep cards larger on tablet/web */
@media (min-width: 576px) {
  .nd-tag-page .nd-tag-product-grid.nd-tag-product-grid--lg-3:not(#nd-tag-category-sort) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 992px) {
  .nd-tag-page .nd-tag-product-grid.nd-tag-product-grid--lg-3:not(#nd-tag-category-sort) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* Account settings sticky header: remove background + glass effect */
.nd-body.nd-body--account-settings-sticky {
  --nd-sticky-subnav-top: 0px;
}

.nd-body.nd-body--account-settings-sticky main#nd-main-content.nd-main.container-fluid,
.nd-body.nd-body--account-settings-sticky .nd-account-page {
  padding-top: 0 !important;
}

.nd-body .nd-account-page .nd-account-settings-sticky-top {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
  margin-top: 0 !important;
  padding-top: 0.35rem !important;
}

/* Public exhibitor profile: premium solar brand storefront, no image auto-cropping. */
.nd-solar-brand {
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: 0.75rem 0.75rem 7rem;
  color: #0f172a;
}

.nd-solar-brand img {
  max-width: 100%;
  object-fit: contain !important;
}

.nd-solar-brand__intro {
  display: grid;
  gap: 0.9rem;
}

.nd-solar-brand__hero {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: var(--nd-bottom-match-radius, 1.5rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(224, 242, 254, 0.82)),
    #fff;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

.nd-solar-brand__cover-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: var(--nd-bottom-match-radius, 1.5rem);
  background: rgba(248, 251, 255, 0.82);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

.nd-solar-brand__cover {
  aspect-ratio: 2 / 1;
  min-height: clamp(10rem, 32vw, 22rem);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(219, 234, 254, 0.55)),
    rgba(226, 232, 240, 0.55);
}

.nd-solar-brand__cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

.nd-solar-brand__cover-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(191, 219, 254, 0.42)),
    rgba(226, 232, 240, 0.48);
}

.nd-solar-brand__hero-media {
  display: grid;
  place-items: center;
  min-height: clamp(13rem, 42vw, 26rem);
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.06), rgba(37, 99, 235, 0.08)),
    #eaf4ff;
}

.nd-solar-brand__hero-media--profile {
  min-height: clamp(15rem, 54vw, 28rem);
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.nd-solar-brand__hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(13rem, 42vw, 26rem);
}

.nd-solar-brand__hero-img--profile {
  width: min(100%, 22rem);
  aspect-ratio: 1;
  max-height: clamp(12rem, 48vw, 22rem);
  padding: clamp(0.35rem, 1.5vw, 0.65rem);
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: var(--nd-bottom-match-radius, 1.5rem);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.nd-solar-brand__hero-placeholder {
  padding: 4rem 1rem;
  color: #334155;
  font-family: "Syne", "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 700;
  text-align: center;
}

.nd-solar-brand__hero-placeholder--profile {
  display: grid;
  place-items: center;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: var(--nd-bottom-match-radius, 1.5rem);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.nd-solar-brand__hero-placeholder--profile span {
  font-size: clamp(2.4rem, 14vw, 5.5rem);
  line-height: 1;
}

.nd-solar-brand__hero-copy {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.35rem, 4vw, 3rem);
}

.nd-solar-brand__identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.nd-solar-brand__logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(4.25rem, 13vw, 6rem);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.nd-solar-brand__logo img {
  width: 100%;
  height: 100%;
  padding: 0.35rem;
}

.nd-solar-brand__logo span {
  color: #1d4ed8;
  font-weight: 800;
}

.nd-solar-brand__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.nd-solar-brand__eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 700;
}

.nd-solar-brand h1,
.nd-solar-brand h2 {
  letter-spacing: 0;
}

.nd-solar-brand h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.98;
}

.nd-solar-brand__identity p {
  max-width: 48rem;
  margin: 0.6rem 0 0;
  color: #475569;
  font-size: clamp(0.98rem, 2vw, 1.14rem);
}

.nd-solar-brand__actions,
.nd-solar-brand__stats,
.nd-solar-brand__feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.nd-solar-brand__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nd-solar-brand__stats {
  margin: 1rem 0;
}

.nd-solar-brand__stats div {
  flex: 1 1 8rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--nd-bottom-match-radius, 1.5rem);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nd-solar-brand__stats span,
.nd-solar-brand__section-head p,
.nd-solar-brand__proof-card small {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nd-solar-brand__stats strong {
  display: block;
  margin-top: 0.25rem;
  color: #1d4ed8;
  font-size: 1.65rem;
  line-height: 1;
}

.nd-solar-brand__section {
  margin-top: 1.25rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--nd-bottom-match-radius, 1.5rem);
  background: rgba(248, 251, 255, 0.82);
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.07);
}

.nd-solar-brand__section-head {
  margin-bottom: 1rem;
}

.nd-solar-brand__section-head h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.35rem, 3.5vw, 2.1rem);
}

.nd-solar-brand__section-head--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.nd-solar-brand__promo-grid,
.nd-solar-brand__proof-grid,
.nd-solar-brand__about-grid {
  display: grid;
  gap: 0.9rem;
}

.nd-solar-brand__promo-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.nd-solar-brand__promo-card,
.nd-solar-brand__feature-card,
.nd-solar-brand__proof-card,
.nd-solar-brand__panel,
.nd-solar-brand__contact {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.25rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.nd-solar-brand__promo-card {
  overflow: hidden;
}

.nd-solar-brand__promo-card img {
  display: block;
  width: 100%;
  max-height: 16rem;
  background: #f8fafc;
}

.nd-solar-brand__promo-card span {
  display: block;
  padding: 0.9rem 1rem;
  font-weight: 800;
}

.nd-solar-brand__feature-strip {
  margin-top: 0.9rem;
}

.nd-solar-brand__feature-card {
  display: flex;
  align-items: center;
  flex: 1 1 16rem;
  gap: 0.8rem;
  padding: 0.65rem;
}

.nd-solar-brand__feature-img {
  display: grid;
  flex: 0 0 5rem;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 1rem;
  background: #eef6ff;
}

.nd-solar-brand__feature-card strong,
.nd-solar-brand__feature-card small {
  display: block;
}

.nd-solar-brand__feature-card small {
  color: #64748b;
}

.nd-solar-brand__about-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 0.8fr);
}

.nd-solar-brand__panel,
.nd-solar-brand__contact,
.nd-solar-brand__proof-card {
  padding: 1rem;
}

.nd-solar-brand__copy {
  color: #334155;
}

.nd-solar-brand__copy p:last-child {
  margin-bottom: 0;
}

.nd-solar-brand__contact h2 {
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
}

.nd-solar-brand__contact p {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  color: #334155;
}

.nd-solar-brand__contact a {
  color: inherit;
}

.nd-solar-brand__proof-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.nd-solar-brand__proof-card img {
  width: 100%;
  max-height: 11rem;
  margin-bottom: 0.85rem;
  border-radius: 1rem;
  background: #f8fafc;
}

.nd-solar-brand__proof-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
}

.nd-solar-brand__proof-card p {
  margin: 0.4rem 0 0;
  color: #64748b;
}

.nd-solar-brand .nd-tag-item-visual,
.nd-solar-brand .ratio {
  background: #f8fafc;
}

.nd-solar-brand .nd-tag-item-visual img,
.nd-expo-min-card__cover-img,
.nd-tag-product-grid .nd-tag-item-visual img,
.nd-tag-product-grid .nd-tag-card-visual img {
  object-fit: contain !important;
}

.nd-body .nd-expo-min-card--cover .nd-expo-min-card__cover-img {
  object-fit: cover !important;
}

.nd-body img.object-fit-cover {
  object-fit: contain !important;
}

@media (min-width: 768px) {
  .nd-solar-brand__intro {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    align-items: stretch;
  }

  .nd-solar-brand__cover-card,
  .nd-solar-brand__hero {
    min-height: 100%;
  }

  .nd-solar-brand__cover {
    height: 100%;
  }

  .nd-solar-brand__hero {
    display: flex;
  }

  .nd-solar-brand__hero-copy {
    align-content: center;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .nd-solar-brand {
    padding: 0.55rem max(0.72rem, env(safe-area-inset-left, 0px)) 6.8rem max(0.72rem, env(safe-area-inset-right, 0px));
  }

  .nd-solar-brand__hero {
    border-radius: 1.35rem;
  }

  .nd-solar-brand__cover-card {
    border-radius: 1.35rem;
  }

  .nd-solar-brand__cover {
    aspect-ratio: 2 / 1;
    min-height: 10rem;
  }

  .nd-solar-brand__hero-copy {
    gap: 0.85rem;
    padding: 1rem;
  }

  .nd-solar-brand__identity,
  .nd-solar-brand__section-head--row {
    align-items: flex-start;
    flex-direction: column;
  }

  .nd-solar-brand__identity {
    gap: 0.75rem;
  }

  .nd-solar-brand__logo {
    width: clamp(4.25rem, 22vw, 5rem);
    border-radius: 1rem;
  }

  .nd-solar-brand__eyebrow {
    gap: 0.35rem;
    margin-bottom: 0.35rem;
  }

  .nd-solar-brand__eyebrow span {
    max-width: 100%;
    padding: 0.22rem 0.5rem;
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .nd-solar-brand h1 {
    font-size: clamp(2rem, 13vw, 3.35rem);
    line-height: 0.96;
  }

  .nd-solar-brand__identity p {
    margin-top: 0.45rem;
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .nd-solar-brand__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.9rem 0;
  }

  .nd-solar-brand__stats div {
    min-width: 0;
    padding: 0.85rem;
    border-radius: 1.25rem;
  }

  .nd-solar-brand__stats span,
  .nd-solar-brand__section-head p,
  .nd-solar-brand__proof-card small {
    font-size: 0.65rem;
    letter-spacing: 0.075em;
  }

  .nd-solar-brand__stats strong {
    font-size: 1.55rem;
  }

  .nd-solar-brand__section {
    margin-top: 0.9rem;
    padding: 0.8rem;
    border-radius: 1.35rem;
  }

  .nd-solar-brand__about-grid {
    grid-template-columns: 1fr;
  }

  .nd-solar-brand__panel,
  .nd-solar-brand__contact,
  .nd-solar-brand__proof-card {
    padding: 0.9rem;
    border-radius: 1.15rem;
  }

  .nd-solar-brand__section-head {
    margin-bottom: 0.75rem;
  }

  .nd-solar-brand__section-head h2 {
    font-size: clamp(1.45rem, 8vw, 2.25rem);
    line-height: 1.08;
  }

  .nd-solar-brand__copy {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* Site-wide page background requested by brand direction. */
:root {
  --nd-site-page-bg: #f8f8ff;
  --nd-site-page-gradient: linear-gradient(344deg, rgba(255, 255, 255, 1) 0%, rgba(148, 187, 233, 1) 100%);
}

html,
body.nd-body,
body.nd-body.nd-body--glass {
  background: var(--nd-site-page-bg) !important;
  background: var(--nd-site-page-gradient) !important;
  background-attachment: fixed !important;
}

/* Search redesign: aligned with the site-wide light glass UI. */
.nd-search-page--redesign {
  width: min(100%, 76rem);
  max-width: min(76rem, calc(100vw - 1.5rem));
  box-sizing: border-box;
  color: #0f172a;
}

.nd-search-page--redesign .text-secondary,
.nd-search-page--redesign .text-muted {
  color: #64748b !important;
}

.nd-search-command {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
  min-width: 0;
  overflow: hidden;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--nd-bottom-match-radius, 1.5rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(235, 245, 255, 0.68)),
    rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 18px 52px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.nd-search-command__copy h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.15rem, 9vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.nd-search-command__copy p {
  max-width: 42rem;
  margin: 0.75rem 0 0;
  color: #475569;
  font-size: clamp(0.98rem, 2.2vw, 1.16rem);
}

.nd-search-page--redesign .nd-search-page-forms {
  margin-bottom: 0 !important;
}

.nd-search-page--redesign .nd-search-keyword-sticky-inner {
  --nd-search-kw-bg: rgba(255, 255, 255, 0.58);
  --nd-search-kw-border: rgba(255, 255, 255, 0.68);
  --nd-search-kw-input-bg: rgba(255, 255, 255, 0.72);
  --nd-search-kw-input-focus-bg: rgba(255, 255, 255, 0.94);
  --nd-search-kw-text: #0f172a;
  --nd-search-kw-muted: #64748b;
  padding: 0.45rem;
  border-radius: var(--nd-bottom-match-radius, 1.5rem);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 10px 28px rgba(15, 23, 42, 0.1);
}

.nd-search-page-form--unified {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7.25rem, 10rem) auto;
  gap: 0.5rem;
  align-items: stretch;
  min-width: 0;
}

.nd-search-page--redesign .nd-search-keyword-input-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nd-search-command__lead-icon {
  position: absolute;
  left: 1rem;
  z-index: 2;
  color: #2563eb;
  font-size: 1.05rem;
  pointer-events: none;
}

.nd-search-page-form__input--with-leading {
  padding-left: 2.65rem;
}

.nd-search-page--redesign .nd-search-page-form__input {
  min-height: 3.15rem;
  border-color: rgba(148, 163, 184, 0.3) !important;
  border-radius: 1.05rem !important;
  background-color: rgba(255, 255, 255, 0.76) !important;
  color: #0f172a !important;
  font-weight: 650;
}

.nd-search-page--redesign .nd-search-page-form__input::placeholder {
  color: #64748b !important;
}

.nd-search-command__watt {
  min-width: 0;
}

.nd-search-command__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.nd-search-page--redesign .nd-search-page-form__submit {
  width: 3.15rem;
  min-height: 3.15rem;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border: 0;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.nd-search-page--redesign .nd-search-q-clear {
  color: #64748b !important;
}

.nd-search-command__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.nd-search-command__status span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1e40af;
  font-size: 0.82rem;
  font-weight: 750;
}

.nd-search-page--redesign .nd-search-results-region:not(:empty),
.nd-search-page--redesign .nd-search-leaderboards,
.nd-search-page--redesign .nd-search-solar-guide,
.nd-search-page--redesign #nd-solar-guide-admin-title {
  color: #0f172a;
}

.nd-search-page--redesign .nd-search-lb-block {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--nd-bottom-match-radius, 1.5rem);
  background: rgba(255, 255, 255, 0.56);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74) inset,
    0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.nd-search-page--redesign .nd-search-lb-block h2 {
  color: #0f172a;
}

.nd-search-page--redesign .nd-search-lb-card {
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.66) !important;
  color: #0f172a !important;
}

.nd-search-page--redesign .nd-search-lb-card:hover {
  border-color: rgba(96, 165, 250, 0.7) !important;
}

.nd-search-page--redesign .nd-search-solar-guide.card,
.nd-search-page--redesign .card {
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  background: rgba(255, 255, 255, 0.62) !important;
  color: #0f172a;
}

.nd-search-page--redesign .accordion-item,
.nd-search-page--redesign .accordion-button,
.nd-search-page--redesign .accordion-body {
  background: rgba(255, 255, 255, 0.64) !important;
  color: #0f172a !important;
}

@media (max-width: 767.98px) {
  body.nd-body--search-sticky-keyword main#nd-main-content.nd-main.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .nd-search-page--redesign {
    width: calc(100vw - 3rem) !important;
    max-width: calc(100vw - 3rem) !important;
  }

  body.nd-body--search-sticky-keyword:not(.nd-body--no-chrome) .nd-search-page--redesign .nd-search-page-forms {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nd-search-page-form--unified {
    display: block;
    position: relative;
    gap: 0.4rem;
  }

  .nd-search-page--redesign .nd-search-keyword-input-wrap {
    width: 100%;
    margin-bottom: 0.4rem;
  }

  .nd-search-page--redesign .nd-search-page-form__input--with-leading {
    padding-right: 3.6rem;
  }

  .nd-search-command__watt {
    width: 100%;
  }

  .nd-search-command__actions {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 4;
  }

  .nd-search-command {
    padding: 1rem;
  }

  .nd-search-command__copy h1 {
    font-size: clamp(2.2rem, 15vw, 4rem);
  }

  .nd-search-page--redesign .nd-search-page-form__input,
  .nd-search-page--redesign .nd-search-page-form__submit {
    min-height: 2.85rem;
  }

  .nd-search-page--redesign .nd-search-page-form__submit {
    width: 2.85rem;
  }

  .nd-search-page--redesign .nd-search-lb-block > .d-flex {
    align-items: flex-start !important;
    flex-direction: column;
  }
}
