/* ==========================================================================
   Long Equity: Shared Site Header
   Mirrors the <Navbar /> component in index.html so every page shares the
   same header. All selectors are prefixed with .lq- (and scoped under
   .lq-site-header) so they never clash with page-level or Tailwind styles.
   ========================================================================== */

:root {
  --lq-header-h: 0px;
}

.lq-site-header,
.lq-site-header *,
.lq-site-header *::before,
.lq-site-header *::after {
  box-sizing: border-box;
}

.lq-site-header {
  width: 100%;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10000;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(229, 229, 229, 0.5);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: #18181b;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.lq-site-header a {
  text-decoration: none;
  color: inherit;
}

.lq-site-header button {
  font-family: inherit;
  margin: 0;
  cursor: pointer;
}

.lq-site-header img {
  display: block;
  max-width: none;
}

.lq-site-header nav {
  display: flex;
}

/* ── Top row: centred logo + Sign in / Subscribe ─────────────────────── */
.lq-header-top {
  width: 100%;
  border-bottom: 1px solid rgba(229, 229, 229, 0.5);
  display: block;
  overflow-x: clip;
}

.lq-site-header.is-scrolled .lq-header-top {
  display: none;
}

.lq-header-top-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.lq-header-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lq-header-logo {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.lq-header-logo:hover {
  transform: scale(1.02);
}

.lq-header-logo:active {
  transform: scale(0.98);
}

.lq-header-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.15s ease;
}

.lq-header-logo:hover img {
  opacity: 0.9;
}

.lq-header-actions {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.lq-header-actions-tablet {
  display: none;
  align-items: center;
  justify-content: flex-end;
}

.lq-signin {
  font-size: 13.5px;
  font-weight: 500;
  color: #404040;
  transition: color 0.15s ease;
}

.lq-signin:hover {
  color: #0a0a0a;
}

.lq-subscribe,
.lq-subscribe:link,
.lq-subscribe:visited,
.lq-subscribe:hover,
.lq-subscribe:focus,
.lq-subscribe:active,
.lq-site-header .lq-subscribe,
.lq-site-header .lq-subscribe:link,
.lq-site-header .lq-subscribe:visited,
.lq-site-header .lq-subscribe:hover,
.lq-site-header .lq-subscribe:focus,
.lq-site-header .lq-subscribe:active,
.lq-mobile-actions .lq-subscribe,
.lq-mobile-actions .lq-subscribe:link,
.lq-mobile-actions .lq-subscribe:visited,
.lq-mobile-actions .lq-subscribe:hover,
.lq-mobile-actions .lq-subscribe:focus,
.lq-mobile-actions .lq-subscribe:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 1.125rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #18181b !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.08), 0 1px 4px -1px rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, color 0.15s ease;
  text-decoration: none !important;
}

.lq-subscribe:hover,
.lq-site-header .lq-subscribe:hover,
.lq-mobile-actions .lq-subscribe:hover {
  background: #ffffff;
  color: #09090b !important;
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-0.5px);
}

