/* ==========================================================================
   booty Theme Pimp - Custom CSS variable theme system
   --------------------------------------------------------------------------
   Bootstrap 5.3 in this theme was compiled with $enable-dark-mode:false, so
   there are NO native [data-bs-theme] variables. This file restyles the
   Bootstrap components after the fact using our own token contract:

     html[data-booty-theme="light"|"dark"|"cyber"]

   The JS layer (001_booty_pimp.js) resolves "auto" to light|dark via
   prefers-color-scheme, keeps "cyber", and mirrors data-bs-theme for
   future-proofing. It also writes localStorage key "booty-pimp-theme".

   Works in frontend AND admin. General selectors only. Comments in English.
   UTF-8 without BOM. No external requests. No emojis.
   ========================================================================== */

/* ---- Design tokens ----------------------------------------------------- */
/* Theme-independent shape / typography. The colour tokens below default to
   the LIGHT theme so the page never renders unstyled if the attribute is
   missing (e.g. before the inline JS runs). */
:root {
  /* Typography */
  --booty-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --booty-font-mono: ui-monospace, "SFMono-Regular", "SF Mono", "Cascadia Code", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Shape / motion */
  --booty-radius: 0.6rem;
  --booty-transition: 160ms ease;

  /* Colour tokens - DEFAULT = LIGHT ("day"): clean, cyan/blue accent. */
  --booty-bg: #f6f8fc;
  --booty-bg-alt: #eaeff7;
  --booty-fg: #0f172a;
  --booty-fg-muted: #5a6b85;
  --booty-surface: #ffffff;
  --booty-border: #d6deec;
  --booty-accent: #00a86b;
  --booty-accent-2: #0dcaf0;
  --booty-accent-3: #0b5ed7;
  --booty-glow: rgba(0, 168, 107, 0.18);
  --booty-on-accent: #ffffff;
  --booty-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --booty-pill-bg: rgba(0, 168, 107, 0.12);
  --booty-pill-border: rgba(0, 168, 107, 0.38);
  --booty-pill-hover: rgba(0, 168, 107, 0.22);
  --up: #22c55e;
  --down: #ef4444;

  color-scheme: light;
}

/* Explicit LIGHT block (kept identical to :root defaults for clarity). */
html[data-booty-theme="light"] {
  --booty-bg: #f6f8fc;
  --booty-bg-alt: #eaeff7;
  --booty-fg: #0f172a;
  --booty-fg-muted: #5a6b85;
  --booty-surface: #ffffff;
  --booty-border: #d6deec;
  --booty-accent: #00a86b;
  --booty-accent-2: #0dcaf0;
  --booty-accent-3: #0b5ed7;
  --booty-glow: rgba(0, 168, 107, 0.18);
  --booty-on-accent: #ffffff;
  --booty-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --booty-pill-bg: rgba(0, 168, 107, 0.12);
  --booty-pill-border: rgba(0, 168, 107, 0.38);
  --booty-pill-hover: rgba(0, 168, 107, 0.22);

  color-scheme: light;
}

/* DARK ("night"): dark base, cyan accent, dimmed borders, soft glow. */
html[data-booty-theme="dark"] {
  --booty-bg: #0b0f17;
  --booty-bg-alt: #0e131d;
  --booty-fg: #e6edf3;
  --booty-fg-muted: #93a1b1;
  --booty-surface: #151b26;
  --booty-border: #263140;
  --booty-accent: #22d3ee;
  --booty-accent-2: #38bdf8;
  --booty-accent-3: #6366f1;
  --booty-glow: rgba(34, 211, 238, 0.32);
  --booty-on-accent: #06222b;
  --booty-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 40px rgba(0, 0, 0, 0.45);
  --booty-pill-bg: rgba(34, 211, 238, 0.14);
  --booty-pill-border: rgba(34, 211, 238, 0.4);
  --booty-pill-hover: rgba(34, 211, 238, 0.26);

  color-scheme: dark;
}

/* CYBER ("cyber-crypto-ai"): dark base, neon cyan/magenta/purple. */
html[data-booty-theme="cyber"] {
  --booty-bg: #04070a;
  --booty-bg-alt: #080d11;
  --booty-fg: #f2fdff;
  --booty-fg-muted: #8b93bb;
  --booty-surface: rgba(8, 13, 11, 0.55);
  --booty-border: rgba(0, 255, 157, 0.22);
  --booty-accent: #00ff9d;
  --booty-accent-2: #ff00e5;
  --booty-accent-3: #a855f7;
  --booty-glow: rgba(0, 255, 157, 0.55);
  --booty-on-accent: #04121a;
  --booty-shadow: 0 0 0 1px rgba(0, 255, 157, 0.10) inset, 0 12px 44px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 255, 157, 0.16);
  --booty-pill-bg: rgba(0, 255, 157, 0.14);
  --booty-pill-border: rgba(0, 255, 157, 0.45);
  --booty-pill-hover: rgba(0, 255, 157, 0.28);

  color-scheme: dark;
}

