/* ═══════════════════════════════════════════════════════════════════════════
   BreachBoard — Cyber-Noir UI System
   12-column grid · elevated surfaces · cyan accent hierarchy
   ═══════════════════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --cn-bg: #05080e;
  --cn-bg-elevated: #0a0f1a;
  --cn-glass: rgba(10, 15, 26, 0.85);
  --cn-glass-blur: blur(16px);
  --cn-glass-border: rgba(0, 240, 255, 0.18);
  --cn-glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --cn-surface: rgba(10, 15, 26, 0.72);
  --cn-surface-hover: rgba(0, 240, 255, 0.05);
  --cn-border: rgba(0, 240, 255, 0.15);
  --cn-border-strong: rgba(0, 240, 255, 0.3);
  --cn-cyan: #00f0ff;
  --cn-cyan-muted: #4dd4e0;
  --cn-cyan-dim: rgba(0, 240, 255, 0.1);
  --cn-cyan-glow: rgba(0, 240, 255, 0.22);
  --cn-text: #eef2f8;
  --cn-text-secondary: #c5ced9;
  --cn-text-muted: #8a99ad;
  --cn-text-dim: #9aa8bc;
  --cn-grid-gap: 24px;
  --cn-section-gap: 24px;
  --cn-page-pad: 24px;
  --cn-radius: 10px;
  --cn-radius-sm: 8px;
  --cn-max: 1440px;
  --cn-font: "Inter", system-ui, -apple-system, sans-serif;
  --cn-mono: "JetBrains Mono", ui-monospace, monospace;
  --cn-layer-content: 10;
  --cn-nav-height: 64px;
  --cn-app-offset: 64px;
}

html {
  background-color: var(--cn-bg);
  min-height: 100%;
}

/* ── Vanta NET fixed background layer ── */
#vanta-canvas,
#vanta-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  min-width: 100vw;
  z-index: -1;
  pointer-events: none;
  background: var(--cn-bg);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
}

/* Lightweight CSS gradient fallback (mobile / reduced motion / lazy Vanta skip) */
body.bb-vanta-fallback #vanta-canvas,
body.bb-vanta-fallback #vanta-bg,
#vanta-canvas.bb-vanta-fallback-layer,
#vanta-bg.bb-vanta-fallback-layer {
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(0, 240, 255, 0.09) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 100% 100%, rgba(122, 0, 255, 0.07) 0%, transparent 52%),
    linear-gradient(180deg, #05080e 0%, #0a1220 48%, #05080e 100%);
}

#vanta-canvas canvas,
#vanta-bg canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ── Base typography & canvas ── */
body {
  font-family: var(--cn-font) !important;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cn-text-secondary);
  background: var(--cn-bg) !important;
}

body.bb-page-shell {
  background: transparent !important;
  background-image: none !important;
}

h1, h2, h3, h4, h5, h6,
.category-header,
.sidebar-title,
#navLinks li a {
  font-family: var(--cn-font) !important;
  letter-spacing: 0.02em;
}

.bb-page-shell {
  min-height: 100vh;
  padding-bottom: 48px;
  position: relative;
  z-index: var(--cn-layer-content);
  background: transparent !important;
  background-image: none !important;
}

body.bb-page-shell > *:not(#vanta-canvas):not(#vanta-bg) {
  position: relative;
  z-index: var(--cn-layer-content);
}

.bb-glass,
.cyber-glass {
  background: var(--cn-glass) !important;
  backdrop-filter: var(--cn-glass-blur);
  -webkit-backdrop-filter: var(--cn-glass-blur);
  border: 1px solid var(--cn-glass-border) !important;
  box-shadow: var(--cn-glass-shadow);
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Nested surfaces: matte fill only — avoid stacked backdrop-filter cost */
.bb-glass > *,
.cyber-glass > *,
.bb-glass-inner,
.cyber-glass-inner,
.bb-glass .bb-glass,
.cyber-glass .cyber-glass,
.bb-glass .admin-stat-card,
.bb-glass .admin-forum-card,
.bb-glass .admin-board-card,
.bb-glass .staff-stat-card,
.bb-glass .forum-row,
.bb-glass .sidebar-widget,
.bb-glass .profile-hero-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.bb-glass-surface,
.cyber-glass-surface {
  background: var(--cn-glass) !important;
  border: 1px solid var(--cn-glass-border);
  box-shadow: none;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.bb-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--cn-grid-gap);
  row-gap: var(--cn-grid-gap);
  max-width: var(--cn-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--cn-page-pad);
  padding-right: var(--cn-page-pad);
}

/* ── Hero banner (BreachBoard picture) ── */
#hero-band {
  display: block !important;
  position: relative;
  min-height: 0;
  border-bottom: 1px solid var(--cn-border);
  background: transparent;
  overflow: hidden;
  margin-bottom: 8px;
}

#hero-band::before {
  display: none;
}

#hero-band .hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--cn-max);
  margin: 0 auto;
  padding: 12px var(--cn-page-pad) 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

#hero-band .hero-inner-spacer {
  min-width: 0;
}

#hero-band .hero-banner-link {
  grid-column: 2;
  justify-self: center;
  display: block;
  text-align: center;
  max-width: min(920px, 100%);
  padding: 8px 12px;
  text-decoration: none;
}

#hero-band .hero-banner-img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(88px, 12vw, 125px);
  object-fit: contain;
  filter:
    drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 18px rgba(0, 240, 255, 0.35));
  transition: transform 0.2s ease, filter 0.2s ease;
}

#hero-band .hero-banner-link:hover .hero-banner-img {
  transform: translateY(-2px);
  filter:
    drop-shadow(0 8px 30px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 28px rgba(0, 240, 255, 0.5));
}

@media (max-width: 640px) {
  #hero-band .hero-inner {
    padding: 8px var(--cn-page-pad) 6px;
    gap: 10px;
  }

  #hero-band .hero-banner-link {
    padding: 6px 8px;
  }

  #hero-band .hero-banner-img {
    max-height: min(80px, 22vw);
  }
}

@media (max-width: 480px) {
  #hero-band .hero-banner-img {
    max-height: 64px;
  }

  #hero-band .hero-inner {
    padding: 6px 8px 4px;
  }
}

#bb-app-layer {
  position: relative;
  z-index: var(--cn-layer-content);
  min-height: 100vh;
  padding-top: 0;
}

/* ── Compact header / hero bar ── */
#topnav {
  background: var(--cn-glass) !important;
  border-bottom: 1px solid var(--cn-glass-border) !important;
  box-shadow: var(--cn-glass-shadow) !important;
  backdrop-filter: var(--cn-glass-blur);
  -webkit-backdrop-filter: var(--cn-glass-blur);
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 40 !important;
}

.topnav-inner {
  max-width: var(--cn-max) !important;
  margin: 0 auto !important;
  padding: 12px var(--cn-page-pad) !important;
  min-height: var(--cn-nav-height) !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.topnav-left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 24px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

.topnav-search-wrap {
  flex: 0 0 auto !important;
  margin: 0 !important;
  width: auto !important;
  grid-column: auto !important;
  justify-self: auto !important;
}

#topnav-right {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  width: auto !important;
  grid-column: auto !important;
}

#navLinks {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 8px !important;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

#siteBrand {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  -webkit-text-fill-color: unset !important;
  color: inherit !important;
  transition: transform 0.15s ease;
}

#siteBrand:hover {
  transform: translateY(-1px);
}

#siteBrand i {
  display: none !important;
}

#siteBrand::before,
#siteBrand::after {
  display: none !important;
  content: none !important;
}

.site-brand-mark,
.logo-icon-wrap {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0;
}

.site-brand-mark svg,
.logo-icon-wrap svg,
.logo-icon {
  width: 32px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 0, 212, 0.5));
  transition: filter 0.2s ease, transform 0.15s ease;
}

#siteBrand {
  gap: 0 !important;
}

#siteBrand:hover .logo-icon-wrap svg,
#siteBrand:hover .logo-icon {
  filter: drop-shadow(0 0 12px rgba(255, 0, 212, 0.75)) drop-shadow(0 0 6px rgba(0, 85, 255, 0.45));
  transform: scale(1.04);
}

#siteBrand:hover .site-brand-mark {
  border-color: transparent;
  box-shadow: none;
}

.site-brand-text {
  font-family: var(--cn-font);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  line-height: 1;
}

#siteBrand:hover .site-brand-text {
  color: #00f0ff !important;
  -webkit-text-fill-color: #00f0ff !important;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.55);
}