.lq-subscribe:active,
.lq-site-header .lq-subscribe:active,
.lq-mobile-actions .lq-subscribe:active {
  background: #fafafa;
  color: #09090b !important;
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ── Bottom row: menu links ──────────────────────────────────────────── */
.lq-header-bottom {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lq-nav-desktop {
  display: none !important;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.lq-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 6px 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.lq-nav-link:hover {
  color: #09090b;
  transform: translateY(-0.5px);
}

.lq-nav-link:active {
  transform: translateY(0) scale(0.98);
}

.lq-nav-link[aria-current="page"],
.lq-nav-trigger.is-active {
  color: #09090b;
  font-weight: 700;
}

.lq-nav-desktop > .lq-nav-link[aria-current="page"]::after,
.lq-nav-dropdown > .lq-nav-trigger.is-active::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  border-radius: 9999px;
  background: #18181b;
}

/* ── Desktop Tools Dropdown Popover ─────────────────────────────────── */
.lq-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lq-nav-dropdown::before {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 14px;
}

.lq-nav-trigger {
  border: 0;
  background: transparent;
  padding: 6px 4px;
  font-family: inherit;
  line-height: 1.5;
}

.lq-nav-caret {
  width: 12px;
  height: 12px;
  color: #71717a;
  transition: transform 0.18s ease, color 0.15s ease;
  flex-shrink: 0;
}

.lq-nav-dropdown:hover .lq-nav-caret,
.lq-nav-dropdown.is-open .lq-nav-caret {
  transform: rotate(180deg);
  color: #09090b;
}

.lq-nav-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: 590px;
  max-width: calc(100vw - 32px);
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 42px -12px rgba(0, 0, 0, 0.14), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10020;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.lq-nav-dropdown:hover .lq-nav-popover,
.lq-nav-dropdown:focus-within .lq-nav-popover,
.lq-nav-dropdown.is-open .lq-nav-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.lq-popover-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.lq-popover-item:hover {
  background: #f5f5f4;
  border-color: rgba(0, 0, 0, 0.05);
}

.lq-popover-item[aria-current="page"] {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.lq-popover-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #18181b;
  line-height: 1.3;
}

.lq-popover-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 9999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
  flex-shrink: 0;
}

.lq-popover-item[aria-current="page"] .lq-popover-title {
  color: #065f46;
}

.lq-popover-desc {
  font-size: 11.5px;
  font-weight: 500;
  color: #71717a;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lq-popover-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: rgba(0, 0, 0, 0.07);
  margin: 4px 6px;
}

/* ── Mobile bar ──────────────────────────────────────────────────────── */
.lq-mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.lq-mobile-label {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a3a3a3;
}

.lq-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.lq-mobile-actions .lq-subscribe {
  padding: 0.375rem 0.875rem;
  font-size: 12.5px;
  transform: none;
}

.lq-burger {
  padding: 0.375rem;
  margin-right: -0.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #404040;
  line-height: 0;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.lq-burger:hover {
  color: #0a0a0a;
  background: rgba(0, 0, 0, 0.05);
}

.lq-burger:active {
  background: rgba(0, 0, 0, 0.1);
}

.lq-burger:focus {
  outline: none;
}

.lq-burger svg {
  display: block;
}

.lq-burger .lq-icon-close {
  display: none;
}

.lq-site-header.is-open .lq-burger .lq-icon-open {
  display: none;
}

.lq-site-header.is-open .lq-burger .lq-icon-close {
  display: block;
}

/* ── Mobile drawer ───────────────────────────────────────────────────── */
.lq-drawer {
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid rgba(229, 229, 229, 0.6);
  max-height: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.lq-site-header.is-open .lq-drawer {
  max-height: calc(100dvh - 52px);
  opacity: 1;
  padding: 1rem 0;
  pointer-events: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.lq-drawer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.lq-nav-mobile {
  flex-direction: column;
}

.lq-drawer-section-label {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a1a1aa;
  margin: 0.625rem 0.75rem 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(229, 229, 229, 0.7);
}

.lq-nav-mobile .lq-nav-link {
  display: block;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.15rem;
  border-radius: 0.5rem;
  font-size: 14.5px;
}

.lq-nav-mobile .lq-nav-link[aria-current="page"] {
  background: #f4f4f5;
  color: #09090b;
  font-weight: 700;
}

.lq-nav-mobile .lq-nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: none;
}

.lq-nav-mobile .lq-nav-link:active {
  background: rgba(0, 0, 0, 0.08);
}

.lq-drawer-buttons {
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(229, 229, 229, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.lq-drawer-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
}

.lq-drawer-btn.is-outline {
  border: 1px solid #d4d4d4;
  color: #262626;
  transition: background-color 0.15s ease;
}

.lq-drawer-btn.is-outline:hover {
  background: #fafafa;
}

.lq-drawer-btn.is-solid,
.lq-drawer-btn.is-solid:link,
.lq-drawer-btn.is-solid:visited,
.lq-drawer-btn.is-solid:hover,
.lq-drawer-btn.is-solid:focus,
.lq-drawer-btn.is-solid:active {
  background: #ffffff;
  color: #18181b !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.08), 0 1px 4px -1px rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none !important;
}

.lq-drawer-btn.is-solid:hover {
  background: #fafafa;
  color: #09090b !important;
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.06);
}

/* ── Breakpoints (match Tailwind sm = 640px, lg = 1024px) ────────────── */
@media (min-width: 640px) {
  .lq-header-top-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .lq-header-logo img {
    height: 34.2px;
  }

  .lq-header-actions-tablet {
    display: flex;
  }

  .lq-header-actions-tablet .lq-signin {
    font-size: 13px;
  }

  .lq-signin {
    font-size: 14px;
  }

  .lq-header-actions {
    gap: 1.25rem;
  }

  .lq-subscribe {
    padding: 0.5rem 1.25rem;
    font-size: 13.5px;
  }
}

@media (min-width: 1024px) {
  .lq-header-top-inner,
  .lq-header-bottom,
  .lq-drawer-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .lq-site-header.is-scrolled .lq-header-top {
    display: block;
  }

  .lq-header-logo img {
    height: 39.33px;
  }

  .lq-header-actions {
    display: flex;
  }

  .lq-header-actions-tablet,
  .lq-mobile-bar,
  .lq-drawer {
    display: none !important;
  }

  .lq-header-bottom {
    justify-content: center;
  }

  .lq-nav-desktop {
    display: flex !important;
    gap: clamp(1.35rem, 2.3vw, 2.5rem);
  }
}

@media (max-width: 639.98px) {
  .lq-header-top-inner {
    padding: 0.625rem 1rem;
    grid-template-columns: 1fr auto 1fr;
  }

  .lq-header-logo img {
    height: 28px;
    max-width: 100%;
  }

  .lq-header-bottom,
  .lq-drawer-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 1023.98px) and (min-width: 640px) {
  .lq-header-logo img {
    height: 30px;
  }

  .lq-header-actions-tablet {
    gap: 0.45rem;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
  }

  .lq-user-pill {
    min-width: 0;
    max-width: 100%;
    padding: 0.25rem 0.55rem 0.25rem 0.3rem;
    gap: 0.4rem;
    font-size: 12.5px;
  }

  .lq-user-name {
    max-width: 68px;
  }
}

@media (max-width: 1023.98px) {
  .lq-header-actions {
    display: none;
  }
}

@media (min-width: 1024px) {
  .lq-header-actions-tablet {
    display: none !important;
  }
}

/* ── User Session Pill ─────────────────────────────────────────────── */
.lq-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.3125rem 0.75rem 0.3125rem 0.375rem;
  border-radius: 9999px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  color: #18181b !important;
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.lq-user-pill:hover {
  background: #f4f4f5;
  border-color: #d4d4d8;
}

.lq-user-pill.is-mobile {
  padding: 0.25rem;
  background: transparent;
  border: none;
}

.lq-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #18181b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.lq-user-name {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lq-admin-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: #e6f7f3;
  color: #1b7c69 !important;
  border: 1px solid rgba(52, 181, 157, 0.25);
  font-size: 10.5px;
  font-weight: 700;
}

.lq-drawer-btn.is-admin {
  background: #34b59d;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (prefers-reduced-motion: reduce) {
  .lq-site-header * {
    transition: none !important;
  }
}

/* ── Paywall Callout & Content Protection ───────────────────────────── */
.lq-paywall-locked-content {
  position: relative;
  max-height: 260px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  filter: blur(4.5px);
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
  margin-top: -10px;
}

/* Universal Standardised Paywall Card */
.lq-paywall-card,
.lq-paywall-card * {
  box-sizing: border-box !important;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.lq-paywall-card {
  margin: 36px auto 28px !important;
  width: 520px !important;
  max-width: calc(100vw - 32px) !important;
  background: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 24px !important;
  padding: 36px 32px !important;
  text-align: center !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.09), 0 8px 20px -4px rgba(0, 0, 0, 0.04) !important;
  position: relative !important;
  z-index: 20 !important;
}

@media (max-width: 640px) {
  .lq-paywall-card {
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    padding: 28px 20px !important;
    margin: 24px auto 18px !important;
    border-radius: 20px !important;
  }
}

.lq-paywall-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 13px !important;
  border-radius: 9999px !important;
  background: #e6f7f3 !important;
  color: #1b7c69 !important;
  border: 1px solid rgba(52, 181, 157, 0.25) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin: 0 auto 16px !important;
  line-height: 1.3 !important;
}

.lq-paywall-badge svg {
  width: 13px !important;
  height: 13px !important;
  color: #1b7c69 !important;
  flex-shrink: 0 !important;
}

.lq-paywall-title,
.lq-paywall-card h3.lq-paywall-title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #18181b !important;
  line-height: 1.25 !important;
}