/* ---- Base surfaces (token driven, theme neutral) ----------------------- */
body {
  background-color: var(--booty-bg);
  color: var(--booty-fg);
  font-family: var(--booty-font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--booty-transition), color var(--booty-transition);
}

a {
  color: var(--booty-accent);
  text-decoration: none;
  transition: color var(--booty-transition), text-shadow var(--booty-transition);
}
a:hover,
a:focus {
  color: var(--booty-accent-2);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.display-1, .display-2, .display-3, .display-4 {
  color: var(--booty-fg);
}

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

/* Cards */
.card {
  background-color: var(--booty-surface);
  border: 1px solid var(--booty-border);
  border-radius: var(--booty-radius);
  box-shadow: var(--booty-shadow);
  transition: background-color var(--booty-transition), border-color var(--booty-transition), box-shadow var(--booty-transition);
}
.card .card-header,
.card .card-footer {
  background-color: var(--booty-bg-alt);
  border-color: var(--booty-border);
}

/* Buttons - accent based, cyber overrides with neon gradient below. */
.btn {
  transition: background-color var(--booty-transition), border-color var(--booty-transition), color var(--booty-transition), box-shadow var(--booty-transition), transform var(--booty-transition);
}
.btn-primary {
  background-color: var(--booty-accent);
  border-color: var(--booty-accent);
  color: var(--booty-on-accent);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--booty-accent-2);
  border-color: var(--booty-accent-2);
  color: var(--booty-on-accent);
}
.btn-outline-primary {
  color: var(--booty-accent);
  border-color: var(--booty-accent);
}
.btn-outline-primary:hover {
  background-color: var(--booty-accent);
  border-color: var(--booty-accent);
  color: var(--booty-on-accent);
}
.btn-secondary,
.btn-outline-secondary {
  color: var(--booty-fg);
}

/* Links used as buttons / pagination */
.post-nav-links a,
.page-numbers.current {
  color: var(--booty-on-accent);
}

/* Form controls + common inputs (excluded: checkboxes/radios/range/color/file/buttons). */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
textarea,
select,
.form-control,
.form-select {
  background-color: var(--booty-surface);
  color: var(--booty-fg);
  border: 1px solid var(--booty-border);
  border-radius: var(--booty-radius);
  transition: border-color var(--booty-transition), box-shadow var(--booty-transition);
}
.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--booty-accent);
  box-shadow: 0 0 0 0.2rem var(--booty-glow);
  outline: none;
}
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--booty-fg-muted);
}
.form-control:disabled,
.form-control[readonly] {
  background-color: var(--booty-bg-alt);
}

/* Blockquote */
blockquote {
  border-left: 3px solid var(--booty-accent);
  padding: 0.6rem 1.1rem;
  margin: 1rem 0;
  color: var(--booty-fg);
  background-color: var(--booty-bg-alt);
  border-radius: 0 var(--booty-radius) var(--booty-radius) 0;
}

/* Navbar */
.navbar {
  background-color: var(--booty-surface);
  border-bottom: 1px solid var(--booty-border);
  transition: background-color var(--booty-transition), border-color var(--booty-transition);
}
.navbar .navbar-brand,
.navbar .nav-link {
  color: var(--booty-fg);
  transition: color var(--booty-transition);
}
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .navbar-brand:hover {
  color: var(--booty-accent);
}

/* Footer */
#footer,
#colophon {
  background-color: var(--booty-bg-alt);
  color: var(--booty-fg-muted);
  border-top: 1px solid var(--booty-border);
  padding: 1.75rem 0;
}
#footer a,
#colophon a {
  color: var(--booty-accent);
}
#footer a:hover,
#colophon a:hover {
  color: var(--booty-accent-2);
}

/* Selection */
::selection { background: var(--booty-accent); color: var(--booty-on-accent); }
::-moz-selection { background: var(--booty-accent); color: var(--booty-on-accent); }

/* Scrollbar (neon thumb in cyber, below). */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--booty-bg-alt); }
::-webkit-scrollbar-thumb {
  background-color: var(--booty-accent);
  border: 2px solid var(--booty-bg-alt);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--booty-accent-2); }
scrollbar-color: var(--booty-accent) var(--booty-bg-alt);

/* ---- AI-style utility classes ------------------------------------------ */
.booty-mono { font-family: var(--booty-font-mono); }

.booty-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.28em 0.7em;
  border-radius: 999px;
  font-family: var(--booty-font-mono);
  font-size: 0.82em;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--booty-on-accent);
  background-image: linear-gradient(135deg, var(--booty-accent), var(--booty-accent-2));
  border: 0;
}
.booty-chip--outline {
  background-image: none;
  background-color: transparent;
  color: var(--booty-accent);
  border: 1px solid var(--booty-accent);
}
.booty-chip--up   { color: var(--up); }
.booty-chip--down { color: var(--down); }