#navLinks {
  gap: 6px !important;
}

#navLinks li {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  height: auto !important;
  width: auto !important;
}

#navLinks li a {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 8px 12px !important;
  border-radius: var(--cn-radius-sm) !important;
  color: var(--cn-text-muted) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

#navLinks li a::before,
#navLinks li a::after {
  display: none !important;
}

#navLinks li a i {
  display: none !important;
}

#navLinks li a:hover {
  color: var(--cn-text) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--cn-border) !important;
}

#navLinks li a.active {
  color: var(--cn-cyan) !important;
  background: var(--cn-cyan-dim) !important;
  border-color: var(--cn-border-strong) !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.08) !important;
}

#topnav-right {
  gap: 6px !important;
}

#navLinks {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

#navLinks::-webkit-scrollbar {
  display: none;
}

#welcomeText,
.hero-user-meta,
.hero-user-hi,
.hero-user-name {
  display: none !important;
}

#welcomeArea {
  display: none !important;
}

.hero-user-slot {
  display: flex;
  align-items: center;
}

.hero-user-pill {
  padding: 0 !important;
  margin: 0;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.hero-user-pill .hero-user-avatar,
.hero-user-pill .avatar--md {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  border: 1px solid var(--cn-border-strong);
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-user-pill .hero-user-avatar:hover,
.hero-user-pill .avatar--md:hover {
  border-color: var(--cn-cyan);
  box-shadow: 0 0 14px var(--cn-cyan-glow);
}

/* Glass auth buttons */
.btn-login,
.btn-register {
  font-family: var(--cn-font) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: var(--cn-glass) !important;
  backdrop-filter: var(--cn-glass-blur);
  -webkit-backdrop-filter: var(--cn-glass-blur);
  box-shadow: var(--cn-glass-shadow) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-login {
  color: var(--cn-text-secondary) !important;
  border: 1px solid var(--cn-border) !important;
}

.btn-login:hover {
  color: var(--cn-cyan) !important;
  border-color: var(--cn-border-strong) !important;
  background: rgba(0, 240, 255, 0.06) !important;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.1) !important;
}

.btn-register {
  color: var(--cn-cyan) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  background: rgba(0, 240, 255, 0.08) !important;
}

.btn-register:hover {
  background: rgba(0, 240, 255, 0.14) !important;
  box-shadow: 0 0 22px var(--cn-cyan-glow) !important;
}

.btn-profile {
  display: none !important;
}

.topnav-search-trigger,
.topnav-search {
  border-radius: var(--cn-radius-sm) !important;
  border-color: var(--cn-border) !important;
}

.topnav-search-wrap.is-search-open .topnav-search {
  background: var(--cn-surface) !important;
  border-color: var(--cn-border-strong) !important;
}

/* ── Breadcrumb & category tabs ── */
#breadcrumb-bar,
#cat-tabs-bar {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--cn-glass) !important;
  backdrop-filter: var(--cn-glass-blur);
  -webkit-backdrop-filter: var(--cn-glass-blur);
  border-bottom: 1px solid var(--cn-glass-border) !important;
  box-shadow: var(--cn-glass-shadow);
}

.breadcrumb-inner,
.cattabs-inner {
  max-width: var(--cn-max) !important;
  margin: 0 auto !important;
  padding: 12px var(--cn-page-pad) !important;
}

#breadcrumb {
  font-size: 13px;
  color: var(--cn-text-muted);
}

#breadcrumb a {
  color: var(--cn-text-secondary);
}

.hash {
  color: var(--cn-cyan) !important;
}

.btn-today {
  font-size: 11px !important;
  padding: 6px 12px !important;
  border-radius: var(--cn-radius-sm) !important;
  border: 1px solid var(--cn-border) !important;
  background: transparent !important;
  color: var(--cn-text-muted) !important;
}

.btn-today:hover {
  color: var(--cn-cyan) !important;
  border-color: var(--cn-border-strong) !important;
}

#cat-tabs-bar {
  padding-top: 0;
  padding-bottom: 8px;
}

#catTabs {
  gap: 8px !important;
  padding: 0 !important;
}

#catTabs li a {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  border: 1px solid var(--cn-border) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  color: var(--cn-text-muted) !important;
  box-shadow: none !important;
}

#catTabs li a.active {
  color: var(--cn-cyan) !important;
  background: var(--cn-cyan-dim) !important;
  border-color: var(--cn-border-strong) !important;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.12) !important;
}

#catTabs li a i {
  color: var(--cn-cyan-muted);
  opacity: 0.9;
}

/* ── 12-column main layout ── */
#wrapper {
  max-width: var(--cn-max) !important;
  margin: 0 auto !important;
  padding: var(--cn-section-gap) var(--cn-page-pad) 48px !important;
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  column-gap: var(--cn-grid-gap) !important;
  row-gap: var(--cn-grid-gap) !important;
  align-items: start;
}

#content-area {
  grid-column: 1 / span 9;
  min-width: 0;
}

#sidebar {
  grid-column: 10 / span 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
}

#viewRoot {
  display: flex;
  flex-direction: column;
  gap: var(--cn-section-gap);
}

.statusbar,
#pendingBanner,
#guestBanner {
  max-width: var(--cn-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--cn-page-pad);
  padding-right: var(--cn-page-pad);
}

.bb-db-search-wrap {
  margin-bottom: 8px;
  border-radius: var(--cn-radius-sm);
  border: 1px solid var(--cn-glass-border);
  background: var(--cn-glass);
  backdrop-filter: var(--cn-glass-blur);
  -webkit-backdrop-filter: var(--cn-glass-blur);
  box-shadow: var(--cn-glass-shadow);
}

.bb-db-search {
  font-family: var(--cn-font);
}

/* ── Category cards ── */
.category-section {
  margin: 0 !important;
  background: var(--cn-glass) !important;
  backdrop-filter: var(--cn-glass-blur);
  -webkit-backdrop-filter: var(--cn-glass-blur);
  border: 1px solid var(--cn-glass-border) !important;
  border-radius: var(--cn-radius) !important;
  box-shadow: var(--cn-glass-shadow) !important;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-section + .category-section {
  margin-top: 0 !important;
}

.category-section:hover {
  border-color: var(--cn-border-strong) !important;
  box-shadow: var(--cn-glass-shadow), 0 0 24px rgba(0, 240, 255, 0.06) !important;
  transform: none !important;
}

.category-header {
  padding: 14px 20px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--cn-cyan) !important;
  background: rgba(0, 240, 255, 0.04) !important;
  border-bottom: 1px solid var(--cn-border) !important;
}

.category-header::before {
  background: var(--cn-cyan) !important;
  width: 2px !important;
}

.category-header .cat-icon {
  color: var(--cn-cyan-muted) !important;
  filter: drop-shadow(0 0 6px var(--cn-cyan-glow)) !important;
  font-size: 13px !important;
}

.category-body {
  padding: 4px 0;
}

/* ── Forum rows ── */
.forum-row {
  grid-template-columns: 40px 1fr 64px 64px minmax(140px, 1.2fr) !important;
  gap: 16px !important;
  padding: 16px 20px !important;
  border-top: 1px solid var(--cn-border) !important;
  border-left: 1px solid transparent !important;
  border-right: 1px solid transparent !important;
  background: transparent !important;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.forum-row:first-child {
  border-top: none !important;
}

.forum-row::before {
  display: none !important;
}

.forum-row:hover {
  background: rgba(0, 240, 255, 0.05) !important;
  border-top-color: rgba(0, 240, 255, 0.3) !important;
  border-left-color: rgba(0, 240, 255, 0.12) !important;
  border-right-color: rgba(0, 240, 255, 0.12) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.08);
}

.forum-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: rgba(0, 240, 255, 0.06) !important;
  border: 1px solid var(--cn-border) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.forum-icon i {
  color: var(--cn-cyan-muted) !important;
  font-size: 14px !important;
  filter: drop-shadow(0 0 4px var(--cn-cyan-glow));
}

.forum-info h4 {
  font-size: 14px !important;
  font-weight: 600 !important;
  margin: 0 0 4px !important;
  font-family: var(--cn-font) !important;
  color: var(--cn-text) !important;
  letter-spacing: 0.01em;
}

.forum-info h4 a {
  color: var(--cn-text) !important;
}

.forum-info h4 a:hover {
  color: var(--cn-cyan) !important;
}

.forum-info .forum-desc {
  color: var(--cn-text-muted) !important;
  font-size: 12px !important;
}