.lq-paywall-desc,
.lq-paywall-card p.lq-paywall-desc {
  margin: 0 auto 20px !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: #52525b !important;
  max-width: 440px !important;
}

.lq-paywall-price-wrap {
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 auto 6px !important;
  padding: 0 !important;
}

.lq-paywall-price {
  font-size: 40px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #18181b !important;
  line-height: 1 !important;
}

.lq-paywall-period {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #71717a !important;
}

.lq-paywall-discount-pill {
  display: inline-block !important;
  padding: 2.5px 8.5px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #1b7c69 !important;
  background: #e6f7f3 !important;
  border: 1px solid rgba(52, 181, 157, 0.25) !important;
  border-radius: 9999px !important;
  letter-spacing: 0.02em !important;
}

.lq-paywall-cadence-note {
  font-size: 12px !important;
  color: #71717a !important;
  margin: 0 auto 22px !important;
  line-height: 1.4 !important;
}

.lq-paywall-cadence-note a {
  color: #18181b !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  font-weight: 600 !important;
  transition: color 0.15s ease !important;
}

.lq-paywall-cadence-note a:hover {
  color: #34b59d !important;
}

.lq-paywall-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 11px !important;
  margin: 0 auto 24px !important;
  width: 100% !important;
}

.lq-paywall-btn-pro,
.lq-paywall-btn-pro:link,
.lq-paywall-btn-pro:visited,
.lq-paywall-btn-pro:hover,
.lq-paywall-btn-pro:focus,
.lq-paywall-btn-pro:active {
  display: inline-block !important;
  width: auto !important;
  min-width: 260px !important;
  max-width: 100% !important;
  padding: 12.5px 26px !important;
  border-radius: 9999px !important;
  background: #34b59d !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
  text-align: center !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(52, 181, 157, 0.28) !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
  border: none !important;
}