.booty-glow-border {
  border: 1px solid var(--booty-accent);
  border-radius: var(--booty-radius);
  box-shadow: 0 0 14px var(--booty-glow), inset 0 0 14px var(--booty-glow);
}

.booty-pulse { animation: booty-pulse 2.4s ease-in-out infinite; }

/* ---- Keyframes --------------------------------------------------------- */
@keyframes booty-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--booty-glow); }
  50%      { box-shadow: 0 0 22px var(--booty-glow); }
}

@keyframes booty-grid-move {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 42px, 0 42px; }
}

@keyframes booty-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Crypto ticker ----------------------------------------------------- */
.booty-crypto-ticker {
  --up: #22c55e;
  --down: #ef4444;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  background-color: var(--booty-bg-alt);
  border-top: 1px solid var(--booty-border);
  border-bottom: 1px solid var(--booty-border);
  padding: 0.5rem 0;
}
.booty-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding-left: 2rem;
  will-change: transform;
  animation: booty-marquee 26s linear infinite;
}
.booty-crypto-ticker:hover .booty-ticker-track { animation-play-state: paused; }

.booty-coin {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--booty-font-mono);
  font-size: 0.9rem;
  color: var(--booty-fg);
}
.booty-coin-symbol { color: var(--booty-fg-muted); }
.booty-coin-delta--up   { color: var(--up); }
.booty-coin-delta--down { color: var(--down); }

/* ---- Theme switcher UI ------------------------------------------------- */
/* Contract:
   container: .booty-theme-switcher (with .fixed for the floating variant)
   position:  data-position="bottom-right" (default) | "bottom-left"
   buttons:   [data-booty-theme-set="light|dark|cyber|auto"]
              active state via aria-pressed="true"
              JS handler (001_booty_pimp.js) stores + dispatches booty:themechange. */
.booty-theme-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
}
.booty-theme-switcher.fixed {
  position: fixed;
  z-index: 9999;
  bottom: 1rem;
  right: 1rem;
}
.booty-theme-switcher.fixed[data-position="bottom-left"] { right: auto; left: 1rem; }
.booty-theme-switcher.fixed[data-position="bottom-right"] { left: auto; right: 1rem; }

.booty-theme-switcher .booty-switch-panel {
  display: flex;
  gap: 0.3rem;
  padding: 0.4rem;
  background-color: var(--booty-surface);
  border: 1px solid var(--booty-border);
  border-radius: 999px;
  box-shadow: var(--booty-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color var(--booty-transition), border-color var(--booty-transition), box-shadow var(--booty-transition);
}

.booty-switch-btn,
[data-booty-theme-set] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background-color: transparent;
  color: var(--booty-fg-muted);
  font-family: var(--booty-font-mono);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--booty-transition), background-color var(--booty-transition), box-shadow var(--booty-transition), transform var(--booty-transition);
}
.booty-switch-btn:hover,
[data-booty-theme-set]:hover {
  color: var(--booty-fg);
  background-color: var(--booty-bg-alt);
}
.booty-switch-btn[aria-pressed="true"],
[data-booty-theme-set][aria-pressed="true"] {
  color: var(--booty-on-accent);
  background-image: linear-gradient(135deg, var(--booty-accent), var(--booty-accent-2));
  box-shadow: 0 0 12px var(--booty-glow);
}
.booty-switch-btn:focus-visible,
[data-booty-theme-set]:focus-visible {
  outline: 2px solid var(--booty-accent);
  outline-offset: 2px;
}

/* Optional CSS-drawn switch icons (widget may include this markup). */
.booty-switch-ico { display: inline-block; width: 1rem; height: 1rem; position: relative; }
.booty-switch-ico--sun {
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px transparent, 0 0 8px var(--booty-glow);
}
.booty-switch-ico--moon {
  border-radius: 50%;
  background: transparent;
  box-shadow: inset -3px 1px 0 0 currentColor;
}
.booty-switch-ico--cyber {
  border-radius: 3px;
  border: 1px solid currentColor;
  box-shadow: 0 0 8px var(--booty-glow);
}

/* ---- CYBER: neon restyle ---------------------------------------------- */
html[data-booty-theme="cyber"] body {
  position: relative;
  z-index: 0;
  isolation: isolate; /* stacking context so the grid sits behind content */
  background-color: var(--booty-bg);
  background-image:
    radial-gradient(1200px 700px at 15% -10%, rgba(168, 85, 247, 0.28), transparent 60%),
    radial-gradient(1100px 600px at 105% 5%, rgba(0, 255, 157, 0.20), transparent 55%),
    radial-gradient(900px 900px at 50% 120%, rgba(255, 0, 229, 0.20), transparent 60%);
  background-attachment: fixed;
}

/* Animated perspective grid floor (behind content, above body background). */
html[data-booty-theme="cyber"] body:not(.booty-fx-off)::after {
  content: "";
  position: fixed;
  inset: -25% -10% 0 -10%;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 255, 157, 0.14) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(255, 0, 229, 0.10) 0 1px, transparent 1px 42px);
  transform: perspective(520px) rotateX(58deg);
  transform-origin: top center;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.15) 45%, transparent 85%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.15) 45%, transparent 85%);
  animation: booty-grid-move 5s linear infinite;
}