/* Thread / post typography */
.thread-list-header,
.thread-header,
.search-page h2 {
  font-family: var(--cn-font) !important;
  color: var(--cn-text) !important;
}

.thread-list-header {
  background: var(--cn-glass) !important;
  backdrop-filter: var(--cn-glass-blur);
  -webkit-backdrop-filter: var(--cn-glass-blur);
  border: 1px solid var(--cn-glass-border) !important;
  border-radius: var(--cn-radius) !important;
  box-shadow: var(--cn-glass-shadow);
}

.thread-nav,
.thread-header-text h1,
.search-result-row .thread-nav {
  font-family: var(--cn-font) !important;
  font-weight: 600 !important;
  color: var(--cn-text) !important;
}

.thread-nav:hover {
  color: var(--cn-cyan) !important;
}

/* Role badges — high contrast on glass cards */
.user-inline-rank,
.user-title {
  font-family: var(--cn-font) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-size: 9px !important;
}

.user-title.rank-admin,
.user-inline-rank.rank-admin {
  color: #ff6b6b !important;
  text-shadow: 0 0 8px rgba(255, 80, 80, 0.35);
}

.user-title.rank-moderator,
.user-inline-rank.rank-moderator {
  color: #5dffb0 !important;
  text-shadow: 0 0 8px rgba(62, 224, 143, 0.3);
}

.modal {
  background: var(--cn-glass) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--cn-glass-border) !important;
}

.statusbar:not(:empty) {
  background: var(--cn-glass) !important;
  backdrop-filter: var(--cn-glass-blur);
  -webkit-backdrop-filter: var(--cn-glass-blur);
  border: 1px solid var(--cn-glass-border) !important;
  border-radius: var(--cn-radius-sm);
}

.forum-info p {
  font-size: 12px !important;
  color: var(--cn-text-muted) !important;
  line-height: 1.5 !important;
}

.forum-stats .number {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--cn-text-secondary) !important;
}

.forum-stats .label {
  font-size: 10px !important;
  color: var(--cn-text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.forum-lastpost {
  font-size: 11px !important;
  color: var(--cn-text-muted) !important;
}

.forum-lastpost .lp-avatar,
.forum-lastpost .avatar--xs {
  width: 24px !important;
  height: 24px !important;
  font-size: 10px !important;
  border-radius: 6px !important;
}

.forum-lastpost-inner {
  gap: 8px !important;
}

.forum-lastpost .thread-nav {
  color: var(--cn-text-secondary) !important;
  font-size: 11px !important;
}

.forum-lastpost .lp-meta {
  font-size: 10px !important;
  color: var(--cn-text-muted) !important;
}

/* ── Sidebar ── */
body.index-view #forumStats,
body.index-view #sidebarStatsWidget,
body.index-view #sidebarTickerWidget,
body.index-view .bb-ticker-widget,
body.index-view .bb-status-widget {
  display: none !important;
}

.sidebar-box {
  background: var(--cn-glass) !important;
  backdrop-filter: var(--cn-glass-blur);
  -webkit-backdrop-filter: var(--cn-glass-blur);
  border: 1px solid var(--cn-glass-border) !important;
  border-radius: var(--cn-radius) !important;
  box-shadow: var(--cn-glass-shadow) !important;
  overflow: hidden;
}

.bb-stats-widget,
.bb-ticker-widget,
.bb-status-widget {
  background: var(--cn-glass) !important;
  backdrop-filter: var(--cn-glass-blur);
  -webkit-backdrop-filter: var(--cn-glass-blur);
  border: 1px solid var(--cn-glass-border) !important;
  border-radius: var(--cn-radius) !important;
  box-shadow: var(--cn-glass-shadow) !important;
}

.sidebar-title {
  padding: 12px 16px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--cn-cyan) !important;
  background: rgba(0, 240, 255, 0.04) !important;
  border-bottom: 1px solid var(--cn-border) !important;
}

.sidebar-title i {
  color: var(--cn-cyan-muted);
}

.activity-list {
  max-height: 360px;
  padding: 4px 0;
}

.activity-item {
  padding: 12px 16px !important;
  border-bottom: none !important;
  gap: 10px !important;
  transition: background 0.15s ease;
}

.activity-item + .activity-item {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.activity-item:hover {
  background: var(--cn-surface-hover) !important;
}

.activity-avatar .avatar--sm {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
}

.activity-item .activity-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: var(--cn-text) !important;
}

.activity-item .activity-title a {
  color: var(--cn-text) !important;
}

.activity-item .activity-title a:hover {
  color: var(--cn-cyan) !important;
}

.activity-item .activity-meta {
  font-size: 10px !important;
  color: var(--cn-text-muted) !important;
  margin-top: 4px !important;
  line-height: 1.4 !important;
}

.activity-count {
  display: none !important;
}

.online-users {
  padding: 12px 16px 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--cn-text-muted);
}

.online-users a {
  color: var(--cn-text-secondary);
}

.online-users a:hover {
  color: var(--cn-cyan);
}

/* ── Global buttons (non-auth) ── */
.btn-primary {
  background: rgba(0, 240, 255, 0.12) !important;
  color: var(--cn-cyan) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  box-shadow: none !important;
  font-family: var(--cn-font) !important;
}

.btn-primary:hover {
  background: rgba(0, 240, 255, 0.18) !important;
  box-shadow: 0 0 20px var(--cn-cyan-glow) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--cn-border) !important;
  color: var(--cn-text-secondary) !important;
  box-shadow: none !important;
}

.btn-secondary:hover {
  border-color: var(--cn-border-strong) !important;
  color: var(--cn-text) !important;
}

/* ── Footer (utility links live here, not header) ── */
#footer {
  max-width: var(--cn-max);
  margin: 48px auto 0;
  padding: 32px var(--cn-page-pad) 24px !important;
  border-top: 1px solid var(--cn-glass-border) !important;
  background: var(--cn-glass) !important;
  backdrop-filter: var(--cn-glass-blur);
  -webkit-backdrop-filter: var(--cn-glass-blur);
  box-shadow: var(--cn-glass-shadow);
  border-radius: var(--cn-radius) var(--cn-radius) 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: 32px;
}

.footer-about p,
.footer-nav ul {
  font-size: 13px;
  color: var(--cn-text-muted);
  line-height: 1.6;
}

.footer-nav h4,
.footer-about h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cn-cyan);
  margin: 0 0 12px;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--cn-border);
  font-size: 11px;
  color: var(--cn-text-muted);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  #content-area {
    grid-column: 1 / -1;
  }

  #sidebar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .topnav-inner {
    flex-wrap: wrap !important;
    row-gap: 10px !important;
  }

  .topnav-left {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  #topnav-right {
    flex: 0 0 auto !important;
    width: auto !important;
    margin-left: auto !important;
  }

  .topnav-search-wrap {
    order: 10;
    flex: 1 1 100% !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--cn-radius-sm);
    border: 1px solid var(--cn-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--cn-text-secondary);
  }

  .nav-toggle:hover,
  .nav-toggle.is-active {
    border-color: var(--cn-border-strong);
    color: var(--cn-cyan);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.1);
  }

  #navLinks {
    left: var(--cn-page-pad);
    right: var(--cn-page-pad);
    background: var(--cn-glass) !important;
    border: 1px solid var(--cn-glass-border) !important;
    border-radius: var(--cn-radius) !important;
    backdrop-filter: var(--cn-glass-blur);
    -webkit-backdrop-filter: var(--cn-glass-blur);
  }

  .forum-row {
    grid-template-columns: 36px 1fr 52px 52px !important;
  }

  .forum-lastpost {
    display: none !important;
  }
}

