/*
 * BlackSpigot Forged-Obsidian Redesign & Performance Layer (v3)
 * Loaded BEFORE mobile.css so `@layer bsu-polish` registers FIRST in CSS Cascade Level 5 order.
 * `!important` declarations inside `bsu-polish` cleanly win over `blackspigot-mobile`,
 * `blackspigot-ultra-prefix`, and all unlayered legacy `!important` stylesheets.
 *
 * Brand Direction ("Forged Obsidian"):
 * - Base: deep obsidian (#050609 -> #090b10) with rich ember-crimson & amber radial atmosphere
 *   and a subtle static 52px architectural grid (inspired by NulledVault's deep dark-on-dark clarity,
 *   100% faithful to BlackSpigot's crimson-terracotta + gold Ultra identity).
 * - Panels: slightly translucent obsidian (rgba(10, 12, 17, 0.84)) so our live constellation &
 *   floating bokeh particles visibly glow around the header, gutters, and section seams.
 * - Geometry: sharp 6px 45-degree chamfered primary CTAs & crisp consistent container radii.
 * - SEO Safety: presentation-only; zero copy, headings, links, or structured data modified.
 */
@layer bsu-polish, blackspigot-ultra-prefix, blackspigot-mobile;

@layer bsu-polish {

  /* =========================================================================
   * 1. DESIGN TOKENS, BASE ATMOSPHERE & ZERO PAGE-SWITCH FLICKER
   * ========================================================================= */
  html.bs-exact-theme {
    --bs-obsidian-0: #050609;
    --bs-obsidian-1: #0a0c11;
    --bs-obsidian-2: #10131b;
    --bs-obsidian-3: #161a24;
    --bs-well: rgba(4, 5, 8, 0.62);
    --bs-panel: rgba(10, 12, 17, 0.84);
    --bs-panel-solid: #0b0d13;
    --bs-border: rgba(255, 255, 255, 0.085);
    --bs-border-warm: rgba(226, 98, 76, 0.28);
    --bs-border-hot: rgba(238, 108, 84, 0.62);
    --bs-crimson: #e04f3e;
    --bs-crimson-deep: #ab2e22;
    --bs-copper: #e58e70;
    --bs-gold: #f5c451;
    --bs-ink: #f6f2ee;
    --bs-ink-muted: #a6adb8;
    --bs-ink-dim: #7c8491;
    --bs-chamfer: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    color-scheme: dark;
    accent-color: #e04f3e;
    background-color: #050609 !important;
    scrollbar-color: #c84b3a #07090d;
    scrollbar-width: thin;
  }

  /* Custom slim crimson scrollbar (Chromium/WebKit) */
  html.bs-exact-theme::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  html.bs-exact-theme::-webkit-scrollbar-track {
    background: #06070b;
  }
  html.bs-exact-theme::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e04f3e, #9c2b20);
    border-radius: 999px;
    border: 1px solid #06070b;
  }
  html.bs-exact-theme::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f06553, #b93629);
  }

  html.bs-exact-theme body,
  html.bs-exact-theme body.nf-bs-exact {
    background-color: #050609 !important;
    background-image: none !important;
    color: var(--bs-ink) !important;
  }

  /* Remove full-viewport CRT scanlines + moving blurred bar */
  html.bs-exact-theme::before,
  html.bs-exact-theme::after {
    content: none !important;
    display: none !important;
    animation: none !important;
    filter: none !important;
  }

  /* Deep rich obsidian backdrop with warm atmospheric glows & subtle static 52px grid */
  html.bs-exact-theme .p-pageWrapper {
    background-color: #050609 !important;
    background-image:
      radial-gradient(1100px 620px at 18% 8%, rgba(220, 66, 48, 0.16), transparent 60%),
      radial-gradient(880px 560px at 84% 18%, rgba(232, 146, 62, 0.095), transparent 58%),
      radial-gradient(960px 640px at 50% 88%, rgba(190, 52, 42, 0.09), transparent 62%),
      linear-gradient(180deg, #06070b 0%, #090b10 48%, #050609 100%) !important;
    background-attachment: fixed !important;
  }

  /* Static faint architectural grid behind particles (zero animation CPU cost!) */
  html.bs-exact-theme .p-pageWrapper::before {
    content: '' !important;
    position: fixed !important;
    inset: 0 !important;
    height: 100vh !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background-image:
      linear-gradient(rgba(232, 108, 86, 0.042) 1px, transparent 1px),
      linear-gradient(90deg, rgba(232, 108, 86, 0.042) 1px, transparent 1px) !important;
    background-size: 52px 52px !important;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 28%, #000 35%, rgba(0, 0, 0, 0.25) 100%) !important;
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 28%, #000 35%, rgba(0, 0, 0, 0.25) 100%) !important;
    animation: none !important;
    opacity: 1 !important;
  }

  /* Crisp, bright, visible constellation + bokeh canvas behind translucent panels */
  html.bs-exact-theme #bs-particle-network {
    position: fixed !important;
    inset: 0 !important;
    z-index: 0 !important;
    mix-blend-mode: normal !important;
    background: transparent !important;
    opacity: 0.96 !important;
    pointer-events: none !important;
    contain: strict;
  }

  /* Kill wasteful non-composited infinite CSS loops */
  html.bs-exact-theme .p-header::before,
  html.bs-exact-theme .categoryList-item::before,
  html.bs-exact-theme .categoryList-item::after,
  html.bs-exact-theme a[data-nav-id="xfrm"],
  html.bs-exact-theme a[data-nav-id="xfrm"]::before,
  html.bs-exact-theme a[data-nav-id="xfrm"]::after,
  html.bs-exact-theme a[data-nav-id="xfrm"] .ffNavLabel::after,
  html.bs-exact-theme .label.resourceAutoPrefix--ultra::before,
  html.bs-exact-theme .label.resourceAutoPrefix--ultra::after,
  html.bs-exact-theme .bsShop-evil,
  html.bs-exact-theme .bsShop-evil::before,
  html.bs-exact-theme .bsShop-evil::after,
  html.bs-exact-theme .bsCompatibility-spark,
  html.bs-exact-theme .bsCompatibility-signal,
  html.bs-exact-theme .bsBuildUltra::before,
  html.bs-exact-theme .bsBuildUltra::after,
  html.bs-exact-theme .bsu-plans .bsu-fx i,
  html.bs-exact-theme .bsu-card--ultra::before {
    animation: none !important;
    filter: none !important;
  }

  html.bs-exact-theme .categoryList-item::before,
  html.bs-exact-theme .label.resourceAutoPrefix--ultra::before,
  html.bs-exact-theme .bsu-plans .bsu-fx,
  html.bs-exact-theme a[data-nav-id="xfrm"] .ffNavLabel::after,
  html.bs-exact-theme .offCanvasMenu a[data-nav-id="xfrm"]::before,
  html.bs-exact-theme .offCanvasMenu a[data-nav-id="xfrm"]::after {
    display: none !important;
    content: none !important;
    background: none !important;
  }

  /* Strip backdrop-filter blur over live WebGL 3D previews */
  html.bs-exact-theme .nfModelPreview-toolbar,
  html.bs-exact-theme .nfModelPreview-timeline,
  html.bs-exact-theme .nfModelPreview-status,
  html.bs-exact-theme .nfModelOverview,
  html.bs-exact-theme .bsBuildUltra {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  html.bs-exact-theme .nfModelPreview-timeline,
  html.bs-exact-theme .nfModelPreview-status {
    background: rgba(8, 10, 15, 0.94) !important;
  }

  /* Layout containment on repeating cards */
  html.bs-exact-theme .structItem--resource,
  html.bs-exact-theme .bsShop-bossCard,
  html.bs-exact-theme .bsMosaic-tile,
  html.bs-exact-theme .bsf-resource {
    contain: layout style;
  }

  @media (prefers-reduced-motion: reduce) {
    html.bs-exact-theme *,
    html.bs-exact-theme *::before,
    html.bs-exact-theme *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
  }

  /* =========================================================================
   * 2. WEB FLOOR — Selection, Contrast, Focus Rings, Tabular Numerals
   * ========================================================================= */
  html.bs-exact-theme ::selection {
    background: rgba(224, 79, 62, 0.38);
    color: #ffffff;
  }

  html.bs-exact-theme input::placeholder,
  html.bs-exact-theme textarea::placeholder {
    color: rgba(214, 218, 226, 0.56) !important;
    opacity: 1 !important;
  }

  html.bs-exact-theme :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid #f0956c !important;
    outline-offset: 2px !important;
  }

  html.bs-exact-theme :is(
    .structItem-metaItem dd,
    .pairs dd,
    .bsu-price,
    .categoryList-label + span,
    .bsf-categoryHeading h3 span,
    .pageNav-page,
    .pageNavSimple-el
  ) {
    font-variant-numeric: tabular-nums;
  }

  html.bs-exact-theme .fr-toolbar .fr-command.fr-btn svg,
  html.bs-exact-theme .fr-popup .fr-command.fr-btn svg {
    fill: #ede6e1 !important;
    color: #ede6e1 !important;
  }

  /* Clean architectural gold Ultra badge */
  html.bs-exact-theme .label.resourceAutoPrefix--ultra {
    background: linear-gradient(135deg, #4b3511, #22190a 58%, #473210) !important;
    border: 1px solid rgba(245, 196, 81, 0.72) !important;
    color: #ffe9a8 !important;
    border-radius: 3px !important;
    text-shadow: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 236, 172, 0.25) !important;
  }
  html.bs-exact-theme .label.resourceAutoPrefix--ultra::after {
    text-shadow: none !important;
    color: #f5c451 !important;
    opacity: 0.95 !important;
  }

  /* =========================================================================
   * 3. HEADER, SEARCH ICON FIX, CHAMFERED AUTH BUTTONS & NAVIGATION BAR
   * ========================================================================= */

  /* Translucent obsidian header so live particles shine softly behind logo & bar */
  html.bs-exact-theme .p-header {
    background: linear-gradient(180deg, rgba(6, 7, 11, 0.88), rgba(9, 11, 16, 0.64)) !important;
    border-bottom: 1px solid rgba(224, 79, 62, 0.24) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42) !important;
  }
  html.bs-exact-theme .p-header::before {
    display: none !important;
  }

  /* Crisp recessed header search field + GUARANTEED VISIBLE inline SVG magnifying glass */
  html.bs-exact-theme .p-header .xb-searchWrapper {
    position: relative !important;
  }
  html.bs-exact-theme .p-header .xb-search input,
  html.bs-exact-theme .p-header .xb-search .input {
    background: rgba(5, 7, 11, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 5px !important;
    color: #f6f2ee !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55) !important;
    padding-right: 44px !important;
    transition: border-color 0.16s ease, box-shadow 0.16s ease !important;
  }
  html.bs-exact-theme .p-header .xb-search input:focus,
  html.bs-exact-theme .p-header .xb-search .input:focus {
    border-color: rgba(224, 79, 62, 0.72) !important;
    box-shadow: 0 0 0 2px rgba(224, 79, 62, 0.18) !important;
  }
  html.bs-exact-theme .p-header .xb-searchWrapper::before {
    content: none !important;
    display: none !important;
  }
  html.bs-exact-theme .p-header .xb-searchWrapper::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    left: auto !important;
    width: 15px !important;
    height: 15px !important;
    z-index: 8 !important;
    pointer-events: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    transform: translateY(-50%) !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8d8cf' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7.2'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E") center / contain no-repeat !important;
    opacity: 0.88 !important;
  }
  html.bs-exact-theme .p-header .xb-searchQuickPanel,
  html.bs-exact-theme .p-header .xfrm-quickSearchResults {
    max-width: min(680px, calc(100vw - 28px)) !important;
    background: #0a0d13 !important;
    border: 1px solid rgba(224, 79, 62, 0.36) !important;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.68) !important;
  }

  /* Clear chamfered auth button hierarchy: LOG IN (obsidian outline) vs REGISTER (molten crimson CTA) */
  html.bs-exact-theme .p-header .p-navgroup-link--logIn {
    background: rgba(14, 17, 24, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 3px !important;
    clip-path: var(--bs-chamfer) !important;
    color: #f3efec !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
  }
  html.bs-exact-theme .p-header .p-navgroup-link--logIn:hover {
    background: rgba(28, 32, 42, 0.96) !important;
    border-color: rgba(224, 79, 62, 0.6) !important;
    color: #ffffff !important;
  }
  html.bs-exact-theme .p-header .p-navgroup-link--register {
    background: linear-gradient(180deg, #e55340, #b83224) !important;
    border: 1px solid #f07b6a !important;
    border-radius: 3px !important;
    clip-path: var(--bs-chamfer) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    box-shadow: inset 0 1px 0 rgba(255, 232, 224, 0.32) !important;
    transition: filter 0.15s ease !important;
  }
  html.bs-exact-theme .p-header .p-navgroup-link--register:hover {
    filter: brightness(1.1) !important;
  }

  /* Engineered obsidian navigation bar with crisp bottom-bar active indicator */
  @media (min-width: 901px) {
    html.bs-exact-theme .p-nav-inner {
      background: linear-gradient(180deg, rgba(13, 16, 23, 0.92), rgba(8, 10, 15, 0.94)) !important;
      border: 1px solid rgba(255, 255, 255, 0.09) !important;
      border-bottom: 1px solid rgba(224, 79, 62, 0.25) !important;
      padding-left: 24px !important;
      padding-right: 28px !important;
      overflow-y: hidden !important;
      scrollbar-width: none !important;
    }
    html.bs-exact-theme .p-nav-list .p-navEl.is-selected,
    html.bs-exact-theme .p-nav-list .p-navEl.is-selected > .p-navEl-link {
      background: linear-gradient(180deg, rgba(224, 79, 62, 0.18), rgba(160, 42, 30, 0.06)) !important;
      color: #ffffff !important;
      box-shadow: inset 0 -2px 0 #e04f3e !important;
      border-radius: 3px !important;
      border-color: transparent !important;
    }
    html.bs-exact-theme .p-nav .p-nav-list .p-navEl a[data-nav-id="xfrm"] {
      background: linear-gradient(180deg, rgba(68, 50, 15, 0.62), rgba(22, 17, 7, 0.84)) !important;
      box-shadow: inset 0 0 0 1px rgba(245, 196, 81, 0.52), inset 0 -2px 0 #f5c451 !important;
      border-radius: 4px !important;
      color: #ffeaa8 !important;
      text-shadow: none !important;
    }
    html.bs-exact-theme .p-nav .p-nav-list .p-navEl a[data-nav-id="xfrm"]:hover {
      background: linear-gradient(180deg, rgba(86, 63, 19, 0.72), rgba(29, 22, 9, 0.9)) !important;
    }
    html.bs-exact-theme .p-nav-scroller {
      overflow-y: hidden !important;
      scrollbar-width: none !important;
    }
    html.bs-exact-theme .p-nav-inner::-webkit-scrollbar,
    html.bs-exact-theme .p-nav-scroller::-webkit-scrollbar {
      display: none !important;
    }
  }

  @media (min-width: 901px) and (max-width: 1280px) {
    html.bs-exact-theme .p-nav-inner {
      overflow: hidden !important;
      padding-left: 20px !important;
      padding-right: 26px !important;
    }
    html.bs-exact-theme .p-nav-scroller {
      overflow: visible !important;
    }
    html.bs-exact-theme .p-nav-list {
      flex-wrap: nowrap !important;
      justify-content: center !important;
      gap: 2px !important;
    }
    html.bs-exact-theme .p-nav-list .p-navEl-link {
      padding-left: 8px !important;
      padding-right: 8px !important;
      font-size: 10.5px !important;
      white-space: nowrap !important;
    }
    html.bs-exact-theme a[data-nav-id="xfrm"] .ffNavLabel::before,
    html.bs-exact-theme a[data-nav-id="nfBsBuildsSchematics"] .ffNavLabel::before {
      font-size: 8.5px !important;
    }
  }

  /* =========================================================================
   * 4. HOMEPAGE STOREFRONT — Forged Obsidian Grid, Unified Editorial Tiles
   * ========================================================================= */

  /* Unified sleek discovery toolbar shell */
  html.bs-shop-page body .bsMosaic .bsShop-discovery {
    background: rgba(9, 11, 16, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.095) !important;
    border-top: 1px solid rgba(224, 79, 62, 0.28) !important;
    border-radius: 6px !important;
    padding: 6px 8px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  }
  html.bs-shop-page body .bsMosaic .bsShop-search input {
    background: rgba(4, 5, 8, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    color: #f6f2ee !important;
  }
  html.bs-shop-page body .bsMosaic .bsShop-search input:focus {
    border-color: rgba(224, 79, 62, 0.7) !important;
  }

  /* Single crisp CSS chevron (eliminates double chevron collision!) */
  html.bs-shop-page body .bsMosaic .bsShop-discovery summary::-webkit-details-marker,
  html.bs-shop-page body .bsMosaic .bsShop-discovery summary::marker {
    display: none !important;
    content: '' !important;
  }
  html.bs-shop-page body .bsMosaic .bsShop-discovery :is(.bsShop-categories, .bsShop-collection, .bsShop-latest, .bsx-liveResources) > summary {
    color: #e4deda !important;
    border-radius: 4px !important;
    transition: background-color 0.14s ease, color 0.14s ease !important;
  }
  html.bs-shop-page body .bsMosaic .bsShop-discovery :is(.bsShop-categories, .bsShop-collection, .bsShop-latest, .bsx-liveResources) > summary:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
  }
  html.bs-shop-page body .bsMosaic .bsShop-discovery :is(.bsShop-categories, .bsShop-collection, .bsShop-latest, .bsx-liveResources) > summary::after {
    content: '' !important;
    display: inline-block !important;
    position: static !important;
    flex: none !important;
    width: 6px !important;
    height: 6px !important;
    margin-left: 7px !important;
    margin-right: 0 !important;
    padding: 0 !important;
    border-style: solid !important;
    border-color: #e58e70 !important;
    border-width: 0 1.5px 1.5px 0 !important;
    background: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    transform: translateY(-2px) rotate(45deg) !important;
    transition: transform 0.15s ease !important;
  }
  html.bs-shop-page body .bsMosaic .bsShop-discovery details[open] > summary::after {
    transform: translateY(1px) rotate(-135deg) !important;
  }
  html.bs-shop-page body .bsMosaic .bsShop-collection > summary {
    width: auto !important;
    min-width: 0 !important;
    border: 0 !important;
    background: transparent !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  html.bs-shop-page body .bsMosaic .bsShop-discovery .bsShop-menu {
    background: #0b0e14 !important;
    border: 1px solid rgba(224, 79, 62, 0.35) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65) !important;
  }

  /* Forged obsidian showcase cards — crisp white titles, dark recessed media well */
  html.bs-shop-page .bsShop-bossCard {
    background: linear-gradient(180deg, rgba(13, 16, 23, 0.88), rgba(8, 10, 15, 0.92)) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-top: 2px solid rgba(224, 79, 62, 0.42) !important;
    border-radius: 6px !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    transition: border-color 0.16s ease, background-color 0.16s ease !important;
  }
  html.bs-shop-page .bsShop-bossCard--spotlight {
    border-top: 2px solid #f5c451 !important;
    border-color: rgba(245, 196, 81, 0.34) !important;
  }
  html.bs-shop-page .bsShop-bossCard:hover {
    transform: none !important;
    border-color: rgba(224, 79, 62, 0.62) !important;
    border-top-color: #e04f3e !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.6) !important;
  }
  html.bs-shop-page .bsShop-bossCard--spotlight:hover {
    border-color: rgba(245, 196, 81, 0.72) !important;
    border-top-color: #ffd46b !important;
  }
  html.bs-shop-page .bsShop-media {
    background-color: #05070b !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  html.bs-shop-page .bsShop-media > video,
  html.bs-shop-page .bsShop-media > img {
    background-color: #05070b;
    transition: none !important;
  }
  html.bs-shop-page .bsShop-bossCard:hover .bsShop-media > img,
  html.bs-shop-page .bsShop-bossCard:hover .bsShop-media > video,
  html.bs-shop-page .bsMosaic-image:hover > img {
    transform: none !important;
  }

  /* High-contrast crisp warm-white titles instead of muddy peach-on-grey */
  html.bs-shop-page .bsShop-bossBody h3 a {
    color: #f7f4f1 !important;
    letter-spacing: -0.015em !important;
  }
  html.bs-shop-page .bsShop-bossCard:hover .bsShop-bossBody h3 a {
    color: #ffffff !important;
  }
  html.bs-shop-page .bsShop-bossMeta {
    color: #e07b64 !important;
  }
  html.bs-shop-page .bsShop-bossCaption {
    color: #aab1bd !important;
  }
  html.bs-shop-page .bsShop-cardLink {
    color: #f08a70 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding-top: 10px !important;
    font-weight: 700 !important;
  }
  html.bs-shop-page .bsShop-bossCard:hover .bsShop-cardLink {
    color: #ffb8a3 !important;
  }
  html.bs-shop-page .bsShop-spotlightFlag {
    clip-path: var(--bs-chamfer) !important;
    border-radius: 2px !important;
    background: #f5c451 !important;
    color: #161004 !important;
    font-weight: 800 !important;
  }

  /* Replace rainbow AI bento fills on editorial tiles with unified forged obsidian + 2px top accent */
  html.bs-shop-page .bsMosaic-tile:not(#bs-tile-intro) {
    background:
      radial-gradient(280px 140px at 50% 0%, rgba(224, 79, 62, 0.11), transparent 72%),
      linear-gradient(180deg, rgba(13, 16, 23, 0.9), rgba(7, 9, 14, 0.94)) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-top: 2px solid var(--tile-accent, #e04f3e) !important;
    border-radius: 6px !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    transition: border-color 0.16s ease !important;
  }
  html.bs-shop-page .bsMosaic-tile.bsMosaic--mint:not(#bs-tile-intro) {
    --tile-accent: #52c79a;
    background:
      radial-gradient(260px 130px at 50% 0%, rgba(82, 199, 154, 0.11), transparent 72%),
      linear-gradient(180deg, rgba(12, 16, 21, 0.9), rgba(7, 9, 14, 0.94)) !important;
  }
  html.bs-shop-page .bsMosaic-tile.bsMosaic--violet:not(#bs-tile-intro),
  html.bs-shop-page .bsMosaic-tile.bsMosaic--purple:not(#bs-tile-intro) {
    --tile-accent: #e08d60;
    background:
      radial-gradient(260px 130px at 50% 0%, rgba(224, 141, 96, 0.12), transparent 72%),
      linear-gradient(180deg, rgba(15, 14, 19, 0.9), rgba(7, 9, 14, 0.94)) !important;
  }
  html.bs-shop-page .bsMosaic-tile.bsMosaic--blue:not(#bs-tile-intro) {
    --tile-accent: #6ea8ea;
    background:
      radial-gradient(260px 130px at 50% 0%, rgba(110, 168, 234, 0.11), transparent 72%),
      linear-gradient(180deg, rgba(12, 16, 23, 0.9), rgba(7, 9, 14, 0.94)) !important;
  }
  html.bs-shop-page .bsMosaic-tile.bsMosaic--amber:not(#bs-tile-intro) {
    --tile-accent: #f5c451;
    background:
      radial-gradient(260px 130px at 50% 0%, rgba(245, 196, 81, 0.11), transparent 72%),
      linear-gradient(180deg, rgba(15, 15, 20, 0.9), rgba(7, 9, 14, 0.94)) !important;
  }
  html.bs-shop-page .bsMosaic-tile#bs-tile-intro {
    border: 1px solid rgba(224, 79, 62, 0.34) !important;
    border-top: 2px solid #e04f3e !important;
    border-radius: 6px !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.52) !important;
  }
  html.bs-shop-page .bsMosaic-tile:hover {
    transform: none !important;
    border-color: rgba(235, 118, 92, 0.52) !important;
  }

  /* Recessed clean tag chips with zero OS horizontal scrollbar */
  html.bs-shop-page #bsShop-grid .bsShop-chips,
  html.bs-shop-page .bsShop-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    overflow-x: visible !important;
    max-height: none !important;
    gap: 5px !important;
    padding-bottom: 0 !important;
    scrollbar-width: none !important;
  }
  html.bs-shop-page #bsShop-grid .bsShop-chips::-webkit-scrollbar,
  html.bs-shop-page .bsShop-chips::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }
  html.bs-shop-page #bsShop-grid .bsShop-chips li {
    flex: 0 1 auto !important;
    white-space: normal !important;
    background: rgba(4, 6, 10, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 3px !important;
    color: #c5ccd6 !important;
  }

  /* Footer SEO about strip on homepage */
  html.bs-shop-page .bsShop-about {
    background: rgba(10, 12, 17, 0.84) !important;
    border: 1px solid rgba(255, 255, 255, 0.085) !important;
    border-left: 3px solid #e04f3e !important;
    border-radius: 6px !important;
    padding: 20px 24px !important;
  }

  /* Mobile homepage H1 pill & Latest uploads alignment */
  @media (max-width: 900px) {
    html.bs-shop-page body.nf-bs-exact .p-body-header {
      display: block !important;
      height: auto !important;
      min-height: 0 !important;
      padding: 10px 14px !important;
      margin: 4px 0 10px !important;
      border-radius: 6px !important;
      background: rgba(10, 12, 17, 0.88) !important;
      border: 1px solid rgba(255, 255, 255, 0.09) !important;
      border-left: 3px solid #e04f3e !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }
    html.bs-shop-page body.nf-bs-exact .p-body-header .p-title {
      margin: 0 !important;
      padding: 0 !important;
      display: block !important;
    }
    html.bs-shop-page body.nf-bs-exact .p-body-header .p-title-value,
    html.bs-shop-page body.nf-bs-exact .p-body-header h1 {
      font-size: clamp(16px, 4.6vw, 20px) !important;
      line-height: 1.3 !important;
      white-space: normal !important;
      overflow-wrap: break-word !important;
      color: #f6f2ee !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    html.bs-shop-page body .bsMosaic .bsShop-discovery .bsShop-latest > summary {
      justify-content: flex-start !important;
      width: auto !important;
      gap: 6px !important;
      padding: 6px 4px !important;
    }
    html.bs-shop-page body .bsMosaic .bsShop-discovery .bsShop-latest > summary::after {
      margin-left: 6px !important;
    }
  }

  /* =========================================================================
   * 5. MOBILE HAMBURGER DRAWER — Crisp SVG × Close, Centered Auth Buttons
   * ========================================================================= */
  html.bs-exact-theme .offCanvasMenu-content {
    background: #090b10 !important;
    border-right: 1px solid rgba(224, 79, 62, 0.25) !important;
    overflow-x: hidden !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(224, 79, 62, 0.45) transparent !important;
  }
  html.bs-exact-theme .offCanvasMenu-content::-webkit-scrollbar {
    width: 4px !important;
    height: 0 !important;
  }

  /* Crisp 2px-stroke inline SVG × close button (guaranteed high contrast) */
  html.bs-exact-theme .offCanvasMenu--nav .offCanvasMenu-closer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, 0.09) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: 0 !important;
  }
  html.bs-exact-theme .offCanvasMenu--nav .offCanvasMenu-closer::before {
    display: none !important;
    content: none !important;
  }
  html.bs-exact-theme .offCanvasMenu--nav .offCanvasMenu-closer::after {
    content: '' !important;
    display: block !important;
    position: static !important;
    width: 16px !important;
    height: 16px !important;
    border: 0 !important;
    transform: none !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6eae4' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat !important;
  }

  /* Centered Log in / Register button labels inside mobile drawer */
  html.bs-exact-theme .offCanvasMenu--nav .bsm-menuAccount > a {
    justify-content: center !important;
    text-align: center !important;
    clip-path: var(--bs-chamfer) !important;
    border-radius: 3px !important;
  }
  html.bs-exact-theme .offCanvasMenu--nav .bsm-menuAccount > a:last-child {
    background: linear-gradient(180deg, #e04f3e, #b12f22) !important;
    border-color: #f07a68 !important;
    color: #ffffff !important;
  }

  html.bs-exact-theme .offCanvasMenu--nav .offCanvasMenu-link,
  html.bs-exact-theme .offCanvasMenu--nav a.p-navEl-link.offCanvasMenu-link[data-nav-id="xfrm"],
  html.bs-exact-theme .offCanvasMenu--nav a.p-navEl-link.offCanvasMenu-link[data-nav-id="nfBsBuildsSchematics"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    min-height: 48px !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  html.bs-exact-theme .offCanvasMenu--nav a.p-navEl-link.offCanvasMenu-link[data-nav-id="xfrm"] {
    background: rgba(88, 64, 18, 0.28) !important;
    box-shadow: inset 0 0 0 1px rgba(245, 196, 81, 0.44) !important;
    border-radius: 5px !important;
  }
  html.bs-exact-theme .offCanvasMenu--nav a[data-nav-id="xfrm"] .ffNavLabel,
  html.bs-exact-theme .offCanvasMenu--nav a[data-nav-id="nfBsBuildsSchematics"] .ffNavLabel {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    text-align: left !important;
    min-width: 0 !important;
  }
  html.bs-exact-theme .offCanvasMenu--nav a[data-nav-id="xfrm"] .ffNavLabel::before,
  html.bs-exact-theme .offCanvasMenu--nav a[data-nav-id="nfBsBuildsSchematics"] .ffNavLabel::before {
    position: static !important;
    display: block !important;
    order: 2 !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    font-size: 10.5px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    white-space: normal !important;
    opacity: 0.78 !important;
  }
  html.bs-exact-theme .offCanvasMenu--nav .bsx-drawerSearch > input {
    background: #05070b !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    font-size: 12px !important;
    padding: 8px 10px !important;
  }

  /* =========================================================================
   * 6. GLOBAL OBSIDIAN PANELS & SHARP SECTION HEADERS (Replaces Salmon Gradients!)
   * ========================================================================= */
  html.bs-exact-theme .block-container {
    background: var(--bs-panel) !important;
    border: 1px solid var(--bs-border) !important;
    border-radius: 7px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  }

  /* Sleek dark forged-obsidian section header bars with crisp 3px crimson left stripe */
  html.bs-exact-theme .block-header,
  html.bs-exact-theme .block-minorHeader,
  html.bs-exact-theme .bsf-heading {
    background: linear-gradient(90deg, rgba(224, 79, 62, 0.14), rgba(14, 17, 24, 0.96) 42%, rgba(11, 14, 20, 0.96)) !important;
    border: 0 !important;
    border-left: 3px solid #e04f3e !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f6f2ee !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    letter-spacing: 0.03em !important;
  }
  html.bs-exact-theme .block-header a,
  html.bs-exact-theme .block-minorHeader a {
    color: #f6f2ee !important;
    -webkit-text-stroke: 0 !important;
  }
  html.bs-exact-theme .block-header::before,
  html.bs-exact-theme .block-minorHeader::before {
    display: none !important;
    content: none !important;
  }
  html.bs-exact-theme .block[data-widget-key] .block-minorHeader {
    padding-left: 16px !important;
  }

  /* Crisp footer bar */
  html.bs-exact-theme .p-footer {
    background: rgba(7, 9, 13, 0.9) !important;
    border-top: 1px solid rgba(224, 79, 62, 0.22) !important;
  }

  /* =========================================================================
   * 7. RESOURCE CATALOG & CATEGORIES — Scannable Obsidian Table Feel
   * ========================================================================= */

  html.bsx-catalogPage body.nf-bs-exact .block-filterBar {
    background: rgba(8, 10, 15, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  html.bsx-catalogPage body.nf-bs-exact .bsx-browseTools {
    background: rgba(6, 8, 12, 0.78) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075) !important;
  }

  /* Crisp quick-category wrapping with zero horizontal scrollbar */
  html.bsx-catalogPage body.nf-bs-exact [aria-label="Quick resource type search"],
  html.bsx-catalogPage body.nf-bs-exact .bsResourceSearchAssist {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 5px !important;
    overflow: visible !important;
    overflow-x: visible !important;
    scrollbar-width: none !important;
  }
  html.bsx-catalogPage body.nf-bs-exact [aria-label="Quick resource type search"]::-webkit-scrollbar,
  html.bsx-catalogPage body.nf-bs-exact .bsResourceSearchAssist::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }
  html.bsx-catalogPage body.nf-bs-exact [aria-label="Quick resource type search"] a {
    background: rgba(5, 7, 11, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    color: #d6dce5 !important;
  }
  html.bsx-catalogPage body.nf-bs-exact [aria-label="Quick resource type search"] a:hover {
    border-color: rgba(224, 79, 62, 0.6) !important;
    color: #ffffff !important;
  }

  /* Active sort / pagination pill in crisp crimson */
  html.bsx-catalogPage body.nf-bs-exact .bsx-sortLinks [aria-current],
  html.bsx-catalogPage body.nf-bs-exact .bsx-viewSwitch [aria-pressed="true"] {
    background: linear-gradient(180deg, #dc4c3b, #a12b1f) !important;
    border-color: #ef7866 !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 224, 214, 0.28) !important;
  }
  html.bsx-catalogPage body.nf-bs-exact .bsx-sortLinks a:not([aria-current]),
  html.bsx-catalogPage body.nf-bs-exact .bsx-viewSwitch button:not([aria-pressed="true"]),
  html.bsx-catalogPage body.nf-bs-exact .bsx-jumpTrigger,
  html.bsx-catalogPage body.nf-bs-exact .bsx-savedTrigger {
    background: rgba(5, 7, 11, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cdd3dd !important;
  }

  @media (min-width: 1220px) {
    html.bsx-catalogPage body.nf-bs-exact .bsx-browseTools {
      flex-wrap: nowrap !important;
      justify-content: space-between !important;
      gap: 6px !important;
      padding: 8px 10px !important;
    }
    html.bsx-catalogPage body.nf-bs-exact .bsx-sortLinks {
      gap: 4px !important;
      flex-wrap: nowrap !important;
      min-width: 0 !important;
    }
    html.bsx-catalogPage body.nf-bs-exact .bsx-viewSwitch {
      gap: 3px !important;
      flex-shrink: 0 !important;
      margin-left: auto !important;
    }
    html.bsx-catalogPage body.nf-bs-exact :is(.bsx-browseTools a, .bsx-browseTools button) {
      padding: 5px 8px !important;
      min-height: 31px !important;
      font-size: 11.5px !important;
      white-space: nowrap !important;
      flex-shrink: 0 !important;
    }
  }

  /* Crisp obsidian resource listing rows with crimson hover edge */
  html.bs-exact-theme .structItem--resource {
    background: rgba(10, 12, 18, 0.72) !important;
    border-color: rgba(255, 255, 255, 0.065) !important;
    border-left: 2px solid transparent !important;
    transition: background-color 0.14s ease, border-left-color 0.14s ease !important;
  }
  html.bs-exact-theme .structItem--resource:hover {
    transform: none !important;
    background: rgba(20, 23, 32, 0.88) !important;
    border-left-color: #e04f3e !important;
  }
  html.bs-exact-theme .structItem--resource .structItem-title a[data-tp-primary] {
    color: #f6f3ef !important;
    font-weight: 650 !important;
  }
  html.bs-exact-theme .structItem--resource .structItem-iconContainer {
    background: #050609 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
  }
  html.bs-exact-theme .bsx-saveResource {
    background: rgba(12, 15, 22, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #dde2ea !important;
    border-radius: 4px !important;
  }
  html.bs-exact-theme .bsx-saveResource[aria-pressed="true"] {
    background: rgba(245, 196, 81, 0.16) !important;
    border-color: rgba(245, 196, 81, 0.65) !important;
    color: #ffe8a3 !important;
  }

  /* Crisp rating stars contrast */
  html.bs-exact-theme body .ratingStars .ratingStars-star::before {
    color: #6b7280 !important;
  }
  html.bs-exact-theme body .ratingStars .ratingStars-star--full::before,
  html.bs-exact-theme body .ratingStars .ratingStars-star--half::after {
    color: #f5c451 !important;
  }

  /* Sidebar category rows + clickable Rust .16/ subtree toggler */
  html.bs-exact-theme .categoryList-itemRow {
    border-radius: 5px !important;
    transition: background-color 0.14s ease !important;
  }
  html.bs-exact-theme .categoryList-itemRow:hover {
    background: rgba(224, 79, 62, 0.1) !important;
  }
  html.bs-exact-theme .categoryList-toggler {
    position: relative !important;
    z-index: 6 !important;
  }

  /* Balanced 7-card SEO category hub in matching obsidian framing (100% verbatim copy) */
  html.bs-exact-theme .nfSeo-discovery {
    background: var(--bs-panel) !important;
    border: 1px solid var(--bs-border) !important;
    border-top: 2px solid rgba(224, 79, 62, 0.45) !important;
    border-radius: 7px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
  }
  html.bs-exact-theme .nfSeo-discoveryGrid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  html.bs-exact-theme .nfSeo-discoveryGrid > a {
    background: rgba(5, 7, 11, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 5px !important;
    transition: border-color 0.15s ease, background-color 0.15s ease !important;
  }
  html.bs-exact-theme .nfSeo-discoveryGrid > a:hover {
    border-color: rgba(224, 79, 62, 0.55) !important;
    background: rgba(16, 19, 27, 0.9) !important;
  }
  @media (min-width: 901px) {
    html.bs-exact-theme .nfSeo-discoveryGrid > a:last-child:nth-child(3n + 1) {
      grid-column: 1 / -1 !important;
    }
    html.bs-exact-theme .nfSeo-discoveryGrid > a:last-child:nth-child(3n + 2) {
      grid-column: span 2 !important;
    }
  }
  @media (max-width: 900px) {
    html.bs-exact-theme .nfSeo-discoveryGrid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    html.bs-exact-theme .nfSeo-discoveryGrid > a:last-child:nth-child(odd) {
      grid-column: 1 / -1 !important;
    }
  }
  @media (max-width: 540px) {
    html.bs-exact-theme .nfSeo-discoveryGrid {
      grid-template-columns: 1fr !important;
    }
  }

  /* =========================================================================
   * 8. SINGLE RESOURCE PAGE — Chamfered Gold CTA, Clean Tabs, Sticky Sidebar
   * ========================================================================= */
  html.bs-exact-theme a.bsUpgradeDownloadPrompt {
    background: linear-gradient(180deg, #523b13, #2b1f0b) !important;
    border: 1px solid rgba(245, 196, 81, 0.72) !important;
    clip-path: var(--bs-chamfer) !important;
    border-radius: 3px !important;
    box-shadow: inset 0 1px 0 rgba(255, 236, 172, 0.25) !important;
  }
  html.bs-exact-theme a.bsUpgradeDownloadPrompt:hover {
    background: linear-gradient(180deg, #654918, #35260e) !important;
    border-color: #ffd875 !important;
  }
  html[data-template="xfrm_resource_view"].bs-exact-theme .bsResource-index a[aria-current="location"] {
    border-left: 0 !important;
    padding-left: 0 !important;
    color: #ffe2a6 !important;
    box-shadow: inset 0 -2px 0 #f5c451 !important;
  }
  @media (max-width: 900px) {
    html[data-template="xfrm_resource_view"].bs-exact-theme .tabs--standalone,
    html[data-template="xfrm_resource_view"].bs-exact-theme .tabs--standalone .hScroller-scroll {
      scrollbar-width: none !important;
      -ms-overflow-style: none !important;
    }
    html[data-template="xfrm_resource_view"].bs-exact-theme .tabs--standalone::-webkit-scrollbar,
    html[data-template="xfrm_resource_view"].bs-exact-theme .tabs--standalone .hScroller-scroll::-webkit-scrollbar {
      display: none !important;
      height: 0 !important;
    }
  }
  @media (min-width: 901px) {
    html[data-template="xfrm_resource_view"].bs-exact-theme .p-body-sidebar {
      position: sticky !important;
      top: 18px !important;
      align-self: start !important;
    }
  }

  /* =========================================================================
   * 9. FORUMS — Forged Obsidian Hub, Crisp Tabs, Copper Sticky Accent
   * ========================================================================= */
  html.bs-exact-theme .bsf-panel {
    background: var(--bs-panel) !important;
    border: 1px solid var(--bs-border) !important;
    border-radius: 7px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
  }
  html.bs-exact-theme .bsf-categories > a {
    background: rgba(5, 7, 11, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 4px !important;
    color: #d6dce5 !important;
  }
  html.bs-exact-theme .bsf-categories > a[aria-selected="true"] {
    background: linear-gradient(180deg, rgba(224, 79, 62, 0.22), rgba(22, 14, 16, 0.9)) !important;
    border-color: rgba(224, 79, 62, 0.65) !important;
    box-shadow: inset 0 -2px 0 #e04f3e !important;
    color: #ffffff !important;
  }
  html.bs-exact-theme .bsf-resource {
    background: rgba(6, 8, 13, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.085) !important;
    border-radius: 5px !important;
  }
  html.bs-exact-theme .bsf-resource:hover {
    border-color: rgba(224, 79, 62, 0.58) !important;
    background: rgba(16, 19, 27, 0.94) !important;
  }
  html.bs-exact-theme .bsf-resourceImage {
    background: linear-gradient(180deg, #0d1017, #05070b) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  html.bs-exact-theme .bsf-resourceCopy > strong {
    color: #f6f2ee !important;
  }
  html.bs-exact-theme .bsf-resourceCopy > span > span[aria-hidden="true"] {
    opacity: 0.42 !important;
    transition: opacity 0.15s ease;
  }
  html.bs-exact-theme .bsf-resource:hover .bsf-resourceCopy > span > span[aria-hidden="true"] {
    opacity: 0.95 !important;
  }
  html.bs-exact-theme .structItem--thread.is-sticky {
    border-left: 2px solid #e04f3e !important;
  }
  html.bs-exact-theme .block--category .block-header .collapseTrigger,
  html.bs-exact-theme .block--category .block-header .collapseTrigger::before {
    color: #f6eae4 !important;
    opacity: 0.9 !important;
  }

  /* =========================================================================
   * 10. REGISTER / PLANS & MOBILE BOTTOM BAR CLEARANCE
   * ========================================================================= */
  html.bs-exact-theme .bsu-plans .bsu-card {
    background: linear-gradient(180deg, rgba(13, 16, 23, 0.9), rgba(7, 9, 14, 0.94)) !important;
    border-radius: 8px !important;
  }
  html.bs-exact-theme .bsu-plans .bsu-card--ultra {
    border-color: rgba(245, 196, 81, 0.52) !important;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 232, 168, 0.22) !important;
  }
  html.bs-exact-theme .bsu-plans .bsu-card--ultra .bsu-button {
    clip-path: var(--bs-chamfer) !important;
    border-radius: 3px !important;
  }
  html.bs-exact-theme .bsu-promoToggle > summary {
    background: rgba(10, 12, 18, 0.88) !important;
    border-color: rgba(224, 79, 62, 0.36) !important;
  }
  html.bs-exact-theme .bsu-promoToggle-icon {
    width: 14px !important;
    height: 14px !important;
    object-fit: contain !important;
    image-rendering: auto !important;
  }

  @media (max-width: 900px) {
    html.bs-exact-theme .p-pageWrapper {
      background-attachment: scroll !important;
    }
    html.bs-exact-theme .p-footer {
      padding-bottom: 92px !important;
    }
    html[data-template="af_paidregistrations_accounttype"].bs-exact-theme .bsx-actionbar,
    html[data-template="account_upgrades"].bs-exact-theme .bsx-actionbar {
      display: none !important;
    }
  }
}

/* Disable cross-document @view-transition snapshot flash so background particles glide seamlessly */
@view-transition {
  navigation: none;
}