.lq-paywall-btn-pro:hover {
  background: #2ca48d !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(52, 181, 157, 0.38) !important;
  color: #ffffff !important;
}

@media (max-width: 440px) {
  .lq-paywall-btn-pro,
  .lq-paywall-btn-pro:link,
  .lq-paywall-btn-pro:visited,
  .lq-paywall-btn-pro:hover,
  .lq-paywall-btn-pro:focus,
  .lq-paywall-btn-pro:active {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 18px !important;
    font-size: 13px !important;
    white-space: normal !important;
  }
}

.lq-paywall-btn-signin {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #71717a !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  transition: color 0.15s ease !important;
  cursor: pointer !important;
}

.lq-paywall-btn-signin:hover {
  color: #18181b !important;
}

.lq-paywall-member-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  background: #f4f4f5 !important;
  border: 1px solid #e4e4e7 !important;
  font-size: 12px !important;
  color: #52525b !important;
  font-weight: 600 !important;
}

.lq-paywall-perks-heading {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #71717a !important;
  margin: 0 auto 14px !important;
  text-align: left !important;
  max-width: 440px !important;
  padding-top: 22px !important;
  border-top: 1px solid #f4f4f5 !important;
}

.lq-paywall-perks {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #52525b !important;
  text-align: left !important;
  max-width: 440px !important;
  margin: 0 auto !important;
}

.lq-paywall-perk-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
}

.lq-paywall-perk-check {
  color: #1b7c69 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
}

/* ── Tool Paywall Overlay & Fixed Positioning ──────────────────────── */
.lq-tool-paywall-overlay {
  position: fixed !important;
  top: var(--lq-header-h, 60px) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 9990 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 36px 16px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
}

.lq-tool-paywall-card {
  margin: auto !important;
  width: 520px !important;
  max-width: calc(100vw - 32px) !important;
  animation: lqFadeInUp 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes lqFadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lq-paywall-member-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  font-size: 12px !important;
  color: #52525b !important;
  font-weight: 600 !important;
}

html.lq-has-tool-paywall,
body.lq-has-tool-paywall {
  overflow: hidden !important;
}