@media (max-width: 640px) {
  #wrapper {
    padding-top: 20px !important;
  }

  #sidebar {
    grid-template-columns: 1fr;
  }

  .forum-row {
    grid-template-columns: 32px 1fr !important;
    padding: 14px 16px !important;
  }

  .forum-stats {
    display: none !important;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #topnav-right .btn-login span,
  #topnav-right .btn-register span {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STAFF CONTROLS — ACP / MOD · unified glass actions · cyber-noir panels
   ═══════════════════════════════════════════════════════════════════════════ */

/* Staff header buttons (Mod, ACP, Logout) */
.btn-mod,
.btn-admin,
#logoutBtn.btn-danger {
  font-family: var(--cn-font) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: var(--cn-glass) !important;
  backdrop-filter: var(--cn-glass-blur);
  -webkit-backdrop-filter: var(--cn-glass-blur);
  box-shadow: var(--cn-glass-shadow) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-mod {
  color: var(--cn-text-secondary) !important;
  border: 1px solid rgba(62, 224, 143, 0.25) !important;
}

.btn-mod:hover,
.btn-mod.active {
  color: #7dffb8 !important;
  border-color: rgba(62, 224, 143, 0.45) !important;
  background: rgba(62, 224, 143, 0.08) !important;
  box-shadow: 0 0 18px rgba(62, 224, 143, 0.12) !important;
}

.btn-admin {
  color: var(--cn-text-secondary) !important;
  border: 1px solid rgba(0, 240, 255, 0.28) !important;
}

.btn-admin:hover,
.btn-admin.active {
  color: var(--cn-cyan) !important;
  border-color: rgba(0, 240, 255, 0.5) !important;
  background: rgba(0, 240, 255, 0.08) !important;
  box-shadow: 0 0 18px var(--cn-cyan-glow) !important;
}

#logoutBtn.btn-danger {
  color: #ff9a8f !important;
  border: 1px solid rgba(255, 120, 100, 0.28) !important;
  background: rgba(255, 80, 60, 0.06) !important;
}

#logoutBtn.btn-danger:hover {
  color: #ffb4aa !important;
  border-color: rgba(255, 120, 100, 0.45) !important;
  background: rgba(255, 80, 60, 0.12) !important;
  box-shadow: 0 0 18px rgba(255, 80, 60, 0.15) !important;
}

.bb-btn-glitch::before,
.bb-btn-glitch:hover {
  animation: none !important;
  text-shadow: none !important;
}

.bb-btn-glitch::before {
  display: none !important;
}

/* Staff route layout */
body.route-admin #dbSearchWrap,
body.route-mod #dbSearchWrap {
  display: none !important;
}

body.route-admin #wrapper,
body.route-mod #wrapper {
  column-gap: 40px !important;
  padding-top: 40px !important;
}

body.route-admin #forumStats,
body.route-mod #forumStats,
body.route-admin #shoutbox,
body.route-mod #shoutbox {
  display: none !important;
}

/* Unified sidebar stack on staff views */
body.route-admin #sidebar,
body.route-mod #sidebar {
  gap: 0 !important;
  padding: 0 !important;
  background: var(--cn-surface) !important;
  border: 1px solid var(--cn-border) !important;
  border-radius: var(--cn-radius) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28) !important;
  overflow: hidden;
}

body.route-admin #sidebar > *,
body.route-mod #sidebar > * {
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.route-admin #sidebar > * + *,
body.route-mod #sidebar > * + * {
  border-top: 1px solid var(--cn-border) !important;
}

body.route-admin #sidebar .sidebar-title,
body.route-mod #sidebar .sidebar-title,
body.route-admin #sidebar .bb-stats-header,
body.route-mod #sidebar .bb-stats-header,
body.route-admin #sidebar .bb-ticker-header,
body.route-mod #sidebar .bb-ticker-header,
body.route-admin #sidebar .bb-status-header,
body.route-mod #sidebar .bb-status-header {
  padding: 14px 18px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--cn-cyan) !important;
  background: rgba(0, 240, 255, 0.04) !important;
  border-bottom: 1px solid var(--cn-border) !important;
  box-shadow: none !important;
}

body.route-admin #sidebar .bb-stats-header i,
body.route-mod #sidebar .bb-stats-header i,
body.route-admin #sidebar .bb-ticker-header i,
body.route-mod #sidebar .bb-ticker-header i,
body.route-admin #sidebar .bb-status-header i,
body.route-mod #sidebar .bb-status-header i {
  color: var(--cn-cyan-muted) !important;
}

/* Widget body polish */
body.route-admin .bb-stats-body,
body.route-mod .bb-stats-body {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  padding: 8px 4px 12px !important;
}

body.route-admin .bb-stat-cell,
body.route-mod .bb-stat-cell {
  padding: 14px 10px !important;
  border: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

body.route-admin .bb-stat-cell:nth-child(3n),
body.route-mod .bb-stat-cell:nth-child(3n) {
  border-right: none !important;
}

body.route-admin .bb-stat-number,
body.route-mod .bb-stat-number {
  font-family: var(--cn-font) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--cn-text) !important;
  text-shadow: none !important;
}

body.route-admin .bb-stat-label,
body.route-mod .bb-stat-label {
  font-family: var(--cn-font) !important;
  font-size: 9px !important;
  color: var(--cn-text-muted) !important;
  letter-spacing: 0.08em !important;
  margin-top: 6px !important;
}

body.route-admin .bb-ticker-widget,
body.route-mod .bb-ticker-widget,
body.route-admin .bb-status-widget,
body.route-mod .bb-status-widget {
  margin-top: 0 !important;
}

body.route-admin .bb-ticker-body,
body.route-mod .bb-ticker-body,
body.route-admin .bb-status-body,
body.route-mod .bb-status-body {
  padding: 10px 18px 14px !important;
}

body.route-admin .bb-ticker-pair,
body.route-mod .bb-ticker-pair {
  font-family: var(--cn-font) !important;
  font-size: 12px !important;
  color: var(--cn-text-secondary) !important;
}

body.route-admin .bb-ticker-price,
body.route-mod .bb-ticker-price {
  font-family: var(--cn-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--cn-text) !important;
}

body.route-admin .bb-ticker-change,
body.route-mod .bb-ticker-change {
  font-family: var(--cn-font) !important;
  font-size: 10px !important;
  border-radius: 999px !important;
  padding: 3px 8px !important;
}

body.route-admin .bb-live-dot,
body.route-mod .bb-live-dot {
  width: 7px !important;
  height: 7px !important;
  background: var(--cn-cyan) !important;
  box-shadow: 0 0 8px var(--cn-cyan), 0 0 16px var(--cn-cyan-glow) !important;
}

body.route-admin .bb-status-indicator,
body.route-mod .bb-status-indicator {
  width: 7px !important;
  height: 7px !important;
}

body.route-admin .bb-status-indicator.online,
body.route-mod .bb-status-indicator.online {
  background: #3dff9a !important;
  box-shadow: 0 0 6px #3dff9a, 0 0 14px rgba(61, 255, 154, 0.35) !important;
}

body.route-admin .bb-status-indicator.offline,
body.route-mod .bb-status-indicator.offline {
  background: #ff6b5a !important;
  box-shadow: 0 0 6px rgba(255, 107, 90, 0.6) !important;
}

body.route-admin .bb-status-label,
body.route-mod .bb-status-label {
  font-family: var(--cn-font) !important;
  font-size: 12px !important;
  color: var(--cn-text-secondary) !important;
}

body.route-admin .bb-status-text,
body.route-mod .bb-status-text {
  font-family: var(--cn-font) !important;
  font-size: 10px !important;
  letter-spacing: 0.08em !important;
}

body.route-admin .bb-status-ping,
body.route-mod .bb-status-ping {
  font-family: var(--cn-font) !important;
  font-size: 11px !important;
  color: var(--cn-text-muted) !important;
}

body.route-admin .online-users,
body.route-mod .online-users {
  padding: 14px 18px 18px !important;
}

/* ── ACP / MOD panel shell ── */
.admin-panel {
  background: var(--cn-surface) !important;
  border: 1px solid var(--cn-border) !important;
  border-radius: var(--cn-radius) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32) !important;
  overflow: hidden;
}

.admin-header {
  padding: 24px 28px !important;
  background: rgba(0, 240, 255, 0.04) !important;
  border-bottom: 1px solid var(--cn-border) !important;
  color: var(--cn-text) !important;
}

.admin-header h2,
.admin-header .staff-panel-title {
  margin: 0 !important;
  font-family: var(--cn-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--cn-cyan) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header h2 i,
.admin-header .staff-panel-title i {
  color: var(--cn-cyan-muted);
  filter: drop-shadow(0 0 6px var(--cn-cyan-glow));
}

.mod-panel-header.staff-mod-header {
  background: rgba(62, 224, 143, 0.05) !important;
}

.mod-panel-header .staff-panel-title {
  color: #7dffb8 !important;
}

.mod-panel-tagline,
.staff-panel-sub {
  margin: 8px 0 0 !important;
  font-size: 13px !important;
  color: var(--cn-text-muted) !important;
  line-height: 1.55 !important;
  max-width: 52ch;
}

.admin-tabs,
.mod-tabs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  padding: 16px 24px !important;
  background: transparent !important;
  border-bottom: 1px solid var(--cn-border) !important;
}