/* Scanline overlay (very subtle, above content, below the switcher). */
html[data-booty-theme="cyber"] body:not(.booty-fx-off)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.16) 3px 4px);
  opacity: 0.35;
}

/* Neon text glow on headings / brand / entry titles. */
html[data-booty-theme="cyber"] h1,
html[data-booty-theme="cyber"] h2,
html[data-booty-theme="cyber"] h3,
html[data-booty-theme="cyber"] h4,
html[data-booty-theme="cyber"] .navbar-brand,
html[data-booty-theme="cyber"] .entry-title {
  color: #f2fdff;
  text-shadow: 0 0 6px var(--booty-accent), 0 0 18px var(--booty-glow), 0 0 42px rgba(0, 255, 157, 0.45);
}

/* Cards: gradient border + inner glow + backdrop blur. */
html[data-booty-theme="cyber"] .card {
  background-color: var(--booty-surface);
  border: 1px solid rgba(0, 255, 157, 0.35);
  border-radius: var(--booty-radius);
  box-shadow: 0 0 0 1px rgba(255, 0, 229, 0.12) inset, 0 0 26px rgba(0, 255, 157, 0.12), inset 0 0 30px rgba(168, 85, 247, 0.08);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
html[data-booty-theme="cyber"] .card .card-header,
html[data-booty-theme="cyber"] .card .card-footer {
  background-color: rgba(10, 1, 24, 0.55);
  border-color: rgba(0, 255, 157, 0.22);
}

/* Links: cyan, hover magenta + glow. */
html[data-booty-theme="cyber"] a:hover,
html[data-booty-theme="cyber"] a:focus {
  color: var(--booty-accent-2);
  text-shadow: 0 0 8px var(--booty-accent-2), 0 0 20px rgba(255, 0, 229, 0.5);
}

/* Buttons: gradient + glow; hover intensifies. */
html[data-booty-theme="cyber"] .btn-primary {
  background-image: linear-gradient(135deg, var(--booty-accent), var(--booty-accent-3), var(--booty-accent-2));
  background-color: var(--booty-accent);
  border: 1px solid var(--booty-accent);
  color: var(--booty-on-accent);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.5), 0 0 30px rgba(255, 0, 229, 0.22);
}
html[data-booty-theme="cyber"] .btn:hover {
  box-shadow: 0 0 18px rgba(0, 255, 157, 0.65), 0 0 46px rgba(255, 0, 229, 0.35);
}
html[data-booty-theme="cyber"] .btn-outline-primary {
  color: var(--booty-accent);
  border-color: var(--booty-accent);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.25);
}

/* Navbar: sticky, blur, neon gradient underline. */
html[data-booty-theme="cyber"] .navbar {
  background-color: rgba(4, 7, 10, 0.88);
  border-bottom: 1px solid rgba(0, 255, 157, 0.22);
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html[data-booty-theme="cyber"] .navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--booty-accent), var(--booty-accent-2), var(--booty-accent-3), transparent);
  filter: drop-shadow(0 0 6px var(--booty-accent));
}

/* Neon form controls + blockquote. */
html[data-booty-theme="cyber"] .form-control,
html[data-booty-theme="cyber"] .form-select,
html[data-booty-theme="cyber"] input:not([type="checkbox"]):not([type="radio"]),
html[data-booty-theme="cyber"] textarea,
html[data-booty-theme="cyber"] select {
  background-color: rgba(10, 1, 24, 0.6);
  border-color: rgba(0, 255, 157, 0.3);
}
html[data-booty-theme="cyber"] .form-control:focus,
html[data-booty-theme="cyber"] input:focus,
html[data-booty-theme="cyber"] textarea:focus,
html[data-booty-theme="cyber"] select:focus {
  border-color: var(--booty-accent-2);
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 157, 0.25);
}
html[data-booty-theme="cyber"] blockquote {
  border-left-color: var(--booty-accent);
  background-color: rgba(10, 1, 24, 0.55);
  box-shadow: inset 0 0 24px rgba(168, 85, 247, 0.12);
}

/* Neon selection + scrollbar thumb. */
html[data-booty-theme="cyber"] ::-webkit-scrollbar-thumb {
  background-image: linear-gradient(180deg, var(--booty-accent), var(--booty-accent-2));
  box-shadow: 0 0 10px var(--booty-glow);
}
html[data-booty-theme="cyber"] ::-moz-selection { background: var(--booty-accent); color: var(--booty-on-accent); }