html.lq-has-tool-paywall .app,
body.lq-has-tool-paywall .app,
html.lq-has-tool-paywall #root,
body.lq-has-tool-paywall #root,
html.lq-has-tool-paywall .top-nav-header,
body.lq-has-tool-paywall .top-nav-header,
html.lq-has-tool-paywall .main-content,
body.lq-has-tool-paywall .main-content,
html.lq-has-tool-paywall .app-layout,
body.lq-has-tool-paywall .app-layout,
html.lq-has-tool-paywall .app-grid,
body.lq-has-tool-paywall .app-grid,
html.lq-has-tool-paywall .top-header,
body.lq-has-tool-paywall .top-header,
html.lq-has-tool-paywall .tablet-view-switcher,
body.lq-has-tool-paywall .tablet-view-switcher,
html.lq-has-tool-paywall .builder-layout,
body.lq-has-tool-paywall .builder-layout,
html.lq-has-tool-paywall .fo-workspace,
body.lq-has-tool-paywall .fo-workspace,
html.lq-has-tool-paywall .fo-notice-wrap,
body.lq-has-tool-paywall .fo-notice-wrap,
html.lq-has-tool-paywall .rf-workspace,
body.lq-has-tool-paywall .rf-workspace,
html.lq-has-tool-paywall .macro-workspace,
body.lq-has-tool-paywall .macro-workspace,
html.lq-has-tool-paywall .macro-notice-wrap,
body.lq-has-tool-paywall .macro-notice-wrap,
html.lq-has-tool-paywall .sm-hero,
body.lq-has-tool-paywall .sm-hero,
html.lq-has-tool-paywall .sm-workspace,
body.lq-has-tool-paywall .sm-workspace,
.lq-tool-locked-content {
  filter: blur(10px) !important;
  opacity: 0.15 !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* Dark mode support if activated */
html.dark .lq-tool-paywall-overlay,
[data-theme="dark"] .lq-tool-paywall-overlay {
  background: rgba(9, 9, 11, 0.92);
}

html.dark .lq-paywall-card,
[data-theme="dark"] .lq-paywall-card {
  background: #121215;
  border-color: #27272a;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

html.dark .lq-paywall-title,
[data-theme="dark"] .lq-paywall-title {
  color: #f4f4f5 !important;
}

html.dark .lq-paywall-desc,
[data-theme="dark"] .lq-paywall-desc {
  color: #a1a1aa !important;
}

html.dark .lq-paywall-price,
[data-theme="dark"] .lq-paywall-price {
  color: #fafafa !important;
}

html.dark .lq-paywall-period,
[data-theme="dark"] .lq-paywall-period {
  color: #a1a1aa !important;
}

html.dark .lq-paywall-cadence-note,
[data-theme="dark"] .lq-paywall-cadence-note {
  color: #71717a !important;
}

html.dark .lq-paywall-cadence-note a,
[data-theme="dark"] .lq-paywall-cadence-note a {
  color: #f4f4f5 !important;
}

html.dark .lq-paywall-cadence-note a:hover,
[data-theme="dark"] .lq-paywall-cadence-note a:hover {
  color: #38d4b7 !important;
}

html.dark .lq-paywall-btn-signin,
[data-theme="dark"] .lq-paywall-btn-signin {
  color: #a1a1aa !important;
}

html.dark .lq-paywall-btn-signin:hover,
[data-theme="dark"] .lq-paywall-btn-signin:hover {
  color: #f4f4f5 !important;
}

html.dark .lq-paywall-member-tag,
[data-theme="dark"] .lq-paywall-member-tag {
  background: #1c1c20;
  border-color: #2e2e33;
  color: #a1a1aa !important;
}

html.dark .lq-paywall-perks-heading,
[data-theme="dark"] .lq-paywall-perks-heading {
  border-top-color: #27272a;
  color: #71717a !important;
}

html.dark .lq-paywall-perks,
[data-theme="dark"] .lq-paywall-perks {
  color: #d4d4d8 !important;
}

html.dark .lq-paywall-perk-check,
[data-theme="dark"] .lq-paywall-perk-check {
  color: #38d4b7;
}

html.dark .lq-paywall-badge,
[data-theme="dark"] .lq-paywall-badge {
  background: rgba(52, 181, 157, 0.15);
  color: #38d4b7;
  border-color: rgba(52, 181, 157, 0.3);
}

html.dark .lq-paywall-badge svg,
[data-theme="dark"] .lq-paywall-badge svg {
  color: #38d4b7;
}

html.dark .lq-paywall-discount-pill,
[data-theme="dark"] .lq-paywall-discount-pill {
  background: rgba(52, 181, 157, 0.15);
  color: #38d4b7 !important;
  border-color: rgba(52, 181, 157, 0.3);
}