.admin-tab,
.mod-tab {
  padding: 8px 16px !important;
  font-family: var(--cn-font) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--cn-text-muted) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--cn-border) !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  transition: all 0.18s ease;
}

.admin-tab i,
.mod-tab i {
  display: none !important;
}

.admin-tab:hover,
.mod-tab:hover {
  color: var(--cn-text) !important;
  border-color: var(--cn-border-strong) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.admin-tab.active,
.mod-tab.active {
  color: var(--cn-cyan) !important;
  background: var(--cn-cyan-dim) !important;
  border-color: var(--cn-border-strong) !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.1) !important;
}

.admin-content,
.mod-panel-body {
  padding: 28px !important;
}

/* Site configuration stat cards */
.admin-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 32px !important;
}

.admin-stat-card {
  grid-column: span 4;
  padding: 22px 24px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--cn-border) !important;
  border-radius: var(--cn-radius) !important;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-stat-card:hover {
  border-color: var(--cn-border-strong) !important;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.06) !important;
}

.admin-stat-card i {
  position: absolute !important;
  right: 18px !important;
  top: 18px !important;
  transform: none !important;
  font-size: 18px !important;
  color: rgba(0, 240, 255, 0.18) !important;
}

.admin-stat-num {
  font-family: var(--cn-font) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: var(--cn-text) !important;
  letter-spacing: -0.02em;
}

.admin-stat-label {
  font-family: var(--cn-font) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--cn-text-muted) !important;
  margin-top: 8px !important;
}

/* Section blocks */
.admin-section {
  margin-top: 32px !important;
  padding-top: 8px;
}

.admin-section:first-child {
  margin-top: 0 !important;
}

.admin-section h4 {
  margin: 0 0 16px !important;
  font-family: var(--cn-font) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--cn-cyan) !important;
  gap: 8px !important;
}

.admin-section h4 i {
  color: var(--cn-cyan-muted) !important;
  font-size: 12px !important;
}

.admin-hint {
  font-family: var(--cn-font) !important;
  font-size: 12px !important;
  color: var(--cn-text-muted) !important;
  margin: -8px 0 16px !important;
}

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
  font-family: var(--cn-font) !important;
  font-size: 13px !important;
  border: 1px solid var(--cn-border) !important;
  border-radius: var(--cn-radius) !important;
  overflow: hidden;
}

.admin-table thead {
  background: rgba(0, 240, 255, 0.04) !important;
}

.admin-table th {
  padding: 14px 16px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--cn-cyan-muted) !important;
  background: transparent !important;
  border-bottom: 1px solid var(--cn-border) !important;
  text-align: left;
}

.admin-table td {
  padding: 14px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  color: var(--cn-text-secondary) !important;
  vertical-align: middle !important;
}

.admin-table tbody tr:last-child td {
  border-bottom: none !important;
}

.admin-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015) !important;
}

.admin-table tbody tr:hover td {
  background: var(--cn-surface-hover) !important;
}

.admin-table td:first-child,
.admin-table th:first-child {
  font-family: var(--cn-mono) !important;
  font-size: 12px !important;
  color: var(--cn-text-muted) !important;
  width: 56px;
}

.admin-table td:nth-child(6),
.admin-table th:nth-child(6) {
  font-family: var(--cn-mono) !important;
  text-align: center;
  color: var(--cn-text-secondary) !important;
}

.admin-table td:last-child,
.admin-table th:last-child {
  font-family: var(--cn-font) !important;
  font-size: 11px !important;
  color: var(--cn-text-muted) !important;
  white-space: nowrap;
}

.admin-table .user-link {
  color: var(--cn-text) !important;
  font-weight: 600 !important;
}

.admin-table .user-link:hover {
  color: var(--cn-cyan) !important;
}

/* Role badges in admin tables */
.admin-table .user-title {
  font-family: var(--cn-font) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  margin: 0 !important;
  animation: none !important;
  background-size: auto !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.admin-table .user-title::before,
.admin-table .user-title::after {
  display: none !important;
  content: none !important;
}

.admin-table .user-title.rank-admin {
  color: #ffb4aa !important;
  background: rgba(255, 90, 70, 0.12) !important;
  border: 1px solid rgba(255, 120, 100, 0.35) !important;
}

.admin-table .user-title.rank-moderator {
  color: #7dffb8 !important;
  background: rgba(62, 224, 143, 0.1) !important;
  border: 1px solid rgba(62, 224, 143, 0.35) !important;
}

.admin-table .user-title.rank-mvp {
  color: #8eeeff !important;
  background: rgba(0, 240, 255, 0.1) !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
}

.admin-table .user-title.rank-vip {
  color: #ffe08a !important;
  background: rgba(255, 200, 80, 0.1) !important;
  border: 1px solid rgba(255, 200, 80, 0.3) !important;
}

.admin-table .user-title.rank-god {
  color: #ddb8ff !important;
  background: rgba(180, 100, 255, 0.1) !important;
  border: 1px solid rgba(180, 100, 255, 0.35) !important;
}

.admin-table .user-title.rank-member,
.admin-table .user-title.rank-normal {
  color: var(--cn-text-muted) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--cn-border) !important;
}

/* Quick actions */
#adminClearShoutbox,
.admin-content .btn-danger:not(#logoutBtn) {
  font-family: var(--cn-font) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 10px 16px !important;
  border-radius: var(--cn-radius-sm) !important;
  background: rgba(255, 80, 60, 0.08) !important;
  color: #ff9a8f !important;
  border: 1px solid rgba(255, 120, 100, 0.35) !important;
  box-shadow: none !important;
}

#adminClearShoutbox:hover,
.admin-content .btn-danger:not(#logoutBtn):hover {
  background: rgba(255, 80, 60, 0.14) !important;
  border-color: rgba(255, 120, 100, 0.5) !important;
  box-shadow: 0 0 20px rgba(255, 80, 60, 0.12) !important;
}

.admin-pagination {
  gap: 8px !important;
  padding-top: 16px !important;
}

.admin-form-grid,
.admin-form-grid-board,
.admin-quick-board-row {
  gap: 12px !important;
}

.admin-forum-card,
.admin-board-card {
  padding: 18px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--cn-border) !important;
  border-radius: var(--cn-radius) !important;
}

.admin-forums-list {
  gap: 20px !important;
}

@media (max-width: 1024px) {
  .admin-stat-card {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .admin-stats-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-stat-card {
    grid-column: span 1;
  }

  .admin-content,
  .mod-panel-body {
    padding: 18px !important;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}

/* ── Tor hidden service nav + toast ── */
#hiddenServiceNavLink.nav-onion-link {
  position: relative;
}

#hiddenServiceNavLink.nav-onion-link--live {
  color: var(--cn-cyan-muted) !important;
  border-color: rgba(0, 240, 255, 0.22) !important;
}

#hiddenServiceNavLink.nav-onion-link--live:hover {
  color: var(--cn-cyan) !important;
  border-color: var(--cn-border-strong) !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12) !important;
}

#hiddenServiceNavLink.nav-onion-link--live::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cn-cyan);
  box-shadow: 0 0 8px var(--cn-cyan), 0 0 16px var(--cn-cyan-glow);
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
  animation: cn-onion-pulse 2.4s ease-in-out infinite;
}

#hiddenServiceNavLink.nav-onion-link--offline {
  opacity: 0.55;
}

.onion-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 500;
  max-width: min(92vw, 520px);
  padding: 12px 18px;
  border-radius: var(--cn-radius);
  border: 1px solid var(--cn-border-strong);
  background: rgba(8, 12, 18, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 240, 255, 0.08);
  color: var(--cn-text);
  font-family: var(--cn-font);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  word-break: break-all;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.onion-toast:not(.hidden) {
  animation: cn-onion-toast-in 0.22s ease;
}

.onion-toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  visibility: hidden;
}

@keyframes cn-onion-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

@keyframes cn-onion-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 900px) {
  .onion-toast {
    bottom: 72px;
  }
}

/* ── Messages inbox table (route-messages) ── */
body.route-messages #wrapper {
  max-width: 100% !important;
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
  padding-bottom: 16px !important;
}

body.route-messages #content-area {
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  width: 100% !important;
}

body.route-messages #viewRoot {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

body.route-messages .pm-page--inbox-table {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body.route-messages .pm-inbox-panel {
  flex: 1 1 auto;
  min-height: clamp(480px, calc(100svh - 360px), 900px);
  min-height: clamp(480px, calc(100dvh - 360px), 900px);
  display: flex;
  flex-direction: column;
  width: 100%;
  background: rgba(8, 10, 14, 0.72);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

body.route-messages .pm-inbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 240, 255, 0.03);
}