/* Neon footer + chips. */
html[data-booty-theme="cyber"] #footer,
html[data-booty-theme="cyber"] #colophon {
  background-color: rgba(4, 7, 10, 0.92);
  border-top: 1px solid rgba(0, 255, 157, 0.25);
}
html[data-booty-theme="cyber"] .booty-chip {
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.35);
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 575.98px) {
  .booty-theme-switcher.fixed {
    bottom: 0.75rem;
    right: 0.75rem;
    left: auto;
  }
  .booty-theme-switcher.fixed[data-position="bottom-left"] {
    left: 0.75rem;
    right: auto;
  }
  .booty-switch-btn,
  [data-booty-theme-set] {
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 0.45rem;
    font-size: 0.82rem;
  }
  .booty-ticker-track { gap: 1.25rem; animation-duration: 20s; }
  .booty-coin { font-size: 0.82rem; }
}

/* ---- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Switch icon: "auto" (half-filled circle) --------------------------- */
.booty-switch-ico--auto {
  border-radius: 50%;
  border: 1px solid currentColor;
  background-image: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
}

/* ---- Scroll-to-top button (created by 001_booty_pimp.js) ---------------- */
.booty-scroll-top {
  position: fixed;
  z-index: 9999;
  right: 1rem;
  bottom: 12.5rem; /* sits above the 4-button floating switcher */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--booty-border);
  border-radius: 999px;
  background-color: var(--booty-surface);
  color: var(--booty-fg);
  box-shadow: var(--booty-shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--booty-transition), visibility var(--booty-transition),
    transform var(--booty-transition), box-shadow var(--booty-transition),
    color var(--booty-transition);
}
.booty-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.booty-scroll-top:hover {
  color: var(--booty-accent);
  box-shadow: 0 0 14px var(--booty-glow);
}
.booty-scroll-top:focus-visible {
  outline: 2px solid var(--booty-accent);
  outline-offset: 2px;
}
.booty-scroll-top::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.3rem;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}
html[data-booty-theme="cyber"] .booty-scroll-top:hover {
  box-shadow: 0 0 18px rgba(0, 255, 157, 0.65), 0 0 46px rgba(255, 0, 229, 0.35);
}

/* ---- Navbar menu links as colored pill buttons --------------------------- */
.navbar .navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  margin: 0 0.1rem;
  border: 1px solid var(--booty-pill-border);
  border-radius: 999px;
  background-color: var(--booty-pill-bg);
  color: var(--booty-fg);
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color var(--booty-transition), color var(--booty-transition),
    border-color var(--booty-transition), box-shadow var(--booty-transition);
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
  background-color: var(--booty-pill-hover);
  border-color: var(--booty-accent);
  color: var(--booty-accent);
}
/* Only the active/current menu button is marked with the accent gradient. */
.navbar .navbar-nav .current-menu-item > .nav-link,
.navbar .navbar-nav .current_page_item > .nav-link,
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link[aria-current="page"] {
  background-image: linear-gradient(135deg, var(--booty-accent), var(--booty-accent-2));
  border-color: var(--booty-accent);
  color: var(--booty-on-accent);
  box-shadow: 0 0 10px var(--booty-glow);
}

/* Dropdown toggles keep the colored button background in every state. */
.navbar .navbar-nav .nav-link.dropdown-toggle,
.navbar .navbar-nav .nav-link.dropdown-toggle.show,
.navbar .navbar-nav .nav-link.dropdown-toggle[aria-expanded="true"] {
  background-color: var(--booty-pill-bg);
  border-color: var(--booty-pill-border);
  color: var(--booty-fg);
}
.navbar .navbar-nav .nav-link.dropdown-toggle:hover,
.navbar .navbar-nav .nav-link.dropdown-toggle:focus {
  background-color: var(--booty-pill-hover);
  border-color: var(--booty-accent);
  color: var(--booty-accent);
}
/* Open toggle: the pill grows downward into the attached panel. */
.navbar .navbar-nav .nav-link.dropdown-toggle.show,
.navbar .navbar-nav .nav-link.dropdown-toggle[aria-expanded="true"] {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border-bottom-color: var(--booty-accent);
  position: relative;
  z-index: 1001;
}

/* ---- Dropdown panels (attached below the pill, growing downward) --------- */
.navbar .dropdown-menu {
  background-color: var(--booty-surface);
  border: 1px solid var(--booty-accent);
  border-radius: var(--booty-radius);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 22px var(--booty-glow);
  padding: 0.4rem;
  margin-top: 0;
  min-width: 13rem;
}
.navbar .dropdown-item {
  display: block;
  padding: 0.45rem 0.85rem;
  margin: 0.12rem 0;
  border: 1px solid var(--booty-pill-border);
  border-radius: 999px;
  background-color: var(--booty-pill-bg);
  color: var(--booty-fg);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color var(--booty-transition), color var(--booty-transition),
    border-color var(--booty-transition);
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: var(--booty-pill-hover);
  border-color: var(--booty-accent);
  color: var(--booty-accent);
}
/* Only the active/current item is marked with the accent gradient. */
.navbar .dropdown-menu .current-menu-item > .dropdown-item,
.navbar .dropdown-menu .current_page_item > .dropdown-item,
.navbar .dropdown-item.active,
.navbar .dropdown-item[aria-current="page"] {
  background-image: linear-gradient(135deg, var(--booty-accent), var(--booty-accent-2));
  border-color: var(--booty-accent);
  color: var(--booty-on-accent);
}
.navbar .dropdown-divider {
  border-color: var(--booty-border);
  margin: 0.3rem 0.5rem;
}