body.route-messages .pm-inbox-toolbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.route-messages .pm-inbox-toolbar-title h3 {
  margin: 0;
  font-family: var(--cn-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cn-accent);
}

body.route-messages .pm-inbox-toolbar-title h3 i {
  margin-right: 6px;
  opacity: 0.85;
}

body.route-messages .pm-inbox-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
  min-width: 200px;
}

body.route-messages .pm-inbox-toolbar-actions .pm-search {
  max-width: 360px;
  flex: 1;
}

body.route-messages .pm-inbox-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
}

body.route-messages .pm-inbox-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--cn-font);
  font-size: 13px;
}

body.route-messages .pm-inbox-table thead th:nth-child(1) { width: 16%; }
body.route-messages .pm-inbox-table thead th:nth-child(2) { width: 52%; }
body.route-messages .pm-inbox-table thead th:nth-child(3) { width: 14%; }
body.route-messages .pm-inbox-table thead th:nth-child(4) { width: 18%; }

body.route-messages .pm-inbox-table thead th {
  text-align: left;
  padding: 10px 16px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cn-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

body.route-messages .pm-inbox-table tbody td {
  padding: 16px 20px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body.route-messages .pm-inbox-table-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

body.route-messages .pm-inbox-table-row:hover {
  background: rgba(0, 240, 255, 0.06);
}

body.route-messages .pm-inbox-table-row--unread {
  background: rgba(0, 240, 255, 0.03);
}

body.route-messages .pm-inbox-table-row--unread .pm-inbox-table-subject-line {
  color: var(--cn-text);
  font-weight: 600;
}

body.route-messages .pm-inbox-table-sender {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  white-space: nowrap;
}

body.route-messages .pm-inbox-table-name {
  font-weight: 700;
}

body.route-messages .pm-inbox-table-subject {
  min-width: 0;
  max-width: none;
}

body.route-messages .pm-inbox-table-subject-line {
  display: block;
  color: var(--cn-text-muted);
  font-weight: 500;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.route-messages .pm-inbox-table-preview {
  display: block;
  color: var(--cn-text-dim);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.route-messages .pm-inbox-table-time {
  color: var(--cn-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 72px;
}

body.route-messages .pm-inbox-table-status {
  white-space: nowrap;
}

body.route-messages .pm-table-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.route-messages .pm-table-status--read {
  color: #3ddc84;
}

body.route-messages .pm-table-status--unread {
  color: var(--cn-accent);
}

body.route-messages .pm-inbox-table-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--cn-text-muted);
}

body.route-messages .pm-inbox-table-empty i {
  font-size: 28px;
  color: var(--cn-accent);
  opacity: 0.5;
  margin-bottom: 12px;
}

body.route-messages .pm-inbox-foot {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

body.route-messages .pm-inbox-foot .pm-start-chat {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

body.route-messages .pm-inbox-foot .pm-start-chat .input {
  flex: 1 1 auto;
  min-height: 42px;
}

body.route-messages .pm-inbox-foot .pm-start-chat .btn {
  min-height: 42px;
  padding-left: 18px;
  padding-right: 18px;
}

@media (max-width: 768px) {
  body.route-messages .pm-inbox-table thead {
    display: none;
  }

  body.route-messages .pm-inbox-table-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 12px 14px;
  }

  body.route-messages .pm-inbox-table tbody td {
    display: block;
    padding: 0;
    border: none;
  }

  body.route-messages .pm-inbox-table-sender {
    grid-column: 1;
  }

  body.route-messages .pm-inbox-table-time {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  body.route-messages .pm-inbox-table-subject {
    grid-column: 1 / -1;
    max-width: none;
  }

  body.route-messages .pm-inbox-table-status {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
}

/* Marketplace escrow stepper */
.mp-escrow-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.mp-escrow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cn-text-muted);
}

.mp-escrow-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
}

.mp-escrow-step--active .mp-escrow-step-dot {
  border-color: var(--cn-cyan);
  box-shadow: 0 0 12px var(--cn-cyan-glow);
  background: rgba(0, 240, 255, 0.2);
}

.mp-escrow-step--done .mp-escrow-step-dot {
  border-color: #3ddc84;
  background: rgba(61, 220, 132, 0.25);
}

.mp-escrow-step--done {
  color: var(--cn-text-secondary);
}

.mp-escrow-step--active {
  color: var(--cn-cyan);
}

@media (max-width: 640px) {
  .mp-escrow-stepper {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Override legacy theme layers — keep Vanta visible site-wide */
body {
  background: var(--cn-bg) !important;
  background-image: none !important;
}

body.bb-page-shell,
html {
  background-color: var(--cn-bg) !important;
}

body.bb-page-shell {
  background: transparent !important;
}

.design-upgrade-2026 .category-section,
.category-section,
.sidebar-box,
#topnav,
#breadcrumb-bar,
#cat-tabs-bar,
.modal,
.statusbar:not(:empty) {
  background: var(--cn-glass) !important;
  backdrop-filter: var(--cn-glass-blur) !important;
  -webkit-backdrop-filter: var(--cn-glass-blur) !important;
  border-color: var(--cn-glass-border) !important;
  box-shadow: var(--cn-glass-shadow) !important;
}

/* Header brand — override design-upgrade gradient text clip */
#siteBrand {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
}

#siteBrand .site-brand-text {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH MODAL — Cyber-Noir Glassmorphic Panel
   ═══════════════════════════════════════════════════════════════════════════ */

#authDialog.modal-auth {
  padding: 0;
  border: none;
  border-radius: 16px;
  max-width: 440px;
  width: min(440px, 92vw);
  overflow: hidden;
  background: transparent;
  color: var(--cn-text);
  box-shadow: none;
}

#authDialog.modal-auth::backdrop {
  background: rgba(3, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-panel {
  position: relative;
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(10, 15, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(0, 240, 255, 0.15);
  overflow: hidden;
}

.auth-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.auth-panel-accent {
  height: 3px;
  background: linear-gradient(90deg, #0055ff, #7a00ff, #ff00d4);
  box-shadow: 0 0 18px rgba(255, 0, 212, 0.35);
}

.auth-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 12px;
  position: relative;
  z-index: 1;
}

.auth-panel-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.auth-panel-logo svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px rgba(255, 0, 212, 0.45));
}

.auth-panel-titles {
  min-width: 0;
}

.auth-panel-title {
  margin: 0;
  font-family: var(--cn-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.3;
}

.auth-panel-subtitle {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.auth-panel-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-panel-close:hover {
  color: #00f0ff;
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

.auth-panel-body {
  padding: 8px 20px 4px !important;
  gap: 16px !important;
  position: relative;
  z-index: 1;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: rgba(0, 240, 255, 0.55);
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 12px 42px 12px 40px !important;
  font-family: var(--cn-font);
  font-size: 14px;
  color: #ffffff !important;
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.auth-input:focus {
  border-color: #00f0ff !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3) !important;
  background: rgba(15, 23, 42, 0.9) !important;
}

#authDialog .auth-input:-webkit-autofill,
#authDialog .auth-input:-webkit-autofill:hover,
#authDialog .auth-input:-webkit-autofill:focus,
#authDialog .auth-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0f172a inset !important;
  box-shadow: 0 0 0 1000px #0f172a inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  transition: background-color 5000s ease-in-out 0s;
}

.auth-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.auth-password-toggle i {
  pointer-events: none;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  outline: none;
}

.auth-panel-error {
  margin: 0 20px 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 100, 80, 0.45);
  background: rgba(255, 60, 40, 0.12);
  color: #ffb4a8;
  font-size: 12px;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.auth-panel-error.hidden {
  display: none !important;
}

.auth-field--password .auth-input {
  padding-right: 44px !important;
}

.auth-util-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.auth-remember input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.auth-remember-ui {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 8px rgba(0, 240, 255, 0.05);
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}

.auth-remember-ui::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #00f0ff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}

.auth-remember input:checked + .auth-remember-ui {
  background: rgba(0, 240, 255, 0.12);
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.auth-remember input:checked + .auth-remember-ui::after {
  transform: rotate(45deg) scale(1);
}

.auth-remember input:focus-visible + .auth-remember-ui {
  outline: 2px solid rgba(0, 240, 255, 0.5);
  outline-offset: 2px;
}

.auth-forgot-link,
.auth-footer-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: #00f0ff;
  cursor: pointer;
  text-decoration: none;
  transition: text-shadow 0.2s, opacity 0.2s;
}

.auth-forgot-link:hover,
.auth-footer-link:hover {
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
}

.auth-panel-actions {
  padding: 16px 20px 8px;
  position: relative;
  z-index: 1;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-family: var(--cn-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, #0055ff 0%, #7a00ff 50%, #ff00d4 100%);
  box-shadow: 0 8px 24px rgba(122, 0, 255, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-submit-btn:hover {
  transform: scale(1.02);
  box-shadow:
    0 10px 28px rgba(122, 0, 255, 0.45),
    0 0 24px rgba(255, 0, 212, 0.35);
  filter: brightness(1.05);
}

.auth-submit-btn:active {
  transform: scale(0.99);
}

.auth-panel-footer {
  padding: 12px 20px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-panel-footer p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.auth-panel-footer .auth-footer-link {
  font-weight: 600;
}

#authUtilRow.hidden {
  display: none !important;
}

@media (max-width: 480px) {
  .auth-panel-header {
    padding: 16px 16px 10px;
  }

  .auth-panel-body,
  .auth-panel-actions,
  .auth-panel-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-panel-title {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MARKETPLACE — layout shell, grid cards, route overrides
   ═══════════════════════════════════════════════════════════════════════════ */

body.route-marketplace #hero-band,
body.route-marketplace #cat-tabs-bar {
  display: none !important;
}

body.route-marketplace #breadcrumb-bar,
body.route-marketplace #cat-tabs-bar {
  max-width: var(--cn-max);
  margin: 0 auto;
}

body.route-marketplace #wrapper {
  max-width: var(--cn-max) !important;
  margin: 0 auto !important;
  padding: 0 var(--cn-page-pad) 48px !important;
}

body.route-marketplace #content-area,
body.route-marketplace #viewRoot {
  position: relative;
  z-index: var(--cn-layer-content);
  width: 100%;
}

.mp-storefront {
  position: relative;
  z-index: var(--cn-layer-content);
  width: 100%;
  padding-bottom: 88px;
}

.mp-storefront-inner {
  max-width: 100%;
  margin: 0 auto;
}

.mp-escrow-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--cn-glass-shadow);
}

.mp-escrow-banner-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.1);
  color: var(--cn-cyan);
  font-size: 18px;
}

.mp-escrow-banner-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--cn-cyan);
}

.mp-escrow-banner-text {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

.mp-store-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.mp-store-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.mp-store-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.mp-store-subitem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mp-store-subitem i {
  color: rgba(0, 240, 255, 0.75);
  font-size: 11px;
}

.mp-store-subdot {
  color: rgba(255, 255, 255, 0.25);
}

.mp-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-section-tab {
  font-family: var(--cn-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.mp-section-tab:hover {
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.35);
}

.mp-section-tab--active {
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.55);
  background: linear-gradient(135deg, rgba(0, 85, 255, 0.35) 0%, rgba(0, 240, 255, 0.18) 100%);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.22);
}

.mp-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mp-cat-btn {
  font-family: var(--cn-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.18s ease;
}

.mp-cat-btn:hover {
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.35);
}

.mp-cat-btn--active {
  color: var(--cn-cyan);
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.08);
}

.mp-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--cn-glass-shadow);
}

.mp-search-wrap {
  flex: 1 1 240px;
  position: relative;
  min-width: 0;
}

.mp-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.mp-search-input,
.mp-sort-select {
  width: 100%;
  font-family: var(--cn-font);
  font-size: 13px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}

.mp-search-input {
  padding-left: 40px;
}

.mp-search-input:focus,
.mp-sort-select:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.mp-sort-wrap {
  flex: 0 1 200px;
}

.mp-btn-create {
  font-family: var(--cn-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.1);
  color: var(--cn-cyan);
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.12);
}

.mp-main-panel,
.mp-panel {
  position: relative;
  z-index: var(--cn-layer-content);
}

/* ── Marketplace sell / new listing form ── */
.mp-sell-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 960px) {
  .mp-sell-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.mp-sell-form,
.mp-sell-sidebar {
  padding: 22px 22px 24px;
  border-radius: 14px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: rgba(18, 22, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--cn-glass-shadow);
}

.mp-panel-title {
  margin: 0 0 18px;
  padding-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6ecfff;
  position: relative;
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.mp-panel-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.55), transparent);
  pointer-events: none;
}

.mp-sell-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mp-field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 240, 255, 0.75);
}

.mp-field-label--secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
}

.mp-field-label--secure i {
  color: var(--cn-cyan);
}

.mp-req {
  color: #ff6b6b;
}

.mp-field-input {
  width: 100%;
  font-family: var(--cn-font);
  font-size: 13px;
  color: #ffffff;
  background: #0f141c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 10px;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.mp-field-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.mp-field-input:focus {
  border-color: rgba(0, 240, 255, 0.45);
  border-bottom-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.22);
  background: rgba(15, 20, 28, 0.95);
}

.mp-field-textarea {
  resize: none;
  min-height: 96px;
  line-height: 1.5;
}

.mp-field-textarea--secure {
  background-color: #0f141c;
  background-image:
    linear-gradient(rgba(15, 20, 28, 0.94), rgba(15, 20, 28, 0.94)),
    repeating-linear-gradient(0deg, transparent, transparent 11px, rgba(0, 240, 255, 0.035) 11px, rgba(0, 240, 255, 0.035) 12px),
    repeating-linear-gradient(90deg, transparent, transparent 11px, rgba(0, 240, 255, 0.025) 11px, rgba(0, 240, 255, 0.025) 12px);
}

.mp-select-wrap {
  position: relative;
}

.mp-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2300f0ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.mp-field-select {
  padding-right: 36px;
  color: var(--cn-cyan);
  cursor: pointer;
}

.mp-field-select option {
  background: #12161e;
  color: #ffffff;
}

.mp-credits-input {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f141c;
}

.mp-credits-step {
  flex: 0 0 42px;
  border: none;
  border-right: 1px solid rgba(0, 240, 255, 0.15);
  background: rgba(0, 240, 255, 0.06);
  color: var(--cn-cyan);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.mp-credits-step:last-of-type {
  border-right: none;
  border-left: 1px solid rgba(0, 240, 255, 0.15);
}

.mp-credits-step:hover,
.mp-credits-step:focus-visible {
  background: rgba(0, 240, 255, 0.14);
  outline: none;
}

.mp-credits-input-field {
  flex: 1;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: center;
  -moz-appearance: textfield;
}

.mp-credits-input-field::-webkit-outer-spin-button,
.mp-credits-input-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mp-credits-input:focus-within {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.22);
}

.mp-field-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.42);
}

.mp-field-error {
  font-size: 11px;
  line-height: 1.4;
  color: #ff8a7a;
}

.mp-field-error.hidden {
  display: none;
}

.mp-field--error .mp-field-input,
.mp-field--error .mp-credits-input {
  border-color: rgba(255, 80, 60, 0.65);
  animation: mp-field-error-pulse 1.4s ease-in-out infinite;
}

@keyframes mp-field-error-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 80, 60, 0.25); }
  50% { box-shadow: 0 0 14px rgba(255, 80, 60, 0.4); }
}

.mp-btn-block {
  width: 100%;
  margin-top: 4px;
}

.mp-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #0055ff 0%, #00b4d8 55%, #00f0ff 100%);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.28);
  animation: mp-submit-glow 2.8s ease-in-out infinite;
}

.mp-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.4);
}

@keyframes mp-submit-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(0, 240, 255, 0.22); }
  50% { box-shadow: 0 0 28px rgba(0, 240, 255, 0.38); }
}

.mp-mine-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.mp-mine-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.12);
  background: rgba(8, 12, 16, 0.55);
}

.mp-mine-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mp-mine-card-title {
  font-size: 14px;
  color: #ffffff;
}

.mp-mine-card-desc {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.mp-mine-card-meta {
  margin: 8px 0 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 240, 255, 0.65);
}

.mp-mine-card-note {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 180, 80, 0.25);
  background: rgba(255, 140, 40, 0.08);
  font-size: 11px;
  color: #ffd4a8;
}

.mp-empty-listings {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 28px 16px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed rgba(0, 240, 255, 0.15);
  background: rgba(8, 12, 16, 0.4);
}

.mp-empty-listings-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.28);
  font-size: 20px;
}