/* Hierarchical submenus keep the same panel + pill items. */
.navbar .dropdown-menu .dropdown-menu {
  background-color: var(--booty-surface);
  border: 1px solid var(--booty-accent);
  border-radius: var(--booty-radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 22px var(--booty-glow);
}

/* Scale-in (grows downward) for dropdown panels, desktop only. */
@media (min-width: 768px) {
  .navbar .dropdown-menu {
    animation: booty-dropdown-in 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: top center;
  }
}
@keyframes booty-dropdown-in {
  from {
    opacity: 0;
    transform: scaleY(0.9) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}

/* ---- Switcher + outline buttons: colored chips --------------------------- */
.booty-switch-btn,
[data-booty-theme-set] {
  border-color: var(--booty-pill-border);
  background-color: var(--booty-pill-bg);
}
.booty-switch-btn:hover,
[data-booty-theme-set]:hover {
  background-color: var(--booty-pill-hover);
  border-color: var(--booty-accent);
  color: var(--booty-accent);
}
.btn-outline-secondary,
.btn-outline-primary {
  background-color: var(--booty-pill-bg);
  border-color: var(--booty-pill-border);
}

/* ---- Cyber base look: black surfaces, white text, pink/purple hover ------ */
html[data-booty-theme="cyber"] #header .navbar {
  background-color: rgba(4, 7, 10, 0.88);
}
html[data-booty-theme="cyber"] #footer,
html[data-booty-theme="cyber"] #colophon {
  background-color: rgba(4, 7, 10, 0.92);
  color: #f2fdff;
}
html[data-booty-theme="cyber"] #footer a,
html[data-booty-theme="cyber"] #colophon a,
html[data-booty-theme="cyber"] #footer .menu-item a,
html[data-booty-theme="cyber"] #colophon .menu-item a {
  color: #f2fdff;
}
html[data-booty-theme="cyber"] #footer a:hover,
html[data-booty-theme="cyber"] #footer a:focus,
html[data-booty-theme="cyber"] #colophon a:hover,
html[data-booty-theme="cyber"] #colophon a:focus,
html[data-booty-theme="cyber"] #footer .menu-item a:hover,
html[data-booty-theme="cyber"] #colophon .menu-item a:hover {
  color: #ff00e5;
  text-shadow: 0 0 10px rgba(255, 0, 229, 0.6);
}

/* Navbar + dropdowns: white labels, pink/purple hover. */
html[data-booty-theme="cyber"] .navbar .navbar-brand,
html[data-booty-theme="cyber"] .navbar .navbar-nav .nav-link,
html[data-booty-theme="cyber"] .navbar .dropdown-item {
  color: #f2fdff;
}
html[data-booty-theme="cyber"] .navbar .navbar-nav .nav-link:hover,
html[data-booty-theme="cyber"] .navbar .navbar-nav .nav-link:focus,
html[data-booty-theme="cyber"] .navbar .navbar-nav .nav-link.dropdown-toggle:hover,
html[data-booty-theme="cyber"] .navbar .navbar-nav .nav-link.dropdown-toggle:focus,
html[data-booty-theme="cyber"] .navbar .dropdown-item:hover,
html[data-booty-theme="cyber"] .navbar .dropdown-item:focus {
  color: #ff00e5;
  border-color: #ff00e5;
  text-shadow: 0 0 10px rgba(255, 0, 229, 0.6);
}
html[data-booty-theme="cyber"] .navbar .navbar-brand:hover {
  color: #a855f7;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
}
html[data-booty-theme="cyber"] .navbar .dropdown-menu {
  background-color: rgba(4, 7, 10, 0.96);
  border-color: #ff00e5;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 22px rgba(255, 0, 229, 0.22);
}
html[data-booty-theme="cyber"] .navbar .dropdown-item[aria-current="page"],
html[data-booty-theme="cyber"] .navbar .dropdown-menu .current-menu-item > .dropdown-item {
  color: #f2fdff;
}

/* ---- Crypto ticker strip area (footer.php) ------------------------------ */
.booty-ticker-area {
  margin: 0;
}

/* ---- Reading progress bar (single posts / pages) ------------------------- */
.booty-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: 3px;
  pointer-events: none;
  background: transparent;
}
.booty-read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background-image: linear-gradient(90deg, var(--booty-accent), var(--booty-accent-2));
  box-shadow: 0 0 10px var(--booty-glow);
  transition: width 80ms linear;
}
body.admin-bar .booty-read-progress {
  top: var(--wp-admin--admin-bar--height, 32px);
}

/* ---- Reading time (entry meta) ------------------------------------------ */
.booty-reading-time {
  white-space: nowrap;
}