.mp-empty-listings-text {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.mp-empty-listings-sub {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  max-width: 260px;
}

.mp-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mp-status-badge--pending {
  border-color: rgba(255, 180, 80, 0.4);
  background: rgba(255, 140, 40, 0.12);
  color: #ffd4a8;
}

.mp-status-badge--approved {
  border-color: rgba(93, 255, 176, 0.35);
  background: rgba(93, 255, 176, 0.1);
  color: #9dffc8;
}

.mp-status-badge--sold {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
  color: #9ae6ff;
}

.mp-status-badge--rejected {
  border-color: rgba(255, 100, 80, 0.4);
  background: rgba(255, 60, 40, 0.12);
  color: #ffb4a8;
}

.mp-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  width: 100%;
}

.mp-listing-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}

.mp-listing-card:hover {
  transform: scale(1.02);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 240, 255, 0.08);
}

.mp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mp-cat-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cn-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
}

.mp-escrow-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(125, 255, 184, 0.35);
  color: #7dffb8;
  background: rgba(125, 255, 184, 0.08);
}

.mp-card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.mp-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  flex: 1;
}

.mp-seller-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mp-seller-avatar-img,
.mp-seller-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.mp-seller-avatar-img {
  object-fit: cover;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.mp-seller-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--cn-cyan);
  font-weight: 700;
}

.mp-seller-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mp-seller-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.mp-role-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.mp-role-pill--staff {
  color: #ffb4a8;
  border-color: rgba(255, 120, 100, 0.35);
  background: rgba(255, 80, 60, 0.12);
}

.mp-role-pill--trusted {
  color: #7dffb8;
  border-color: rgba(125, 255, 184, 0.35);
  background: rgba(125, 255, 184, 0.08);
}

.mp-role-pill--verified {
  color: #9ee7ff;
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.08);
}

.mp-role-pill--new {
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.mp-card-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

@media (min-width: 520px) {
  .mp-card-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.mp-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.mp-price-usd {
  font-size: 1.35rem;
  font-weight: 700;
  color: #5dffb0;
  text-shadow: 0 0 12px rgba(93, 255, 176, 0.35);
}

.mp-price-sep {
  color: rgba(255, 255, 255, 0.35);
}

.mp-price-credits {
  font-size: 13px;
  color: var(--cn-cyan);
}

.mp-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-btn {
  font-family: var(--cn-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.mp-btn-details {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mp-btn-details:hover {
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.06);
}

.mp-btn-buy {
  color: #ffffff;
  border: none;
  background: linear-gradient(135deg, #0055ff 0%, #7a00ff 50%, #ff00d4 100%);
  box-shadow: 0 6px 20px rgba(122, 0, 255, 0.35);
}

.mp-btn-buy:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 26px rgba(122, 0, 255, 0.45), 0 0 20px rgba(0, 240, 255, 0.25);
}

.mp-empty-state {
  padding: 48px 24px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(0, 240, 255, 0.2);
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.55);
}

.mp-mobile-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (min-width: 768px) {
  .mp-mobile-dock {
    display: none;
  }

  .mp-storefront {
    padding-bottom: 24px;
  }
}

@media (max-width: 767px) {
  .mp-listing-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Profile page (glass + edit modal) ── */
body.route-profile #hero-band,
body.route-profile #cat-tabs-bar {
  display: none !important;
}

body.route-profile #dbSearchWrap {
  display: none !important;
}

body.route-profile #breadcrumb-bar {
  margin-bottom: 8px;
}

body.route-profile .profile-hero,
body.route-profile .profile-hero-inner,
body.route-profile .profile-section-card,
body.route-profile .profile-side-card,
body.route-profile .profile-stat-strip--hero {
  background: rgba(10, 15, 26, 0.55) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(0, 240, 255, 0.15) !important;
}

body.route-profile .profile-hero-inner {
  background: rgba(10, 15, 26, 0.72) !important;
}

body.route-profile .profile-panel-body,
body.route-profile .profile-side-body {
  background: rgba(0, 0, 0, 0.12) !important;
}

.profile-hero-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.profile-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.08);
  color: #00f0ff;
  font-family: var(--cn-font, inherit);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.profile-edit-btn:hover,
.profile-edit-btn:focus-visible {
  background: rgba(0, 240, 255, 0.14);
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
  outline: none;
}

.profile-stat-strip--hero {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  border: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.profile-stat-pill {
  flex: 1 1 120px;
  text-align: center;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: rgba(0, 240, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.profile-stat-pill .profile-stat-val {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #00f0ff;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
  line-height: 1.1;
}

.profile-stat-pill .profile-stat-val.rep-positive {
  color: #5dff9a;
  text-shadow: 0 0 14px rgba(93, 255, 154, 0.4);
}

.profile-stat-pill .profile-stat-val.rep-negative {
  color: #ff7a6a;
  text-shadow: 0 0 14px rgba(255, 122, 106, 0.4);
}

.profile-stat-pill .profile-stat-lbl {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Profile edit modal */
.modal-profile-edit::backdrop {
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(6px);
}

.modal-profile-edit {
  border: none;
  padding: 0;
  max-width: min(640px, calc(100vw - 24px));
  width: 100%;
  background: transparent;
  color: #fff;
}

.profile-edit-panel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(10, 15, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.profile-edit-accent {
  height: 3px;
  background: linear-gradient(90deg, #0055ff, #7a00ff, #ff00d4);
}

.profile-edit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.profile-edit-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.profile-edit-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
}

.profile-edit-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-edit-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.profile-edit-close {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.profile-edit-close:hover {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
}

.profile-edit-error {
  margin: 0 20px 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 100, 80, 0.45);
  background: rgba(255, 60, 40, 0.12);
  color: #ffb4a8;
  font-size: 12px;
}

.profile-edit-error.hidden {
  display: none !important;
}

.profile-edit-body {
  padding: 16px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: min(68vh, 620px);
  overflow-y: auto;
}

.profile-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-edit-section {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.profile-edit-section--full {
  grid-column: 1 / -1;
}

.profile-edit-section h3 {
  margin: 0 0 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e2e8f0;
}

.profile-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 118px;
  padding: 16px;
  border-radius: 12px;
  border: 1.5px dashed rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.03);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.profile-dropzone-empty.hidden {
  display: none;
}

.profile-dropzone-preview-img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.profile-dropzone-preview-img--banner {
  width: 100%;
  height: 88px;
  border-radius: 10px;
}

.profile-dropzone--has-preview {
  border-style: solid;
  padding: 10px;
}

.profile-pending-badge {
  margin: 8px 0 0;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: rgba(0, 240, 255, 0.08);
  color: #8efcff;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.12);
}

.profile-pending-badge.hidden {
  display: none !important;
}

.profile-upload-btn--loading {
  opacity: 0.85;
  pointer-events: none;
}

.bb-toast {
  position: fixed;
  top: 92px;
  right: 20px;
  z-index: 650;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(8, 14, 24, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 240, 255, 0.15);
  color: #e2faff;
  font-family: var(--cn-font, inherit);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bb-toast:not(.hidden) {
  animation: bb-toast-in 0.24s ease;
}

.bb-toast.hidden {
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
}

.bb-toast--success {
  border-color: rgba(0, 255, 200, 0.45);
  color: #b8fff0;
  text-shadow: 0 0 12px rgba(0, 255, 200, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 255, 200, 0.18);
}

.bb-toast--error {
  border-color: rgba(255, 100, 80, 0.5);
  color: #ffb4a8;
  text-shadow: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 80, 60, 0.15);
}

@keyframes bb-toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-dropzone:hover,
.profile-dropzone:focus-visible,
.profile-dropzone--drag {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
  outline: none;
}

.profile-dropzone--filled {
  border-style: solid;
}

.profile-dropzone-icon {
  font-size: 22px;
  color: rgba(0, 240, 255, 0.75);
}

.profile-dropzone-lead {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.profile-dropzone-name {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.42);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-edit-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-edit-field,
.profile-color-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.profile-edit-field--full {
  grid-column: 1 / -1;
}

.profile-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-color-swatch {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.profile-color-hex {
  flex: 1;
  min-width: 0;
}

.profile-edit-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(0, 240, 255, 0.12);
}

.profile-edit-save {
  background: linear-gradient(135deg, #0055ff, #7a00ff 55%, #ff00d4);
  border: none;
}

@media (max-width: 640px) {
  .profile-edit-grid,
  .profile-edit-fields {
    grid-template-columns: 1fr;
  }

  .profile-stat-pill {
    flex: 1 1 calc(50% - 6px);
  }
}