/* ---- Navbar scheme override (Customizer bg-light/bg-dark/bg-primary) ----- */
.navbar.bg-light,
.navbar.bg-dark,
.navbar.bg-primary {
  background-color: var(--booty-surface) !important;
  color: var(--booty-fg);
}

/* ---- Breadcrumbs --------------------------------------------------------- */
.booty-breadcrumb-nav {
  margin: 0.75rem 0 0;
}
.booty-breadcrumb-nav .breadcrumb {
  margin-bottom: 0;
  padding: 0.5rem 0.85rem;
  background-color: var(--booty-bg-alt);
  border: 1px solid var(--booty-border);
  border-radius: var(--booty-radius);
  font-size: 0.85rem;
}
.booty-breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
  color: var(--booty-fg-muted);
}
.booty-breadcrumb-nav .breadcrumb-item.active {
  color: var(--booty-accent);
}
.booty-breadcrumb-nav .breadcrumb-item a:hover {
  color: var(--booty-accent-2);
}

/* ---- Copy-link button + search highlight --------------------------------- */
.booty-copy-link {
  min-width: auto;
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}
.booty-copy-link::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.4rem;
  vertical-align: -1px;
  border: 1px solid currentColor;
  border-radius: 3px;
}
mark.booty-mark {
  background-color: var(--booty-accent);
  color: var(--booty-on-accent);
  padding: 0 0.15em;
  border-radius: 3px;
}

/* ---- Entry content: code, tables, images, hr ------------------------------ */
.entry-content pre {
  background-color: var(--booty-bg-alt);
  border: 1px solid var(--booty-border);
  border-radius: var(--booty-radius);
  padding: 0.85rem 1rem;
  overflow: auto;
  color: var(--booty-fg);
}
.entry-content code,
.entry-content kbd,
.entry-content samp {
  font-family: var(--booty-font-mono);
  font-size: 0.92em;
}
.entry-content :not(pre) > code {
  background-color: var(--booty-bg-alt);
  border: 1px solid var(--booty-border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--booty-accent);
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.entry-content table th,
.entry-content table td {
  border: 1px solid var(--booty-border);
  padding: 0.5rem 0.75rem;
}
.entry-content table th {
  background-color: var(--booty-bg-alt);
  color: var(--booty-fg);
}
.entry-content hr {
  border: 0;
  border-top: 1px solid var(--booty-border);
  margin: 2rem 0;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ---- Widget area polish --------------------------------------------------- */
.widget-area li {
  margin: 0.25rem 0;
}
.widget-area .widget-title,
.widget-area h3.widget-title {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--booty-accent);
  border-bottom: 1px solid var(--booty-border);
  padding-bottom: 0.4rem;
  margin: 0 0 0.6rem;
}
.bg-faded {
  background-color: var(--booty-bg-alt) !important;
}
.sticky .card {
  background-color: var(--booty-bg-alt);
}

/* ---- Comments: token-driven ---------------------------------------------- */
.commentlist .comment {
  background-color: var(--booty-surface);
  border: 1px solid var(--booty-border);
  border-radius: var(--booty-radius);
}
.commentlist .children > li.comment {
  border-top: 1px solid var(--booty-border);
}
.comment-meta,
.comment-content {
  color: var(--booty-fg);
}
.comment-awaiting-moderation {
  color: var(--booty-accent-2);
}
.commentlist .children .avatar {
  box-shadow: 0 1px 2px var(--booty-border);
}

/* ---- Numeric pagination --------------------------------------------------- */
.booty-pagination {
  margin: 1.5rem 0;
}
.booty-pagination .page-link {
  background-color: var(--booty-surface);
  border-color: var(--booty-border);
  color: var(--booty-fg);
  transition: background-color var(--booty-transition), color var(--booty-transition), box-shadow var(--booty-transition);
}
.booty-pagination .page-link:hover {
  background-color: var(--booty-bg-alt);
  border-color: var(--booty-border);
  color: var(--booty-accent);
}
.booty-pagination .page-item.active .page-link {
  background-image: linear-gradient(135deg, var(--booty-accent), var(--booty-accent-2));
  border-color: var(--booty-accent);
  color: var(--booty-on-accent);
  box-shadow: 0 0 12px var(--booty-glow);
}
.booty-pagination .page-item.disabled .page-link {
  background-color: var(--booty-bg-alt);
  color: var(--booty-fg-muted);
}

/* ---- Related posts --------------------------------------------------------- */
.booty-related {
  margin: 2.5rem 0 1rem;
}
.booty-related__title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--booty-fg);
}
.booty-related__thumb {
  height: 160px;
  object-fit: cover;
}
.booty-related .card-title a {
  color: var(--booty-fg);
}
.booty-related .card-title a:hover {
  color: var(--booty-accent);
}
.booty-related .card {
  transition: transform var(--booty-transition), border-color var(--booty-transition), box-shadow var(--booty-transition);
}
.booty-related .card:hover {
  transform: translateY(-3px);
  border-color: var(--booty-accent);
  box-shadow: 0 0 22px var(--booty-glow);
}

/* ---- Heading anchors ------------------------------------------------------- */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  scroll-margin-top: 6rem;
}
.booty-anchor {
  margin-left: 0.4rem;
  color: var(--booty-accent);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
  transition: opacity var(--booty-transition), color var(--booty-transition);
}
.entry-content h2:hover .booty-anchor,
.entry-content h3:hover .booty-anchor,
.entry-content h4:hover .booty-anchor,
.booty-anchor:focus {
  opacity: 0.85;
}
html[data-booty-theme="cyber"] .booty-anchor {
  text-shadow: 0 0 8px var(--booty-glow);
}

/* ---- Table of contents ----------------------------------------------------- */
.booty-toc {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background-color: var(--booty-surface);
  border: 1px solid var(--booty-border);
  border-left: 3px solid var(--booty-accent);
  border-radius: var(--booty-radius);
  font-size: 0.9rem;
}
.booty-toc__title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--booty-accent);
}
.booty-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.booty-toc li {
  margin: 0.2rem 0;
}
.booty-toc a {
  color: var(--booty-fg-muted);
}
.booty-toc a:hover,
.booty-toc a.is-active {
  color: var(--booty-accent);
}
.booty-toc__sub {
  padding-left: 1rem;
  font-size: 0.85rem;
}
@media (min-width: 992px) {
  .booty-toc {
    position: sticky;
    top: 5rem;
    max-height: 70vh;
    overflow: auto;
  }
}

/* ---- Image lightbox -------------------------------------------------------- */
.booty-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: rgba(4, 7, 10, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.booty-lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border: 1px solid var(--booty-accent);
  border-radius: 10px;
  box-shadow: 0 0 40px var(--booty-glow);
}
.booty-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.booty-lightbox__nav--prev {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.booty-lightbox__nav--next {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ---- Tracker-free consent note -------------------------------------------- */
.booty-consent {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: calc(100vw - 2rem);
  padding: 0.7rem 1.1rem;
  background-color: var(--booty-surface);
  border: 1px solid var(--booty-accent);
  border-radius: 999px;
  box-shadow: 0 0 24px var(--booty-glow);
  color: var(--booty-fg);
  font-size: 0.85rem;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.booty-consent.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
}
.booty-consent .booty-switch-btn[aria-pressed="false"] {
  min-width: auto;
  height: 2rem;
  padding: 0 0.85rem;
  font-size: 0.8rem;
}
@media (max-width: 575.98px) {
  .booty-consent {
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 16px;
    text-align: center;
  }
}

/* ---- Switcher inside the navbar (Appearance > Booty Options) ------------ */
.booty-theme-switcher--navbar {
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0.75rem;
}
.booty-theme-switcher--navbar .booty-switch-panel {
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0.15rem;
}
@media (max-width: 767.98px) {
  .booty-theme-switcher--navbar {
    margin: 0.5rem 0;
  }
}

/* ---- ARGIS link cards (.booty-linkcards) -------------------------------- */
/* Contract: <div class="booty-linkcards"> with <a class="booty-linkcard"
   style="--c:#hex;--cg:rgba(...)"> children. Icon | Title | Description. */
.booty-linkcards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 2rem 0;
}
.booty-linkcard {
  --c: var(--booty-accent);
  --cg: var(--booty-glow);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  background-color: var(--booty-surface);
  background-image: linear-gradient(135deg, var(--cg) 0%, transparent 100%);
  border: 1px solid var(--booty-border);
  border-left: 3px solid var(--c);
  border-radius: 12px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
  color: var(--booty-fg);
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s ease,
    box-shadow 0.28s ease, background-color 0.28s ease;
}
.booty-linkcard:hover,
.booty-linkcard:focus {
  transform: translateY(-3px);
  border-color: var(--c);
  border-left-color: var(--c);
  box-shadow: 0 0 30px var(--cg), inset 0 0 12px var(--cg);
  text-decoration: none;
}
.booty-linkcard:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 2px;
}
.booty-linkcard__icon {
  flex-shrink: 0;
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 0 12px var(--cg));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}
.booty-linkcard:hover .booty-linkcard__icon,
.booty-linkcard:focus .booty-linkcard__icon {
  transform: scale(1.25) rotate(-8deg);
  filter: drop-shadow(0 0 22px var(--c));
}
.booty-linkcard__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.booty-linkcard__title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c);
  text-shadow: 0 0 12px var(--cg);
}
.booty-linkcard__arrow {
  opacity: 0.7;
}
.booty-linkcard__desc {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--booty-fg-muted);
}
@media (max-width: 575.98px) {
  .booty-linkcards { gap: 0.75rem; margin: 1.25rem 0; }
  .booty-linkcard { gap: 16px; padding: 16px 18px; border-radius: 10px; }
  .booty-linkcard__icon { font-size: 36px; }
  .booty-linkcard__title { font-size: 16px; }
  .booty-linkcard__desc { font-size: 13px; }
}
