/* Titanite Grand Exchange — Titanite-inspired palette (orange/gold + blue/cyan on near-black) */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Base — deep black / charcoal */
  --bg-deep: #000000;
  --bg: #0a0a0c;
  --bg-elevated: #111114;
  --panel: #141418;
  --panel-hover: #1a1a20;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.11);
  --text: #f2f2f5;
  --text-soft: #a9adb8;
  --muted: #6b707c;

  /* Titanite primaries (reference art) */
  --titan-orange: #ff7e00;
  --titan-gold: #ffd700;
  --titan-line: #ff8c00;
  --titan-blue: #0072ff;
  --titan-cyan: #00e5ff;

  --grad-primary: linear-gradient(180deg, var(--titan-orange) 0%, var(--titan-gold) 100%);
  --grad-secondary: linear-gradient(180deg, var(--titan-blue) 0%, var(--titan-cyan) 100%);
  --grad-cta: linear-gradient(145deg, #ff8a14 0%, #e86a00 45%, #ffb020 100%);

  /* Links & cool accents (secondary gradient family) */
  --accent: #2ecbff;
  --accent-bright: #5ce8ff;
  --accent-dim: rgba(0, 229, 255, 0.1);
  --accent-glow: rgba(255, 126, 0, 0.38);
  --accent-orange-dim: rgba(255, 126, 0, 0.14);
  --focus-ring: rgba(0, 229, 255, 0.55);

  --discord: #5865f2;
  --discord-hover: #4752c4;
  --ok: #3dd68c;
  --ok-bg: rgba(61, 214, 140, 0.12);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --warn: #e8b84a;
  --warn-bg: rgba(232, 184, 74, 0.1);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.55);
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Native UI (scrollbars, form controls on mobile) matches desktop dark theme */
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  -webkit-tap-highlight-color: rgba(255, 140, 60, 0.18);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -20%, rgba(255, 126, 0, 0.09), transparent 52%),
    radial-gradient(ellipse 45% 40% at 100% 0%, rgba(0, 114, 255, 0.07), transparent 45%),
    radial-gradient(ellipse 40% 35% at 0% 100%, rgba(0, 229, 255, 0.04), transparent 42%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

body.site-body--home {
  background-image:
    radial-gradient(ellipse 110% 75% at 50% -18%, rgba(255, 140, 0, 0.16), transparent 58%),
    radial-gradient(ellipse 55% 50% at 92% 8%, rgba(0, 180, 255, 0.14), transparent 52%),
    radial-gradient(ellipse 50% 45% at 5% 35%, rgba(255, 100, 40, 0.08), transparent 48%),
    radial-gradient(ellipse 50% 40% at 100% 85%, rgba(0, 229, 255, 0.1), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body.site-body--home .wrap {
  padding-top: 0.65rem;
  padding-bottom: 2.25rem;
  padding-inline: 1.42rem;
}

/* Top sponsor row — full width under header (same geometry on every page as home) */
.site-page-banner-row {
  margin-bottom: 0.12rem;
  width: 100%;
  min-width: 0;
}

/* Match bottom strip: 2-column grid; single top banner aligns with bottom-right slot */
.site-page-banner-row .site-page-toprow__banners {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

/* One top banner: span the row and align right so we do not reserve an empty half-width column */
.site-page-banner-row .site-page-toprow__banners > .channel-sponsor-slot:only-child {
  grid-column: 1 / -1;
  justify-self: end;
  width: fit-content;
  max-width: 100%;
}

@media (max-width: 820px) {
  .site-page-banner-row .site-page-toprow__banners {
    grid-template-columns: 1fr;
  }

  .site-page-banner-row .site-page-toprow__banners > .channel-sponsor-slot:only-child {
    grid-column: 1;
    justify-self: center;
  }
}

/* Home: top sponsor row with optional page title column */
.site-page-banner-row--home-split {
  margin-bottom: 0.35rem;
}

.site-page-banner-home-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.site-page-banner-home-split__ad {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.site-page-banner-home-split__ad .channel-sponsor-slot {
  width: 100%;
  max-width: 585px;
}

.site-page-banner-home-split__ad .channel-sponsor-slot__frame {
  margin-left: auto;
  margin-right: auto;
}

.site-page-banner-home-split__title {
  grid-column: 1;
  justify-self: start;
  max-width: 100%;
  align-self: center;
  text-align: left;
  padding-left: 0.2rem;
  padding-right: 0.5rem;
  overflow: visible;
}

/* Inner pages: optional heading in top banner row (same row as sponsor tile) */
.site-page-banner-home-split__title .channel-page-title--banner-row {
  max-width: 100%;
}

/* No page_banner_heading: collapse title column; keep ad right-aligned on wide viewports */
.site-page-banner-home-split__title--slot:not(:has(*)) {
  display: none;
}

.site-page-banner-home-split:has(.site-page-banner-home-split__title--slot:not(:has(*))) {
  grid-template-columns: 1fr;
}

.site-page-banner-home-split:has(.site-page-banner-home-split__title--slot:not(:has(*))) .site-page-banner-home-split__ad {
  grid-column: 1;
  justify-self: end;
}

@media (max-width: 820px) {
  .site-page-banner-home-split:has(.site-page-banner-home-split__title--slot:not(:has(*))) .site-page-banner-home-split__ad {
    justify-self: center;
  }
}

/* Title moved to banner row: hero is Buy/Sell (or actions) only */
.channel-hero.channel-hero--split.channel-hero--title-in-banner {
  grid-template-columns: 1fr;
  justify-items: end;
}

.channel-hero.channel-hero--split.channel-hero--title-in-banner .channel-hero__left {
  display: none;
}

@media (max-width: 820px) {
  .channel-hero.channel-hero--split.channel-hero--title-in-banner {
    justify-items: stretch;
  }
}

.site-page-banner-home-split--with-page-title .site-page-banner-home-split__ad {
  grid-column: 2;
  justify-self: stretch;
}

.home-banner-page-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  margin: 0;
  padding: 0.08em 0.04em 0.16em 0.1em;
  line-height: 1.2;
  animation: home-hero-slide-in-left 0.88s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-banner-page-title__brand {
  white-space: nowrap;
  font-size: clamp(1.28rem, 3.1vw, 2.12rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  background: linear-gradient(
    115deg,
    var(--titan-orange) 0%,
    var(--titan-line) 20%,
    var(--titan-gold) 42%,
    var(--titan-orange) 58%,
    var(--titan-gold) 72%,
    var(--titan-blue) 88%,
    var(--titan-cyan) 100%
  );
  background-size: 165% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 20px rgba(255, 126, 0, 0.22));
  animation: home-hero-title-shimmer 14s ease-in-out 0.88s infinite;
}

.home-banner-page-title__slogan {
  font-size: clamp(0.52rem, 0.95vw, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--text-soft);
  color: color-mix(in srgb, var(--accent) 32%, var(--text-soft));
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 229, 255, 0.08);
  line-height: 1.25;
  white-space: nowrap;
}

.site-page-banner-row--home-title-only {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.35rem;
  width: 100%;
}

.site-page-banner-home-split__title--solo {
  grid-column: unset;
  max-width: 100%;
  padding: 0.2rem 0 0.45rem 0.2rem;
  text-align: left;
  overflow: visible;
}

.site-page-banner-row__extra {
  margin-top: 0.65rem;
}

.site-page-banner-row__extra .site-page-toprow__banners > .channel-sponsor-slot:only-child {
  grid-column: 1 / -1;
  justify-self: center;
}

@media (max-width: 820px) {
  .site-page-banner-home-split {
    grid-template-columns: 1fr;
  }

  .site-page-banner-home-split__title {
    grid-column: 1;
    text-align: center;
    padding-inline: 0.35rem;
    order: 0;
  }

  .site-page-banner-home-split__ad {
    grid-column: auto;
  }

  .site-page-banner-home-split--with-page-title .site-page-banner-home-split__ad {
    grid-column: auto;
  }

  /* Stack: title, sponsor banner */
  .site-page-banner-home-split__ad {
    order: 1;
    justify-content: center;
  }

  .site-page-banner-home-split__ad .channel-sponsor-slot__frame {
    margin-left: auto;
    margin-right: auto;
  }

  .site-page-banner-home-split__title--solo {
    text-align: center;
  }

  .site-page-banner-home-split__title .home-banner-page-title {
    align-items: center;
  }
}

.home-top-discord-widget {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.dw-widget--home-top {
  margin: 0 auto;
  max-width: 100%;
}

.dw-widget--home-top .dw-widget-head {
  padding: 0.55rem 0.72rem;
  gap: 0.4rem 0.75rem;
}

.dw-widget--home-top .dw-widget-name {
  font-size: 0.9rem;
}

.dw-widget--home-top .dw-widget-join-btn {
  padding: 0.58rem 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

body.site-body--home .site-footer-banners-wrap .channel-sponsor-strip--bottom {
  margin-top: 0;
  margin-bottom: 0;
}

body.site-body--home .home-page {
  padding-top: 0.1rem;
  padding-bottom: 0.85rem;
}

body.site-body--home .home-cards {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--accent-bright);
  text-decoration: none;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-soft);
}

/* ——— Top bar ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-top: 3px solid var(--titan-line);
  border-bottom: 1px solid var(--border);
  background: rgba(6, 6, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(255, 140, 0, 0.06);
}

.topbar-inner {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0.65rem clamp(0.75rem, 2.5vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-sizing: border-box;
}

/* Align header banner 1 + footer banners 2–3 with main column (same grid as sidebar layout) */
.site-shell-columns {
  display: grid;
  grid-template-columns: minmax(12.25rem, 17rem) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.site-shell-columns__rail {
  min-width: 0;
}

.site-shell-columns__main {
  min-width: 0;
}

body:has(#site-main-layout.site-main-layout--sidebar-collapsed) .site-shell-columns {
  grid-template-columns: minmax(12.25rem, 17rem) minmax(0, 1fr);
  gap: 1rem 1.25rem;
}

@media (max-width: 960px) {
  .site-shell-columns {
    grid-template-columns: 1fr;
  }

  .site-shell-columns__rail {
    display: none;
  }
}

.site-footer-banners-wrap {
  padding: 0.55rem 0 0.45rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.site-footer-banners-wrap .site-shell-columns {
  align-items: center;
}

.site-footer-banners-wrap .channel-sponsor-strip--bottom {
  margin-top: 0;
  margin-bottom: 0;
}

/* Inner pages: page title + sponsor slot 1 on one row (see base.html) */
.site-page-banner-row--heading-with-lead {
  margin-bottom: 0.35rem;
  width: 100%;
  min-width: 0;
}

.site-page-banner-heading-inner {
  grid-column: unset;
}

/* Mobile menu trigger — hidden on desktop; three-line icon */
.nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-mobile-toggle:hover {
  background: var(--panel-hover);
  border-color: var(--border-strong);
  color: var(--text);
}

.nav-mobile-toggle:focus {
  outline: none;
}

.nav-mobile-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-mobile-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 1.15rem;
}

.nav-mobile-toggle-bars > span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar-inner.is-nav-open .nav-mobile-toggle-bars > span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar-inner.is-nav-open .nav-mobile-toggle-bars > span:nth-child(2) {
  opacity: 0;
}

.topbar-inner.is-nav-open .nav-mobile-toggle-bars > span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 769px) {
  .topbar-inner {
    flex-wrap: wrap;
  }

  .nav-chips {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  #site-main-nav.nav-chips {
    display: flex !important;
  }

  .nav-mobile-toggle {
    display: none !important;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text) !important;
  text-decoration: none !important;
}

.brand:hover {
  color: var(--text) !important;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 140, 0, 0.35);
  display: block;
  object-fit: cover;
  background: var(--bg-elevated);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 16px rgba(255, 126, 0, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.85));
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.nav-chips a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft) !important;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.nav-chips a:hover {
  color: var(--text) !important;
  background: var(--panel);
  border-color: var(--border);
}

.nav-chips a.is-active {
  color: var(--text) !important;
  background: var(--accent-orange-dim);
  border-color: rgba(255, 140, 0, 0.4);
  box-shadow: 0 0 12px rgba(255, 126, 0, 0.08);
}

.nav-chips a.nav-chips-my-trades {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-chips a.nav-chips-my-trades--unread:not(.is-active) {
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.15);
}

.nav-chips-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  padding: 0.06rem 0.35rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
  background: rgba(59, 130, 246, 0.35);
  color: #dbeafe;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

.nav-chips-unread-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.nav-chips-sep {
  width: 1px;
  height: 1.05rem;
  background: var(--border-strong);
  margin: 0 0.15rem;
  flex-shrink: 0;
  align-self: center;
}

/* OSRS / RS3 game dropdowns in main nav */
.nav-chips .nav-game-dropdown {
  position: relative;
}

.nav-chips .nav-game-dropdown summary.nav-game-dropdown-trigger {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 0.4rem 0.85rem;
  padding-right: 1.65rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.nav-chips .nav-game-dropdown summary.nav-game-dropdown-trigger::-webkit-details-marker {
  display: none;
}

.nav-chips .nav-game-dropdown summary.nav-game-dropdown-trigger::after {
  content: "";
  position: absolute;
  right: 0.55rem;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.nav-chips .nav-game-dropdown[open] summary.nav-game-dropdown-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.nav-chips .nav-game-dropdown summary.nav-game-dropdown-trigger:hover {
  color: var(--text);
  background: var(--panel);
  border-color: var(--border);
}

.nav-chips .nav-game-dropdown summary.nav-game-dropdown-trigger.is-active {
  color: var(--text) !important;
  background: var(--accent-orange-dim);
  border-color: rgba(255, 140, 0, 0.4);
  box-shadow: 0 0 12px rgba(255, 126, 0, 0.08);
}

.nav-chips .nav-game-dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  min-width: 12.5rem;
  padding: 0.35rem 0;
  margin: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
  z-index: 50;
}

.nav-chips .nav-game-dropdown-item {
  display: block;
  padding: 0.5rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-soft) !important;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.12s ease, color 0.12s ease;
}

.nav-chips .nav-game-dropdown-item:hover {
  background: var(--panel);
  color: var(--text) !important;
}

@media (max-width: 900px) {
  .nav-chips .nav-game-dropdown-panel {
    left: auto;
    right: 0;
  }
}

.channel-trade-ban-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: min(42vh, 18rem);
  margin: 0.5rem 0 2rem;
  padding: 1.5rem 1rem;
}

.channel-trade-ban-msg {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--danger);
  text-shadow: 0 0 22px rgba(248, 113, 113, 0.5);
}

/* Channel hero: Paint-style split — title left; banners + Buy/Sell stacked right */
.channel-hero {
  width: 100%;
  margin: 0 0 0.45rem;
}

.channel-hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem 1.5rem;
}

.channel-hero__left {
  min-width: 0;
}

.channel-hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  flex-shrink: 0;
}

.site-page-banners-bottom {
  width: 100%;
}

.channel-hero__right .channel-market-toggle {
  align-self: flex-end;
  margin-bottom: 0;
}

/* Non-feed channel page: title only, full width */
.channel-hero--split--solo {
  grid-template-columns: 1fr;
}

@media (max-width: 820px) {
  .channel-hero--split {
    grid-template-columns: 1fr;
  }

  .channel-hero__right {
    align-items: stretch;
    max-width: 100%;
  }

  .channel-hero__right .channel-market-toggle {
    align-self: center;
  }
}

/* App shell: sticky sidebar + page column (every page) */
.site-main.site-main--with-sidebar {
  display: grid;
  grid-template-columns: minmax(12.25rem, 17rem) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
  width: 100%;
}

.site-main__column {
  min-width: 0;
}

/* Gold channel page: feed stack only (sidebar lives in base.html) */
.channel-market-layout {
  display: block;
  width: 100%;
  min-width: 0;
}

.channel-market-layout__main {
  min-width: 0;
}

.site-sidebar-nav {
  min-width: 0;
  position: sticky;
  top: 0.6rem;
  z-index: 3;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm, 10px);
  box-shadow: var(--shadow-md, 0 8px 28px rgba(0, 0, 0, 0.35));
  max-height: calc(100vh - 1.5rem);
  overflow-y: auto;
  transition: min-width 0.22s ease, padding 0.22s ease, box-shadow 0.2s ease;
}

/* Mobile: open rail from Menu — hidden on wide viewports */
.site-mobile-rail-bar {
  display: none;
}

.site-mobile-rail-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.48rem 0.95rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-mobile-rail-open-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 140, 60, 0.35);
  color: var(--text);
}

.site-mobile-rail-open-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-mobile-rail-open-btn__icon {
  flex-shrink: 0;
  opacity: 0.92;
}

/* Always-visible brand on phones (drawer is off-canvas when closed) */
.site-mobile-rail-brand {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none !important;
  color: var(--text) !important;
}

.site-mobile-rail-brand:hover {
  color: var(--text) !important;
}

.site-mobile-rail-brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
}

.site-mobile-rail-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  min-width: 0;
}

.site-mobile-rail-brand__title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.site-mobile-rail-brand__sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 259;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(4, 6, 12, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
}

body.site-mobile-rail-no-scroll {
  overflow: hidden;
}

@media (min-width: 961px) {
  .site-mobile-nav-backdrop {
    display: none !important;
  }
}

.channel-side-nav-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.channel-side-nav__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.65rem 0.65rem 0.55rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 140, 60, 0.1) 0%, rgba(0, 0, 0, 0.15) 100%);
}

.channel-side-nav__brand-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.channel-side-nav__brand-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-soft);
  text-decoration: none !important;
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.channel-side-nav__brand-settings:hover {
  color: var(--accent);
  background: var(--panel-hover);
  border-color: rgba(255, 140, 60, 0.45);
}

.channel-side-nav__brand-settings.is-active {
  color: var(--accent) !important;
  background: rgba(255, 140, 60, 0.14);
  border-color: rgba(255, 140, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 0, 0.22);
}

.channel-side-nav__brand-settings:focus-visible {
  outline: 2px solid rgba(255, 140, 60, 0.75);
  outline-offset: 2px;
}

.channel-side-nav__brand-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none !important;
  color: var(--text) !important;
}

.channel-side-nav__brand-link:hover {
  color: var(--text) !important;
}

.channel-side-nav__brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
}

.channel-side-nav__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  min-width: 0;
}

.channel-side-nav__brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.channel-side-nav__brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.channel-side-nav__rail-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.2s ease;
}

.channel-side-nav__rail-toggle:hover {
  background: var(--panel-hover);
  border-color: rgba(255, 140, 60, 0.45);
  color: var(--accent);
}

.channel-side-nav__rail-toggle:focus-visible {
  outline: 2px solid rgba(255, 140, 60, 0.75);
  outline-offset: 2px;
}

/* Chevron: expanded menu = point up (collapse); collapsed rail = point down (expand) */
.channel-side-nav__rail-toggle-icon {
  display: block;
  transition: transform 0.22s ease;
  transform: rotate(180deg);
}

.channel-side-nav__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.55rem 0.6rem 0.7rem;
}

.channel-side-nav__panel > .channel-side-nav {
  flex: 1 1 auto;
  min-height: 0;
}

.channel-side-nav__panel-footer {
  flex-shrink: 0;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.channel-side-nav__panel-logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  padding: 0.48rem 0.55rem;
  border: 1px solid rgba(248, 113, 113, 0.42);
  border-radius: var(--radius-sm);
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.channel-side-nav__panel-logout:hover {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.58);
  color: var(--danger);
}

.channel-side-nav__panel-logout:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.75);
  outline-offset: 2px;
}

.channel-side-nav__panel-logout-text {
  line-height: 1.2;
}

.channel-side-nav__panel-logout-icon {
  display: block;
  flex-shrink: 0;
}

.channel-side-nav__user-settings {
  margin-left: auto;
  margin-top: 0.05rem;
}

.channel-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.86rem;
  text-align: left;
}

/* Collapsible OSRS / RS3 — same vocabulary as header nav-game-dropdown */
.channel-side-nav__disclosure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.channel-side-nav__disclosure[open] {
  border-color: rgba(255, 140, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 126, 0, 0.06);
}

.channel-side-nav__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.48rem 0.65rem 0.48rem 0.7rem;
  padding-right: 1.85rem;
  position: relative;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-soft);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.channel-side-nav__summary::-webkit-details-marker {
  display: none;
}

.channel-side-nav__summary::after {
  content: "";
  position: absolute;
  right: 0.65rem;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: 1px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.2s ease, border-top-color 0.15s ease;
}

.channel-side-nav__disclosure[open] > .channel-side-nav__summary::after {
  transform: translateY(-50%) rotate(180deg);
  border-top-color: var(--accent);
}

.channel-side-nav__disclosure[open] > .channel-side-nav__summary {
  color: var(--text);
  background: var(--accent-orange-dim);
  border-bottom: 1px solid rgba(255, 140, 0, 0.28);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.channel-side-nav__summary:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.channel-side-nav__sub {
  padding: 0.4rem 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  background: rgba(0, 0, 0, 0.18);
}

/* Sidebar rail — single Grand Exchange gold accent (all sections) */
.channel-side-nav--mega-flow {
  --rail-accent: #ff9339;
  gap: 0.58rem;
}

.channel-side-nav__disclosure--rail[open] > .channel-side-nav__summary--rail.channel-side-nav__summary--mega-hq {
  background: linear-gradient(
    135deg,
    rgba(255, 147, 57, 0.22) 0%,
    rgba(255, 90, 40, 0.08) 42%,
    rgba(12, 14, 22, 0.94) 100%
  );
  border-bottom: 1px solid rgba(255, 147, 57, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 26px rgba(0, 0, 0, 0.42);
}

.channel-side-nav__summary--mega-hq.channel-side-nav__summary--rail .channel-side-nav__summary-text {
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(95deg, #fff 0%, #ffc899 55%, #ff9a4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: rgba(255, 245, 230, 0.96);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .channel-side-nav__summary--mega-hq.channel-side-nav__summary--rail .channel-side-nav__summary-text {
    color: transparent;
  }
}

.channel-side-nav__summary-link {
  text-decoration: none;
  color: inherit;
}

.channel-side-nav__summary-link:hover,
.channel-side-nav__summary-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.channel-side-nav__summary--page-link {
  display: block;
  text-decoration: none;
  padding-right: 0.7rem;
}

.channel-side-nav__summary--page-link::after {
  display: none;
}

.channel-side-nav__summary--page-link.is-active {
  color: var(--text);
  background: linear-gradient(
    135deg,
    rgba(255, 147, 57, 0.22) 0%,
    rgba(255, 90, 40, 0.08) 42%,
    rgba(12, 14, 22, 0.94) 100%
  );
  border-bottom: 1px solid rgba(255, 147, 57, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 26px rgba(0, 0, 0, 0.42);
}

.channel-side-nav__disclosure:has(> .channel-side-nav__summary--page-link.is-active) {
  border-color: rgba(255, 140, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 126, 0, 0.06);
}

.channel-side-nav__sub--mega-hq {
  padding: 0.55rem 0.4rem 0.6rem;
  gap: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 140, 60, 0.14), transparent 55%),
    rgba(0, 0, 0, 0.28);
}

.channel-side-nav__hq-block {
  position: relative;
  margin-bottom: 0;
  padding: 0.52rem 0.48rem 0.56rem 0.62rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.055) 0%, rgba(0, 0, 0, 0.38) 55%, rgba(0, 0, 0, 0.52) 100%);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.channel-side-nav__hq-block--rail {
  --hq-accent: var(--rail-accent, #ff9339);
}

.channel-side-nav__hq-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--hq-accent), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 14px rgba(255, 147, 57, 0.25);
}

.channel-side-nav__hq-heading {
  margin: 0 0 0.42rem;
  padding: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffc49a;
  text-shadow: 0 0 18px rgba(255, 147, 57, 0.35);
}

.channel-side-nav__hq-links {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
}

.channel-side-nav__hq-links .channel-side-nav__link {
  padding: 0.36rem 0.42rem;
  border-radius: 8px;
  transition:
    transform 0.18s cubic-bezier(0.33, 1, 0.68, 1),
    background 0.15s ease,
    box-shadow 0.18s ease,
    color 0.15s ease;
}

.channel-side-nav__hq-links .channel-side-nav__link:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.channel-side-nav__hq-block--rail .channel-side-nav__hq-links .channel-side-nav__link.is-active {
  color: #ffc090 !important;
  background: rgba(255, 147, 57, 0.14) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 147, 57, 0.45),
    0 0 22px rgba(255, 147, 57, 0.22);
}

.channel-side-nav__guest-card.channel-side-nav__hq-block--rail {
  margin-bottom: 0;
}

.channel-side-nav__sub--rail .channel-side-nav__hq-links .channel-side-nav__link {
  padding: 0.36rem 0.42rem;
  border-radius: 8px;
  transition:
    transform 0.18s cubic-bezier(0.33, 1, 0.68, 1),
    background 0.15s ease,
    box-shadow 0.18s ease,
    color 0.15s ease;
}

.channel-side-nav__sub--rail .channel-side-nav__hq-links .channel-side-nav__link:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.channel-side-nav__guest-card .channel-side-nav__guest-hint {
  margin: 0 0 0.65rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.channel-side-nav__guest-card .channel-side-nav__login {
  display: flex;
  width: 100%;
  justify-content: center;
}

.channel-side-nav__hq-logout {
  margin-top: 0.15rem;
  padding-top: 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
  .channel-side-nav__hq-links .channel-side-nav__link:hover,
  .channel-side-nav__sub--rail .channel-side-nav__hq-links .channel-side-nav__link:hover {
    transform: none;
  }
}

.channel-side-nav__account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
}

.channel-side-nav__team-invite-badge {
  flex-shrink: 0;
  margin-left: auto;
}

.channel-side-nav__link--notify:not(.is-active) {
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.15);
}

.channel-side-nav__hr {
  margin: 0.4rem 0.35rem;
  border: 0;
  border-top: 1px solid var(--border-strong);
  opacity: 0.85;
}

.channel-side-nav__link--logout {
  color: var(--danger) !important;
  font-weight: 700;
}

.channel-side-nav__link--logout:hover {
  background: var(--danger-bg);
  color: var(--danger) !important;
}

.channel-side-nav__extras {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.45rem 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.channel-side-nav__link {
  display: block;
  padding: 0.38rem 0.45rem;
  margin: 0;
  border-radius: 6px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.35;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.channel-side-nav__link--row {
  padding: 0.42rem 0.5rem;
}

.channel-side-nav__link--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  min-height: 2.25rem;
}

.channel-side-nav__link:hover {
  color: var(--text);
  background: var(--panel-hover);
}

.channel-side-nav__link.is-active {
  color: var(--accent) !important;
  background: rgba(255, 140, 60, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 0, 0.22);
}

.channel-side-nav__my-trades {
  display: block;
}

.channel-side-nav__my-trades-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.channel-side-nav__my-trades .nav-chips-badge {
  position: static;
  transform: none;
  margin-left: auto;
}

.channel-side-nav__category-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.channel-side-nav__category-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 3px;
}

.channel-side-nav__category-divider {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0;
  text-transform: none;
}

.channel-side-nav__my-trades-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}

.channel-side-nav__my-trades-summary-row .nav-chips-badge {
  flex-shrink: 0;
  margin-left: auto;
}

/* Sidebar user card — Discord identity, server, subscription, donations */
.channel-side-nav__user-card {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(88, 101, 242, 0.09) 0%, rgba(0, 0, 0, 0.3) 52%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.channel-side-nav__user-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

a.channel-side-nav__user-avatar-link {
  flex-shrink: 0;
  display: inline-flex;
  text-decoration: none;
  color: inherit;
  border-radius: 50%;
}

a.channel-side-nav__user-avatar-link:focus-visible {
  outline: 2px solid rgba(255, 140, 60, 0.85);
  outline-offset: 2px;
}

.channel-side-nav__user-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.channel-side-nav__user-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: block;
}

.channel-side-nav__user-avatar-fallback-wrap {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
}

.channel-side-nav__user-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  background: rgba(88, 101, 242, 0.38);
  border: 2px solid var(--border-strong);
}

.channel-side-nav__user-avatar-fallback--sub-active {
  border-color: rgba(46, 160, 67, 0.95);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.channel-side-nav__user-avatar-fallback--sub-inactive {
  border-color: rgba(248, 113, 113, 0.95);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25);
}

.channel-side-nav__user-card-id {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
}

.channel-side-nav__user-card-name {
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-side-nav__user-card-handle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-side-nav__status-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.channel-side-nav__status-item {
  margin: 0;
}

.channel-side-nav__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  max-width: 100%;
  padding: 0.32rem 0.48rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.channel-side-nav__status-pill--action {
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.channel-side-nav__status-pill--action:hover {
  color: var(--text);
}

.channel-side-nav__status-pill--discord-miss {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
  color: var(--text);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
}

.channel-side-nav__status-pill--discord-miss:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.55);
}

.channel-side-nav__status-pill--sub {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.channel-side-nav__status-pill--sub-on {
  color: rgba(220, 252, 231, 0.98);
  background: rgba(22, 101, 52, 0.38);
  border-color: rgba(46, 160, 67, 0.55);
}

.channel-side-nav__status-pill--sub-on .js-local-datetime {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.channel-side-nav__status-pill--sub-on:hover {
  background: rgba(22, 101, 52, 0.52);
  border-color: rgba(46, 160, 67, 0.72);
}

.channel-side-nav__status-pill--sub-warn {
  color: var(--text);
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.42);
}

.channel-side-nav__status-pill--sub-warn:hover {
  background: rgba(248, 113, 113, 0.22);
}

.channel-side-nav__status-pill--sub-none {
  color: var(--text-soft);
  background: rgba(0, 0, 0, 0.25);
  border-color: var(--border-strong);
}

.channel-side-nav__status-pill--sub-none:hover {
  color: var(--accent);
  border-color: rgba(255, 140, 60, 0.45);
}

.channel-side-nav__user-donation-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.38rem 0.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text) !important;
  font-weight: 700;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.channel-side-nav__user-donation-chip:hover {
  border-color: rgba(255, 140, 60, 0.45);
  color: var(--accent) !important;
  box-shadow: 0 0 12px rgba(255, 126, 0, 0.1);
}

.channel-side-nav__user-donation-chip-emoji {
  flex-shrink: 0;
}

.channel-side-nav__user-donation-chip-text {
  font-variant-numeric: tabular-nums;
}

.channel-side-nav__user-donation-chip-hint {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.channel-side-nav__guest-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.channel-side-nav__login {
  width: 100%;
  justify-content: center;
}

/* Collapsed: hide menu panel only — brand row stays same horizontal layout as expanded */
#site-main-layout.site-main-layout--sidebar-collapsed {
  grid-template-columns: minmax(12.25rem, 17rem) minmax(0, 1fr) !important;
  gap: 1rem 1.25rem;
}

#site-main-layout.site-main-layout--sidebar-collapsed .site-sidebar-nav {
  overflow: visible;
}

#site-main-layout.site-main-layout--sidebar-collapsed .channel-side-nav__panel {
  display: none !important;
}

#site-main-layout.site-main-layout--sidebar-collapsed .channel-side-nav__rail-toggle-icon {
  transform: rotate(0deg);
}

#site-main-layout.site-main-layout--sidebar-collapsed .channel-side-nav__brand {
  border-bottom: none;
}

.channel-market-layout__hero-panel {
  margin-bottom: 0.85rem;
}

.channel-hero--rail.channel-hero--split {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0;
  width: 100%;
}

.channel-hero--rail .channel-hero__left {
  width: 100%;
  text-align: center;
}

.channel-hero--rail .channel-page-title {
  margin: 0;
  font-size: clamp(1.02rem, 1.1vw, 1.2rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.channel-hero--rail .channel-hero__right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

.channel-hero--rail .channel-hero__right .channel-market-toggle {
  align-self: stretch;
  flex-direction: column;
  width: 100%;
  gap: 0.35rem;
}

.channel-hero--rail.channel-hero--split.channel-hero--title-in-banner .channel-hero__left {
  display: none;
}

@media (max-width: 960px) {
  .site-main.site-main--with-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .site-mobile-rail-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    flex-shrink: 0;
    padding: max(0.4rem, env(safe-area-inset-top, 0px)) 0 0.7rem;
    position: sticky;
    top: 0;
    z-index: 48;
    margin-bottom: 0.35rem;
    background: linear-gradient(180deg, rgba(10, 10, 14, 0.98) 55%, rgba(10, 10, 14, 0.88) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  }

  .site-mobile-rail-brand {
    display: flex;
  }

  /* Drawer duplicates the sticky bar brand — show links only */
  #site-main-layout.site-mobile-rail-is-open .channel-side-nav__brand {
    display: none;
  }

  /* Rail lives off-canvas; main column is full width under the sticky Menu bar */
  .site-main.site-main--with-sidebar > .site-main__column {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    padding-top: 0.2rem;
  }

  .site-main__column > .site-page-banner-row:first-child {
    margin-top: 0.15rem;
  }

  .site-page-banner-home-split__title--solo {
    padding-top: 0.45rem;
  }

  .site-main.site-main--with-sidebar > .site-sidebar-nav {
    position: fixed !important;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(17.75rem, 91vw);
    max-height: none !important;
    margin: 0;
    z-index: 260;
    transform: translate3d(-104%, 0, 0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 0;
    border-right: 1px solid var(--border-strong);
    border-top: none;
    border-bottom: none;
    border-left: none;
    box-shadow: 12px 0 48px rgba(0, 0, 0, 0.5);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  #site-main-layout.site-mobile-rail-is-open > .site-sidebar-nav {
    transform: translate3d(0, 0, 0);
  }

  /* Desktop “collapse” hides the panel — force it visible inside the drawer */
  #site-main-layout.site-mobile-rail-is-open .channel-side-nav__panel {
    display: block !important;
  }

  /* Chevron must stay tappable above scrollable nav + avoid iOS double-tap delay */
  .channel-side-nav__brand {
    position: relative;
    z-index: 2;
  }

  .channel-side-nav__rail-toggle {
    min-width: 2.75rem;
    min-height: 2.75rem;
    touch-action: manipulation;
  }

  .channel-hero--rail .channel-hero__right .channel-market-toggle {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
}

@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .site-main.site-main--with-sidebar > .site-sidebar-nav {
    transition: none;
  }
}

.channel-sponsor-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  gap: 0.85rem 1.1rem;
  padding: 0;
  margin-top: 0.75rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.channel-sponsor-strip--bottom {
  margin-top: 0.65rem;
  margin-bottom: 0.25rem;
}

.channel-sponsor-slot {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
}

.channel-sponsor-slot:hover {
  transform: translateY(-3px);
  filter: brightness(1.07);
}

.channel-sponsor-slot:active {
  transform: translateY(-1px);
}

.channel-sponsor-slot:focus-visible {
  outline: 2px solid rgba(255, 140, 60, 0.85);
  outline-offset: 3px;
}

/* One size for all channel sponsor tiles (top + bottom): 585×75 — no chrome, image only */
.channel-sponsor-slot__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: min(100%, 585px);
  height: 75px;
  min-height: 75px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.channel-sponsor-slot__img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 520px) {
  .channel-sponsor-strip {
    padding: 0;
    gap: 0.65rem;
    grid-template-columns: 1fr;
  }

  .channel-sponsor-slot__frame {
    width: 100%;
    max-width: 585px;
    height: 68px;
    min-height: 68px;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .channel-sponsor-slot {
    transition: none;
  }

  .channel-sponsor-slot:hover,
  .channel-sponsor-slot:active {
    transform: none;
  }

  .channel-market-toggle-btn:hover {
    transform: none;
  }
}

.channel-page-title {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.2;
  min-width: 0;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.85));
}

.channel-page-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.45rem;
  background: var(--grad-secondary);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 126, 0, 0.25);
}

/* ——— Ad Auction (restricted nav + page) ——— */
.ad-auction-denied-page {
  display: flex;
  justify-content: center;
  padding: 1rem 0 2.5rem;
}

.ad-auction-denied-card {
  max-width: 26rem;
  width: 100%;
  text-align: center;
  padding: 2rem 1.75rem;
  background: linear-gradient(165deg, var(--panel) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.ad-auction-denied-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.1rem;
  border-radius: 14px;
  background: var(--accent-orange-dim);
  border: 1px solid rgba(255, 140, 0, 0.45);
  box-shadow: 0 0 20px rgba(255, 126, 0, 0.12);
  position: relative;
}

.ad-auction-denied-icon::before {
  content: "";
  position: absolute;
  inset: 14px 12px auto 12px;
  height: 10px;
  border: 2px solid rgba(255, 165, 80, 0.95);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

.ad-auction-denied-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  width: 22px;
  height: 16px;
  border: 2px solid rgba(255, 165, 80, 0.95);
  border-radius: 0 0 5px 5px;
  border-top: none;
}

.ad-auction-denied-card .channel-page-title,
.ad-auction-denied-card h2.channel-page-title {
  margin: 0 0 0.65rem;
}

.ad-auction-denied-card .channel-page-title::after,
.ad-auction-denied-card h2.channel-page-title::after {
  margin-left: auto;
  margin-right: auto;
}

.ad-auction-denied-lead,
.ad-auction-denied-stats {
  margin: 0.5rem 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.ad-auction-denied-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.35rem;
}

.ad-auction-page {
  max-width: 56rem;
  margin: 0 auto;
}

.ad-auction-page-lead {
  margin-top: 0.5rem;
  color: var(--text-soft);
}

.ad-auction-section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.ad-auction-page-disclaimer {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted, #9ca3af);
  font-style: italic;
  letter-spacing: 0.01em;
}

.ad-auction-staff-inline {
  font-weight: 600;
  color: #a78bfa;
}

.ad-auction-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ad-auction-alert--err {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.ad-auction-alert--ok {
  color: var(--ok);
  background: rgba(61, 214, 140, 0.12);
  border: 1px solid rgba(61, 214, 140, 0.35);
}

.ad-auction-alert--info {
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.ad-auction-alert--info a {
  color: var(--accent-bright, #7dd3fc);
}

.ad-auction-bid-dialog {
  margin: auto;
  padding: 0;
  border-radius: 16px;
  max-width: min(24rem, calc(100vw - 1.75rem));
  background: #16161c;
  background-color: #16161c;
  color: var(--text);
  opacity: 1;
  box-shadow:
    0 0 0 1px #2a2a32,
    0 24px 56px #000000;
  overflow: hidden;
}

.ad-auction-bid-dialog[open] {
  animation: ad-auction-dialog-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ad-auction-dialog-in {
  from {
    transform: scale(0.92) translateY(12px);
  }
  to {
    transform: scale(1) translateY(0);
  }
}

.ad-auction-bid-dialog--leading {
  background: #0f1814;
  background-color: #0f1814;
  border: 3px solid #3dd68c;
  box-shadow:
    0 0 0 1px #000000,
    0 24px 56px #000000;
}

.ad-auction-bid-dialog--outbid {
  background: #181010;
  background-color: #181010;
  border: 3px solid #f87171;
  box-shadow:
    0 0 0 1px #000000,
    0 24px 56px #000000;
}

.ad-auction-bid-dialog::backdrop {
  background: #000000;
  background-color: #000000;
}

.ad-auction-bid-dialog[open]::backdrop {
  animation: ad-auction-backdrop-in 0.32s ease-out;
}

@keyframes ad-auction-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ad-auction-bid-dialog__inner {
  padding: 1.5rem 1.5rem 1.35rem;
  text-align: center;
  background-color: inherit;
  border-radius: inherit;
}

.ad-auction-bid-dialog--leading .ad-auction-bid-dialog__inner {
  background-color: #0f1814;
}

.ad-auction-bid-dialog--outbid .ad-auction-bid-dialog__inner {
  background-color: #181010;
}

.ad-auction-bid-dialog__icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.ad-auction-bid-dialog__icon {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  position: relative;
  box-sizing: border-box;
}

.ad-auction-bid-dialog__icon--ok {
  background: #0d2218;
  border: 2px solid #3dd68c;
  box-shadow: none;
}

.ad-auction-bid-dialog__icon--ok::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 0.55rem;
  height: 1rem;
  border: solid #5fe3a1;
  border-width: 0 3px 3px 0;
  transform: translate(-50%, -50%) rotate(45deg);
  margin-top: -2px;
}

.ad-auction-bid-dialog__icon--warn {
  background: #2a1212;
  border: 2px solid #f87171;
  box-shadow: none;
}

.ad-auction-bid-dialog__icon--warn::before,
.ad-auction-bid-dialog__icon--warn::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #f87171;
  border-radius: 1px;
}

.ad-auction-bid-dialog__icon--warn::before {
  width: 3px;
  height: 1rem;
  top: 0.75rem;
}

.ad-auction-bid-dialog__icon--warn::after {
  width: 4px;
  height: 4px;
  bottom: 0.72rem;
  border-radius: 50%;
}

.ad-auction-bid-dialog__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.ad-auction-bid-dialog--leading .ad-auction-bid-dialog__eyebrow {
  color: #5fe3a1;
}

.ad-auction-bid-dialog--outbid .ad-auction-bid-dialog__eyebrow {
  color: #fca5a5;
}

.ad-auction-bid-dialog__title {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ad-auction-bid-dialog--leading .ad-auction-bid-dialog__title {
  color: #b8f5d3;
}

.ad-auction-bid-dialog--outbid .ad-auction-bid-dialog__title {
  color: #fecaca;
}

.ad-auction-bid-dialog__body {
  margin: 0 0 1.35rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
}

.ad-auction-bid-dialog__actions {
  margin: 0;
  display: flex;
  justify-content: stretch;
}

.ad-auction-bid-dialog__btn {
  width: 100%;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.ad-auction-bid-dialog__btn:hover {
  filter: brightness(1.06);
}

.ad-auction-bid-dialog__btn:active {
  transform: scale(0.98);
}

.ad-auction-bid-dialog .ad-auction-bid-dialog__btn--leading {
  background: #3dd68c !important;
  color: #061208 !important;
  box-shadow: 0 4px 0 #1e8f5c;
  border: none !important;
}

.ad-auction-bid-dialog .ad-auction-bid-dialog__btn--outbid {
  background: #ef4444 !important;
  color: #140505 !important;
  box-shadow: 0 4px 0 #991b1b;
  border: none !important;
}

.ad-auction-countdown {
  position: relative;
  margin: 0 auto 1.1rem;
  padding: 0.65rem 0.85rem 0.75rem;
  max-width: 22rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.14) 0%, rgba(20, 20, 24, 0.95) 55%);
  border: 1px solid rgba(255, 140, 0, 0.35);
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.2);
}

.ad-auction-countdown--ended {
  background: var(--panel-hover);
  border-color: var(--border-strong);
  box-shadow: none;
}

.ad-auction-countdown--zero {
  opacity: 0.85;
  border-color: var(--muted);
}

.ad-auction-countdown__heading {
  margin: 0 0 0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
}

.ad-auction-countdown__deadline {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.35;
  text-align: center;
}

.ad-auction-countdown__deadline time {
  font-weight: 700;
  color: var(--text);
}

.ad-auction-countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  max-width: 100%;
  margin: 0;
}

@media (max-width: 520px) {
  .ad-auction-countdown__grid {
    gap: 0.3rem;
  }
}

.ad-auction-countdown__unit {
  text-align: center;
  padding: 0.3rem 0.2rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  min-width: 0;
}

.ad-auction-countdown__num {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: #ffb347;
}

.ad-auction-countdown__unit-label {
  display: block;
  font-size: 0.52rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 0.12rem;
  line-height: 1.15;
}

.ad-auction-countdown__ended-msg {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.ad-auction-countdown__ended-msg time {
  font-weight: 600;
  color: var(--text-soft);
}

.ad-auction-countdown__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ad-auction-claim {
  margin-bottom: 1.5rem;
}

.ad-auction-panel--claim {
  border-color: rgba(91, 159, 255, 0.35);
}

.ad-auction-claim-lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.ad-auction-claim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}

.ad-auction-claim-card {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.ad-auction-claim-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-soft);
}

.ad-auction-claim-card__meta {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.ad-auction-claim-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ad-auction-section-title--solo {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.ad-auction-section-head {
  margin-bottom: 1rem;
}

.ad-auction-section-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.ad-auction-section-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.ad-auction-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.ad-auction-slot-card {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ad-auction-slot-card:hover {
  border-color: rgba(255, 140, 0, 0.35);
  box-shadow: 0 6px 28px rgba(255, 126, 0, 0.08);
}

.ad-auction-slot-card--leading {
  background: rgba(61, 214, 140, 0.08);
  border-color: rgba(61, 214, 140, 0.55);
  box-shadow: 0 4px 24px rgba(61, 214, 140, 0.12);
}

.ad-auction-slot-card--leading:hover {
  border-color: rgba(61, 214, 140, 0.85);
  box-shadow: 0 6px 28px rgba(61, 214, 140, 0.18);
}

.ad-auction-slot-card--leading .ad-auction-slot-card__accent,
.ad-auction-slot-card--leading .ad-auction-slot-card__accent[data-slot="2"],
.ad-auction-slot-card--leading .ad-auction-slot-card__accent[data-slot="3"] {
  background: linear-gradient(180deg, #5fe3a1, #2ea86a);
}

.ad-auction-slot-card--outbid {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 4px 24px rgba(248, 113, 113, 0.1);
}

.ad-auction-slot-card--outbid:hover {
  border-color: rgba(248, 113, 113, 0.75);
  box-shadow: 0 6px 28px rgba(248, 113, 113, 0.15);
}

.ad-auction-slot-card--outbid .ad-auction-slot-card__accent,
.ad-auction-slot-card--outbid .ad-auction-slot-card__accent[data-slot="2"],
.ad-auction-slot-card--outbid .ad-auction-slot-card__accent[data-slot="3"] {
  background: linear-gradient(180deg, #f87171, #dc2626);
}

.ad-auction-slot-card__accent {
  width: 5px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #ff8c00, #ff5c00);
}

.ad-auction-slot-card__accent[data-slot="2"] {
  background: linear-gradient(180deg, #5b9fff, #3b6fcc);
}

.ad-auction-slot-card__accent[data-slot="3"] {
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
}

.ad-auction-slot-card__body {
  flex: 1;
  padding: 1.1rem 1.15rem 1.15rem;
  min-width: 0;
}

.ad-auction-slot-card__top {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.ad-auction-slot-card__top-main {
  min-width: 0;
  flex: 1;
}

.ad-auction-slot-badge {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 0.28rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  border-radius: 6px;
  white-space: nowrap;
  text-align: center;
}

.ad-auction-slot-badge--highest {
  color: #0d1f14;
  background: linear-gradient(180deg, #5fe3a1, #3dd68c);
  border: 1px solid rgba(61, 214, 140, 0.85);
  box-shadow: 0 0 12px rgba(61, 214, 140, 0.25);
}

.ad-auction-slot-badge--outbid {
  color: #1f0a0a;
  background: linear-gradient(180deg, #fca5a5, #f87171);
  border: 1px solid rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.22);
}

.ad-auction-slot-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.35;
}

.ad-auction-slot-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 0.85rem;
  align-items: start;
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ad-auction-slot-stats__main {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.ad-auction-slot-stats__main .ad-auction-slot-stat {
  margin: 0;
}

.ad-auction-slot-stat--current-bid {
  margin: 0;
}

.ad-auction-slot-stats__side {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  min-width: 0;
}

.ad-auction-slot-stats__side .ad-auction-slot-stat {
  margin: 0;
  text-align: right;
}

.ad-auction-slot-stats__side .ad-auction-slot-bid-no-dd {
  justify-content: flex-end;
}

.ad-auction-slot-stat {
  margin: 0;
}

.ad-auction-slot-bid-no-dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
}

.ad-auction-slot-bid-no-dd .js-auction-total-bids-word,
.ad-auction-slot-bid-no-dd .js-auction-bidders-word {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
}

.ad-auction-slot-stat dt {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ad-auction-slot-stat.ad-auction-slot-stat--bid-no dt {
  text-transform: none;
  letter-spacing: 0.04em;
}

.ad-auction-slot-stat dd {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.ad-auction-slot-stat--money {
  font-variant-numeric: tabular-nums;
  color: #ffb347;
}

.ad-auction-leading-msg {
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-soft);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 8px;
}

.ad-auction-bid-hint {
  margin: -0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.ad-auction-slot-closed-msg {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.ad-auction-bid-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.ad-auction-bid-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.ad-auction-bid-stepper {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
}

.ad-auction-bid-stepper .ad-auction-input-wrap--flex {
  flex: 1;
  min-width: 0;
}

.ad-auction-bid-step-btn {
  box-sizing: border-box;
  min-width: 2.35rem;
  padding: 0.45rem 0.5rem;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 140, 0, 0.45);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.ad-auction-bid-step-btn:hover {
  background: rgba(255, 126, 0, 0.12);
  border-color: rgba(255, 165, 80, 0.75);
  color: #ffb347;
}

.ad-auction-bid-step-btn:active {
  transform: scale(0.97);
}

.ad-auction-bid-step-btn:focus-visible {
  outline: 2px solid rgba(255, 140, 0, 0.75);
  outline-offset: 2px;
}

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

.ad-auction-input-prefix {
  position: absolute;
  left: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}

.ad-auction-bid-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ad-auction-bid-input--padded {
  padding-left: 1.65rem;
}

.ad-auction-bid-input:focus {
  outline: none;
  border-color: rgba(255, 140, 0, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.12);
}

.ad-auction-submit {
  width: 100%;
  justify-content: center;
  font-weight: 700;
}

.ad-auction-my {
  margin-bottom: 2.5rem;
}

.ad-auction-panel {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.ad-auction-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.ad-auction-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.ad-auction-panel__meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ad-auction-panel__empty {
  margin: 0;
  padding: 1.25rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.ad-auction-table-wrap {
  margin: 0;
}

.ad-auction-table {
  margin: 0;
}

.ad-auction-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ad-auction-table-money {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffb347;
}

.ad-auction-admin {
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

.ad-auction-admin-shell {
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.07) 0%, var(--panel) 55%);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.15);
}

.ad-auction-admin__head {
  margin-bottom: 1rem;
}

.ad-auction-admin__title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #d8c4ff;
}

.ad-auction-admin__sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.ad-auction-subhead {
  margin: 1.25rem 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-soft);
}

.ad-auction-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.ad-auction-admin-settings {
  margin-bottom: 1.5rem;
  padding: 1rem 1.05rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ad-auction-admin-settings-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.ad-auction-admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.ad-auction-admin-field--btn {
  justify-content: flex-end;
}

.ad-auction-filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.ad-auction-filter-select {
  min-width: 9rem;
  padding: 0.5rem 0.65rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.channel-market-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px;
  gap: 0.35rem;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.channel-market-toggle-btn {
  margin: 0;
  border: none;
  background: transparent;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.18s cubic-bezier(0.33, 1, 0.68, 1);
}

.channel-market-toggle-btn:hover:not(.is-active) {
  color: var(--text-soft);
  transform: translateY(-1px);
}

.channel-market-toggle-btn.is-active[data-market-panel="buy"] {
  color: var(--ok);
  background: rgba(61, 214, 140, 0.18);
  box-shadow: 0 0 0 1px rgba(61, 214, 140, 0.5), 0 0 14px rgba(61, 214, 140, 0.15);
}

.channel-market-toggle-btn.is-active[data-market-panel="sell"] {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.55), 0 0 14px rgba(59, 130, 246, 0.22);
}

.channel-market-toggle-count {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.channel-market-toggle-btn:not(.is-active) .channel-market-toggle-count {
  color: var(--muted);
}

.channel-market-toggle-btn.is-active[data-market-panel="buy"] .channel-market-toggle-count {
  color: inherit;
  opacity: 0.9;
}

.channel-market-toggle-btn.is-active[data-market-panel="sell"] .channel-market-toggle-count {
  color: inherit;
  opacity: 0.9;
}

/* ——— Channel market feed (OSRS / RS3) ——— */
.market-feed-section {
  margin-bottom: 0.85rem;
}

.market-feed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
}

.market-feed-toolbar-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  flex-shrink: 0;
}

.market-column-first-toggle .channel-market-toggle-btn.is-active[data-column-first="buy"] {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.18);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.5), 0 0 14px rgba(34, 197, 94, 0.15);
}

.market-column-first-toggle .channel-market-toggle-btn.is-active[data-column-first="sell"] {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.18);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.5), 0 0 14px rgba(248, 113, 113, 0.15);
}

.market-feed-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.65rem;
  margin-left: auto;
}

.market-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 0 rgba(255, 140, 0, 0.1);
  position: relative;
  z-index: 2;
}

.market-feed-head-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  flex: 1;
  min-width: 0;
}

.market-feed-head-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  min-width: 0;
}

.market-feed-side-toggle a.channel-market-toggle-btn {
  text-decoration: none;
}

.market-feed-side-toggle--title {
  flex-shrink: 0;
}

.market-feed-head .market-feed-title {
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
  flex: 0 1 auto;
  min-width: 0;
}

/* Primary listing heading (was separate Sellers/Buyers + Selling/Buying lines) */
.market-feed-head .market-feed-title.market-feed-title--primary {
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
  box-shadow: none;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.market-feed-head .market-feed-title.market-feed-title--primary .market-feed-side-count {
  font-weight: 700;
  margin-left: 0.15rem;
}

.market-feed-refresh-timer {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  vertical-align: middle;
}

.market-feed-refresh-ring {
  display: block;
  flex-shrink: 0;
  transform: none;
}

.market-feed-refresh-ring__track {
  stroke: rgba(255, 255, 255, 0.12);
}

.market-feed-refresh-ring__progress {
  stroke: var(--accent, #ff8c00);
  transition: stroke-dashoffset 0.15s linear;
}

.market-feed-refresh-timer--background .market-feed-refresh-ring__progress {
  stroke: rgba(255, 255, 255, 0.35);
  transition: none;
}

.market-feed-refresh-timer--busy .market-feed-refresh-ring {
  transform-origin: 50% 50%;
  animation: market-feed-refresh-spin 0.75s linear infinite;
}

.market-feed-refresh-timer--busy .market-feed-refresh-ring__progress {
  stroke: var(--muted);
  stroke-dashoffset: 0 !important;
  stroke-dasharray: 14 42 !important;
}

/* Socket.IO connected: no countdown — static ring (JS sets dashoffset to 0). */
.market-feed-refresh-timer--socket-live .market-feed-refresh-ring {
  transform: none;
  animation: none;
}

.market-feed-refresh-timer--socket-live .market-feed-refresh-ring__progress {
  stroke: var(--accent, #ff8c00);
  opacity: 0.95;
}

@keyframes market-feed-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.ip-audit-user-col {
  min-width: 10rem;
  vertical-align: middle;
}

.ip-audit-user-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  margin: -0.2rem -0.35rem;
  padding: 0.2rem 0.35rem;
  transition: background 0.15s ease;
}

.ip-audit-user-link:hover {
  background: rgba(255, 140, 0, 0.1);
}

.ip-audit-user-link:hover .ip-audit-user-username {
  color: var(--accent-bright);
}

.ip-audit-user-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.ip-audit-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
}

.ip-audit-user-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
}

.ip-audit-user-username {
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

.ip-audit-user-id {
  font-size: 0.72rem;
  color: var(--text-soft);
  font-family: var(--font-mono, ui-monospace, monospace);
  background: transparent;
  padding: 0;
  border: none;
}

.ip-audit-crossref-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 147, 57, 0.35);
  background: rgba(255, 147, 57, 0.1);
  font-size: 0.92rem;
}

.ip-audit-crossref-banner__clear {
  margin-left: 0.35rem;
  color: var(--accent-bright);
  text-decoration: none;
}

.ip-audit-crossref-banner__clear:hover {
  text-decoration: underline;
}

.ip-audit-ip-col {
  vertical-align: top;
  min-width: 9rem;
}

.ip-audit-ip-link {
  text-decoration: none;
  color: inherit;
}

.ip-audit-ip-link:hover code {
  color: var(--accent-bright);
}

.ip-audit-ip-shared-badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #1a1208;
  background: linear-gradient(95deg, #ffc899 0%, #ff9a4a 100%);
  border: 1px solid rgba(255, 154, 74, 0.55);
}

.ip-audit-ip-shared-badge:hover {
  filter: brightness(1.06);
}

.ip-audit-same-ip-col {
  vertical-align: top;
  min-width: 11rem;
  max-width: 16rem;
}

.ip-audit-linked-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ip-audit-linked-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.38rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.ip-audit-linked-chip:hover {
  border-color: rgba(255, 147, 57, 0.45);
  background: rgba(255, 147, 57, 0.08);
}

.ip-audit-linked-chip__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ip-audit-linked-chip__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  min-width: 0;
}

.ip-audit-linked-chip__name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 10rem;
}

.ip-audit-linked-chip__id {
  font-size: 0.68rem;
  color: var(--text-soft);
  background: transparent;
  padding: 0;
  border: none;
}

.ip-audit-linked-more {
  font-size: 0.78rem;
  color: var(--accent-bright);
  text-decoration: none;
}

.ip-audit-linked-more:hover {
  text-decoration: underline;
}

.ip-audit-date-list {
  margin: 0;
  padding-left: 1.1rem;
  max-height: 12rem;
  overflow-y: auto;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.ip-audit-dates {
  max-width: 14rem;
  vertical-align: top;
}

.ip-audit-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.ip-audit-stats__item strong {
  color: var(--text);
  font-weight: 600;
}

.ip-audit-stats__link {
  color: inherit;
  text-decoration: none;
}

.ip-audit-stats__link:hover strong {
  color: var(--accent);
  text-decoration: underline;
}

.ip-audit-stats__sep {
  opacity: 0.55;
}

.ip-audit-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.ip-audit-view-tabs__tab {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.ip-audit-view-tabs__tab:hover {
  color: var(--text);
  border-color: var(--accent);
}

.ip-audit-view-tabs__tab.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
}

.ip-audit-user-index {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ip-audit-user-index__item {
  margin: 0;
}

.ip-audit-user-index__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
}

.ip-audit-user-index__link:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
}

.ip-audit-user-index__avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.ip-audit-user-index__main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.ip-audit-user-index__name {
  font-weight: 600;
  color: var(--text);
}

.ip-audit-user-index__id {
  font-size: 0.78rem;
  color: var(--muted);
}

.ip-audit-user-index__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex: 0 0 auto;
  text-align: right;
  font-size: 0.85rem;
}

.ip-audit-user-index__stat strong {
  color: var(--text);
}

.ip-audit-user-index__last {
  font-size: 0.78rem;
  white-space: nowrap;
}

.ip-audit-filters {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.ip-audit-filters-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.ip-audit-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.ip-audit-filter-field:first-child {
  flex: 0 1 11rem;
}

.ip-audit-filter-field:nth-child(2) {
  flex: 1 1 14rem;
}

.ip-audit-per-page-above {
  margin: 0.35rem 0 0.85rem;
}

.ip-audit-range {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.86rem;
}

.ip-audit-pager {
  margin-bottom: 1rem;
}

.ip-audit-filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.ip-audit-filter-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.65rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.ip-audit-filter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.15);
}

.ip-audit-filter-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.35rem 0.1rem 0.15rem;
  cursor: pointer;
  user-select: none;
}

.ip-audit-filter-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.ip-audit-filter-check__label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.ip-audit-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 1px;
}

.ip-audit-filter-error {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--danger);
}

/* Banner ad clicks (/banner-stats) */
.banner-stats-filters {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.banner-stats-filters-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.banner-stats-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.banner-stats-filter-field--dest {
  flex: 1 1 16rem;
}

.banner-stats-filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.banner-stats-filter-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.65rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.banner-stats-filter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.15);
}

.banner-stats-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 1px;
}

.banner-stats-filter-hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 42rem;
}

/* Rate history (/statistics) */
.statistics-personal {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem 1.15rem;
}

.statistics-personal__title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.statistics-market-title {
  margin: 0 0 0.85rem;
}

.statistics-personal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
}

.statistics-personal-card {
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.statistics-personal-card__label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.statistics-personal-card__user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.statistics-personal-card__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.statistics-personal-card__avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.06);
}

.statistics-personal-card__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.statistics-personal-card__name {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.statistics-personal-card__handle {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.statistics-personal-card__count {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-bright);
}

.statistics-personal-card__empty {
  margin: 0;
  font-size: 0.88rem;
}

.statistics-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  align-items: end;
  gap: 0.75rem 1rem;
}

.statistics-filters-actions {
  grid-column: 1 / -1;
}

.statistics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}

.statistics-summary__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.statistics-summary__value {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.statistics-chart-panel {
  padding: 1rem 1.1rem 1.15rem;
  margin-bottom: 1rem;
}

.statistics-status {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

.statistics-chart-wrap {
  position: relative;
  min-height: 22rem;
  height: min(52vh, 28rem);
  width: 100%;
}

.statistics-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.ip-audit-flash {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.ip-audit-flash--ok {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

.ip-audit-flash--err {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}

.ip-audit-block-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.ip-audit-reason-input {
  width: 10rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
}

.ip-audit-blocked-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft, #949ba4);
  margin: 2rem 0 0.75rem;
}

.ip-audit-blocked-ip {
  color: #f87171;
}

.ip-audit-unblock-form {
  display: inline;
}

.ip-audit-manual-block-form {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

/* Narrow screens: keep columns readable (avoid fixed-layout character stacking). */
@media (max-width: 768px) {
  .ip-audit-table-wrap.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .ip-audit-table-wrap .ip-audit-table {
    min-width: 54rem !important;
    width: auto;
    table-layout: auto;
  }

  .ip-audit-table th,
  .ip-audit-table td {
    word-break: normal;
    overflow-wrap: normal;
  }

  .ip-audit-user-col {
    min-width: 9.5rem;
  }

  .ip-audit-user-id,
  .ip-audit-linked-chip__id {
    white-space: nowrap;
    word-break: normal;
    font-size: 0.68rem;
  }

  .ip-audit-ip-col {
    min-width: 10.5rem;
  }

  .ip-audit-ip-col code {
    white-space: nowrap;
    word-break: normal;
  }

  .ip-audit-same-ip-col {
    min-width: 10rem;
    max-width: none;
  }

  .ip-audit-dates {
    min-width: 8.5rem;
    max-width: none;
    white-space: nowrap;
  }

  .ip-audit-block-form {
    flex-direction: column;
    align-items: stretch;
    min-width: 8.5rem;
  }

  .ip-audit-reason-input {
    width: 100%;
    min-width: 0;
  }

  .ip-audit-filters-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .ip-audit-filter-field:first-child,
  .ip-audit-filter-field:nth-child(2) {
    flex: 1 1 auto;
    width: 100%;
  }

  .ip-audit-filter-actions {
    width: 100%;
    padding-bottom: 0;
  }
}

.ip-audit-manual-block-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.market-feed-head-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.listing-create-target-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.9rem;
}

.listing-create-target-grid-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
}

/* Add listing popup: OSRS/RS3 + Buy/Sell centered as one cluster */
#listing-create-dialog .listing-create-target-grid {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box;
}

#listing-create-dialog .listing-create-target-grid-inner {
  justify-content: center !important;
}

/* ——— Add listing modal (image 2 ref: near-black shell, recessed rate, solid Sell pill) ——— */
#listing-create-dialog .listing-create-dialog-inner {
  background: #12141d;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 0 1px rgba(255, 95, 70, 0.12),
    0 28px 56px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  padding: 2rem 1.85rem 2rem;
}

#listing-create-dialog .listing-create-dialog-accent {
  background: linear-gradient(90deg, #ff8a3d 0%, #ff5c45 50%, #e84555 100%) !important;
  opacity: 1 !important;
  height: 3px;
}

#listing-create-dialog .market-filters-dialog-x {
  background: rgba(8, 10, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(148, 163, 184, 0.95);
}

#listing-create-dialog .market-filters-dialog-x:hover {
  background: rgba(22, 26, 38, 0.98);
  color: #f1f5f9;
}

#listing-create-dialog .custom-tag-delete-dialog__title {
  text-align: center;
  margin-top: 0.5rem;
  color: #fdeef0;
  text-shadow: 0 0 18px rgba(255, 190, 175, 0.22);
  font-weight: 800;
}

#listing-create-dialog .custom-tag-delete-dialog__lead {
  text-align: center;
  margin: 0 auto 1rem;
  max-width: 22rem;
  color: rgba(200, 210, 230, 0.88);
  font-size: 0.84rem;
  line-height: 1.45;
}

#listing-create-dialog .listing-create-fields {
  margin-top: 0.5rem;
}

#listing-create-dialog .listing-create-fields .sub-redeem-label {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  color: rgba(148, 163, 184, 0.95);
}

#listing-create-dialog .listing-create-rate-heading-row .listing-create-rate-main-label {
  width: auto !important;
  margin-bottom: 0 !important;
}

#listing-create-dialog .listing-create-field--amount .sub-redeem-input {
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  color: #f1f5f9;
  padding: 0.6rem 0.75rem;
}

#listing-create-dialog .listing-create-field--amount .sub-redeem-input:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

/* Recessed dark field — no hard outline (image 2) */
#listing-create-dialog .listing-create-field--method .sub-redeem-input {
  background: #08090e;
  border: none;
  border-radius: 10px;
  color: #f1f5f9;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.72);
}

#listing-create-dialog .listing-create-field--method .sub-redeem-input:focus {
  outline: none;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.72),
    0 0 0 2px rgba(59, 130, 246, 0.28);
}

#listing-create-dialog .listing-create-field--rate {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#listing-create-dialog .listing-create-rate-heading-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

#listing-create-dialog .listing-create-rate-heading-row .listing-create-fixed-caption {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: rgba(186, 198, 218, 0.92);
  white-space: nowrap;
}

/*
 * Rate row: flex beats grid when cached CSS omitted grid; !important beats .sub-redeem-input { width:100% } (later in file).
 */
#listing-create-dialog .listing-create-rate-row {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.55rem 0.75rem !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* Single recessed box: "0." + digits inside one outline */
#listing-create-dialog .listing-create-rate-input-shell {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  gap: 0.08rem !important;
  padding: 0.42rem 0.45rem 0.42rem 0.5rem !important;
  background: #08090e !important;
  border-radius: 10px !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.72) !important;
  min-width: 0 !important;
}

#listing-create-dialog .listing-create-rate-input-shell:focus-within {
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.72),
    0 0 0 2px rgba(59, 130, 246, 0.3) !important;
}

#listing-create-dialog .listing-create-rate-input-shell .listing-create-rate-prefix {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(148, 163, 184, 0.9);
  flex: 0 0 auto !important;
  line-height: 1;
  white-space: nowrap !important;
  user-select: none !important;
}

/* Inner input: no outer box; beats `.sub-redeem-input { width:100% }` */
#listing-create-dialog input#listing-create-rate.sub-redeem-input.listing-create-rate-input {
  box-sizing: border-box !important;
  width: 4.25rem !important;
  min-width: 2.75rem !important;
  max-width: 5.25rem !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.88rem !important;
  text-align: left !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: #f1f5f9 !important;
  box-shadow: none !important;
}

#listing-create-dialog input#listing-create-rate.sub-redeem-input.listing-create-rate-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Sliding toggle on same row as rate box (track/knob from global .listing-create-fixed-toggle-*) */
#listing-create-dialog .listing-create-fixed-inline {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

#listing-create-dialog .market-filters-dialog-actions.sub-redeem-actions {
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

#listing-create-dialog #listing-create-cancel.btn.btn-ghost {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  background: rgba(30, 32, 44, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e8eaef !important;
  font-weight: 600;
  box-shadow: none;
}

#listing-create-dialog #listing-create-cancel.btn.btn-ghost:hover {
  background: rgba(45, 48, 62, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f1f5f9 !important;
}

#listing-create-dialog #listing-create-submit.btn-primary {
  padding: 0.65rem 1.45rem;
  border-radius: 8px;
  font-weight: 800;
  color: #0a0b0f;
  background: linear-gradient(180deg, #f5b041 0%, #e59116 45%, #d35400 100%);
  border: none;
  box-shadow:
    0 0 20px rgba(243, 156, 18, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

#listing-create-dialog #listing-create-submit.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0 28px rgba(243, 156, 18, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

#listing-create-dialog #listing-create-game-tabs.channel-market-toggle,
#listing-create-dialog #listing-create-side-tabs.channel-market-toggle {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.1);
}

#listing-create-dialog #listing-create-side-tabs .channel-market-toggle-btn:not(.is-active) {
  color: rgba(148, 163, 184, 0.85);
}

#listing-create-dialog #listing-create-game-tabs .channel-market-toggle-btn:not(.is-active) {
  color: rgba(148, 163, 184, 0.85);
}

/* Active game pill — orange ring + cyan label (image 2) */
#listing-create-dialog #listing-create-game-tabs .channel-market-toggle-btn.is-active {
  color: #22d3ee !important;
  background: rgba(255, 140, 0, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 140, 60, 0.75),
    0 0 14px rgba(255, 140, 0, 0.18);
}

/* Sell selected — solid blue pill + white text (image 2; overrides translucent sell chip) */
#listing-create-dialog #listing-create-side-tabs .channel-market-toggle-btn.is-active[data-market-panel="sell"] {
  color: #ffffff !important;
  background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.9),
    0 4px 16px rgba(37, 99, 235, 0.45);
}

/* Buy selected in this modal — solid green + white for parity when Buy is active */
#listing-create-dialog #listing-create-side-tabs .channel-market-toggle-btn.is-active[data-market-panel="buy"] {
  color: #ffffff !important;
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.85),
    0 4px 16px rgba(22, 163, 74, 0.38);
}

/* Gold “Add listing” dialog + Account hub listing modal — same active chip */
#listing-create-game-tabs .channel-market-toggle-btn.is-active,
#ah-seg-owner .channel-market-toggle-btn.is-active,
#ah-seg-login .channel-market-toggle-btn.is-active {
  color: var(--accent-bright);
  background: rgba(255, 140, 0, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.42), 0 0 12px rgba(255, 126, 0, 0.12);
}

.listing-create-fixed-caption {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  user-select: none;
}

.listing-create-fixed-toggle {
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
}

.listing-create-fixed-toggle:focus-visible {
  outline: 2px solid rgba(255, 140, 60, 0.85);
  outline-offset: 3px;
}

.listing-create-fixed-toggle-track {
  display: block;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.listing-create-fixed-toggle[aria-checked="true"] .listing-create-fixed-toggle-track {
  background: rgba(255, 140, 60, 0.38);
  border-color: rgba(255, 160, 80, 0.55);
}

.listing-create-fixed-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.5rem - 4px);
  height: calc(1.5rem - 4px);
  border-radius: 50%;
  background: #f2f2f2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.listing-create-fixed-toggle[aria-checked="true"] .listing-create-fixed-toggle-knob {
  transform: translateX(1.25rem);
}

@media (prefers-reduced-motion: reduce) {
  .listing-create-fixed-toggle-track,
  .listing-create-fixed-toggle-knob {
    transition: none;
  }
}

.listing-create-feedback-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.listing-create-feedback-msg {
  flex: 1 1 12rem;
  min-width: 0;
}

a.listing-create-discord-jump {
  flex-shrink: 0;
  text-decoration: none;
}

/* Success state: same modal shell, form swapped for themed confirmation */
.listing-dialog-success-panel {
  padding: 0.35rem 0 0.5rem;
  text-align: center;
}

.listing-dialog-success-panel .listing-dialog-success-icon {
  width: 3.35rem;
  height: 3.35rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--ok-bg);
  border: 2px solid rgba(61, 214, 140, 0.5);
  box-shadow: 0 0 28px rgba(61, 214, 140, 0.22);
  position: relative;
}

.listing-dialog-success-panel .listing-dialog-success-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 0.55rem;
  height: 1.05rem;
  border: solid var(--ok);
  border-width: 0 3px 3px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.listing-dialog-success-title {
  color: #bbf7d0 !important;
  text-shadow: 0 0 22px rgba(34, 197, 94, 0.28);
}

.listing-dialog-success-lead {
  margin-bottom: 1.15rem !important;
  color: var(--text-soft, #949ba4);
}

.listing-dialog-success-panel .market-filters-dialog-actions.sub-redeem-actions {
  justify-content: center;
}

#listing-create-dialog.listing-dialog--success .listing-create-dialog-accent {
  background: linear-gradient(90deg, #86efac, #22c55e, #15803d);
  opacity: 1;
}

#listing-edit-dialog.listing-dialog--success .listing-edit-dialog-accent {
  background: linear-gradient(90deg, #86efac, #22c55e, #15803d);
  opacity: 1;
}

.market-feed-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0.38rem 0.65rem 0.38rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(0, 40, 80, 0.12));
  border: 1px solid rgba(0, 210, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 12px rgba(0, 114, 255, 0.08);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.market-feed-filters-btn:hover {
  color: var(--text);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.12), 0 4px 18px rgba(0, 114, 255, 0.14);
}

.market-feed-filters-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.market-feed-filters-icon {
  flex-shrink: 0;
  opacity: 0.9;
  color: var(--titan-cyan);
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.35));
}

.market-filters-dialog {
  padding: 0;
  border: none;
  max-width: min(32rem, calc(100vw - 1.5rem));
  width: 100%;
  background: transparent;
}

.market-filters-dialog::backdrop {
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(8px);
}

.market-filters-dialog-inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-elevated) 0%, rgba(12, 18, 32, 0.98) 100%);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 14px;
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(255, 140, 0, 0.08),
    0 0 40px rgba(0, 114, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 1.25rem 1.35rem 1.35rem;
}

.market-filters-dialog-accent {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--titan-blue), var(--titan-cyan), var(--titan-orange), var(--titan-gold));
  opacity: 0.92;
  pointer-events: none;
}

.market-filters-dialog-title {
  margin: 0.35rem 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.22);
}

.market-filters-dialog-lead {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.market-filters-dialog-x {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.15rem;
  height: 2.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
  z-index: 2;
}

.market-filters-dialog-x:hover {
  color: var(--text);
  background: var(--panel-hover);
}

.market-filters-dialog-actions {
  margin-top: 0.5rem;
}

.market-rate-filter-badge {
  margin-left: 0.15rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--titan-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.28);
  border-radius: 999px;
}

.market-listing-filter-fieldset {
  border: none;
  margin: 0.55rem 0 0;
  padding: 0;
  min-width: 0;
}

.market-listing-filter-fieldset--flush {
  margin-top: 0;
}

.market-listing-filter-legend {
  padding: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.market-listing-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.45rem 0.65rem;
  align-items: end;
}

.market-listing-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.market-listing-filter-field--grow {
  grid-column: 1 / -1;
}

.market-listing-filter-field--swap {
  grid-column: 1 / -1;
}

.market-listing-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
}

.market-listing-filter-checkbox input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent, #ff8c00);
  cursor: pointer;
}

.market-listing-filter-input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
}

.market-listing-filter-input:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}

.market-rate-filter {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  padding: 0.35rem 0 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.market-rate-filter-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.market-rate-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.market-rate-filter-actions .btn-sm {
  padding: 0.22rem 0.5rem;
  font-size: 0.7rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.market-feed-panel {
  min-height: 2rem;
}

.market-feed-dual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: start;
}

.market-feed-dual--swapped #market-sell-panel {
  order: 2;
}

.market-feed-dual--swapped #market-buy-panel {
  order: 1;
}

.market-feed-dual__col {
  min-width: 0;
  margin-bottom: 0;
}

.market-feed-card--buy.panel {
  border: 2px solid rgba(34, 197, 94, 0.55);
  border-left: 2px solid rgba(34, 197, 94, 0.55);
  background: var(--panel);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.market-feed-card--buy.panel:hover {
  background: var(--panel-hover);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(34, 197, 94, 0.2), 0 0 24px rgba(34, 197, 94, 0.12);
}

.market-feed-card--sell.panel {
  border: 2px solid rgba(248, 113, 113, 0.55);
  border-left: 2px solid rgba(248, 113, 113, 0.55);
  background: var(--panel);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(248, 113, 113, 0.08);
}

.market-feed-card--sell.panel:hover {
  background: var(--panel-hover);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(248, 113, 113, 0.2), 0 0 24px rgba(248, 113, 113, 0.12);
}

/* Listing grid sits on neutral panel — no green/red wash between cards */
.market-feed-panel-inner {
  background: var(--panel);
  border-radius: calc(var(--radius-sm) - 2px);
}

.market-feed-card--buy .market-feed-side-title__icon {
  color: #4ade80;
}

.market-feed-card--buy .market-feed-side-title__label {
  color: #4ade80;
}

.market-feed-card--sell .market-feed-side-title__icon {
  color: #fca5a5;
}

.market-feed-card--sell .market-feed-side-title__label {
  color: #fca5a5;
}

.market-feed-dual__col .market-post-grid {
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

@media (max-width: 1100px) {
  .market-feed-dual {
    grid-template-columns: 1fr;
  }
}

.market-feed-side-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--border);
}

.market-feed-side-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  min-width: 0;
  padding: 0.28rem 0.5rem 0.28rem 0.38rem;
  border-radius: var(--radius-sm);
}

.market-feed-card--buy .market-feed-side-title {
  background: rgba(34, 197, 94, 0.14);
}

.market-feed-card--sell .market-feed-side-title {
  background: rgba(248, 113, 113, 0.14);
}

.market-feed-side-title__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  line-height: 0;
}

.market-feed-side-title__icon-svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.market-feed-card--buy .market-feed-side-title__icon-svg--up {
  filter:
    drop-shadow(0 0 4px rgba(74, 222, 128, 0.85))
    drop-shadow(0 0 12px rgba(34, 197, 94, 0.45));
}

.market-feed-card--sell .market-feed-side-title__icon-svg--down {
  filter:
    drop-shadow(0 0 4px rgba(252, 165, 165, 0.85))
    drop-shadow(0 0 12px rgba(248, 113, 113, 0.45));
}

.market-feed-side-title__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}

.market-feed-side-title__label {
  font-size: clamp(0.88rem, 1.6vw, 0.98rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.12;
  color: var(--text);
}

.market-feed-side-title__count {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.market-feed-side-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.4rem 0.65rem 0.4rem 0.72rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  flex-shrink: 0;
}

.market-feed-side-sort__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.market-feed-side-sort__select {
  margin: 0;
  padding: 0 1.05rem 0 0;
  border: none;
  background-color: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23a9adb8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 12px 12px;
}

.market-feed-side-sort__select option {
  background-color: var(--panel);
  color: var(--text);
}

.market-feed-side-sort__select:focus {
  outline: none;
}

.market-feed-side-sort:focus-within {
  border-color: rgba(255, 140, 60, 0.35);
  box-shadow: 0 0 0 2px rgba(255, 126, 0, 0.12);
}

@media (max-width: 520px) {
  .market-feed-side-head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
  }

  .market-feed-side-title {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.3rem 0.42rem 0.3rem 0.38rem;
  }

  .market-feed-side-title__icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .market-feed-side-title__icon-svg {
    width: 1.22rem;
    height: 1.22rem;
  }

  .market-feed-side-title__label {
    font-size: 0.86rem;
  }

  .market-feed-side-title__count {
    font-size: 0.66rem;
  }

  .market-feed-side-sort {
    flex: 0 0 auto;
    max-width: min(11.5rem, 46vw);
    padding: 0.32rem 0.42rem 0.32rem 0.5rem;
    gap: 0.28rem;
  }

  .market-feed-side-sort__label {
    font-size: 0.7rem;
  }

  .market-feed-side-sort__select {
    font-size: 0.72rem;
    max-width: 5.75rem;
  }
}

.market-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: stretch;
  position: relative;
  z-index: 0;
}

@media (max-width: 900px) {
  .market-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .market-post-grid {
    grid-template-columns: 1fr;
  }
}

.market-post-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.28rem 0.5rem 0.22rem;
  background: color-mix(in srgb, var(--border-strong) 14%, var(--bg-elevated));
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  --market-ts-line: var(--border-strong);
  --tier-rgb: 255, 255, 255;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.32s ease,
    border-color 0.32s ease;
}

/* Room for timestamp “notch” sitting on the top border (fieldset / legend style) */
.market-post-panel--with-ts {
  padding-top: 0.4rem;
}

/* Gold wash + depth — sits under tier tracers and content */
.market-post-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    168deg,
    rgba(255, 200, 120, 0.09) 0%,
    rgba(255, 160, 60, 0.03) 38%,
    transparent 58%,
    rgba(0, 200, 255, 0.04) 100%
  );
  opacity: 0.85;
}

/* Hover shine — behind buttons/text (see child z-index below) */
.market-post-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: linear-gradient(
    118deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 248, 220, 0.22) 49.5%,
    rgba(255, 220, 140, 0.12) 51%,
    transparent 62%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  transition: opacity 0.2s ease;
}

.market-post-panel:hover::after,
.market-post-panel:focus-within::after {
  animation: market-post-card-shine 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes market-post-card-shine {
  0% {
    background-position: 140% 0;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  55% {
    opacity: 0.75;
  }
  100% {
    background-position: -40% 0;
    opacity: 0;
  }
}

/* Content above overlays; tier sweep stays behind (tracer z-index: 0) */
.market-post-panel > *:not(.market-post-tier-tracer) {
  position: relative;
  z-index: 2;
}

.market-post-panel > .market-post-ts-rule {
  z-index: 6;
}

.market-post-panel:hover,
.market-post-panel:focus-within {
  transform: translateY(-3px) scale(1.005);
  box-shadow:
    var(--shadow-md),
    0 18px 44px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 200, 120, 0.42),
    0 0 48px rgba(255, 160, 60, 0.22),
    0 0 80px rgba(0, 200, 255, 0.06);
}

.market-post-panel:not([class*="market-post-panel--tier-"]):hover,
.market-post-panel:not([class*="market-post-panel--tier-"]):focus-within {
  background: var(--panel-hover);
}

/*
 * Donation tier panel accents — web.user_data._DONATION_TIERS / Donations.py:
 * All tiers: full perimeter border in tier colour.
 * $1000+ only: extra dim inset ring + diagonal sweep (div.market-post-tier-tracer, _market_post_macro.html).
 */
.market-post-panel--tier-sapphire {
  border-color: #2563eb;
  --market-ts-line: #2563eb;
  --tier-rgb: 37, 99, 235;
}

.market-post-panel--tier-emerald {
  border-color: #16a34a;
  --market-ts-line: #16a34a;
  --tier-rgb: 22, 163, 74;
}

.market-post-panel--tier-ruby {
  border-color: #dc2626;
  --market-ts-line: #dc2626;
  --tier-rgb: 220, 38, 38;
}

.market-post-panel--tier-diamond {
  border-color: #cbd5e1;
  --market-ts-line: #cbd5e1;
  --tier-rgb: 203, 213, 225;
}

.market-post-panel--tier-dragonstone {
  border-color: #9333ea;
  --market-ts-line: #9333ea;
  --tier-rgb: 147, 51, 234;
}

.market-post-panel--tier-onyx {
  border-color: #000000;
  --market-ts-line: #6b7280;
  --tier-rgb: 0, 0, 0;
}

.market-post-panel--tier-zenyte {
  border-color: #ea580c;
  --market-ts-line: #ea580c;
  --tier-rgb: 234, 88, 12;
}

/* Under $1000 donation tiers — tinted fill only (no pulse / wash animations) */
.market-post-panel[class*="market-post-panel--tier-"]:not(.market-post-panel--tier-partyhat-yellow):not(.market-post-panel--tier-partyhat-blue):not(.market-post-panel--tier-crown) {
  background: rgba(var(--tier-rgb), 0.09);
}

.market-post-panel--tier-onyx {
  background: rgba(0, 0, 0, 0.32);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.market-post-panel[class*="market-post-panel--tier-"]:not(.market-post-panel--tier-partyhat-yellow):not(.market-post-panel--tier-partyhat-blue):not(.market-post-panel--tier-crown):hover,
.market-post-panel[class*="market-post-panel--tier-"]:not(.market-post-panel--tier-partyhat-yellow):not(.market-post-panel--tier-partyhat-blue):not(.market-post-panel--tier-crown):focus-within {
  background: rgba(var(--tier-rgb), 0.14);
}

.market-post-panel--tier-onyx:hover,
.market-post-panel--tier-onyx:focus-within {
  background: rgba(0, 0, 0, 0.42);
}

/* Under $1000 — static tier wash (no animation) */
.market-post-panel[class*="market-post-panel--tier-"]:not(.market-post-panel--tier-partyhat-yellow):not(.market-post-panel--tier-partyhat-blue):not(.market-post-panel--tier-crown)::before {
  background: linear-gradient(
    168deg,
    rgba(var(--tier-rgb), 0.14) 0%,
    rgba(var(--tier-rgb), 0.06) 42%,
    rgba(var(--tier-rgb), 0.03) 58%,
    rgba(var(--tier-rgb), 0.1) 100%
  );
  opacity: 0.85;
}

@keyframes market-post-tier-wash-drift {
  0%,
  100% {
    background-position: 0% 40%;
    opacity: 0.65;
  }

  50% {
    background-position: 100% 60%;
    opacity: 1;
  }
}

.market-post-panel--tier-partyhat-yellow:hover::after,
.market-post-panel--tier-partyhat-yellow:focus-within::after,
.market-post-panel--tier-partyhat-blue:hover::after,
.market-post-panel--tier-partyhat-blue:focus-within::after,
.market-post-panel--tier-crown:hover::after,
.market-post-panel--tier-crown:focus-within::after {
  background: linear-gradient(
    118deg,
    transparent 0%,
    transparent 32%,
    rgba(var(--tier-rgb), 0.55) 48%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(var(--tier-rgb), 0.45) 52%,
    transparent 68%,
    transparent 100%
  );
}

@keyframes market-tier-shimmer-sweep {
  0% {
    transform: translate3d(-48%, -48%, 0) rotate(0deg);
    opacity: 0.35;
  }

  45% {
    opacity: 1;
  }

  100% {
    transform: translate3d(48%, 48%, 0) rotate(0deg);
    opacity: 0.35;
  }
}

/* $1000+ — full tier border (same as other listings) + inset ring + diagonal sweep */
.market-post-panel--tier-partyhat-yellow,
.market-post-panel--tier-partyhat-blue,
.market-post-panel--tier-crown {
  position: relative;
  isolation: isolate;
}

.market-post-panel--tier-partyhat-yellow {
  border-color: #eab308;
  --market-ts-line: #eab308;
  --tier-rgb: 234, 179, 8;
  box-shadow: var(--shadow-sm), inset 0 0 0 1.75px rgba(92, 74, 26, 0.95);
  animation: market-post-tier-border-pulse-yellow 2.4s ease-in-out infinite;
}

.market-post-panel--tier-partyhat-blue {
  border-color: #2563eb;
  --market-ts-line: #2563eb;
  --tier-rgb: 37, 99, 235;
  box-shadow: var(--shadow-sm), inset 0 0 0 1.75px rgba(30, 58, 95, 0.95);
  animation: market-post-tier-border-pulse-blue 2.6s ease-in-out infinite;
}

.market-post-panel--tier-crown {
  border-color: #f59e0b;
  --market-ts-line: #f59e0b;
  --tier-rgb: 245, 158, 11;
  box-shadow: var(--shadow-sm), inset 0 0 0 1.75px rgba(92, 61, 14, 0.95);
  animation: market-post-tier-border-pulse-crown 2.3s ease-in-out infinite;
}

/* $1000+ — strong tier-colored wash + outline breathe */
.market-post-panel--tier-partyhat-yellow,
.market-post-panel--tier-partyhat-blue,
.market-post-panel--tier-crown {
  background: rgba(var(--tier-rgb), 0.16);
}

.market-post-panel--tier-partyhat-yellow::before,
.market-post-panel--tier-partyhat-blue::before,
.market-post-panel--tier-crown::before {
  background: linear-gradient(
    125deg,
    rgba(var(--tier-rgb), 0.45) 0%,
    rgba(var(--tier-rgb), 0.12) 38%,
    rgba(var(--tier-rgb), 0.04) 52%,
    rgba(var(--tier-rgb), 0.28) 100%
  );
  background-size: 240% 240%;
  opacity: 1;
  animation: market-post-tier-wash-drift 3.2s ease-in-out infinite;
}

.market-post-panel--tier-partyhat-yellow::before,
.market-post-panel--tier-partyhat-blue::before,
.market-post-panel--tier-crown::before {
  box-shadow: none;
}

/* $1000+ — inset pulse only (no outer glow bleeding into grid gap) */
@keyframes market-post-tier-border-pulse-yellow {
  0%,
  100% {
    box-shadow:
      var(--shadow-sm),
      inset 0 0 0 1.75px rgba(92, 74, 26, 0.95),
      inset 0 0 14px rgba(234, 179, 8, 0.1);
  }

  50% {
    box-shadow:
      var(--shadow-sm),
      inset 0 0 0 2px rgba(254, 240, 138, 0.88),
      inset 0 0 34px rgba(234, 179, 8, 0.32);
  }
}

@keyframes market-post-tier-border-pulse-blue {
  0%,
  100% {
    box-shadow:
      var(--shadow-sm),
      inset 0 0 0 1.75px rgba(30, 58, 95, 0.95),
      inset 0 0 14px rgba(59, 130, 246, 0.1);
  }

  50% {
    box-shadow:
      var(--shadow-sm),
      inset 0 0 0 2px rgba(147, 197, 253, 0.88),
      inset 0 0 34px rgba(59, 130, 246, 0.3);
  }
}

@keyframes market-post-tier-border-pulse-crown {
  0%,
  100% {
    box-shadow:
      var(--shadow-sm),
      inset 0 0 0 1.75px rgba(92, 61, 14, 0.95),
      inset 0 0 14px rgba(245, 158, 11, 0.1);
  }

  50% {
    box-shadow:
      var(--shadow-sm),
      inset 0 0 0 2px rgba(253, 230, 138, 0.88),
      inset 0 0 34px rgba(245, 158, 11, 0.32);
  }
}

.market-post-panel--tier-partyhat-yellow:hover::before,
.market-post-panel--tier-partyhat-yellow:focus-within::before,
.market-post-panel--tier-partyhat-blue:hover::before,
.market-post-panel--tier-partyhat-blue:focus-within::before,
.market-post-panel--tier-crown:hover::before,
.market-post-panel--tier-crown:focus-within::before {
  animation: market-post-tier-wash-drift 3.2s ease-in-out infinite;
}

/* $1000+ — hover lift without outer halo (keeps gap even with standard cards) */
.market-post-panel--tier-partyhat-yellow:hover,
.market-post-panel--tier-partyhat-yellow:focus-within {
  animation: none;
  box-shadow:
    var(--shadow-md),
    0 18px 44px rgba(0, 0, 0, 0.48),
    inset 0 0 0 2px rgba(254, 240, 138, 0.75),
    inset 0 0 28px rgba(234, 179, 8, 0.28);
}

.market-post-panel--tier-partyhat-blue:hover,
.market-post-panel--tier-partyhat-blue:focus-within {
  animation: none;
  box-shadow:
    var(--shadow-md),
    0 18px 44px rgba(0, 0, 0, 0.48),
    inset 0 0 0 2px rgba(147, 197, 253, 0.72),
    inset 0 0 28px rgba(59, 130, 246, 0.26);
}

.market-post-panel--tier-crown:hover,
.market-post-panel--tier-crown:focus-within {
  animation: none;
  box-shadow:
    var(--shadow-md),
    0 18px 48px rgba(0, 0, 0, 0.48),
    inset 0 0 0 2px rgba(253, 230, 138, 0.75),
    inset 0 0 28px rgba(245, 158, 11, 0.28);
}

/* Standard donation tiers — outer hover ring matches tier border (see default .market-post-panel:hover gold ring). */
.market-post-panel--tier-sapphire:hover,
.market-post-panel--tier-sapphire:focus-within {
  box-shadow:
    var(--shadow-md),
    0 18px 44px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(37, 99, 235, 0.55),
    0 0 48px rgba(59, 130, 246, 0.22),
    0 0 80px rgba(37, 99, 235, 0.07);
}

.market-post-panel--tier-emerald:hover,
.market-post-panel--tier-emerald:focus-within {
  box-shadow:
    var(--shadow-md),
    0 18px 44px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(22, 163, 74, 0.55),
    0 0 48px rgba(34, 197, 94, 0.2),
    0 0 80px rgba(22, 163, 74, 0.06);
}

.market-post-panel--tier-ruby:hover,
.market-post-panel--tier-ruby:focus-within {
  box-shadow:
    var(--shadow-md),
    0 18px 44px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(220, 38, 38, 0.55),
    0 0 48px rgba(239, 68, 68, 0.22),
    0 0 80px rgba(220, 38, 38, 0.07);
}

.market-post-panel--tier-diamond:hover,
.market-post-panel--tier-diamond:focus-within {
  box-shadow:
    var(--shadow-md),
    0 18px 44px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(148, 163, 184, 0.65),
    0 0 48px rgba(148, 163, 184, 0.18),
    0 0 80px rgba(148, 163, 184, 0.06);
}

.market-post-panel--tier-dragonstone:hover,
.market-post-panel--tier-dragonstone:focus-within {
  box-shadow:
    var(--shadow-md),
    0 18px 44px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(147, 51, 234, 0.55),
    0 0 48px rgba(168, 85, 247, 0.22),
    0 0 80px rgba(147, 51, 234, 0.08);
}

.market-post-panel--tier-onyx:hover,
.market-post-panel--tier-onyx:focus-within {
  background: rgba(0, 0, 0, 0.42);
  box-shadow:
    var(--shadow-md),
    0 18px 44px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 48px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(0, 0, 0, 0.25);
}

.market-post-panel--tier-zenyte:hover,
.market-post-panel--tier-zenyte:focus-within {
  box-shadow:
    var(--shadow-md),
    0 18px 44px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(234, 88, 12, 0.58),
    0 0 48px rgba(249, 115, 22, 0.26),
    0 0 80px rgba(234, 88, 12, 0.09);
}

.market-post-tier-tracer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.market-post-tier-tracer::before {
  content: "";
  position: absolute;
  left: -65%;
  top: -65%;
  width: 230%;
  height: 230%;
  border-radius: inherit;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  animation: market-tier-shimmer-sweep 3.2s cubic-bezier(0.4, 0.05, 0.6, 0.95) infinite;
}

.market-post-tier-tracer--partyhat-yellow::before {
  background-image: linear-gradient(
    115deg,
    transparent 0%,
    transparent 30%,
    rgba(254, 240, 138, 0.25) 40%,
    rgba(254, 240, 138, 0.85) 48%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(234, 179, 8, 0.8) 51%,
    rgba(254, 240, 138, 0.85) 52%,
    rgba(254, 240, 138, 0.25) 58%,
    transparent 68%,
    transparent 100%
  );
  animation-duration: 3s;
}

.market-post-tier-tracer--partyhat-blue::before {
  background-image: linear-gradient(
    115deg,
    transparent 0%,
    transparent 30%,
    rgba(191, 219, 254, 0.25) 40%,
    rgba(191, 219, 254, 0.85) 48%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(59, 130, 246, 0.78) 51%,
    rgba(191, 219, 254, 0.85) 52%,
    rgba(191, 219, 254, 0.25) 58%,
    transparent 68%,
    transparent 100%
  );
  animation-duration: 3.4s;
}

.market-post-tier-tracer--crown::before {
  background-image: linear-gradient(
    115deg,
    transparent 0%,
    transparent 30%,
    rgba(253, 230, 138, 0.25) 40%,
    rgba(253, 230, 138, 0.85) 48%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(251, 191, 36, 0.78) 51%,
    rgba(253, 230, 138, 0.85) 52%,
    rgba(253, 230, 138, 0.25) 58%,
    transparent 68%,
    transparent 100%
  );
  animation-duration: 2.8s;
}

@media (prefers-reduced-motion: reduce) {
  .market-post-panel:hover::after,
  .market-post-panel:focus-within::after {
    animation: none;
  }

  .market-post-panel[class*="market-post-panel--tier-"] {
    animation: none;
  }

  .market-post-panel[class*="market-post-panel--tier-"]::before {
    animation: none;
  }

  .market-post-panel--tier-partyhat-yellow,
  .market-post-panel--tier-partyhat-blue,
  .market-post-panel--tier-crown {
    animation: none;
  }

  .market-post-panel--tier-partyhat-yellow::before,
  .market-post-panel--tier-partyhat-blue::before,
  .market-post-panel--tier-crown::before {
    animation: none;
    box-shadow: none;
  }

  .market-post-tier-tracer,
  .market-post-tier-tracer::before {
    animation: none !important;
  }

  .market-post-tier-tracer {
    display: none;
  }

  .market-post-panel--tier-partyhat-yellow {
    border: 2px solid #eab308;
    box-shadow: var(--shadow-sm);
  }

  .market-post-panel--tier-partyhat-blue {
    border: 2px solid #2563eb;
    box-shadow: var(--shadow-sm);
  }

  .market-post-panel--tier-crown {
    border: 2px solid #f59e0b;
    box-shadow: var(--shadow-sm);
  }
}

/*
 * Top-border timestamp: ———| 8m ago |———
 * Centered on the card’s top edge; mid block uses panel bg to “break” the border like a fieldset legend.
 */
/* Entire strip + descendants must ignore clicks (strip sits above header row; children default to pointer-events: auto). */
.market-post-ts-rule,
.market-post-ts-rule * {
  pointer-events: none;
}

.market-post-ts-rule {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.market-post-panel--with-ts > .market-post-ts-rule {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: -1px;
  width: auto;
  transform: translateY(-50%);
}

.market-post-ts-rule__dash {
  flex: 1 1 0;
  min-width: 0.35rem;
  height: 2px;
  align-self: center;
  background: var(--market-ts-line);
  border-radius: 1px;
  opacity: 0.95;
}

.market-post-ts-rule__mid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  flex-shrink: 0;
  /* No horizontal padding/margin so side dashes meet the | pipes */
  padding: 0.04rem 0 0.06rem;
  margin: 0;
  background: var(--bg-elevated);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.market-post-panel:hover .market-post-ts-rule__mid,
.market-post-panel:focus-within .market-post-ts-rule__mid {
  background: var(--panel-hover);
}

.market-post-ts-rule__pipe {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--market-ts-line);
  line-height: 1;
  user-select: none;
  opacity: 0.92;
}

.market-post-ts-rule__mid .market-post-ago {
  flex-shrink: 0;
  text-align: center;
  max-width: min(100%, 11rem);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.market-post-ts-rule--public {
  margin-bottom: 0.22rem;
}

.market-post-ago {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: right;
  max-width: 100%;
}

/* Age colouring: fresh green → warm tones → red after 45m */
.market-post-ago.market-post-ago--age0 {
  color: var(--ok);
}

.market-post-ago.market-post-ago--age1 {
  color: #a3e635;
}

.market-post-ago.market-post-ago--age2 {
  color: #d4a84b;
}

.market-post-ago.market-post-ago--age3 {
  color: #e8943a;
}

.market-post-ago.market-post-ago--age4 {
  color: var(--danger);
}

/* Onyx: age ramp would clash with black frame — keep timestamp + pipes one tier tone */
.market-post-panel--tier-onyx .market-post-ts-rule .market-post-ago {
  color: var(--market-ts-line);
}

.market-post-panel--public .market-post-dl {
  margin-top: 0;
}

.market-post-brand {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0;
  align-items: stretch;
  min-width: 0;
  flex: 1;
  min-height: 0;
}

/* Seller / donated row — full width above brand image row */
.market-post-brand-head {
  display: flex;
  flex-direction: column;
  gap: 0.04rem;
  min-width: 0;
  width: 100%;
}

.market-post-brand-top {
  width: 100%;
  min-width: 0;
}

.market-post-brand-lower {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.32rem;
  row-gap: 0.04rem;
  align-items: center;
  min-width: 0;
}

.market-post-brand-visual {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  max-width: 2.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.market-post-brand-visual--circle {
  border-radius: 50%;
}

.market-post-brand-aside {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
}

.market-post-brand-actions {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 0.35rem;
  width: 100%;
  min-width: 0;
}

.market-post-brand-actions .market-post-profile-icon-btn--actions-row {
  grid-column: 1;
  justify-self: start;
}

.market-post-brand-actions .market-post-stat--trades {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
}

.market-post-brand-actions .market-post-open {
  grid-column: 3;
  justify-self: end;
}

.market-post-brand-actions .market-post-own-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
}

.market-post-brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.market-post-brand-img--logo {
  object-fit: contain;
  padding: 0.28rem;
  background: var(--bg-elevated);
}

.market-post-brand-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--border) 0%, var(--bg) 100%);
}

/* Profile: clickable name + magnifying-glass (both .market-post-inspect) */
.market-post-name-inline {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  min-width: 0;
  flex: 1 1 0;
  max-width: 100%;
  overflow: hidden;
}

.market-post-profile-icon-btn.market-post-inspect {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(0, 114, 255, 0.35);
  border-radius: 5px;
  background: rgba(0, 114, 255, 0.1);
  color: var(--titan-blue);
  cursor: pointer;
  position: relative;
  z-index: 7;
  pointer-events: auto;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.market-post-profile-icon-btn.market-post-inspect:hover {
  color: var(--accent-bright);
  background: rgba(0, 114, 255, 0.18);
  border-color: rgba(0, 229, 255, 0.45);
}

.market-post-profile-icon-btn.market-post-inspect:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.market-post-profile-icon-btn--actions-row.market-post-inspect {
  border-radius: 999px;
}

.market-post-name-side .market-post-inspect.market-post-name-with-id {
  position: relative;
  z-index: 7;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: normal;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  pointer-events: auto;
  text-align: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.14em;
  transition:
    color 0.15s ease,
    text-decoration-color 0.15s ease;
}

.market-post-name-side .market-post-inspect.market-post-name-with-id:hover {
  color: var(--accent-bright);
  text-decoration-color: rgba(0, 210, 255, 0.45);
}

.market-post-name-side .market-post-inspect.market-post-name-with-id:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.market-post-brand-stats {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
  align-items: stretch;
}

.market-post-brand-row-split {
  display: grid;
  /* Equal side tracks so tier emoji sits on the row’s horizontal center */
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.2rem 0.38rem;
  width: 100%;
  min-width: 0;
}

.market-post-name-side {
  display: flex;
  align-items: baseline;
  gap: 0.28rem;
  min-width: 0;
  max-width: 100%;
  /* Let the icon + name row clip internally; hiding here clipped the magnify control */
  overflow: visible;
  justify-self: start;
}

.market-post-brand-tier {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  flex-shrink: 0;
  width: max-content;
  min-width: 18px;
  min-height: 18px;
}

.market-post-donation-emoji--brand-center {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.market-post-donated-side {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  justify-content: flex-end;
  justify-self: end;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 0;
}

.market-post-name-with-id:not(.market-post-inspect) {
  cursor: help;
}

.market-post-stat {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.18rem;
  font-size: 0.68rem;
  line-height: 1.15;
  min-width: 0;
  width: 100%;
}

.market-post-stat-line {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.market-post-stat-key {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.market-post-stat-val {
  flex-shrink: 0;
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  min-width: 0;
}

.market-post-stat-val--user {
  flex: 1 1 0;
  font-variant-numeric: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}


/* ——— User profile popup (channel listings) ——— */
.user-profile-dialog {
  padding: 0;
  border: none;
  max-width: min(26rem, calc(100vw - 2rem));
  background: transparent;
}

.user-profile-dialog::backdrop {
  background: rgba(6, 10, 20, 0.75);
  backdrop-filter: blur(5px);
}

/* Confirm stacks above profile popup (top layer); width aligned with profile card */
.user-profile-trade-block-confirm-dialog.market-filters-dialog {
  max-width: min(26rem, calc(100vw - 2rem));
}

.user-profile-dialog-inner {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--titan-line);
  box-shadow: var(--shadow-md), 0 0 24px rgba(0, 114, 255, 0.06);
  padding: 1.15rem 1.35rem 1.3rem;
}

.user-profile-dialog-x {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.user-profile-dialog-x:hover {
  color: var(--text);
  background: var(--panel-hover);
}

.user-profile-dialog-body {
  padding-right: 1.5rem;
}

.user-profile-loading {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.user-profile-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
}

.user-profile-head {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.user-profile-identity {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  min-width: 0;
}

.user-profile-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.user-profile-identity-text {
  flex: 1;
  min-width: 0;
}

.user-profile-title {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.user-profile-handle {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.user-profile-idline {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.user-profile-id-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-right: 0.35rem;
}

.user-profile-id {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-soft);
  background: var(--bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.user-profile-section {
  margin-top: 1.2rem;
}

.user-profile-section:first-of-type {
  margin-top: 0;
}

.user-profile-h {
  margin: 0 0 0.58rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.user-profile-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
}

.user-profile-dl-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.62rem;
  align-items: baseline;
  font-size: 0.84rem;
}

.user-profile-dl-row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.76rem;
}

.user-profile-dl-row dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.user-profile-pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.user-profile-pill.is-active {
  background: var(--ok-bg);
  color: var(--ok);
}

.user-profile-pill.is-expired {
  background: var(--danger-bg);
  color: var(--danger);
}

.user-profile-pill.is-none {
  background: var(--panel-hover);
  color: var(--muted);
}

.user-profile-pill.is-ban-yes {
  background: var(--danger-bg);
  color: var(--danger);
}

.user-profile-pill.is-ban-no {
  background: var(--ok-bg);
  color: var(--ok);
}

.user-profile-pill--team-owner {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
}

.user-profile-pill--team-member {
  background: var(--panel-hover);
  color: var(--muted);
}

.user-profile-pill--team-pending {
  background: rgba(234, 179, 8, 0.16);
  color: #facc15;
}

.user-profile-team-none {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.user-profile-team-preview-wrap[hidden] {
  display: none !important;
}

.user-profile-team-preview {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.65rem;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.user-profile-team-preview:hover {
  background: var(--panel-hover);
  border-color: var(--border-strong);
}

.user-profile-team-preview:focus-visible {
  outline: 2px solid rgba(255, 140, 60, 0.85);
  outline-offset: 2px;
}

.user-profile-team-preview-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.user-profile-team-preview .user-profile-team-name {
  margin: 0;
  font-size: 0.92rem;
}

.team-roster-dialog {
  padding: 0;
  border: none;
  max-width: min(24rem, calc(100vw - 2rem));
  background: transparent;
}

.team-roster-dialog::backdrop {
  background: rgba(6, 10, 20, 0.78);
  backdrop-filter: blur(5px);
}

.team-roster-dialog-inner {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--titan-line);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.1rem 1.15rem;
  max-height: min(70vh, 32rem);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.team-roster-dialog-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding-right: 1.75rem;
}

.team-roster-dialog-swatch {
  flex-shrink: 0;
}

.team-roster-dialog-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  word-break: break-word;
}

.team-roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.team-roster-item {
  margin: 0;
}

.team-roster-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.45rem 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.team-roster-row:hover {
  background: var(--panel-hover);
  border-color: var(--border);
}

.team-roster-row:focus-visible {
  outline: 2px solid rgba(255, 140, 60, 0.85);
  outline-offset: 1px;
}

.team-roster-avatar {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: var(--bg);
}

.team-roster-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  align-items: flex-start;
}

.team-roster-row-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.team-roster-row-handle {
  font-size: 0.72rem;
  color: var(--muted);
}

.team-roster-row-donation {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.user-profile-team-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.user-profile-team-swatch {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.user-profile-team-head-text {
  min-width: 0;
}

.user-profile-team-name {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  word-break: break-word;
}

.user-profile-team-role-wrap {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.user-profile-rev-summary {
  margin: 0 0 0.58rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.user-profile-stars {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.user-profile-star-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: 6px;
  margin: 0 -0.35rem;
  padding: 0.35rem 0.35rem;
  transition: background 0.12s ease, color 0.12s ease;
}

.user-profile-star-row:hover {
  background: var(--panel-hover);
  color: var(--text);
}

.user-profile-star-row:focus-visible {
  outline: 2px solid rgba(255, 140, 60, 0.85);
  outline-offset: 1px;
}

.user-profile-star-row strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.user-profile-star-glyphs {
  display: inline-flex;
  align-items: center;
  gap: 0.04em;
  line-height: 1;
}

.user-profile-star-glyph {
  display: inline-block;
  font-size: 0.72rem;
  color: #fbbf24;
  filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.28));
  line-height: 1;
  user-select: none;
}

.user-profile-sythe.is-muted {
  font-size: 0.84rem;
  color: var(--muted);
  font-style: italic;
}

.user-profile-section--trade-block .user-profile-trade-block-actions {
  margin-top: 0.35rem;
}

.user-profile-trade-block-hint {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.market-post-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--warn);
  background: var(--warn-bg);
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(232, 184, 74, 0.25);
}

.market-post-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.45rem 0.55rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 0 rgba(0, 0, 0, 0.35);
}

.market-post-dl--beside-img {
  gap: 0.06rem;
  padding: 0.38rem 0.48rem;
}

.market-post-dl--beside-img .market-post-field {
  font-size: 0.68rem;
  gap: 0.04rem 0.28rem;
}

.market-post-field {
  display: grid;
  grid-template-columns: 5.35rem 1fr;
  gap: 0.08rem 0.36rem;
  align-items: baseline;
  font-size: 0.74rem;
}

.market-post-field dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.market-post-field dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

.market-post-rate-dd {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}

.market-post-rate-text {
  min-width: 0;
}

.market-post-stat-val--donated {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.market-post-donation-emoji {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.member-profile-stat-body--donated {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.member-profile-donation-emoji {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.user-profile-donated-dd {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.user-profile-donation-emoji {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.market-post-fixed-rate {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(147, 197, 253, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.35);
  line-height: 1.2;
}

.market-post-code {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-soft);
}

.market-post-open {
  white-space: nowrap;
}

.market-post-open.market-post-accept:not(:disabled) {
  transform: scale(1);
  transition:
    transform 0.24s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.24s ease,
    filter 0.2s ease;
}

/* Primary CTA reads more “clickable” when the listing card is active */
.market-post-panel:hover .market-post-open.market-post-accept:not(:disabled),
.market-post-panel:focus-within .market-post-open.market-post-accept:not(:disabled) {
  transform: scale(1.06);
}

.market-post-panel:hover .market-post-open.market-post-open--accept.market-post-open--buy.btn-primary:not(:disabled),
.market-post-panel:focus-within .market-post-open.market-post-open--accept.market-post-open--buy.btn-primary:not(:disabled) {
  box-shadow:
    0 6px 28px rgba(34, 197, 94, 0.5),
    0 0 0 1px rgba(187, 247, 208, 0.55),
    0 0 36px rgba(34, 197, 94, 0.35);
}

.market-post-panel:hover .market-post-open.market-post-open--accept.market-post-open--sell.btn-primary:not(:disabled),
.market-post-panel:focus-within .market-post-open.market-post-open--accept.market-post-open--sell.btn-primary:not(:disabled) {
  box-shadow:
    0 6px 28px rgba(59, 130, 246, 0.55),
    0 0 0 1px rgba(147, 197, 253, 0.45),
    0 0 36px rgba(37, 99, 235, 0.35);
}

/* Buy (green) / Sell (blue) — listing action */
.market-post-open.market-post-open--accept.market-post-open--buy.btn-primary {
  background: linear-gradient(165deg, #22c55e 0%, #15803d 100%);
  color: #fff !important;
  box-shadow: 0 4px 22px rgba(34, 197, 94, 0.35);
  border: 1px solid rgba(187, 247, 208, 0.45);
}

.market-post-open.market-post-open--accept.market-post-open--buy.btn-primary:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.market-post-open.market-post-open--accept.market-post-open--sell.btn-primary {
  background: linear-gradient(165deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff !important;
  box-shadow:
    0 4px 22px rgba(59, 130, 246, 0.45),
    0 0 0 1px rgba(147, 197, 253, 0.25);
  border: 1px solid rgba(147, 197, 253, 0.45);
}

.market-post-open.market-post-open--accept.market-post-open--sell.btn-primary:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.market-post-open.market-post-accept:disabled {
  opacity: 0.65;
  cursor: wait;
  filter: grayscale(0.15);
}

/* Fancy feedback for trade Accept (replaces browser alert) */
.trade-accept-feedback-dialog--error .trade-accept-feedback-dialog-accent {
  background: linear-gradient(90deg, #fca5a5, #ef4444, #b91c1c);
  opacity: 1;
}

.trade-accept-feedback-dialog--success .trade-accept-feedback-dialog-accent {
  background: linear-gradient(90deg, #86efac, #22c55e, #15803d);
  opacity: 1;
}

.trade-accept-feedback-dialog--error .market-filters-dialog-title {
  color: #fecaca;
  text-shadow: 0 0 24px rgba(248, 113, 113, 0.35);
}

.trade-accept-feedback-dialog--success .market-filters-dialog-title {
  color: #bbf7d0;
  text-shadow: 0 0 24px rgba(34, 197, 94, 0.28);
}

.trade-accept-feedback-extra {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.trade-accept-feedback-link {
  font-weight: 700;
}

.trade-accept-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  width: 100%;
}

.market-post-empty {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.topbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
}

.topbar-signin {
  flex-shrink: 0;
}

/* Banner slot 1 inline in top bar (replaces former account / donation cluster) */
.topbar-inline-banner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  max-width: min(585px, 100%);
}

.topbar-inline-banner .channel-sponsor-slot {
  max-width: 100%;
}

.topbar-inline-banner .channel-sponsor-slot__frame {
  height: 52px;
  min-height: 52px;
  width: min(100%, 520px);
  margin-left: auto;
}

.topbar-inline-banner .channel-sponsor-slot__img {
  object-fit: contain;
}

.header-subscription {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.65rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

a.header-subscription--link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

a.header-subscription--link:hover {
  border-color: rgba(120, 160, 255, 0.45);
  background: rgba(100, 140, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(100, 140, 255, 0.12);
}

a.header-subscription--link:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.header-subscription-label {
  color: var(--muted);
  font-weight: 600;
}

.header-subscription-status {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  line-height: 1.2;
}

.header-subscription-status--active {
  background: rgba(46, 160, 67, 0.22);
  color: #7dffb3;
  border: 1px solid rgba(46, 160, 67, 0.45);
}

.header-subscription-status--inactive {
  background: rgba(128, 128, 128, 0.15);
  color: var(--muted);
  border: 1px solid var(--border);
}

.header-subscription-status--none {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.header-donation {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

a.header-donation--link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

a.header-donation--link:hover {
  border-color: rgba(255, 140, 0, 0.45);
  background: rgba(255, 126, 0, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.12);
}

a.header-donation--link:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.header-donation-amount {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.header-donation-emoji {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.user-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text);
}

.user-menu-chevron {
  flex-shrink: 0;
  display: block;
  margin-left: -0.05rem;
  color: var(--muted);
  opacity: 0.92;
  transition: transform 0.2s ease, color 0.15s ease;
}

.user-menu:hover .user-menu-chevron,
.user-menu:focus-within .user-menu-chevron {
  color: var(--text-soft);
}

.user-menu-trigger[aria-expanded="true"] .user-menu-chevron {
  transform: rotate(180deg);
  color: var(--accent-bright);
}

/* Account menu (header) */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.65rem 0.25rem 0.25rem;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-soft);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.user-menu:hover > .user-menu-trigger,
.user-menu:focus-within > .user-menu-trigger {
  background: var(--panel-hover);
  border-color: var(--border-strong);
}

.user-menu-trigger:focus {
  outline: none;
}

.user-menu-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.user-menu-trigger img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
}

.user-menu-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}

/* Guild members: subscription status ring on Discord avatar (green = active, red = inactive/none) */
.user-menu-avatar-wrap--sub-active img {
  border-color: rgba(46, 160, 67, 0.95);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.user-menu-avatar-wrap--sub-inactive img {
  border-color: rgba(248, 113, 113, 0.95);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25);
}

.user-menu-notify-bell--sub-active {
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(46, 160, 67, 0.9);
}

.user-menu-notify-bell--sub-inactive {
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.85);
}

.user-menu-notify-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fb7185, #e11d48);
  border: 2px solid var(--panel);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  animation: user-menu-notify-pulse 2.2s ease-in-out infinite;
}

.user-menu-notify-dot--on-icon {
  top: -4px;
  right: -5px;
  width: 10px;
  height: 10px;
}

@keyframes user-menu-notify-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(244, 63, 94, 0.45);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(244, 63, 94, 0);
  }
}

.user-menu-notify-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  color: #fb923c;
  filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.35));
}

.user-menu-item--row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.user-menu-item-label {
  flex: 1;
  min-width: 0;
}

.user-menu-item-badge {
  flex-shrink: 0;
  min-width: 1.35rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, #f43f5e, #be123c);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.user-menu-item--notify:not(.is-active) .user-menu-item-badge {
  animation: user-menu-notify-pulse-soft 2.2s ease-in-out infinite;
}

@keyframes user-menu-notify-pulse-soft {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}

.user-menu-popover {
  position: absolute;
  right: 0;
  top: 100%;
  padding-top: 6px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 200;
  pointer-events: none;
}

.user-menu:hover .user-menu-popover,
.user-menu:focus-within .user-menu-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.user-menu-panel {
  min-width: 11.5rem;
  padding: 0.35rem;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.user-menu-item {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft) !important;
  text-decoration: none !important;
  transition: background 0.12s ease, color 0.12s ease;
}

.user-menu-item:hover {
  background: var(--panel-hover);
  color: var(--text) !important;
}

.user-menu-item.is-active {
  background: var(--accent-orange-dim);
  color: var(--text) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 140, 0, 0.35);
}

.user-menu-item.is-active:hover {
  background: var(--accent-orange-dim);
  color: var(--text) !important;
}

.user-menu-sep {
  margin: 0.35rem 0.4rem;
  border: 0;
  border-top: 1px solid var(--border-strong);
  opacity: 0.85;
}

.user-menu-item--danger {
  color: var(--danger) !important;
}

.user-menu-item--danger:hover {
  background: var(--danger-bg);
  color: var(--danger) !important;
}

/* ——— Main layout ——— */
.wrap {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0.3rem clamp(0.75rem, 2.5vw, 2rem) 4rem;
  box-sizing: border-box;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Fit-to-viewport tweaks — mobile only (same breakpoint as top bar hamburger) */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: clip;
  }

  /* Fixed backgrounds often render as flat gray / clip wrong on mobile Safari */
  body {
    background-attachment: scroll;
  }

  .wrap {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body.site-body--home .wrap {
    padding-top: 0.35rem;
  }

  .site-main {
    min-width: 0;
    max-width: 100%;
  }

  .guide-card,
  .overview-block,
  .panel {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .market-feed-section {
    min-width: 0;
    max-width: 100%;
  }

  .market-post-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .ad-auction-slot-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
    min-width: 0;
  }

  .ad-auction-slot-card__top {
    flex-wrap: wrap;
  }
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.22);
}

.site-footer-inner {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem clamp(0.75rem, 2.5vw, 2rem) 1.5rem;
  text-align: center;
  box-sizing: border-box;
}

.site-footer-line {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.site-footer-line strong {
  color: var(--text);
  font-weight: 700;
}

.site-footer-credit {
  font-weight: 600;
  color: var(--accent) !important;
}

.site-footer-credit:hover {
  color: var(--accent-bright) !important;
}

.site-footer-disclaimer {
  margin: 0 auto;
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 48rem;
}

.site-footer-legal {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
}

.site-footer-legal a {
  color: var(--accent) !important;
  font-weight: 600;
}

.site-footer-legal a:hover {
  color: var(--accent-bright) !important;
}

.site-footer-nowrap {
  white-space: nowrap;
}

.site-footer-meta {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.site-footer-meta--inline {
  display: inline;
  margin: 0;
  font-size: 0.92em;
  font-weight: 500;
}

.site-footer-meta time {
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
}

/* ——— Contact ——— */
.contact-page {
  max-width: 32rem;
  margin: 0 auto;
}

.contact-discord-section {
  margin-bottom: 1.5rem;
}

.contact-discord-label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.22);
}

.contact-discord-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.14), rgba(0, 0, 0, 0.35));
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact-discord-card--fallback {
  padding: 1rem 1.15rem;
}

.contact-discord-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(88, 101, 242, 0.45);
}

.contact-discord-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
  text-align: left;
}

.contact-discord-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.contact-discord-user {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.contact-discord-id {
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
}

.contact-discord-actions {
  margin: 0.75rem 0 0;
}

.contact-discord-profile-link {
  font-weight: 600;
  color: var(--accent) !important;
  text-decoration: none !important;
}

.contact-discord-profile-link:hover {
  color: var(--accent-bright) !important;
}

/* ——— Legal / static pages (privacy, terms) — card matches .panel / site theme ——— */
.site-legal {
  max-width: none;
  width: 100%;
  margin: 0 0 1rem;
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--titan-line);
  padding: 1.25rem 1.35rem 1.45rem;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255, 140, 0, 0.05);
  overflow-x: auto;
}

.site-legal-meta {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-strong);
}

.site-legal-meta strong {
  color: var(--text);
  font-weight: 600;
}

.site-legal h2 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.site-legal a {
  color: var(--accent-bright);
  font-weight: 500;
}

.site-legal a:hover {
  color: var(--accent);
}

.site-legal h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
}

.site-legal p,
.site-legal li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.site-legal p {
  margin: 0 0 0.75rem;
}

.site-legal ul {
  margin: 0 0 0.85rem 1.1rem;
  padding: 0;
}

.site-legal li {
  margin-bottom: 0.35rem;
}

.site-legal code {
  font-size: 0.84em;
}

/* ——— All donators leaderboard ——— */
.donators-page {
  max-width: 52rem;
  margin: 0 auto;
}

.donators-page-header {
  margin-bottom: 1.25rem;
}

.donators-viewer-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.22);
}

.donators-viewer-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.donators-viewer-label {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.donators-viewer-value {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.donators-viewer-item--tier {
  gap: 0.45rem;
}

.donators-viewer-tier-emoji {
  flex-shrink: 0;
  vertical-align: middle;
  object-fit: contain;
}

.donators-viewer-sep {
  width: 1px;
  height: 1.1rem;
  background: var(--border-strong);
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .donators-viewer-sep {
    display: none;
  }
}

.donators-page-header .donators-viewer-banner:first-child {
  margin-top: 0;
}

.donators-table-wrap {
  margin-bottom: 1.5rem;
}

.donators-table th,
.donators-table td {
  vertical-align: middle;
}

.donators-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: nowrap;
  margin-bottom: 0.85rem;
}

.donators-toolbar-summary {
  margin: 0;
  font-size: 0.88rem;
  min-width: 0;
}

.donators-per-page {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-soft);
  white-space: nowrap;
  flex-shrink: 0;
}

.donators-per-page .reviews-input {
  width: auto;
  min-width: 4.25rem;
  flex: 0 0 auto;
}

.donators-pagination-block {
  margin-top: 1rem;
}

.donators-col-rank {
  width: 4.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.donators-rank-num {
  color: var(--muted);
  font-weight: 600;
}

.donators-rank-num--medal-1 {
  color: #e8c86a;
}

.donators-rank-num--medal-2 {
  color: #b8c4d4;
}

.donators-rank-num--medal-3 {
  color: #c97a45;
}

.donators-row--medal-1 td {
  background: rgba(232, 184, 74, 0.06);
}

.donators-row--medal-2 td {
  background: rgba(184, 196, 212, 0.05);
}

.donators-row--medal-3 td {
  background: rgba(201, 122, 69, 0.06);
}

.donators-col-amount {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.donators-col-tier {
  width: 4rem;
  text-align: center;
}

.donators-member-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.donators-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
}

.donators-member-avatar--placeholder {
  display: inline-block;
  background: var(--border);
}

.donators-member-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}

.donators-member-link {
  font-weight: 600;
  color: var(--accent-bright);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 18rem;
}

.donators-member-link:hover {
  text-decoration: underline;
}

button.donators-member-profile-btn.donators-member-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  text-align: inherit;
}

.donators-member-handle {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--mono);
}

.donators-tier-emoji {
  vertical-align: middle;
}

.donators-empty {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .donators-member-link {
    max-width: 12rem;
  }

  .donators-table .donators-col-tier {
    width: 3rem;
  }
}

/* ——— All teams directory ——— */
.all-teams-page {
  max-width: 52rem;
  margin: 0 auto;
}

.all-teams-lead {
  margin: 0 0 1.15rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.all-teams-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.22);
}

.all-teams-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.all-teams-field--grow {
  flex: 1 1 12rem;
}

.all-teams-field-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.all-teams-search {
  width: 100%;
  min-width: 0;
}

.all-teams-select {
  min-width: 9rem;
}

.all-teams-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.all-teams-meta {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.all-teams-empty {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.all-teams-empty--filter {
  margin-bottom: 0.75rem;
}

.all-teams-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.all-teams-acc {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  overflow: hidden;
}

.all-teams-acc[hidden] {
  display: none !important;
}

.all-teams-acc__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--text);
}

.all-teams-acc__summary::-webkit-details-marker {
  display: none;
}

.all-teams-acc__summary::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.15rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.all-teams-acc[open] .all-teams-acc__summary::before {
  transform: rotate(45deg);
  margin-top: 0.1rem;
}

.all-teams-acc__swatch {
  width: 0.65rem;
  align-self: stretch;
  min-height: 2.25rem;
  border-radius: 3px;
  background: var(--team-color, var(--titan-orange));
  flex-shrink: 0;
}

.all-teams-acc__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
}

.all-teams-acc__name {
  font-size: 1rem;
}

.all-teams-acc__preview {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-soft);
  max-width: 100%;
}

.all-teams-acc__preview-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.all-teams-acc__mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.all-teams-acc__mini-avatar--ph {
  display: inline-block;
  background: var(--border);
}

.all-teams-acc__badge {
  margin-left: auto;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-soft);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.all-teams-acc__body {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.all-teams-section {
  margin-top: 0.85rem;
}

.all-teams-section:first-child {
  margin-top: 0.65rem;
}

.all-teams-section-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.all-teams-member-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

@media (max-width: 560px) {
  .all-teams-toolbar-actions {
    width: 100%;
    margin-left: 0;
  }

  .all-teams-acc__badge {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
}

/* ——— Trade bans (staff) ——— */
.trade-bans-page {
  max-width: 52rem;
  margin: 0 auto;
}

.trade-bans-lead {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.trade-bans-table-wrap {
  margin-bottom: 1.5rem;
}

.trade-bans-table th,
.trade-bans-table td {
  vertical-align: top;
}

.trade-bans-col-server-head,
.trade-bans-col-server {
  width: 6.5rem;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.trade-bans-server-yes {
  font-weight: 600;
  color: var(--ok);
}

.trade-bans-server-no {
  font-weight: 600;
  color: var(--danger);
}

.trade-bans-col-reason {
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
  color: var(--text-soft);
}

.trade-bans-empty {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ——— Services page ——— */
.site-services {
  max-width: 42rem;
  margin: 0 auto;
}

.site-services-lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
}

/* ——— Discord Bots (/discord-bots) ——— */
.discord-bots-page {
  text-align: center;
}

.discord-bots-page__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 1.25rem 1.5rem;
}

.discord-bots-page__icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.discord-bots-page__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.discord-bots-page__lead {
  margin: 0;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.discord-bots-page__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
}

.discord-bots-page__picker {
  max-width: 28rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.75rem;
  text-align: left;
}

.discord-bots-combobox {
  position: relative;
  z-index: 2;
}

.discord-bots-page__search {
  width: 100%;
  max-width: none;
}

.discord-bots-suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 30;
  margin-top: 0;
  box-shadow: var(--shadow-md);
}

.discord-bots-suggest-row.is-active {
  background: rgba(255, 126, 0, 0.12);
}

.discord-bots-page__selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(61, 214, 140, 0.06);
  font-size: 0.92rem;
}

.discord-bots-page__selected-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.discord-bots-page__selected-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--text);
}

.discord-bots-page__clear {
  margin-left: auto;
}

.mod-hub-layout {
  width: 100%;
  max-width: none;
}

.mod-hub-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 0.25rem;
  width: 100%;
}

.mod-hub-picker-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  min-height: 5.25rem;
  padding: 1.05rem 1.2rem;
  margin: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.mod-hub-picker-card:hover {
  border-color: rgba(255, 147, 57, 0.35);
  background: rgba(255, 147, 57, 0.06);
}

.mod-hub-picker-card.is-open {
  border-color: rgba(255, 147, 57, 0.55);
  background: rgba(255, 147, 57, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 147, 57, 0.15);
}

.mod-hub-picker-card__title {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}

.mod-hub-picker-card__meta {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-soft, #949ba4);
}

.mod-hub-expand {
  margin-top: 1rem;
  border: 1px solid rgba(255, 147, 57, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.mod-hub-card__panel {
  display: none;
}

.mod-hub-card__panel:not([hidden]) {
  display: block;
}

.mod-hub-card__panel-inner {
  padding: 1rem 1.15rem 1.15rem;
}

.mod-hub-section {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.mod-hub-section--nested {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
}

.mod-hub-section__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 2.25rem 0.85rem 1rem;
  position: relative;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.mod-hub-section__summary--nested {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 2rem 0.7rem 0.85rem;
}

.mod-hub-section__summary::-webkit-details-marker {
  display: none;
}

.mod-hub-section__summary::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: 1px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  transform: translateY(-50%);
  transition: transform 0.2s ease, border-top-color 0.15s ease;
}

.mod-hub-section[open] > .mod-hub-section__summary::after {
  transform: translateY(-50%) rotate(180deg);
  border-top-color: var(--accent);
}

.mod-hub-section[open] > .mod-hub-section__summary {
  background: linear-gradient(
    135deg,
    rgba(255, 147, 57, 0.18) 0%,
    rgba(255, 90, 40, 0.06) 45%,
    rgba(12, 14, 22, 0.5) 100%
  );
  border-bottom: 1px solid rgba(255, 147, 57, 0.32);
}

.mod-hub-section__summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mod-hub-section[open] > .mod-hub-section__summary:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 147, 57, 0.22) 0%,
    rgba(255, 90, 40, 0.08) 45%,
    rgba(12, 14, 22, 0.55) 100%
  );
}

.mod-hub-section__summary-text {
  letter-spacing: 0.02em;
}

.mod-hub-section__count {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--text-soft);
}

.mod-hub-section__body {
  padding: 0.85rem 1rem 1rem;
}

.mod-hub-section__body--nested {
  padding: 0.65rem 0.75rem 0.85rem;
}

.mod-hub-section--nested + .mod-hub-section--nested {
  margin-top: 0.65rem;
}

.mod-hub-open-trades__count {
  font-weight: 600;
  color: var(--text-soft);
}

.mod-hub-open-trades__empty {
  margin: 0;
  color: var(--text-soft);
}

.mod-hub-open-trades__empty--inline {
  font-size: 0.9rem;
}

.mod-hub-open-trades__table-wrap {
  margin-bottom: 0;
}

.mod-hub-open-trades__table thead th,
.mod-hub-open-trades__table tbody td {
  text-align: left;
  vertical-align: middle;
}

.mod-hub-open-trades__table thead tr.mod-hub-open-trades__head th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  padding: 0.7rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffc899;
  white-space: nowrap;
  background: linear-gradient(
    180deg,
    rgba(255, 147, 57, 0.28) 0%,
    rgba(255, 90, 40, 0.12) 55%,
    rgba(12, 14, 22, 0.98) 100%
  );
  border-bottom: 2px solid rgba(255, 147, 57, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.mod-hub-open-trades__table tbody td {
  padding: 0.55rem 0.75rem;
}

.mod-hub-open-trades__id {
  white-space: nowrap;
}

.mod-hub-open-trades__table .my-trades-table__usercell {
  min-width: 10.5rem;
  max-width: 14rem;
}

.mod-hub-open-trades__table .my-trades-table__user-text {
  overflow: hidden;
  min-width: 0;
}

.mod-hub-open-trades__table .my-trades-table__user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mod-hub-open-trades__text {
  white-space: nowrap;
}

.mod-hub-open-trades__details {
  font-size: 0.78rem;
  line-height: 1.35;
  vertical-align: top;
  min-width: 7.5rem;
  max-width: 11rem;
}

.mod-hub-open-trades__detail-value {
  display: block;
  color: var(--text, #f3f4f6);
  word-break: break-word;
}

.mod-hub-open-trades__detail-value + .mod-hub-open-trades__detail-value {
  margin-top: 0.35rem;
}

.mod-hub-open-trades__opened {
  white-space: nowrap;
  font-size: 0.86rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.mod-hub-roster__head th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  padding: 0.7rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffc899;
  white-space: nowrap;
  background: linear-gradient(
    180deg,
    rgba(255, 147, 57, 0.28) 0%,
    rgba(255, 90, 40, 0.12) 55%,
    rgba(12, 14, 22, 0.98) 100%
  );
  border-bottom: 2px solid rgba(255, 147, 57, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.mod-hub-roster__user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.mod-hub-roster__avatar {
  width: 36px;
  height: 36px;
}

.mod-hub-trade-banned__table thead th,
.mod-hub-trade-banned__table tbody td {
  vertical-align: middle;
}

.mod-hub-trade-banned__reason {
  max-width: 22rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  word-break: break-word;
}

.mod-hub-trade-banned__actions {
  text-align: right;
  white-space: nowrap;
}

.mod-hub-trade-banned-filters {
  max-width: 40rem;
  margin-bottom: 0.75rem;
}

.mod-hub-trade-banned-pager {
  margin-bottom: 0.75rem;
}

.mod-hub-trade-banning__actions--bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-top: 0.25rem;
}

.mod-hub-trade-ban__form {
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mod-hub-trade-ban__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mod-hub-trade-ban__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted, #9ca3af);
}

.mod-hub-trade-ban__search-wrap {
  position: relative;
}

.mod-hub-trade-ban__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 20;
  max-height: 16rem;
}

.mod-hub-trade-ban__selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-md, 8px);
  background: var(--surface-elevated, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.mod-hub-trade-ban__selected-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  flex: 1;
  min-width: 0;
}

.mod-hub-trade-ban__selected-avatar {
  flex-shrink: 0;
}

.mod-hub-trade-ban__selected-label {
  font-weight: 600;
}

.mod-hub-trade-ban__selected-handle,
.mod-hub-trade-ban__selected-id {
  font-size: 0.8125rem;
  color: var(--text-muted, #9ca3af);
}

.mod-hub-trade-ban__reason {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
}

.mod-hub-trade-ban__feedback {
  margin: 0;
}

.mod-trade-mod-confirm-dialog__accent--ban {
  background: linear-gradient(90deg, #dc2626, #f97316);
}

.mod-trade-mod-confirm-dialog__accent--unban {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.mod-trade-mod-confirm-dialog__icon-wrap--ban {
  color: #f87171;
}

.mod-trade-mod-confirm-dialog__icon-wrap--unban {
  color: #4ade80;
}

.mod-trade-ban-confirm-dialog__reason {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md, 8px);
  background: var(--surface-elevated, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  font-size: 0.875rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.mod-trade-ban-confirm-dialog__reason-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #9ca3af);
  margin-bottom: 0.35rem;
}

.mod-hub-invites__lookup {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 36rem;
}

.mod-hub-invites__results {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mod-hub-invites__section-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.mod-hub-invites__section + .mod-hub-invites__section {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.mod-hub-invites__user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.mod-hub-invites__user + .mod-hub-invites__user {
  border-top: 1px solid var(--border-soft, var(--border));
}

.mod-hub-invites__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.mod-hub-invites__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.mod-hub-invites__user-main {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.mod-hub-invites__username {
  font-weight: 600;
  color: var(--text);
}

.mod-hub-invites__user-id {
  display: block;
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--text-muted, #6b7280);
}

.mod-hub-invites__date {
  flex-shrink: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.mod-hub-invites__empty {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.mod-hub-roster__name {
  font-weight: 600;
}

/* ——— Accounts hub (/accounts) ——— */
.accounts-hub {
  max-width: 42rem;
  margin: 0 auto;
}

.accounts-hub-lead {
  margin: 0 0 1rem;
}

.accounts-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 0.85rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.accounts-game-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  border-left: 3px solid var(--titan-line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.accounts-game-card:hover {
  border-color: rgba(255, 140, 0, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.accounts-game-card:focus-visible {
  outline: 2px solid rgba(255, 140, 60, 0.85);
  outline-offset: 3px;
}

.accounts-game-card-label {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.accounts-game-card-sub {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.services-options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 520px) {
  .services-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.services-options li {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(255, 140, 0, 0.55);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

main.wrap > h1:first-of-type {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  line-height: 1.2;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.85));
}

main.wrap > h1:first-of-type::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.65rem;
  background: var(--grad-secondary);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 126, 0, 0.25);
}

.lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 65ch;
  font-size: 1.02rem;
}

.lead a {
  font-weight: 500;
}

h2.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 0 rgba(255, 140, 0, 0.12);
}

/* Donation roles: same composite pattern as perks — title uses default h2.section-title */
h2.section-title.section-title--donations-roles-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.section-title--donations-roles-line .section-title__main {
  flex: 0 1 auto;
}

.section-title--donations-roles-line .section-title__sep {
  font-weight: 500;
  opacity: 0.65;
}

.section-title--donations-roles-line .section-title__sub {
  flex: 1 1 12rem;
  min-width: min(100%, 12rem);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

/* Donation perks: same composite pattern; title keeps default .section-title look */
h2.section-title.section-title--donations-perks-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.section-title--donations-perks-line .section-title__main {
  /* Inherits h2.section-title: size, weight, uppercase, letter-spacing, color */
  flex: 0 1 auto;
}

.section-title--donations-perks-line .section-title__sep {
  font-weight: 500;
  opacity: 0.65;
}

.section-title--donations-perks-line .section-title__sub {
  flex: 1 1 12rem;
  min-width: min(100%, 12rem);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

/* ——— Hero (home) ——— */
.hero {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--panel) 0%, rgba(20, 12, 8, 0.85) 50%, rgba(8, 16, 32, 0.75) 100%);
  border: 1px solid var(--border);
  border-top: 2px solid rgba(255, 140, 0, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), 0 0 40px rgba(255, 126, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 126, 0, 0.12) 0%, rgba(0, 114, 255, 0.06) 40%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.15;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.9));
}

.hero h1::after {
  display: none;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin: 0 0 1.25rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--grad-cta);
  color: #0a0a0a !important;
  font-weight: 700;
  box-shadow: 0 4px 22px var(--accent-glow);
  border: 1px solid rgba(255, 200, 100, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.06);
  color: #0a0a0a !important;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.btn-danger {
  background: linear-gradient(165deg, #e11d48 0%, #b91c1c 100%);
  color: #fff !important;
  font-weight: 700;
  box-shadow:
    0 4px 22px rgba(220, 38, 38, 0.42),
    0 0 0 1px rgba(255, 180, 180, 0.2);
  border: 1px solid rgba(255, 200, 200, 0.35);
}

.btn-danger:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.btn-danger:focus-visible {
  outline: 2px solid #f87171;
  outline-offset: 2px;
}

.btn-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.btn-success {
  background: linear-gradient(165deg, #22c55e 0%, #16a34a 100%);
  color: #fff !important;
  font-weight: 700;
  box-shadow:
    0 4px 22px rgba(34, 197, 94, 0.42),
    0 0 0 1px rgba(180, 255, 200, 0.2);
  border: 1px solid rgba(200, 255, 220, 0.35);
}

.btn-success:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.btn-success:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}

.btn-success:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.btn-discord {
  background: var(--discord);
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  background: var(--discord-hover);
  color: #fff !important;
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text-soft) !important;
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--panel-hover);
  color: var(--text) !important;
  border-color: var(--muted);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

/* Bare .btn → primary (templates that only use class="btn") */
.btn:not(.btn-ghost):not(.btn-discord):not(.btn-primary):not(.btn-danger):not(.btn-success) {
  background: var(--grad-cta);
  color: #0a0a0a !important;
  font-weight: 700;
  box-shadow: 0 4px 22px var(--accent-glow);
  border: 1px solid rgba(255, 200, 100, 0.35);
}

.btn:not(.btn-ghost):not(.btn-discord):not(.btn-primary):not(.btn-danger):not(.btn-success):hover {
  filter: brightness(1.06);
  color: #0a0a0a !important;
}

/* ——— Cards & grids ——— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.db-card {
  position: relative;
  padding: 1.15rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.db-card:hover {
  border-color: rgba(0, 210, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.db-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.db-card .slug {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.link-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit !important;
  text-decoration: none !important;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.2s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.2s ease;
}

.link-tile:hover {
  background: var(--panel-hover);
  border-color: rgba(0, 210, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .db-card:hover,
  .link-tile:hover,
  .guide-card:hover,
  .overview-block:hover,
  .panel:hover,
  .market-post-panel:hover,
  .market-post-panel:focus-within {
    transform: none;
  }

  .market-post-panel:hover .market-post-open.market-post-accept:not(:disabled) {
    transform: none;
  }

  .link-tile {
    transition: border-color 0.15s ease, background 0.15s ease;
  }
}

.link-tile--disabled {
  pointer-events: none;
}

.link-tile-glyph {
  width: 8px;
  height: 8px;
  margin-top: 0.35rem;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--grad-primary);
  box-shadow: 0 0 8px rgba(255, 126, 0, 0.4);
  opacity: 0.95;
}

.link-tile--disabled .link-tile-glyph {
  background: var(--muted);
  opacity: 0.5;
}

.text-soft {
  color: var(--text-soft);
}

.link-tile-body strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.link-tile-body span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ——— Panel image (brand asset) ——— */
.panel-image-preview {
  margin: 0;
  padding: 0;
  width: 100px;
  height: 100px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  overflow: hidden;
  flex-shrink: 0;
}

.panel-image-preview-img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
  object-position: center;
}

.panel-image-section-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.panel-image-preview-heading {
  margin-top: 1.35rem;
}

.panel-image-page .panel-image-preview-title {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.panel-image-upload-intro,
.panel-image-upload-denied {
  margin-bottom: 1rem;
}

.panel-image-action-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.panel-image-upload-form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
}

.panel-image-file-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.panel-image-choose-label {
  cursor: pointer;
  margin: 0;
}

.panel-image-choose-label.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.panel-image-delete-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 42ch;
}

/* Summary overview — in-page anchors (sidebar + deep links) */
#blocked-users,
#custom-commands,
#invite-codes,
#vouch-webhook,
#panel-logo {
  scroll-margin-top: 5.5rem;
}

.overview-panel-logo-lead {
  margin-bottom: 0.75rem;
}

/* Panel Logo copy spans the full card width (not .lead 65ch / narrow columns) */
#panel-logo .overview-panel-logo-lead,
#panel-logo .overview-panel-logo-hint,
#panel-logo .overview-panel-logo-denied,
#panel-logo .overview-panel-logo-delete-hint {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

#panel-logo .overview-panel-logo-hint,
#panel-logo .overview-panel-logo-denied {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

#panel-logo .overview-panel-logo-delete-hint {
  margin: 0 0 0.65rem;
}

.overview-panel-logo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.25rem;
}

.overview-panel-logo-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.overview-panel-logo-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.overview-panel-logo-denied {
  margin-bottom: 0.35rem !important;
}

#panel-logo .panel-image-upload-feedback {
  max-width: none;
  width: 100%;
}

.overview-panel-image-actions {
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  gap: 0.65rem 0.75rem !important;
}

.overview-panel-image-actions .panel-image-upload-form {
  flex: 1 1 auto;
  min-width: min(100%, 16rem);
}

.panel-image-upload-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.panel-image-upload-input {
  max-width: min(100%, 22rem);
  font-size: 0.9rem;
}

.panel-image-upload-feedback {
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.35em;
}

.panel-image-upload-feedback--error {
  color: var(--danger, #c44);
}

.guide-card,
.overview-block,
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.85rem;
  border-left: 3px solid var(--titan-line);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  transition:
    transform 0.2s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.2s ease;
}

.guide-card:hover,
.overview-block:hover,
.panel:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 210, 255, 0.12), 0 0 28px rgba(0, 114, 255, 0.07);
}

.overview-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.overview-block-head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

.overview-block-head--reviews .overview-reviews-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  min-width: 0;
}

.overview-reviews-inline-stats {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--muted);
}

.overview-reviews-inline-stats strong {
  font-weight: 600;
  color: var(--text-soft);
}

.overview-reviews-inline-stats-sep {
  color: var(--muted);
  opacity: 0.85;
  user-select: none;
}

a.overview-reviews-inline-stats--link {
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

a.overview-reviews-inline-stats--link:hover {
  background: rgba(255, 126, 0, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.08);
}

a.overview-reviews-inline-stats--link:focus-visible {
  outline: 2px solid var(--titan-orange);
  outline-offset: 2px;
}

.overview-reviews-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-soft);
}

a.overview-reviews-lead--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius-sm);
  margin-left: -0.25rem;
  margin-right: -0.25rem;
  padding: 0.25rem 0.25rem;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease;
}

a.overview-reviews-lead--link:hover {
  background: rgba(255, 126, 0, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.12);
}

a.overview-reviews-lead--link:focus-visible {
  outline: 2px solid var(--titan-orange);
  outline-offset: 2px;
}

.overview-reviews-lead-sep {
  color: var(--muted);
  user-select: none;
}

.overview-reviews-star-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 36rem;
}

@media (max-width: 520px) {
  .overview-reviews-star-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.overview-reviews-star-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.55rem 0.35rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: center;
}

a.overview-reviews-star-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  min-width: 0;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

a.overview-reviews-star-card--link:hover {
  border-color: rgba(255, 140, 0, 0.42);
  background: rgba(255, 126, 0, 0.07);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.1);
}

a.overview-reviews-star-card--link:focus-visible {
  outline: 2px solid var(--titan-orange);
  outline-offset: 2px;
}

.overview-reviews-star-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--titan-gold);
  letter-spacing: -0.02em;
}

.overview-reviews-star-card-count {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

button.overview-reviews-star-card--filter {
  font: inherit;
  color: inherit;
  cursor: pointer;
  min-width: 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

button.overview-reviews-star-card--filter:hover {
  border-color: rgba(255, 140, 0, 0.42);
  background: rgba(255, 126, 0, 0.07);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.1);
}

button.overview-reviews-star-card--filter:focus-visible {
  outline: 2px solid var(--titan-orange);
  outline-offset: 2px;
}

button.overview-reviews-star-card--filter.is-selected {
  border-color: rgba(255, 140, 0, 0.55);
  background: rgba(255, 126, 0, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.18);
}

.overview-reviews-star-card--display {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  min-width: 2.35rem;
  pointer-events: none;
}

.reviews-star-filter {
  border: 0;
  margin: 0 0 0.85rem;
  padding: 0;
  max-width: 36rem;
}

.reviews-star-filter-legend {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin-bottom: 0.45rem;
  padding: 0;
}

.reviews-star-filter-grid {
  margin: 0;
}

.reviews-filters-row td.reviews-col-rating--filter-placeholder {
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid var(--border);
}

/* Summary — blocked users panel */
.blocked-users-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.blocked-users-panel-head h3 {
  margin: 0;
}

.blocked-users-lead {
  margin-bottom: 0.75rem;
}

/* Summary — blocked users (grid, 4 per row on desktop) */
.blocked-users-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 64rem;
}

@media (max-width: 900px) {
  .blocked-users-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .blocked-users-grid {
    grid-template-columns: 1fr;
  }
}

.blocked-users-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 1.35rem 0.55rem 0.55rem 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.blocked-users-card-x {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 1.45rem;
  height: 1.45rem;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(220, 53, 69, 0.28);
  color: #fecaca;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease;
}

.blocked-users-card-x:hover {
  background: rgba(220, 53, 69, 0.45);
  border-color: rgba(252, 165, 165, 0.65);
  color: #fff;
}

.blocked-users-card-x:focus-visible {
  outline: 2px solid #f87171;
  outline-offset: 2px;
}

.blocked-users-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.blocked-users-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
}

.blocked-users-avatar--placeholder {
  display: inline-block;
  box-sizing: border-box;
  background: var(--border);
}

.blocked-users-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.blocked-users-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  word-break: break-word;
}

.blocked-users-id {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  word-break: break-all;
}

.blocked-block-picker-list {
  max-height: min(22rem, 55vh);
  overflow-y: auto;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.blocked-block-picker-empty {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.blocked-block-picker-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.6rem;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 0.12s ease;
}

.blocked-block-picker-row:last-child {
  border-bottom: none;
}

.blocked-block-picker-row:hover:not(:disabled) {
  background: rgba(255, 126, 0, 0.08);
}

.blocked-block-picker-row.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.blocked-block-picker-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
}

.blocked-block-picker-avatar--ph {
  display: inline-block;
  box-sizing: border-box;
}

.blocked-block-picker-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  min-width: 0;
  flex: 1;
}

.blocked-block-picker-name {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.25;
  word-break: break-word;
}

.blocked-block-picker-handle {
  font-size: 0.68rem;
  color: var(--muted);
  font-family: var(--mono);
}

.blocked-block-picker-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 0.08rem;
}

.guide-card h3,
.overview-block > h3,
.panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

.guide-card p,
.overview-block p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ——— Summary page (member profile block) ——— */
.member-profile {
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.member-profile h3 {
  position: relative;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.member-profile h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
  opacity: 0.95;
  box-shadow: 0 0 10px rgba(255, 126, 0, 0.35);
}

.member-profile-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.member-profile-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 auto;
}

/* Account Status box: label + pill centred inside the stat card */
.member-profile-stat--account-status {
  flex: 0 0 auto;
  align-self: center;
  align-items: center;
  text-align: center;
  min-width: 8.5rem;
}

.member-profile-stat-body--account-status {
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (max-width: 520px) {
  .member-profile-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .member-profile-identity {
    align-self: flex-start;
  }

  .member-profile-stat--account-status {
    align-self: center;
    max-width: 16rem;
  }
}

.member-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  background: var(--bg-elevated);
}

.member-profile-names {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.member-profile-display {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  word-break: break-word;
}

.member-profile-handle {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 500;
}

.member-profile-userid {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.1rem;
  letter-spacing: 0.02em;
}

.member-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .member-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .member-profile-stats {
    grid-template-columns: 1fr;
  }
}

.member-profile-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

a.member-profile-stat--clickable {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

a.member-profile-stat--clickable:hover {
  border-color: rgba(255, 140, 0, 0.42);
  background: rgba(255, 126, 0, 0.07);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.1);
}

a.member-profile-stat--clickable:focus-visible {
  outline: 2px solid var(--titan-orange);
  outline-offset: 2px;
}

.member-profile-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.member-profile-stat--panel-link {
  position: relative;
  padding-right: 2.35rem;
}

.panel-link-edit-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  margin: 0;
  padding: 0.25rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent-orange-dim);
  color: var(--titan-orange);
  cursor: pointer;
  line-height: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 126, 0, 0.35);
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.panel-link-edit-btn:hover {
  color: var(--titan-gold);
  background: rgba(255, 126, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.45), 0 0 12px rgba(255, 126, 0, 0.2);
  transform: scale(1.06);
}

.panel-link-edit-btn:focus-visible {
  outline: 2px solid var(--titan-orange);
  outline-offset: 2px;
}

.panel-link-edit-icon {
  display: block;
}

.member-profile-stat-body {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.member-profile-stat-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  word-break: break-word;
}

.member-profile-stat-value--mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.member-profile-stat-value--link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
}

/* Donated: soft chip bubble */
.profile-value--money {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
}

.member-profile-stat .profile-value--money {
  font-size: 0.95rem;
  padding: 0.38rem 0.7rem;
}

/* Trade ban: compact bubbles, no glow */
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-pill--ok {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid rgba(61, 214, 140, 0.28);
}

.status-pill--danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.status-pill--inactive {
  background: rgba(120, 120, 130, 0.15);
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
}

/* Summary — account status (not trade-ban label) */
.status-pill--account-clear {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 700;
  min-width: auto;
  padding: 0.35rem 0.85rem;
  color: #5ee9a8;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(52, 211, 153, 0.42);
}

.status-pill--account-banned {
  letter-spacing: 0.07em;
  font-weight: 800;
  min-width: auto;
  padding: 0.35rem 0.85rem;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.22);
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.18);
}

/* ——— Badges ——— */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--muted);
  border: 1px solid var(--border);
}

.badge.ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: rgba(61, 214, 140, 0.25);
}

.badge.miss {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.25);
}

/* ——— Alerts ——— */
.flash {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  background: var(--warn-bg);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--warn);
  font-size: 0.95rem;
}

.empty-hint {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* ——— Tables ——— */
.table-scroll {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

table.data {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

@media (max-width: 768px) {
  table.data {
    min-width: 0;
    table-layout: fixed;
    font-size: 0.8rem;
  }

  .table-scroll {
    overflow-x: visible;
    margin-left: 0;
    margin-right: 0;
  }
}

table.data th,
table.data td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  word-break: break-word;
}

table.data th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(255, 126, 0, 0.08) 0%, var(--bg-elevated) 100%);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 140, 0, 0.15);
}

table.data tbody tr {
  transition: background 0.1s ease;
}

table.data tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

table.data tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.12);
}

table.data tbody tr:nth-child(even):hover {
  background: rgba(255, 255, 255, 0.04);
}

table.data tr:last-child td {
  border-bottom: none;
}

/* Summary / subscription key–value table (row headers in tbody) */
table.data.overview-sub-table tbody th[scope="row"] {
  position: static;
  width: 42%;
  max-width: 15rem;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--border);
  z-index: auto;
}

pre.custom-command-cell {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.45;
  max-height: 14rem;
  overflow: auto;
}

.custom-tags-perk-hint {
  margin-bottom: 1rem;
  max-width: 40rem;
}

.overview-block p.lead.custom-tags-perk-hint {
  margin-bottom: 1rem;
}

.custom-tags-toolbar {
  margin-bottom: 1rem;
}

.custom-tags-table .custom-tags-actions-col {
  width: 1%;
  white-space: nowrap;
}

.custom-tags-actions-cell {
  vertical-align: middle;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: center;
}

.custom-tags-actions-inline {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
}

.custom-tag-icon-btn {
  box-sizing: border-box;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.custom-tag-icon-btn__svg {
  display: block;
}

.custom-tag-icon-btn--edit {
  background: var(--accent-orange-dim);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 126, 0, 0.45);
}

.custom-tag-icon-btn--edit:hover {
  background: rgba(255, 126, 0, 0.32);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 215, 0, 0.5),
    0 0 12px rgba(255, 126, 0, 0.22);
  transform: scale(1.06);
}

.custom-tag-icon-btn--edit:focus-visible {
  outline: 2px solid var(--titan-orange);
  outline-offset: 2px;
}

.custom-tag-icon-btn--remove {
  background: rgba(200, 48, 58, 0.45);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 100, 100, 0.55);
}

.custom-tag-icon-btn--remove:hover {
  background: rgba(220, 53, 69, 0.65);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 140, 140, 0.65),
    0 0 10px rgba(220, 53, 69, 0.35);
  transform: scale(1.06);
}

.custom-tag-icon-btn--remove:focus-visible {
  outline: 2px solid #ff6b6b;
  outline-offset: 2px;
}

/* Custom command delete confirmation */
.custom-tag-delete-dialog.market-filters-dialog .market-filters-dialog-inner {
  border-color: rgba(248, 113, 113, 0.32);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(248, 113, 113, 0.12),
    0 0 56px rgba(220, 38, 38, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.custom-tag-delete-dialog__accent {
  background: linear-gradient(90deg, #7f1d1d 0%, #ef4444 42%, #fb923c 100%) !important;
  opacity: 1 !important;
}

.custom-tag-delete-dialog__icon-wrap {
  width: 3.35rem;
  height: 3.35rem;
  margin: 0.15rem auto 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(254, 202, 202, 0.2), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(127, 29, 29, 0.55), rgba(30, 10, 10, 0.92));
  border: 1px solid rgba(248, 113, 113, 0.5);
  box-shadow:
    0 0 28px rgba(239, 68, 68, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fecaca;
}

.custom-tag-delete-dialog__icon-svg {
  display: block;
  filter: drop-shadow(0 0 10px rgba(248, 113, 113, 0.55));
}

.custom-tag-delete-dialog .custom-tag-delete-dialog__title {
  text-align: center;
  margin-top: 0;
  color: #fecaca;
  text-shadow: 0 0 28px rgba(239, 68, 68, 0.45);
}

.custom-tag-delete-dialog__lead {
  text-align: center;
  margin-bottom: 0.65rem;
  max-width: none;
}

.custom-tag-delete-dialog__cmd {
  font-family: var(--mono);
  font-weight: 700;
  color: #fecaca;
  padding: 0.12rem 0.4rem;
  background: rgba(127, 29, 29, 0.45);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 113, 113, 0.4);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.2);
  word-break: break-all;
}

.custom-tag-delete-dialog .sub-redeem-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Summary — blocked user unblock confirm (green accent, not destructive) */
.blocked-unblock-dialog.custom-tag-delete-dialog.market-filters-dialog .market-filters-dialog-inner {
  border-color: rgba(74, 222, 128, 0.28);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(34, 197, 94, 0.12),
    0 0 56px rgba(22, 101, 52, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.blocked-unblock-dialog.custom-tag-delete-dialog .custom-tag-delete-dialog__accent {
  background: linear-gradient(90deg, #14532d 0%, #22c55e 45%, #4ade80 100%) !important;
}

.blocked-unblock-dialog.custom-tag-delete-dialog .custom-tag-delete-dialog__icon-wrap {
  background:
    radial-gradient(circle at 32% 28%, rgba(187, 247, 208, 0.22), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(20, 83, 45, 0.55), rgba(10, 28, 14, 0.92));
  border: 1px solid rgba(74, 222, 128, 0.42);
  box-shadow:
    0 0 28px rgba(34, 197, 94, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #bbf7d0;
}

.blocked-unblock-dialog.custom-tag-delete-dialog .custom-tag-delete-dialog__icon-svg {
  filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.45));
}

.blocked-unblock-dialog.custom-tag-delete-dialog .custom-tag-delete-dialog__title {
  color: #d1fae5;
  text-shadow: 0 0 28px rgba(34, 197, 94, 0.32);
}

.blocked-unblock-dialog.custom-tag-delete-dialog .custom-tag-delete-dialog__lead {
  color: var(--text-soft);
}

.blocked-unblock-dialog.custom-tag-delete-dialog .custom-tag-delete-dialog__lead strong {
  color: #86efac;
  font-weight: 700;
}

.custom-tag-form-textarea {
  display: block;
  resize: vertical;
  min-height: 8rem;
  line-height: 1.45;
}

.cell-blob {
  color: var(--warn);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.cell-null {
  color: var(--muted);
  font-style: italic;
}

/* ——— Pager ——— */
.pager {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ——— JSON ——— */
.json-pre {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-soft);
  max-height: min(70vh, 560px);
}

/* ——— Lists ——— */
ul.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

ul.links a {
  display: block;
  padding: 0.5rem 0.65rem;
  margin-left: -0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft) !important;
  font-weight: 500;
}

ul.links a:hover {
  background: var(--panel);
  color: var(--accent-bright) !important;
}

.section {
  margin-bottom: 2rem;
}

/* ——— Home (landing) ——— */
.home-page {
  position: relative;
  padding: 0.25rem 0 1.75rem;
}

.home-page::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1.5rem;
  width: auto;
  height: min(58vh, 28rem);
  max-height: 520px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(255, 126, 0, 0.11), transparent 68%),
    radial-gradient(ellipse 45% 40% at 20% 20%, rgba(0, 210, 255, 0.06), transparent 55%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 36px,
      rgba(255, 255, 255, 0.018) 36px,
      rgba(255, 255, 255, 0.018) 37px
    );
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  opacity: 0.95;
}

.home-page > * {
  position: relative;
  z-index: 1;
}

/* Home landing: full content width — matches sponsor strips inside .wrap */
.home-cards.home-cards--landing {
  gap: 1.25rem;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Home — marketing summary (stacked sections + hero CTAs) */
.home-landing-summary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Summary cards: minimum height + body flex so copy sits vertically centred in the panel */
.home-landing-summary > .home-landing-summary-block.home-fancy-card {
  min-height: clamp(10.5rem, 22vh, 19rem);
}

.home-landing-summary .home-fancy-card-body--about {
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2.1rem) clamp(0.85rem, 2.5vw, 1.35rem);
}

.home-landing-summary > .home-landing-summary-block .home-fancy-card-body--about {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
}

.home-landing-summary > .home-landing-summary-block .home-landing-summary-block__title {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.home-landing-summary > .home-landing-summary-block .home-landing-summary-block__text,
.home-landing-summary > .home-landing-summary-block .home-landing-summary-block__text--emphasis {
  align-self: stretch;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.home-landing-summary > .home-landing-summary-block:nth-child(1) .home-landing-summary-block__title--hero {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.home-landing-summary > .home-landing-summary-block:nth-child(1) .home-hero-title--motion {
  justify-content: center;
  max-width: 100%;
}

/* Symmetric highlight so copy does not look pushed toward one side */
.home-landing-summary > .home-landing-summary-block .home-fancy-card-body--about::before {
  background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 126, 0, 0.07), transparent 60%);
}

.home-landing-summary-block__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(160, 190, 255, 0.95);
  text-align: center;
}

.home-landing-summary-block__title {
  margin: 0 0 1rem;
  font-size: clamp(1.08rem, 2.6vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.22;
  color: var(--text);
  text-align: center;
}

.home-landing-summary-block__title--hero {
  font-size: clamp(1.15rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.28;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.85));
}

.home-hero-title {
  display: inline-block;
  max-width: 100%;
}

.home-hero-title--motion {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 0.14em;
  row-gap: 0.12em;
}

.home-hero-title--reduced {
  display: none;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.home-hero-title__trade {
  display: inline-block;
  line-height: 1.28;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.home-hero-title__slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 7.65ch;
  min-width: 7.65ch;
  height: 1.28em;
  line-height: 1.28;
  text-align: left;
}

.home-hero-title__word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.28;
  white-space: nowrap;
  color: rgba(242, 244, 250, 0.98);
  text-shadow: 0 0 28px rgba(0, 114, 255, 0.12);
  opacity: 0;
  animation: home-hero-rot-word 12s ease-in-out infinite;
}

.home-hero-title__word:nth-child(1) {
  animation-delay: 0s;
}

.home-hero-title__word:nth-child(2) {
  animation-delay: -4s;
}

.home-hero-title__word:nth-child(3) {
  animation-delay: -8s;
}

@keyframes home-hero-rot-word {
  0% {
    opacity: 0;
    transform: translateY(0.14em);
  }

  3% {
    opacity: 1;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(0);
  }

  33% {
    opacity: 0;
    transform: translateY(-0.1em);
  }

  100% {
    opacity: 0;
    transform: translateY(-0.1em);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-title--motion {
    display: none !important;
  }

  .home-hero-title--reduced {
    display: inline-block;
  }
}

.home-landing-summary-block__text {
  margin: 0 auto 1rem;
  max-width: 56rem;
  text-align: center;
}

.home-landing-summary-block__text:last-of-type {
  margin-bottom: 0;
}

.home-landing-summary-block__text--emphasis {
  margin-top: 0.35rem;
  font-weight: 600;
  color: rgba(220, 228, 242, 0.96);
  text-align: center;
}

.home-landing-summary-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-top: 1.35rem;
}

body.site-body--home .home-page-join-wrap {
  width: 100%;
  max-width: none;
  margin: 1.35rem 0 0.85rem;
  padding: 0;
  box-sizing: border-box;
}

a.home-join-discord-card {
  text-decoration: none;
  color: inherit;
}

.home-join-discord-card__body {
  text-align: center;
  padding: 1.1rem clamp(1rem, 3vw, 1.45rem) 1.3rem;
}

.home-join-discord-card__title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(160, 190, 255, 0.95);
}

.home-join-discord-card__members {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(165, 185, 220, 0.95);
}

.home-join-discord-card .btn.btn-discord,
.home-join-discord-card__cta.btn.btn-discord {
  width: 100%;
  max-width: min(22rem, 100%);
  margin: 0 auto;
  justify-content: center;
  pointer-events: none;
}

.home-landing-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ——— Home (simple cards) ——— */
.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.home-fancy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--panel) 0%, rgba(12, 14, 22, 0.96) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255, 140, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition:
    border-color 0.22s ease,
    box-shadow 0.28s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.24s cubic-bezier(0.33, 1, 0.68, 1),
    filter 0.22s ease;
}

.home-fancy-card--hero {
  border-radius: calc(var(--radius) + 6px);
  border-color: rgba(255, 160, 80, 0.22);
  background:
    radial-gradient(ellipse 95% 60% at 12% -5%, rgba(255, 160, 80, 0.12), transparent 52%),
    radial-gradient(ellipse 75% 50% at 98% 5%, rgba(0, 200, 255, 0.1), transparent 50%),
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(0, 114, 255, 0.05), transparent 55%),
    linear-gradient(158deg, rgba(22, 24, 34, 0.98) 0%, rgba(8, 10, 18, 0.99) 100%);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(255, 140, 0, 0.12),
    0 0 80px rgba(255, 126, 0, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.home-fancy-card--hero > .home-fancy-card-accent {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--titan-orange),
    var(--titan-gold),
    var(--titan-cyan),
    var(--titan-blue),
    var(--titan-orange)
  );
  background-size: 200% 100%;
  animation: home-hero-accent 10s ease-in-out infinite;
  opacity: 1;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.35);
}

@keyframes home-hero-accent {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-fancy-card--hero > .home-fancy-card-accent {
    animation: none;
    background-size: 100% 100%;
  }

  .home-fancy-card:hover,
  .home-fancy-card--hero:hover {
    transform: none;
    filter: none;
  }
}

.home-fancy-card--hero:hover {
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(0, 210, 255, 0.2),
    0 0 100px rgba(0, 114, 255, 0.14),
    0 28px 56px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-3px) scale(1.005);
  filter: saturate(1.05);
}

.home-fancy-card:hover {
  border-color: rgba(0, 210, 255, 0.22);
  box-shadow: var(--shadow-md), 0 0 48px rgba(0, 114, 255, 0.08);
  transform: translateY(-3px) scale(1.008);
  filter: saturate(1.04);
}

.home-fancy-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .home-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-fancy-card--wide {
    grid-column: 1 / -1;
  }
}

.home-fancy-card-accent {
  height: 3px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--titan-orange), var(--titan-gold), var(--titan-cyan));
  opacity: 0.95;
}

.home-fancy-card-accent--cyan {
  background: linear-gradient(90deg, var(--titan-blue), var(--titan-cyan));
}

.home-fancy-card-accent--gold {
  background: linear-gradient(90deg, var(--titan-gold), var(--titan-orange));
}

.home-fancy-card-accent--orange {
  background: linear-gradient(90deg, var(--titan-line), var(--titan-orange));
}

.home-fancy-card-body {
  padding: 1.2rem 1.35rem 1.35rem;
  position: relative;
  z-index: 1;
}

.home-cards .home-fancy-card-body {
  text-align: center;
}

.home-fancy-card-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 126, 0, 0.07), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.home-fancy-brand-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.9rem, 5.4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.85)) drop-shadow(0 0 28px rgba(255, 140, 0, 0.22));
}

.home-fancy-brand-sub {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.home-fancy-brand-slogan {
  margin-top: 0.5rem;
  max-width: 22em;
  font-size: clamp(0.98rem, 2.75vw, 1.28rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: none;
  background: linear-gradient(
    105deg,
    #ffd9a8 0%,
    var(--titan-gold) 22%,
    #fff4e0 42%,
    var(--titan-cyan) 78%,
    #b8f0ff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 0 24px rgba(255, 180, 100, 0.35))
    drop-shadow(0 0 40px rgba(0, 200, 255, 0.12));
}

@media (max-width: 640px) {
  .home-fancy-brand-slogan {
    max-width: none;
    letter-spacing: 0.045em;
  }
}

.home-fancy-credit-link {
  font-weight: 700;
  color: var(--accent) !important;
}

.home-fancy-credit-link:hover {
  color: var(--accent-bright) !important;
}

.home-creator-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  text-decoration: none !important;
  color: inherit !important;
  flex-shrink: 0;
  max-width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.home-creator-card:hover {
  border-color: rgba(0, 229, 255, 0.38);
  box-shadow: 0 0 28px rgba(0, 114, 255, 0.12);
  transform: translateY(-1px);
}

.home-creator-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 140, 0, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.home-creator-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  text-align: left;
  align-items: flex-start;
}

.home-creator-display {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.home-creator-username {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}

.home-creator-id {
  margin-top: 0.1rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
  align-self: flex-start;
  line-height: 1.3;
}

.home-fancy-card-body--about {
  position: relative;
  padding: 1.35rem clamp(0.85rem, 2.5vw, 1.35rem) 1.65rem;
  border-top: none;
  text-align: center;
  background: radial-gradient(ellipse 120% 90% at 50% 0%, rgba(255, 140, 0, 0.06), transparent 62%);
}

/* Home intro card — lead line (page title is in base banner row) */
.home-fancy-card-body--intro {
  padding: 1.05rem clamp(0.85rem, 3vw, 1.5rem) 1.15rem;
  text-align: center;
}

.home-fancy-card-body--intro .home-hero-lead-line {
  margin: 0;
}

@keyframes home-hero-title-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.home-hero-lead-line {
  margin: 0 0 1rem;
  font-size: clamp(0.92rem, 2.5vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(200, 212, 232, 0.92);
  animation: home-hero-slide-in-right 0.88s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.08s;
}

.home-hero-lead-static {
  color: rgba(180, 195, 220, 0.85);
  font-weight: 500;
}

.home-hero-lead-accent {
  display: inline-block;
  margin-left: 0.25rem;
  font-weight: 700;
  background: var(--grad-primary);
  background-size: 140% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: home-hero-lead-shift 18s ease-in-out infinite alternate;
}

@keyframes home-hero-lead-shift {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

@keyframes home-hero-slide-in-left {
  from {
    opacity: 0;
    transform: translate3d(-14px, 10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes home-hero-slide-in-right {
  from {
    opacity: 0;
    transform: translate3d(40px, 16px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes home-slide-in-up-soft {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes home-tagline-shine {
  0%,
  100% {
    color: rgba(220, 228, 242, 0.94);
    text-shadow: none;
  }

  50% {
    color: rgba(255, 236, 214, 0.99);
    text-shadow: 0 0 18px rgba(255, 160, 90, 0.38);
  }
}

@keyframes home-hook-strong-shine {
  0%,
  100% {
    color: rgba(235, 240, 250, 0.98);
    text-shadow: none;
  }

  50% {
    color: rgba(255, 245, 232, 1);
    text-shadow: 0 0 14px rgba(255, 170, 100, 0.32);
  }
}

@keyframes home-point-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.32);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-banner-page-title {
    animation: none;
  }

  .home-banner-page-title__brand,
  .home-hero-lead-accent {
    animation: none;
    background-position: 50% 50%;
  }

  .home-hero-lead-line {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .home-fancy-card-body--about .home-fancy-card-kicker--about,
  .home-about-hook-block,
  .home-about-points,
  .home-fancy-card-text--about-tagline,
  .home-about-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .home-about-tagline-part,
  .home-fancy-card-text--about-hook strong {
    animation: none;
    text-shadow: none;
  }

  .home-about-points li::before {
    animation: none;
    transform: none;
  }
}

.home-about-hook-block {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  text-align: center;
  animation: home-hero-slide-in-right 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.32s;
}

.home-about-hook-block strong {
  font-weight: 600;
  color: rgba(235, 240, 250, 0.98);
}

.home-fancy-card-text--about-hook strong {
  animation: home-hook-strong-shine 5.5s ease-in-out infinite;
}

.home-fancy-card-text--about-hook strong:nth-of-type(1) {
  animation-delay: 0s;
}

.home-fancy-card-text--about-hook strong:nth-of-type(2) {
  animation-delay: 0.45s;
}

.home-fancy-card-text--about-hook strong:nth-of-type(3) {
  animation-delay: 0.9s;
}

.home-fancy-card-text--about-hook strong:nth-of-type(4) {
  animation-delay: 1.35s;
}

.home-fancy-card-text--about-hook strong:nth-of-type(5) {
  animation-delay: 1.8s;
}

.home-fancy-card-text--about-hook strong:nth-of-type(6) {
  animation-delay: 2.25s;
}

.home-fancy-card-text--about-hook {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  letter-spacing: 0.008em;
  color: rgba(210, 218, 232, 0.94);
  text-wrap: balance;
}

.home-fancy-card-text--about-hook-sub {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
  letter-spacing: 0.012em;
  color: rgba(188, 198, 218, 0.9);
  text-wrap: balance;
}

.home-fancy-card-body--about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 140, 0, 0.45),
    rgba(255, 200, 120, 0.35),
    rgba(0, 210, 255, 0.25),
    transparent
  );
  opacity: 0.95;
}

.home-fancy-card-body--about .home-fancy-card-text + .home-fancy-card-text {
  margin-top: 0.85rem;
}

.home-fancy-card-body--points-only {
  padding-top: 1.15rem;
  padding-bottom: 1.25rem;
}

.home-about-points {
  list-style: none;
  margin: 0 auto;
  width: 100%;
  max-width: none;
  padding: 1.1rem 1.15rem;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 140, 0, 0.12);
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.26), rgba(18, 20, 30, 0.42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 24px rgba(0, 0, 0, 0.12);
  animation: home-hero-slide-in-left 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.4s;
}

.home-about-points li {
  position: relative;
  padding: 0.55rem 0.35rem;
  font-size: 0.95rem;
  line-height: 1.58;
  color: rgba(200, 210, 228, 0.92);
}

.home-about-points li strong {
  font-weight: 600;
  color: rgba(228, 234, 248, 0.96);
}

.home-about-points li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.home-about-points li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.5rem;
  vertical-align: 0.12em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--titan-orange), var(--titan-cyan));
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
  transform-origin: center;
  animation: home-point-pulse 4.2s ease-in-out infinite;
}

.home-about-points li:nth-child(1)::before {
  animation-delay: 0s;
}

.home-about-points li:nth-child(2)::before {
  animation-delay: 0.55s;
}

.home-about-points li:nth-child(3)::before {
  animation-delay: 1.1s;
}

.home-fancy-card-text--about-tagline {
  margin: 0 auto 0.85rem;
  max-width: 40rem;
  padding: 0.95rem 1.1rem;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 200, 140, 0.1);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: home-hero-slide-in-right 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.48s;
}

.home-about-tagline-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  row-gap: 0.5rem;
}

.home-about-tagline-part {
  font-size: 0.74rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(220, 228, 242, 0.94);
  animation: home-tagline-shine 4.8s ease-in-out infinite;
}

.home-about-tagline-part:nth-child(1) {
  animation-delay: 0s;
}

.home-about-tagline-part:nth-child(3) {
  animation-delay: -1.6s;
}

.home-about-tagline-part:nth-child(5) {
  animation-delay: -3.2s;
}

.home-about-tagline-sep {
  display: inline-block;
  color: rgba(140, 155, 185, 0.55);
  font-weight: 500;
  font-size: 0.65rem;
  line-height: 1;
  padding: 0 0.1rem;
  user-select: none;
}

.home-about-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  text-align: center;
  animation: home-slide-in-up-soft 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.54s;
}

.home-about-cta-label {
  flex: 0 1 auto;
  max-width: 28rem;
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(210, 220, 240, 0.92);
}

@media (max-width: 480px) {
  .home-about-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .home-about-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

.home-fancy-card-body--discord {
  margin: 0.35rem 0.85rem 1.1rem;
  padding: 1.2rem 1.1rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(88, 101, 242, 0.22);
  text-align: center;
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(88, 101, 242, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(8, 10, 18, 0.55), rgba(6, 8, 14, 0.35));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 28px rgba(0, 0, 0, 0.22);
}

.home-fancy-card-kicker--about {
  margin-bottom: 1.15rem;
  letter-spacing: 0.16em;
  color: rgba(255, 200, 150, 0.95);
  text-shadow: 0 1px 12px rgba(255, 140, 0, 0.18);
  animation: home-hero-slide-in-left 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.24s;
}

.home-fancy-card-kicker--discord {
  color: #b4b9f5;
  letter-spacing: 0.12em;
  text-shadow: 0 0 20px rgba(88, 101, 242, 0.35);
}

.home-discord-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 1rem 1.25rem;
  margin-top: 0.35rem;
  width: 100%;
}

.home-discord-row .dw-widget--home-pair {
  flex: 1 1 min(280px, 100%);
  max-width: min(300px, 100%);
  margin: 0 !important;
  align-self: center;
}

.home-discord-row .dw-widget--home-pair .dw-widget-head {
  padding: 0.65rem 0.8rem;
  gap: 0.4rem 0.75rem;
}

.home-discord-row .dw-widget--home-pair .dw-widget-name {
  font-size: 0.92rem;
}

.home-discord-row .dw-widget--home-pair .dw-widget-join-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.home-creator-card--discord-footer {
  margin: 0;
  max-width: min(22rem, 100%);
  flex: 1 1 min(240px, 100%);
  justify-content: center;
  width: auto;
  min-width: 0;
  align-self: center;
}

.home-creator-card--discord-footer .home-creator-avatar {
  width: 72px;
  height: 72px;
}

.home-discord-profile-fallback {
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent) !important;
  text-decoration: none !important;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(88, 101, 242, 0.35);
  background: rgba(0, 0, 0, 0.2);
}

.home-discord-profile-fallback:hover {
  color: var(--accent-bright) !important;
  border-color: rgba(88, 101, 242, 0.55);
}

@media (max-width: 720px) {
  .home-discord-row {
    flex-direction: column;
    align-items: center;
  }

  .home-discord-row .dw-widget--home-pair {
    max-width: 380px;
    width: 100%;
  }

  .home-creator-card--discord-footer {
    width: 100%;
    max-width: 22rem;
  }
}

@media (max-width: 640px) {
  .home-creator-card {
    justify-content: center;
    width: 100%;
    max-width: 22rem;
  }

  .home-creator-info {
    text-align: center;
    align-items: center;
  }

  .home-creator-id {
    align-self: center;
  }

  .home-fancy-card-body--discord:not(.home-fancy-card-body--discord-standalone) {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}

.home-fancy-card-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
}

.home-fancy-card-text {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

/* Higher specificity than `.home-fancy-card-text` so `margin: 0 auto` is not overridden (centres the tagline bar). */
.home-fancy-card-text.home-fancy-card-text--about-tagline {
  margin: 0 auto 0.85rem;
}

.home-landing-card--tagline:has(.home-about-cta) .home-fancy-card-text.home-fancy-card-text--about-tagline {
  margin-bottom: 0.45rem;
}

.home-fancy-card-body--about .home-fancy-card-text {
  opacity: 1;
}

/* Discord widget.json preview (home) — matches site panels / blurple accent */
.dw-widget {
  display: flex;
  flex-direction: column;
  margin: 1rem auto 0;
  width: 100%;
  max-width: 380px;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(88, 101, 242, 0.35);
  background: rgba(15, 17, 28, 0.85);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dw-widget-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.14), rgba(0, 0, 0, 0.12));
  text-align: center;
}

.dw-widget-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.dw-widget-presence {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  font-family: var(--mono);
}

.dw-widget-join-btn {
  flex-shrink: 0;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.8rem 1rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(180deg, #5865f2, #4752c4);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.dw-widget-join-btn:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.dw-widget-join-btn:focus-visible {
  outline: 2px solid rgba(88, 101, 242, 0.9);
  outline-offset: 2px;
  z-index: 1;
}

.dw-widget-fallback {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.dw-widget > .dw-widget-fallback {
  margin: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
  text-align: center;
}

.home-admin-panel {
  margin-top: 0.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px dashed var(--border-strong);
}

.home-admin-panel-title {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.home-admin-panel-lead {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

td.numeric {
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-family: var(--mono);
}

/* ——— Donations / subscription (hero title uses .channel-page-title) ——— */
.donations-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.donations-donate-btn,
.donations-redeem-btn,
.subscription-redeem-btn {
  flex-shrink: 0;
}

.donations-you {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, var(--panel) 0%, rgba(24, 16, 10, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid rgba(255, 140, 0, 0.5);
}

.donations-you-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.donations-you-body {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.donations-you-amount {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.donations-you-amount--at-limit {
  color: #ffb347;
  font-weight: 700;
}

.donations-you-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.donations-limit-hit {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem 1.1rem;
  background: linear-gradient(135deg, rgba(255, 126, 0, 0.12) 0%, rgba(24, 16, 10, 0.98) 100%);
  border: 1px solid rgba(255, 140, 0, 0.35);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-bright);
}

.donations-limit-hit__title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.02em;
}

.donations-limit-hit__body,
.donations-limit-hit__upgrade {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.donations-limit-hit__upgrade {
  color: var(--text);
}

.donations-limit-hit__upgrade a {
  color: var(--accent-bright);
}

.donations-limit-hit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
}

.donations-table .numeric {
  font-weight: 600;
}

.donations-perk-check-col {
  min-width: 6.5rem;
  width: 1%;
  padding-left: 0.35rem !important;
}

.donations-table th.donations-perk-check-col,
.donations-table td.donations-perk-check-cell {
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

.donations-perk-tick {
  display: inline-block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-bright);
  text-shadow: 0 0 12px rgba(255, 140, 0, 0.35);
}

.donations-perk-remaining {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
}

tr.donations-row--current {
  background: rgba(255, 126, 0, 0.08);
}

tr.donations-row--current td {
  font-weight: 600;
}

.subscription-plans-table th.subscription-plans-buy-col,
.subscription-plans-table td.subscription-plans-buy-cell {
  text-align: right;
  vertical-align: middle;
  width: 1%;
  white-space: nowrap;
}

.sub-redeem-dialog.market-filters-dialog {
  max-width: min(26rem, calc(100vw - 1.5rem));
}

.listing-edit-dialog.market-filters-dialog {
  max-width: min(28rem, calc(100vw - 1.5rem));
}

.listing-edit-dialog .listing-edit-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.65rem 0 0;
}

.listing-edit-dialog .listing-edit-rate-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

.sub-redeem-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.sub-redeem-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
}

.sub-redeem-feedback {
  min-height: 1.25rem;
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Listing create dialog: multi-line API errors (e.g. weekly cap) stay readable */
#listing-create-dialog .sub-redeem-feedback {
  white-space: pre-line;
  line-height: 1.45;
  max-height: min(42vh, 22rem);
  overflow-y: auto;
}

.sub-redeem-feedback--error {
  color: var(--danger);
}

.sub-redeem-feedback--ok {
  color: var(--ok);
  font-weight: 600;
}

.subscription-redeem-toast {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  margin: 0 0 1.25rem;
  background: var(--ok-bg);
  border: 1px solid rgba(61, 214, 140, 0.35);
  color: var(--ok);
  font-size: 0.95rem;
  line-height: 1.45;
}

.sub-redeem-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Wraps role tier cards — matches donation tables (.table-scroll) panel treatment */
.donations-roles-panel {
  margin: 1rem 0 2rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.donations-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0;
}

.donations-role-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.donations-role-card--static {
  cursor: default;
}

.donations-role-card:hover {
  border-color: rgba(0, 210, 255, 0.25);
}

.donations-role-card.donations-role-card--static:hover {
  border-color: var(--border);
}

.donations-role-card:focus {
  outline: none;
}

.donations-role-card:focus-visible {
  outline: 2px solid rgba(255, 140, 0, 0.55);
  outline-offset: 2px;
}

.donations-role-card--selected {
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 210, 255, 0.12);
}

.donations-role-card--current {
  border-color: rgba(255, 140, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.12);
  background: linear-gradient(135deg, var(--panel) 0%, rgba(40, 24, 8, 0.5) 100%);
}

.donations-role-card--current.donations-role-card--selected {
  border-color: rgba(255, 180, 80, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.18);
}

.donations-role-emoji {
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
}

.donations-role-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.donations-role-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.donations-role-threshold {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
  line-height: 1.4;
  min-height: 1.4em;
}

.donations-role-threshold strong {
  color: var(--accent-bright);
  font-weight: 700;
}

.donations-role-card--selected .donations-role-threshold {
  display: block;
  max-width: 100%;
  font-size: 0.6rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 0;
}

.donations-role-badge {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
  background: rgba(255, 126, 0, 0.12);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* ——— Public reviews directory ——— */
.reviews-page-form {
  margin: 0;
}

.reviews-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.reviews-summary-bar .reviews-summary {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.reviews-summary-per-page {
  flex-shrink: 0;
}

.reviews-summary-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  flex-shrink: 0;
}

.reviews-filter-dates-panel--bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.reviews-summary-date-label {
  font-size: 0.82rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.reviews-filter-dates-panel--bar .reviews-date-range-open {
  min-width: 10rem;
  max-width: 16rem;
}

.reviews-input {
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.88rem;
  font-family: var(--mono);
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}

.reviews-input:focus {
  outline: 2px solid rgba(255, 140, 0, 0.45);
  outline-offset: 1px;
}

.reviews-input--in-table {
  max-width: 100%;
}

.reviews-summary {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.reviews-table-wrap {
  margin-bottom: 1.25rem;
}

.reviews-table-wrap .reviews-table {
  width: 100%;
  min-width: 52rem;
}

.reviews-table th,
.reviews-table td {
  vertical-align: middle;
}

.reviews-table th.reviews-col-rating,
.reviews-table td.reviews-col-rating {
  width: 1%;
  max-width: 6.75rem;
  min-width: 0;
  box-sizing: border-box;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.reviews-table thead tr:first-child th.reviews-col-rating {
  white-space: nowrap;
}

.reviews-filters-row td.reviews-col-rating .reviews-input--in-table {
  max-width: 100%;
  min-width: 0;
}

/* Review By / Review For: full username on one line; horizontal scroll on narrow viewports */
.reviews-table th.reviews-col-user,
.reviews-table td.reviews-user-col,
.reviews-table td.reviews-col-user {
  width: 1%;
  max-width: none;
  white-space: nowrap;
}

.reviews-table td.reviews-user-col .reviews-user-text {
  flex-shrink: 0;
  min-width: auto;
}

.reviews-user-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.reviews-user-avatar-link {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 50%;
  outline: none;
}

.reviews-user-avatar-link:focus-visible {
  outline: 2px solid rgba(255, 140, 60, 0.85);
  outline-offset: 2px;
}

.reviews-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  vertical-align: middle;
}

.reviews-user-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.reviews-table thead tr:first-child th {
  border-bottom: 1px solid var(--border-strong);
}

.reviews-filters-row td {
  padding: 0.5rem 0.65rem 0.65rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}

.reviews-filters-row td.reviews-user-filter-cell {
  overflow: visible;
  vertical-align: top;
}

.reviews-user-filter-combo {
  position: relative;
  min-width: 0;
}

.reviews-user-filter-list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 14rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.reviews-user-filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
}

.reviews-user-filter-option:hover,
.reviews-user-filter-option:focus-visible {
  background: var(--panel-hover);
  outline: none;
}

.reviews-user-filter-option-avatar {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.reviews-user-filter-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.25;
}

.reviews-user-filter-option-text strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reviews-user-filter-option-handle {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reviews-filter-none {
  padding: 0.5rem 0.35rem !important;
}

.gold-logs-filter-row th.gold-logs-filter-none {
  padding: 0.35rem 0.25rem;
  background: rgba(0, 0, 0, 0.12);
}

.reviews-filter-review-cell {
  min-width: 12rem;
}

.reviews-table th.reviews-col-when {
  min-width: 8.25rem;
  white-space: nowrap;
}

.reviews-table td.reviews-col-when {
  min-width: 8.25rem;
  vertical-align: top;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--text-soft);
  font-weight: 400;
}

.reviews-table td.reviews-col-when--data {
  padding: 0;
  min-width: 0;
  width: 8.25rem;
  border-left: none;
  border-right: none;
}

.reviews-filters-row .reviews-col-when {
  white-space: normal;
}

.reviews-table td.reviews-filter-dates-cell {
  white-space: normal;
  min-width: 10.5rem;
  width: 11rem;
  padding-top: 0.5rem;
  padding-bottom: 0.55rem;
}

.reviews-filter-dates-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.reviews-date-range-wrap {
  position: relative;
}

.reviews-date-range-open {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  justify-content: flex-start;
  padding: 0.38rem 0.45rem;
  font-size: 0.66rem;
  color: var(--text-soft);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.reviews-date-range-open:hover {
  border-color: rgba(255, 140, 80, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.reviews-date-range-open__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--accent-bright);
  opacity: 0.95;
}

.reviews-date-range-open__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reviews-date-range-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(5, 8, 16, 0.55);
  backdrop-filter: blur(2px);
}

.reviews-date-range-popover {
  position: fixed;
  z-index: 410;
  padding: 0.65rem 0.75rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 140, 80, 0.28);
  background: linear-gradient(165deg, rgba(28, 32, 48, 0.98) 0%, rgba(14, 16, 24, 0.99) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.reviews-cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.reviews-cal-month {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  text-align: center;
  flex: 1;
}

.reviews-cal-nav {
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--accent-bright);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
}

.reviews-cal-nav:hover {
  background: rgba(255, 255, 255, 0.06);
}

.reviews-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.2rem;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

.reviews-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.reviews-cal-cell--pad {
  min-height: 2rem;
}

.reviews-cal-day {
  min-height: 2rem;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.08s ease, border-color 0.08s ease;
}

.reviews-cal-day:hover {
  background: rgba(94, 184, 255, 0.12);
  border-color: rgba(94, 184, 255, 0.35);
}

.reviews-cal-day--in-range {
  background: rgba(94, 184, 255, 0.14);
}

.reviews-cal-day--start,
.reviews-cal-day--end {
  background: rgba(94, 184, 255, 0.28);
  border-color: rgba(255, 140, 80, 0.45);
  color: #fff;
}

.reviews-cal-day--anchor {
  box-shadow: 0 0 0 2px rgba(94, 184, 255, 0.5) inset;
}

.reviews-cal-help {
  margin: 0.45rem 0 0.35rem;
  font-size: 0.58rem;
  line-height: 1.35;
  color: var(--muted);
}

.reviews-cal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.reviews-cal-btn {
  padding: 0.3rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-soft);
  cursor: pointer;
}

.reviews-cal-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.reviews-cal-btn--primary {
  border-color: rgba(255, 140, 80, 0.45);
  color: #fff;
  background: rgba(255, 140, 80, 0.18);
}

.reviews-cal-btn--primary:hover {
  background: rgba(255, 140, 80, 0.28);
}

.reviews-cal-btn--ghost {
  border-color: transparent;
  color: var(--muted);
}

.reviews-empty-cell {
  text-align: center;
  padding: 1.5rem 1rem !important;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.reviews-stars-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
  text-align: center;
}

.reviews-rating-wrap {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.reviews-rating-ts {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  transform: translateX(-50%);
  z-index: 3;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
  background: rgba(12, 16, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.reviews-rating-wrap--has-ts:hover .reviews-rating-ts,
.reviews-rating-wrap--has-ts:focus-within .reviews-rating-ts {
  opacity: 1;
  visibility: visible;
}

.reviews-rating-wrap--has-ts .overview-reviews-star-card--display,
.reviews-rating-wrap--has-ts .reviews-star-missing {
  cursor: help;
}

.reviews-stars-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.04em;
  line-height: 1;
  vertical-align: middle;
}

.reviews-star-glyph {
  display: inline-block;
  font-size: 0.68rem;
  color: #fbbf24;
  filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.28));
  line-height: 1;
  user-select: none;
}

.reviews-star-missing {
  color: var(--muted);
}

.reviews-user-link {
  font-weight: 600;
  color: var(--accent-bright);
  text-decoration: none;
}

.reviews-user-link:hover {
  text-decoration: underline;
}

.reviews-message-cell {
  vertical-align: top;
}

.reviews-message {
  margin: 0;
  max-width: none;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.reviews-message[title] {
  cursor: help;
}

/*
 * Reviews on narrow screens: fixed table layout was splitting columns so
 * narrowly that text stacked one character per line. Use auto layout + sensible
 * min-widths and allow horizontal scroll so columns stay readable.
 */
@media (max-width: 768px) {
  .reviews-table-wrap.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .reviews-table-wrap .reviews-table {
    min-width: 50rem !important;
    width: auto;
    table-layout: auto;
  }

  .reviews-table th.reviews-col-user,
  .reviews-table td.reviews-user-col,
  .reviews-table td.reviews-col-user {
    max-width: none;
    white-space: nowrap;
  }

  .reviews-table td.reviews-user-col,
  .reviews-table td.reviews-col-user {
    vertical-align: top;
  }

  .reviews-filter-review-cell {
    min-width: 10rem !important;
  }

  .reviews-filters-row td {
    padding: 0.45rem 0.4rem;
  }

  .reviews-input--in-table {
    min-width: 0;
    max-width: 100%;
    font-size: 0.8rem;
  }

  .reviews-table th,
  .reviews-table td {
    padding: 0.5rem 0.4rem;
  }

  .reviews-stars-cell {
    min-width: 2.75rem;
    white-space: nowrap;
  }

  .reviews-table th.reviews-col-rating,
  .reviews-table td.reviews-col-rating {
    max-width: 4.75rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .reviews-user-cell {
    align-items: flex-start;
  }
}

.reviews-pagination-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.reviews-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0;
}

.reviews-go-page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.55rem;
}

.reviews-go-page__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.reviews-go-page__input {
  width: 4.25rem;
  min-width: 0;
  padding: 0.28rem 0.45rem;
  font-size: 0.84rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.reviews-go-page__btn {
  flex-shrink: 0;
}

.reviews-page-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.reviews-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.25rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.reviews-page-link:hover {
  color: var(--accent-bright);
  border-color: rgba(255, 140, 0, 0.35);
}

.reviews-page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.25rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 140, 0, 0.45);
  background: rgba(255, 126, 0, 0.1);
}

.reviews-page-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ——— Sale Logs: three separate stat cards in one row ——— */
.gold-stats-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0.35rem;
  margin-bottom: 1.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
  scrollbar-color: rgba(255, 140, 0, 0.35) transparent;
}

@media (max-width: 768px) {
  .gold-stats-row {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: stretch;
    min-width: 0;
  }

  .gold-stat-card {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: min(100%, 10.5rem);
    max-width: 100%;
  }

  .gold-stat-card--split {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }
}

.gold-stats-row::-webkit-scrollbar {
  height: 6px;
}

.gold-stats-row::-webkit-scrollbar-thumb {
  background: rgba(255, 140, 0, 0.35);
  border-radius: 3px;
}

.gold-stat-card {
  flex: 1 1 0;
  min-width: 10.5rem;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: stretch;
  padding: 0.8rem 1.05rem 0.85rem;
  margin: 0;
  background: linear-gradient(165deg, rgba(26, 20, 14, 0.98) 0%, rgba(14, 11, 8, 0.99) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid rgba(255, 140, 0, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 6px 26px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.gold-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 140, 0, 0.32);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 12px 34px rgba(0, 0, 0, 0.34);
}

/* Sale Logs: meta card + combined Bought / Sold card */
.gold-stat-card--split {
  flex: 1 1 0;
  min-width: 18rem;
  max-width: 26rem;
  gap: 0;
}

.gold-stat-card--meta-summary,
.gold-stat-card--bought-sold {
  border-left-color: rgba(255, 140, 0, 0.6);
}

.gold-stat-card--meta-summary:hover,
.gold-stat-card--bought-sold:hover {
  border-color: rgba(255, 140, 0, 0.35);
}

.gold-stat-stack {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.55rem;
  min-width: 0;
}

.gold-stat-card--split > .gold-stat-stack + .gold-stat-stack {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gold-stat-stack-accent {
  width: 3px;
  flex-shrink: 0;
  border-radius: 2px;
  align-self: stretch;
  min-height: 2.25rem;
}

.gold-stat-stack--bought .gold-stat-stack-accent {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.95), rgba(34, 197, 94, 0.45));
}

.gold-stat-stack--sold .gold-stat-stack-accent {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.95), rgba(220, 38, 38, 0.5));
}

.gold-stat-stack--entries .gold-stat-stack-accent {
  background: linear-gradient(180deg, rgba(255, 165, 60, 0.95), rgba(255, 140, 0, 0.4));
}

.gold-stat-stack--top-customer .gold-stat-stack-accent {
  background: linear-gradient(180deg, rgba(196, 181, 253, 0.95), rgba(196, 181, 253, 0.45));
}

.gold-stat-stack-body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.gold-stat-hint--stack {
  margin-top: 0;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gold-stat-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}

.gold-stat-top--gp-one-line {
  flex-wrap: nowrap;
  align-items: baseline;
}

.gold-stat-gp-usd {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
}

.gold-stat-gp-usd .gold-stat-value--gp {
  text-align: inherit;
}

.gold-stat-money--inline {
  font-size: 0.8rem;
  font-weight: 600;
}

.gold-stat-label {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1.2;
}

.gold-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  text-align: right;
  word-break: break-word;
  min-width: 0;
}

.gold-stat-value--customer {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gold-stat-value--mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.gold-stat-value--gp {
  font-size: 1.12rem;
  letter-spacing: 0.03em;
}

.gold-stat-exact-gp {
  font-family: var(--mono);
  font-size: 0.78em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gold-stat-value--muted {
  color: var(--muted);
  font-weight: 500;
}

.gold-stat-hint {
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.35;
  padding-top: 0.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0.1rem;
}

.gold-stat-money {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent-bright);
}

/* ——— Sale Logs table column filters ——— */
.gold-logs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.65rem;
}

.gold-logs-toolbar .gold-logs-toolbar-intro {
  margin: 0;
  flex: 1 1 14rem;
  max-width: none;
  font-size: 0.9rem;
  line-height: 1.45;
}

.gold-logs-per-page {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ``.reviews-input`` is width:100% — avoid forcing “Per page” + select onto two lines */
.gold-logs-per-page .reviews-input {
  width: auto;
  min-width: 4.25rem;
  flex: 0 0 auto;
}

.gold-logs-table .gold-logs-filter-row th {
  font-weight: 500;
  vertical-align: bottom;
  padding-top: 0.25rem;
  padding-bottom: 0.55rem;
  background: rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid var(--border);
}

.gold-logs-th-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.gold-logs-empty-cell {
  padding: 1.5rem 1rem !important;
  text-align: center;
  vertical-align: middle;
}

.gold-logs-empty-msg {
  margin: 0;
}

/* ——— Small screens ——— */
@media (max-width: 768px) {
  /* Top bar: brand | 3-line menu toggle | user; nav expands below when open */
  .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      "brand navtoggle user"
      "nav nav nav";
    align-items: center;
    gap: 0.45rem 0.4rem;
    row-gap: 0.5rem;
    padding: 0.5rem max(0.65rem, env(safe-area-inset-left)) 0.5rem max(0.65rem, env(safe-area-inset-right));
  }

  .topbar-inner .brand {
    grid-area: brand;
    min-width: 0;
  }

  .topbar-inner .nav-mobile-toggle {
    display: inline-flex !important;
    grid-area: navtoggle;
    justify-self: center;
  }

  .topbar-inner:not(.is-nav-open) #site-main-nav.nav-chips {
    display: none !important;
  }

  .topbar-inner.is-nav-open #site-main-nav.nav-chips {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    align-items: center;
    grid-area: nav;
    gap: 0.35rem;
    margin: 0;
    padding: 0.55rem 0.35rem 0.35rem;
    border-top: 1px solid rgba(255, 140, 0, 0.14);
    background: rgba(6, 6, 8, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 8px 24px rgba(0, 0, 0, 0.35);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }

  .topbar-inner #site-main-nav.nav-chips a {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
  }

  .topbar-inner #site-main-nav.nav-chips .nav-game-dropdown summary.nav-game-dropdown-trigger {
    padding: 0.4rem 0.75rem;
    padding-right: 1.5rem;
    font-size: 0.8125rem;
  }

  /* Game dropdowns: in-flow panels so menus aren’t clipped under page content (absolute + sticky header). */
  .topbar-inner.is-nav-open #site-main-nav.nav-chips .nav-game-dropdown {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .topbar-inner.is-nav-open #site-main-nav.nav-chips .nav-game-dropdown-panel {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    margin-top: 0.35rem;
    width: 100%;
    min-width: 0;
    z-index: auto;
  }

  .topbar-inner .topbar-end {
    grid-area: user;
    justify-self: end;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.35rem;
    column-gap: 0.45rem;
    max-width: 100%;
  }

  .topbar-inline-banner .channel-sponsor-slot__frame {
    height: 44px;
    min-height: 44px;
    width: min(100%, 340px);
  }

  .wrap {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    /* Extra bottom space so copy isn’t tight against the floating GP calculator + home indicator */
    padding-bottom: max(4.5rem, calc(3rem + env(safe-area-inset-bottom, 0px)));
  }

  .hero {
    padding: 1.5rem 1.1rem;
  }

  .site-footer-inner {
    padding-bottom: max(1.5rem, calc(1rem + env(safe-area-inset-bottom, 0px)));
  }
}

/* Very small: stack brand, menu toggle, banner/sign-in, then expanded nav */
@media (max-width: 360px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "navtoggle"
      "user"
      "nav";
    row-gap: 0.45rem;
  }

  .topbar-inner .nav-mobile-toggle {
    justify-self: center;
  }

  .topbar-inner .topbar-end {
    justify-self: stretch;
    justify-content: center;
  }
}

/* Banner Auction + slot cards — narrow phones */
@media (max-width: 520px) {
  .ad-auction-slot-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .ad-auction-slot-card__body {
    padding: 0.9rem 0.85rem 1rem;
  }

  .ad-auction-slot-card__top {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .ad-auction-slot-badge {
    font-size: 0.58rem;
    padding: 0.22rem 0.45rem;
  }

  .ad-auction-slot-stats {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .ad-auction-slot-stats__side {
    grid-column: 1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    align-content: flex-start;
    gap: 0.5rem 1rem;
    width: 100%;
  }

  .ad-auction-slot-stats__side .ad-auction-slot-stat {
    text-align: left;
    flex: 1 1 auto;
    min-width: min(100%, 9.5rem);
  }

  .ad-auction-slot-stats__side .ad-auction-slot-bid-no-dd {
    justify-content: flex-start;
  }

  .ad-auction-bid-step-btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem;
  }

  .ad-auction-countdown {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .ad-auction-countdown__num {
    font-size: 0.95rem;
  }

  .ad-auction-countdown__unit {
    padding: 0.25rem 0.15rem;
  }

  .ad-auction-bid-dialog {
    max-width: calc(100vw - 1rem);
    margin: auto;
  }

  .ad-auction-bid-dialog__inner {
    padding: 1.15rem 1rem 1rem;
    max-height: min(85vh, 32rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ad-auction-admin-settings-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .ad-auction-admin-toolbar .ad-auction-filter-select {
    width: 100%;
    max-width: 100%;
  }
}

/* ——— My Team ——— */
.my-team-page {
  width: 100%;
  max-width: none;
}

.my-team-section {
  margin-top: 1.75rem;
}

.my-team-section:first-of-type {
  margin-top: 0;
}

.my-team-lead {
  margin: -0.25rem 0 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: none;
}

.my-team-subtitle {
  margin: 1.35rem 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-soft);
}

.my-team-muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.my-team-hero {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
  margin-bottom: 1rem;
}

.my-team-hero__stripe {
  height: 6px;
}

.my-team-hero__main {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.my-team-hero__text {
  flex: 1;
  min-width: 0;
}

.my-team-hero__edit {
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}

.my-team-swatch {
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-sm);
}

.my-team-hero__name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.my-team-hero__meta {
  margin: 0.25rem 0 0;
}

.my-team-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 22rem;
}

.my-team-form--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  max-width: none;
}

.my-team-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.my-team-form-row label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.my-team-form-row__static-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.my-team-edit-name-static {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.my-team-color-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 16rem;
  box-sizing: border-box;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-family: var(--mono);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.my-team-color-trigger:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.12);
}

.my-team-color-trigger:focus {
  outline: 2px solid rgba(255, 140, 0, 0.45);
  outline-offset: 1px;
}

.my-team-color-trigger__swatch {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.my-team-color-trigger__hex {
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.my-team-color-picker-dialog .market-filters-dialog-inner {
  max-width: 22rem;
}

.my-team-color-picker-dialog__lead {
  margin-bottom: 0.75rem;
}

.my-team-color-picker-preview {
  height: 3.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  margin-bottom: 0.65rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.my-team-color-picker-hex-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1rem;
}

.my-team-color-picker-hex-label-text {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  flex-shrink: 0;
}

.my-team-color-picker-hex-field {
  flex: 1 1 7rem;
  min-width: 0;
  font-family: var(--mono);
}

.my-team-color-picker-native {
  width: 2.75rem;
  height: 2.25rem;
  padding: 0.15rem;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  flex-shrink: 0;
}

.my-team-color-picker-native::-webkit-color-swatch-wrapper {
  padding: 0;
}

.my-team-color-picker-native::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.my-team-color-picker-native::-moz-color-swatch {
  border: none;
  border-radius: 4px;
}

.my-team-color-picker-sliders {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.my-team-color-picker-row {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.my-team-color-picker-channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.my-team-color-range {
  width: 100%;
  height: 0.45rem;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  border: 1px solid var(--border);
  box-sizing: border-box;
  cursor: pointer;
}

.my-team-color-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--panel);
  box-shadow: 0 0 0 1px var(--border-strong), 0 2px 8px rgba(0, 0, 0, 0.45);
}

.my-team-color-range::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--panel);
  box-shadow: 0 0 0 1px var(--border-strong), 0 2px 8px rgba(0, 0, 0, 0.45);
}

.my-team-color-range::-moz-range-track {
  height: 0.45rem;
  border-radius: 999px;
  background: transparent;
  border: none;
}

.my-team-color-range--r {
  accent-color: #f87171;
}

.my-team-color-range--g {
  accent-color: #4ade80;
}

.my-team-color-range--b {
  accent-color: #60a5fa;
}

.my-team-form-row input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.my-team-roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.my-team-roster__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.my-team-roster__row:last-child {
  border-bottom: none;
}

.my-team-roster__row--owner {
  border-bottom: 1px solid var(--border);
}

.my-team-avatar {
  border-radius: 999px;
  flex-shrink: 0;
}

.my-team-avatar-sm {
  border-radius: 999px;
  flex-shrink: 0;
}

.my-team-user-label {
  font-weight: 600;
  color: var(--text);
}

.my-team-userid {
  display: block;
  font-size: 0.78rem;
  font-family: ui-monospace, monospace;
  color: var(--muted);
}

.my-team-pill {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.my-team-pill--owner {
  background: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.my-team-inline-form {
  margin-left: auto;
}

.my-team-btn-danger {
  color: var(--danger) !important;
}

.my-team-invite-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.my-team-invite-card {
  display: flex;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
}

.my-team-invite-card__accent {
  width: 6px;
  flex-shrink: 0;
}

.my-team-invite-card__body {
  flex: 1;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.my-team-invite-card__team {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
}

.my-team-badge-name {
  font-weight: 800;
  font-size: 1.02rem;
}

.my-team-invite-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.my-team-pending-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.my-team-pending-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.my-team-pending-row:last-child {
  border-bottom: none;
}

.my-team-empty {
  margin: 0.5rem 0 1rem;
}

.my-team-invite-combobox {
  position: relative;
  width: 100%;
  max-width: 22rem;
}

.my-team-invite-combobox__list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  margin-top: 0.25rem;
  box-shadow: var(--shadow-md);
}

.my-team-form-row--invite-combo {
  align-items: stretch;
}

.my-team-edit-dialog.market-filters-dialog {
  max-width: min(26rem, calc(100vw - 1.5rem));
}

.my-team-edit-dialog.market-filters-dialog .market-filters-dialog-inner {
  border-color: rgba(167, 139, 250, 0.22);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(167, 139, 250, 0.12),
    0 0 48px rgba(139, 92, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.my-team-edit-dialog__accent {
  background: linear-gradient(90deg, #a78bfa, #38bdf8, #f472b6) !important;
  opacity: 1 !important;
  height: 4px;
}

.my-team-edit-dialog__lead {
  margin-bottom: 0;
}

.my-team-edit-dialog__form {
  max-width: none;
  margin: 0;
}

.my-team-edit-dialog__actions {
  margin-top: 1rem;
}

.my-team-edit-dialog .market-filters-dialog-title {
  text-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
}

.my-team-invite-combobox__err {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #f87171;
  max-width: 22rem;
}

.my-team-leave-form {
  margin-top: 1rem;
}

/* My Team — confirm dialogs (destructive / leave) */
.my-team-confirm-dialog--remove.market-filters-dialog .market-filters-dialog-inner {
  border-color: rgba(248, 113, 113, 0.22);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(248, 113, 113, 0.12),
    0 0 48px rgba(220, 38, 38, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.my-team-confirm-dialog--remove .market-filters-dialog-accent {
  background: linear-gradient(90deg, #f87171, #fb7185, #f97316) !important;
  opacity: 1 !important;
  height: 4px;
}

.my-team-confirm-dialog--leave .market-filters-dialog-accent {
  background: linear-gradient(90deg, #38bdf8, #a78bfa, #f472b6) !important;
  opacity: 1 !important;
  height: 4px;
}

.my-team-confirm-dialog--leave.market-filters-dialog .market-filters-dialog-inner {
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(56, 189, 248, 0.12),
    0 0 44px rgba(14, 165, 233, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.my-team-confirm-dialog--remove .market-filters-dialog-title {
  text-shadow: 0 0 18px rgba(248, 113, 113, 0.18);
}

.my-team-confirm-dialog--leave .market-filters-dialog-title {
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

@media (max-width: 520px) {
  .my-team-form--inline {
    flex-direction: column;
    align-items: stretch;
  }

  .my-team-form--inline .btn {
    align-self: flex-start;
  }

  .my-team-invite-card__body {
    flex-direction: column;
    align-items: flex-start;
  }

  .my-team-inline-form {
    margin-left: 0;
  }

  .my-team-roster__row .my-team-inline-form {
    width: 100%;
    margin-left: 0;
  }
}

/* ——— Admin: all teams ——— */
.admin-teams-page {
  width: 100%;
  max-width: none;
}

.admin-teams-lead {
  margin-top: -0.25rem;
  max-width: none;
}

.admin-teams-section-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 1.75rem 0 0.35rem;
  color: var(--text);
}

.admin-teams-section-title:first-of-type {
  margin-top: 0.5rem;
}

.admin-teams-pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.admin-teams-action-form {
  margin: 0;
}

.admin-teams-card--pending {
  border-color: rgba(251, 191, 36, 0.28);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.08);
}

.admin-teams-role-panel {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: rgba(167, 139, 250, 0.06);
}

.admin-teams-role-panel__id {
  margin: 0.25rem 0 0.35rem;
  font-size: 0.92rem;
  word-break: break-all;
}

.admin-teams-role-panel__hint {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.admin-teams-sync-form {
  margin: 0;
}

.admin-teams-card__danger {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.admin-teams-dialog .admin-teams-dialog-form {
  margin: 0;
}

.admin-teams-dialog--delete.market-filters-dialog .market-filters-dialog-inner {
  border-color: rgba(248, 113, 113, 0.22);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(248, 113, 113, 0.12),
    0 0 48px rgba(220, 38, 38, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-teams-dialog--delete .admin-teams-dialog__accent {
  background: linear-gradient(90deg, #f87171, #fb7185, #f97316) !important;
  opacity: 1 !important;
  height: 4px;
}

.admin-teams-dialog--delete .market-filters-dialog-title {
  text-shadow: 0 0 18px rgba(248, 113, 113, 0.18);
}

.admin-teams-dialog--reject.market-filters-dialog .market-filters-dialog-inner {
  border-color: rgba(251, 191, 36, 0.25);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(251, 191, 36, 0.12),
    0 0 40px rgba(245, 158, 11, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-teams-dialog--reject .market-filters-dialog-accent {
  background: linear-gradient(90deg, #fbbf24, #f97316, #ea580c) !important;
  opacity: 1 !important;
  height: 4px;
}

.my-team-pending-banner {
  margin: 0.75rem 0 1rem;
}

.my-team-hero__meta .mono {
  font-family: var(--mono);
  font-size: 0.88em;
}

.admin-teams-summary {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.admin-teams-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-teams-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-teams-card__stripe {
  height: 5px;
}

.admin-teams-card__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.15rem 0.5rem;
}

.admin-teams-swatch {
  margin-top: 0.15rem;
}

.admin-teams-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.admin-teams-card__meta {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-teams-card__meta .mono {
  font-family: ui-monospace, monospace;
}

.admin-teams-sub {
  margin: 1rem 1.15rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

.admin-teams-count {
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
}

.admin-teams-user-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
  padding: 0.5rem 1.15rem;
}

.admin-teams-member-list,
.admin-teams-pending-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.75rem;
}

.admin-teams-user-row .my-team-pill {
  margin-left: auto;
}

.admin-teams-joined {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  white-space: nowrap;
}

.admin-teams-pending-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  padding: 0.45rem 1.15rem;
  border-top: 1px solid var(--border);
}

.admin-teams-pending-list .admin-teams-pending-row:first-child {
  border-top: none;
}

.admin-teams-none {
  margin: 0 1.15rem 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .admin-teams-joined {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .brand-text .brand-sub {
    display: none;
  }

  .user-name {
    max-width: 42vw;
  }
}

/* —— My Trades (on-site trade chat) —— */
.my-trades-page {
  width: 100%;
  max-width: none;
}

.my-trades-empty {
  margin: 1rem 0;
  color: var(--muted);
}

.my-trades-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.my-trades-toolbar__kind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding-right: 0.85rem;
  margin-right: 0.15rem;
  border-right: 1px solid var(--border);
}

.my-trades-toolbar__kind-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-right: 0.15rem;
}

.my-trades-toolbar__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.my-trades-tab,
.my-trades-kind-tab {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.my-trades-tab:hover,
.my-trades-kind-tab:hover {
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
}

.my-trades-tab.is-active,
.my-trades-kind-tab.is-active {
  color: inherit;
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
}

.my-trades-tab__n {
  font-weight: 500;
  opacity: 0.85;
}

.my-trades-section {
  margin-bottom: 2rem;
}

.my-trades-section__title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.my-trades-section__subtitle {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-soft);
}

.my-trades-section__subtitle:first-of-type {
  margin-top: 0.35rem;
}

.my-trades-section__empty--sub {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.my-trades-closed-pager {
  margin: 0 0 0.75rem;
}

.my-trades-closed-pager__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  font-size: 0.88rem;
}

.my-trades-closed-pager__label {
  color: var(--muted);
  margin-right: 0.15rem;
}

.my-trades-closed-pager__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.my-trades-closed-pager__chip:hover {
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.my-trades-closed-pager__chip.is-active {
  color: inherit;
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
  pointer-events: none;
}

.my-trades-closed-pager__sep {
  width: 1px;
  height: 1.1rem;
  margin: 0 0.15rem;
  background: var(--border);
  flex-shrink: 0;
}

.my-trades-closed-pager__status {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.my-trades-closed-pager__disabled {
  color: var(--muted);
  opacity: 0.45;
  font-size: 0.86rem;
  user-select: none;
}

.my-trades-closed-pager__navbtn {
  font-size: 0.82rem !important;
  padding: 0.32rem 0.65rem !important;
}

/* Summary: Invite Codes search + status filter */
.overview-invites-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1rem;
  margin: 0 0 0.85rem;
}

.overview-invites-filters__label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.overview-invites-filters__label-text {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.overview-invites-filters__search {
  min-width: 12rem;
  max-width: 22rem;
}

.overview-invites-filters__select {
  min-width: 8rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
}

.overview-invites-filters__submit {
  align-self: flex-end;
}

.overview-invites-empty {
  margin-top: 0.35rem;
}

.my-trades-section__empty {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.my-trades-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}

.my-trades-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.my-trades-table thead tr.my-trades-table__head-labels th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.my-trades-table thead tr.my-trades-table__head-filters th {
  text-align: left;
  padding: 0.35rem 0.5rem 0.55rem;
  border-bottom: 1px solid var(--border);
  vertical-align: bottom;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.my-trades-filter-th--combo {
  min-width: 9rem;
}

.my-trades-filter-combobox {
  position: relative;
  z-index: 2;
}

.my-trades-table thead tr.my-trades-table__head-filters th.my-trades-filter-th--combo:focus-within {
  z-index: 5;
}

/* Position (fixed) is set inline in JS so the list is not clipped by .my-trades-table-wrap overflow. */
.my-trades-ac-list {
  margin: 0;
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.35);
}

.my-trades-col-filter {
  width: 100%;
  min-width: 4.5rem;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.35rem 0.45rem;
  font: inherit;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
}

.my-trades-col-filter::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.my-trades-col-filter:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 0.12rem rgba(59, 130, 246, 0.2);
}

.my-trades-table tbody td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.my-trades-table tbody tr:last-child td {
  border-bottom: none;
}

.my-trades-table tbody tr[data-href] {
  cursor: pointer;
  transition: background 0.12s ease;
}

.my-trades-table tbody tr[data-href]:hover {
  background: rgba(255, 255, 255, 0.04);
}

.my-trades-table tbody tr[hidden] {
  display: none;
}

/* My Trades — touch-friendly tables + stacked filters on narrow screens */
@media (max-width: 768px) {
  .my-trades-table-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .my-trades-table {
    font-size: 0.84rem;
  }

  .my-trades-table thead tr.my-trades-table__head-labels th,
  .my-trades-table thead tr.my-trades-table__head-filters th {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .my-trades-table tbody td {
    padding: 0.5rem 0.45rem;
  }

  .my-trades-table__avatar {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 640px) {
  .my-trades-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .my-trades-toolbar__kind {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
    justify-content: center;
  }

  .my-trades-toolbar__tabs {
    justify-content: center;
  }

  .my-trades-tab,
  .my-trades-kind-tab {
    min-height: 2.75rem;
    padding: 0.48rem 0.95rem;
  }

  .my-trades-closed-pager__row {
    justify-content: center;
    text-align: center;
  }
}

.my-trades-table__id {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.my-trades-table__id--sm {
  display: block;
  margin-left: 0;
  margin-top: 0.12rem;
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--muted);
  word-break: break-all;
}

.my-trades-table__row--closed-static .my-trades-table__user-text {
  font-size: 0.88rem;
}

.my-trades-table__dates-cell {
  vertical-align: middle;
  min-width: 9.5rem;
}

.my-trades-table__dates-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.my-trades-table__dates-stack .my-trades-table__time {
  display: block;
  font-size: 0.8rem;
  line-height: 1.25;
}

.my-trades-table__time--opened {
  color: var(--text-soft);
}

.my-trades-table__time--closed {
  color: var(--muted);
  font-size: 0.76rem;
}

.my-trades-vouches-cell {
  vertical-align: middle;
}

.my-trades-vouches-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.my-trades-vouches-filter-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.my-trades-filter-th--vouches {
  vertical-align: middle;
}

.my-trades-vouches-side {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
}

.my-trades-vouches-side-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1;
}

.my-trades-table__head-dates,
.my-trades-table__head-vouches {
  white-space: nowrap;
}

.my-trades-filter-th--dates {
  min-width: 7.5rem;
}

.my-trades-dates-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.my-trades-dates-filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.my-trades-dates-filter-btn--active {
  border-color: rgba(255, 140, 0, 0.45);
  color: var(--accent-bright);
  box-shadow: 0 0 0 1px rgba(255, 126, 0, 0.12);
}

.my-trades-dates-filter-btn__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.my-trades-dates-filter-dialog .market-filters-dialog-inner {
  max-width: 22rem;
}

.my-trades-dates-filter-dialog__lead {
  margin-bottom: 0.85rem;
}

.my-trades-dates-filter-mode {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.my-trades-dates-filter-mode__opt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.82rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.my-trades-dates-filter-mode__opt:has(input:checked) {
  border-color: rgba(255, 140, 0, 0.45);
  background: rgba(255, 126, 0, 0.1);
  color: var(--text);
}

.my-trades-dates-filter-mode__opt input {
  accent-color: var(--titan-orange);
}

.my-trades-dates-filter-fields--range:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.my-trades-dates-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.my-trades-dates-filter-field__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.my-trades-dates-input {
  width: 100%;
  box-sizing: border-box;
  color-scheme: dark;
}

.my-trades-dates-filter-dialog__actions {
  margin-top: 1rem;
}

.my-trades-table__usercell {
  min-width: 10rem;
}

.my-trades-table__user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.my-trades-table__avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.my-trades-table__user-text {
  min-width: 0;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.my-trades-table__user-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-trades-party-role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
}

.my-trades-party-role--buyer {
  color: var(--ok);
}

.my-trades-party-role--seller {
  color: var(--danger);
}

.my-trades-table__time {
  white-space: nowrap;
  font-size: 0.86rem;
  color: var(--muted);
}

.my-trades-table__time--local {
  font-variant-numeric: tabular-nums;
}

.my-trades-table__transcript-cell {
  white-space: nowrap;
  vertical-align: middle;
}

.my-trades-table__transcript-cell .btn {
  cursor: pointer;
}

.my-trades-table tbody tr[data-href] .my-trades-table__transcript-cell {
  cursor: default;
}

.my-trades-table__actions-cell {
  white-space: nowrap;
  vertical-align: middle;
}

.my-trades-table tbody tr[data-href] .my-trades-table__actions-cell {
  cursor: default;
}

.my-trades-vouch-cell {
  white-space: nowrap;
  vertical-align: middle;
}

.my-trades-vouch-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  color: #1a7f37;
  background: rgba(46, 160, 67, 0.18);
}

.my-trades-vouch-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  color: #cf222e;
  background: rgba(248, 81, 73, 0.15);
}

.my-trades-table tbody tr[data-href] .my-trades-vouch-cell {
  cursor: default;
}

.my-trades-leave-vouch-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  border: 1px solid rgba(96, 165, 250, 0.55);
  background: linear-gradient(165deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  color: #f8fafc;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.38);
  vertical-align: middle;
  cursor: pointer;
  transition:
    filter 0.15s ease,
    transform 0.12s ease,
    border-color 0.15s ease;
}

.my-trades-leave-vouch-btn:hover {
  filter: brightness(1.08);
  border-color: rgba(147, 197, 253, 0.7);
}

.my-trades-leave-vouch-btn:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.9);
  outline-offset: 2px;
}

.my-trades-leave-vouch-btn:active {
  transform: scale(0.96);
}

.my-trades-leave-vouch-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.my-trades-leave-vouch {
  cursor: pointer;
}

.my-trades-vouch-modal {
  position: fixed;
  inset: 0;
  z-index: 10065;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.my-trades-vouch-modal[hidden] {
  display: none;
}

.my-trades-vouch-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}

.my-trades-vouch-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  max-height: min(88vh, 520px);
  background: var(--panel, #1a1f2e);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.my-trades-vouch-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.my-trades-vouch-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.my-trades-vouch-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.my-trades-vouch-modal__close:hover {
  background: rgba(255, 255, 255, 0.06);
}

.my-trades-vouch-modal__body {
  padding: 1rem 1rem 1.1rem;
  overflow-y: auto;
}

.my-trades-vouch-modal__lead {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}

.my-trades-vouch-field {
  margin-bottom: 0.85rem;
}

.my-trades-vouch-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.my-trades-vouch-select,
.my-trades-vouch-textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.my-trades-vouch-textarea {
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  resize: vertical;
  min-height: 5rem;
}

/* Native OS dropdown list ignores inherited colors — force dark options (Windows/Chrome). */
.my-trades-vouch-select {
  color-scheme: dark;
  background-color: #1c2128;
  color: #e6edf3;
  border-color: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.6rem;
}

.my-trades-vouch-select option,
.my-trades-vouch-select optgroup {
  background-color: #1c2128;
  color: #e6edf3;
}

.my-trades-vouch-select:focus {
  outline: 2px solid rgba(88, 101, 242, 0.45);
  outline-offset: 1px;
}

.my-trades-vouch-err {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: #f85149;
}

.my-trades-vouch-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.my-trades-transcript-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.my-trades-transcript-modal[hidden] {
  display: none;
}

.my-trades-transcript-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}

.my-trades-transcript-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  max-height: min(88vh, 900px);
  background: var(--panel, #1a1f2e);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.my-trades-transcript-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.my-trades-transcript-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.my-trades-transcript-modal__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.my-trades-transcript-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.my-trades-transcript-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.my-trades-transcript-modal__body {
  flex: 1;
  min-height: 0;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
}

.my-trades-transcript-modal__iframe {
  width: 100%;
  height: min(72vh, 720px);
  min-height: 240px;
  border: none;
  background: #fff;
}

.my-trades-transcript-modal__pre {
  margin: 0;
  padding: 1rem;
  box-sizing: border-box;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 240px;
  overflow: auto;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  background: transparent;
}

.my-trades-transcript-modal__err {
  margin: 0;
  padding: 1.25rem;
  color: var(--muted);
}

.my-trades-page[data-trades-panel="open"] .my-trades-section--closed,
.my-trades-page[data-trades-panel="closed"] .my-trades-section--open {
  display: none;
}

.my-trade-chat-page {
  max-width: 64rem;
}

.my-trade-chat-page--ticket .my-trade-chat-layout {
  grid-template-columns: minmax(13rem, 15.5rem) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.my-trade-chat-page--ticket .my-trade-detail-card {
  border-radius: 0;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  min-height: min(72vh, 680px);
  box-shadow: none;
}

.my-trade-chat-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 17.5rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .my-trade-chat-layout {
    grid-template-columns: 1fr;
  }

  .my-trade-chat-page--ticket .my-trade-chat-layout {
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .my-trade-chat-page--ticket .my-trade-detail-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 0;
  }
}

/* Trade details sidebar */
.my-trade-detail-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1rem 1.1rem;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(0, 0, 0, 0.18) 100%
  );
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.my-trade-detail-card__accent {
  position: absolute;
  left: 0;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f97316, #ea580c);
  opacity: 0.95;
}

.my-trade-detail-card__title {
  margin: 0 0 0.85rem;
  padding-left: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.my-trade-detail-participants {
  margin: 0 0 0.75rem;
  padding: 0 0 0.75rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.my-trade-detail-person {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.my-trade-detail-person__avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.my-trade-detail-person__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  min-width: 0;
}

.my-trade-detail-participants .my-trade-detail-id {
  font-size: 0.65rem;
  opacity: 0.85;
}

.my-trade-detail-person__label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.my-trade-detail-person__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  word-break: break-word;
}

.my-trade-detail-person__name-btn {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.2;
  max-width: 100%;
}

.my-trade-detail-team-h {
  margin-top: 0.75rem;
}

.my-trade-detail-team-guests {
  margin: 0 0 0.85rem;
  padding: 0 0 0.65rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.my-trade-detail-person--team .my-trade-detail-person__label {
  color: rgba(88, 101, 242, 0.95);
}

.my-trade-detail-terms-h {
  margin: 0 0 0.55rem;
  padding-left: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.my-trade-detail-dl {
  margin: 0;
  padding: 0 0 0 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.my-trade-detail-dl--terms {
  gap: 0.5rem;
}

.my-trade-detail-dl__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  font-size: 0.88rem;
}

.my-trade-detail-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.my-trade-detail-dl dd {
  margin: 0;
  word-break: break-word;
  line-height: 1.4;
}

.my-trade-detail-opened {
  font-variant-numeric: tabular-nums;
}

.my-trade-detail-id {
  font-size: 0.78rem;
  color: var(--muted);
}

.my-trade-detail-card__actions {
  margin-top: 1rem;
  padding-left: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.my-trade-detail-card__btn {
  width: 100%;
  justify-content: center;
}

.my-trade-detail-card__btn[hidden] {
  display: none !important;
}

/* Messages column — Discord-style ticket */
.my-trade-chat-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.my-trade-chat-page--ticket .my-trade-chat-main {
  background: #1e1f22;
  min-height: min(72vh, 680px);
}

.my-trade-chat-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: min(70vh, 640px);
  flex: 1;
}

.my-trade-chat-page--ticket .my-trade-chat-panel {
  border: none;
  border-radius: 0;
  min-height: 100%;
  background: #313338;
}

.my-trade-chat-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  min-height: 2.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  background: #1e1f22;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.my-trade-chat-panel__channel {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.45rem;
  min-width: 0;
}

.my-trade-chat-panel__hash {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--muted);
  line-height: 1;
  user-select: none;
}

.my-trade-chat-panel__channel-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f2f3f5;
  letter-spacing: -0.02em;
}

.my-trade-chat-panel__channel-sub {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #949ba4;
}

.my-trade-chat-panel__badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.my-trade-chat-panel__badge--open {
  background: rgba(35, 165, 90, 0.25);
  color: #43b581;
  border: 1px solid rgba(67, 181, 129, 0.35);
}

.my-trade-chat-panel__badge--closed {
  background: rgba(79, 84, 92, 0.45);
  color: #b5bac1;
  border: 1px solid rgba(79, 84, 92, 0.6);
}

.my-trade-chat-log {
  flex: 1;
  margin: 0;
  padding: 1rem 1rem 1.25rem;
  min-height: 14rem;
  max-height: min(52vh, 480px);
  overflow-y: auto;
  overflow-x: hidden;
  border: none;
  border-radius: 0;
  background: transparent;
  scrollbar-color: #1e1f22 #313338;
  scrollbar-width: thin;
}

.my-trade-chat-page--ticket .my-trade-chat-log {
  max-height: min(56vh, 520px);
}

.my-trade-discord-cta-wrap {
  margin: 0 0 0.75rem;
}

.my-trade-discord-banner {
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(88, 101, 242, 0.14);
  border: 1px solid rgba(88, 101, 242, 0.35);
}

.my-trade-discord-banner__text {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #dbdee1;
}

.my-trade-chat-panel .my-trade-chat-compose-wrap {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.22);
  background: #313338;
}

/* ``hidden`` must win over ``display:flex`` on the inner form */
.my-trade-chat-compose-wrap[hidden] {
  display: none !important;
}

.my-trade-chat-panel .my-trade-chat-closed-note {
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.22);
  background: #2b2d31;
  font-size: 0.85rem;
  color: #b5bac1;
}

.my-trade-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.2rem 0.5rem 0.35rem 0.35rem;
  border-radius: 4px;
  background: transparent;
  border: none;
  transition: background 0.12s ease;
}

.my-trade-chat-page--ticket .my-trade-msg:hover {
  background: rgba(4, 4, 5, 0.18);
}

.my-trade-chat-page--ticket .my-trade-msg:not(.my-trade-msg--system) {
  margin-bottom: 0.35rem;
}

.my-trade-msg__main {
  flex: 1;
  min-width: 0;
  padding-top: 0.1rem;
}

.my-trade-msg__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #2b2d31;
  border: none;
  box-sizing: border-box;
}

button.my-trade-msg__avatar-btn {
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: block;
}

button.my-trade-msg__avatar-btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.my-trade-msg__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.my-trade-msg__avatar--system {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.35);
  color: rgba(251, 191, 36, 0.95);
}

.my-trade-msg__avatar-svg {
  display: block;
}

.my-trade-msg__avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.my-trade-msg--mine {
  border-left: 3px solid #5865f2;
  padding-left: 0.4rem;
  margin-left: 0;
}

.my-trade-msg--system {
  opacity: 1;
  font-size: 0.88rem;
  background: rgba(240, 178, 50, 0.08);
  border-radius: 6px;
  margin-bottom: 0.45rem;
  padding: 0.45rem 0.5rem;
}

.my-trade-msg--system .my-trade-msg__who {
  color: #faa81a;
}

.my-trade-msg--system .my-trade-msg__body {
  color: #e6e8ea;
}

.my-trade-msg__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  color: #949ba4;
  margin-bottom: 0.15rem;
  line-height: 1.25;
}

.my-trade-msg__ts {
  font-size: 0.7rem;
  font-weight: 500;
  color: #949ba4;
  white-space: nowrap;
}

.my-trade-msg__who {
  font-weight: 600;
  color: var(--text);
}

button.my-trade-msg__who-btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: #dee0fc;
  cursor: pointer;
  text-align: inherit;
  text-decoration: none;
}

button.my-trade-msg__who-btn:hover {
  text-decoration: underline;
}

button.my-trade-msg__who-btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

button.my-trade-party-profile-btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--accent-bright);
  cursor: pointer;
  text-decoration: none;
}

button.my-trade-party-profile-btn:hover {
  text-decoration: underline;
}

button.my-trade-party-profile-btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.my-trade-msg__body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  font-size: 0.9375rem;
  color: #dbdee1;
}

.my-trade-msg__img-wrap {
  margin-top: 0.5rem;
}

.my-trade-msg__img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 6px;
  display: block;
}

.my-trade-msg__seen {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: #949ba4;
  text-align: left;
  line-height: 1.2;
}

.my-trade-dispute-btn {
  border: 1px solid rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.08);
  color: #fb923c;
}

.my-trade-dispute-btn:hover {
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(251, 146, 60, 0.6);
  color: #fdba74;
}

.my-trade-dispute-btn:focus-visible {
  outline: 2px solid rgba(251, 146, 60, 0.7);
  outline-offset: 2px;
}

/* Add team — fancy modal (Discord-blurple accent) */
.my-trade-add-team-dialog.market-filters-dialog::backdrop {
  background: rgba(6, 8, 18, 0.78);
  backdrop-filter: blur(10px);
}

.my-trade-add-team-dialog.market-filters-dialog[open] .market-filters-dialog-inner {
  animation: my-trade-fancy-dialog-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes my-trade-fancy-dialog-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.my-trade-add-team-dialog .market-filters-dialog-inner {
  border-color: rgba(88, 101, 242, 0.42);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(88, 101, 242, 0.2),
    0 0 56px rgba(88, 101, 242, 0.22),
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.my-trade-add-team-dialog .my-trade-add-team-dialog__accent {
  height: 4px;
  background: linear-gradient(90deg, #5865f2, #7289da, #a78bfa, #5865f2);
  background-size: 200% 100%;
  animation: my-trade-accent-shimmer 4s linear infinite;
}

@keyframes my-trade-accent-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.my-trade-add-team-dialog__eyebrow {
  margin: 0 0 0.35rem;
  padding: 0;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a5b4fc;
  text-align: center;
}

.my-trade-add-team-dialog__icon-svg {
  display: block;
  filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.55));
}

.my-trade-add-team-dialog__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(88, 101, 242, 0.35), rgba(114, 137, 218, 0.12));
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #c7d2fe;
  box-shadow:
    0 0 28px rgba(88, 101, 242, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.my-trade-add-team-dialog__title {
  text-align: center;
  text-shadow: 0 0 24px rgba(88, 101, 242, 0.35);
}

.my-trade-add-team-dialog__lead {
  text-align: center;
}

.my-trade-add-team-dialog__confirm {
  box-shadow: 0 2px 12px rgba(88, 101, 242, 0.35);
}

.my-trade-chat-compose {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.my-trade-chat-input-shell {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  padding: 0.35rem 0.35rem 0.35rem 0.5rem;
  border-radius: 8px;
  background: #383a40;
  border: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.my-trade-chat-input-shell:focus-within {
  box-shadow: inset 0 0 0 1px rgba(78, 131, 255, 0.55), 0 0 0 1px rgba(78, 131, 255, 0.25);
}

.my-trade-chat-attach {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.1rem;
  border-radius: 6px;
  color: #b5bac1;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.my-trade-chat-attach:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #dbdee1;
}

.my-trade-chat-attach:focus-within {
  outline: 2px solid #5865f2;
  outline-offset: 1px;
}

.my-trade-chat-input {
  flex: 1;
  min-width: 0;
  min-height: 2.35rem;
  max-height: 10rem;
  padding: 0.5rem 0.35rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #dbdee1;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  resize: vertical;
}

.my-trade-chat-input::placeholder {
  color: #6d7278;
}

.my-trade-chat-send {
  flex-shrink: 0;
  align-self: flex-end;
  margin: 0 0.15rem 0.1rem 0;
}

.my-trade-chat-hint {
  margin: 0;
  padding: 0 0.15rem;
  font-size: 0.72rem;
  color: #949ba4;
}

.my-trade-chat-error {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: #f38ba8;
}

/* Payment locations (/my/locations) & shared page head (payment addresses) */
.page-slogan-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1rem;
}

.page-slogan-actions-row .payment-locations-lead {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.page-slogan-actions-row__actions {
  flex: 0 0 auto;
}

/* Full width of content column (overrides .lead max-width: 65ch) */
.lead.payment-locations-lead,
.lead.payment-locations-perk-hint,
.payment-locations-lead,
.payment-locations-perk-hint {
  max-width: none;
}

.payment-locations-perk-hint {
  color: var(--text-soft, #949ba4);
}

.payment-locations-table .payment-locations-col-thumb {
  width: 5.5rem;
}

.payment-locations-cell-thumb {
  vertical-align: middle;
}

.payment-loc-thumb-link {
  display: inline-block;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-loc-thumb {
  display: block;
  width: 72px;
  height: 54px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.25);
}

.payment-loc-thumb-empty {
  color: var(--text-soft, #949ba4);
  font-size: 0.85rem;
}

.payment-locations-cell-loc {
  max-width: 18rem;
  word-break: break-word;
}

.payment-locations-cell-ts {
  white-space: nowrap;
  font-size: 0.88rem;
  color: var(--text-soft, #949ba4);
}

.payment-locations-actions-col {
  width: 6.5rem;
  min-width: 6.5rem;
  text-align: right;
  white-space: nowrap;
}

.payment-locations-actions-cell {
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

.payment-locations-actions-inline {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

/* Payment addresses (/my/payment-addresses) */
.payment-addresses-table .payment-addresses-cell-addr {
  max-width: 28rem;
  vertical-align: top;
}

.payment-addresses-pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-muted, #b9bbbe);
}

.payment-addresses-footnote {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-soft, #949ba4);
  max-width: 42rem;
}

/* Admin hub (/admin) */
.admin-hub-lead {
  max-width: none;
}

.admin-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  width: 100%;
  max-width: none;
}

.admin-hub-card {
  display: block;
  padding: 1.05rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-hub-card:hover {
  border-color: rgba(88, 101, 242, 0.45);
  background: rgba(88, 101, 242, 0.08);
}

.admin-hub-card-title {
  display: block;
  font-weight: 600;
  font-size: 1.02rem;
}

.admin-hub-card-desc {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-soft, #949ba4);
}

/* Admin online users (/admin/online-users) */
.admin-online-users-lead {
  max-width: none;
}

.admin-online-users-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.84rem;
  color: var(--text-soft, #949ba4);
}

.admin-online-users-hint {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.84rem;
}

.admin-online-users-summary {
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
}

.admin-online-users-table-wrap {
  margin-top: 0.25rem;
}

.admin-online-users-path {
  font-size: 0.78rem;
  word-break: break-all;
}

.admin-online-users-tabs {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.admin-online-users-live-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #3ba55d;
  box-shadow: 0 0 0 2px rgba(59, 165, 93, 0.25);
  vertical-align: middle;
}

/* Settings hub (/my/settings) */
.settings-hub-lead {
  max-width: none;
}

.settings-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  width: 100%;
  max-width: none;
}

.settings-hub-card {
  display: block;
  padding: 1.05rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.settings-hub-card:hover {
  border-color: rgba(255, 140, 60, 0.45);
  background: rgba(255, 140, 60, 0.06);
}

.settings-hub-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-weight: 600;
  font-size: 1.02rem;
}

.settings-hub-card-badge {
  flex-shrink: 0;
}

.settings-hub-card-desc {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-soft, #949ba4);
}

.settings-hub-card--panel {
  cursor: default;
}

.settings-hub-card--panel:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.settings-hub-card-panel {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-hub-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.settings-hub-pref-label {
  flex: 1 1 8rem;
  min-width: 0;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.35;
}

.settings-hub-pref-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.settings-hub-pref-actions--stack {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.settings-hub-card-panel--install {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-hub-pref-actions--install {
  width: 100%;
  justify-content: stretch;
}

.settings-hub-pref-actions--install .btn {
  width: 100%;
}

.settings-hub-pref-hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.settings-pref-toggle {
  flex-shrink: 0;
}

/* ── VPS Health (/admin/vps-health) ────────────────────────────────────── */
.vps-health-missing-banner {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.08);
  color: #fde68a;
  line-height: 1.6;
}

.vps-health-missing-banner code {
  background: rgba(0,0,0,0.3);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.vps-health-lead {
  margin-top: 0;
}

.vps-health-meta {
  font-size: 0.82rem;
  color: var(--text-muted, #9ca3af);
  font-style: italic;
}

.vps-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.vps-health-card {
  padding: 1.1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.vps-health-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.1rem;
}

.vps-health-card-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.vps-health-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-soft, #949ba4);
  margin: 0;
}

.vps-health-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.vps-health-stat-row--sub {
  font-size: 0.82rem;
  color: var(--text-muted, #9ca3af);
}

.vps-health-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted, #9ca3af);
}

.vps-health-stat-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.vps-health-stat-value--big {
  font-size: 1.15rem;
}

.vps-health--ok   { color: #4ade80; }
.vps-health--warn { color: #facc15; }
.vps-health--danger { color: #f87171; }

.vps-health-bar-wrap {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.vps-health-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.vps-health-bar--ok     { background: #4ade80; }
.vps-health-bar--warn   { background: #facc15; }
.vps-health-bar--danger { background: #f87171; }

.vps-health-sub-row {
  font-size: 0.8rem;
  color: var(--text-muted, #9ca3af);
  margin: 0;
}

.vps-health-section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft, #949ba4);
  margin: 0 0 0.75rem;
}

.vps-health-table-wrap {
  margin-bottom: 1.5rem;
}

.vps-health-table {
  width: 100%;
}

.vps-health-pid {
  color: var(--text-muted, #9ca3af);
  font-variant-numeric: tabular-nums;
}

.vps-health-pname {
  font-weight: 600;
}

.vps-health-status {
  font-size: 0.78rem;
  padding: 0.15em 0.55em;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.07);
}

.vps-health-status--running  { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.vps-health-status--sleeping { background: rgba(148, 155, 164, 0.12); color: #9ca3af; }
.vps-health-status--zombie   { background: rgba(248, 113, 113, 0.2); color: #f87171; }

.vps-health-refresh-note {
  font-size: 0.82rem;
  color: var(--text-muted, #9ca3af);
  margin-top: 0.5rem;
}

.vps-health-refresh-link {
  color: var(--accent, #5865f2);
  text-decoration: none;
  font-weight: 600;
}

.vps-health-refresh-link:hover {
  text-decoration: underline;
}

/* Admin server services (/admin/services) */
.admin-services-page {
  width: 100%;
  max-width: none;
}

.admin-services-muted {
  color: var(--text-soft, #949ba4);
  line-height: 1.5;
}

.admin-services-disabled.panel {
  padding: 1.15rem 1.25rem;
  margin-top: 1rem;
}

.admin-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr));
  gap: 1.15rem;
  margin-top: 1rem;
  width: 100%;
  max-width: none;
}

.admin-services-card.panel {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(20, 22, 28, 0.95) 0%, rgba(12, 14, 18, 0.98) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.admin-services-card-inner {
  padding: 1.2rem 1.25rem 1.25rem 1.35rem;
  border-left: 3px solid rgba(240, 178, 50, 0.85);
}

.admin-services-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem 0.85rem;
  margin-bottom: 1rem;
}

.admin-services-card-head-main {
  min-width: 0;
  flex: 1;
}

.admin-services-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.admin-services-unit {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.78;
  word-break: break-all;
  line-height: 1.35;
}

.admin-services-status-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
}

.admin-services-status-badge--corner {
  flex-shrink: 0;
  align-self: flex-start;
  margin-left: auto;
  max-width: min(55%, 11rem);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-services-status-badge--ok {
  background: rgba(67, 181, 129, 0.22);
  color: #b8f5cb;
  box-shadow: 0 0 0 1px rgba(67, 181, 129, 0.25);
}

.admin-services-status-badge--bad {
  background: rgba(240, 71, 71, 0.18);
  color: #ffb4b4;
  box-shadow: 0 0 0 1px rgba(240, 71, 71, 0.2);
}

.admin-services-status-badge--warn {
  background: rgba(250, 166, 26, 0.18);
  color: #fcd34d;
  box-shadow: 0 0 0 1px rgba(250, 166, 26, 0.22);
}

.admin-services-status-badge--neutral {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft, #b5bac1);
}

.admin-services-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-start;
}

.admin-services-form {
  display: block;
  margin: 0;
}

.admin-services-svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.admin-services-icon-btn {
  box-sizing: border-box;
  width: 2.85rem;
  height: 2.85rem;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.12s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.admin-services-icon-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.admin-services-icon-btn:focus-visible {
  outline: 2px solid rgba(88, 101, 242, 0.75);
  outline-offset: 2px;
}

/* Blue restart */
.admin-services-icon-btn--restart {
  color: #58a6ff;
  border-color: rgba(88, 166, 255, 0.45);
  background: rgba(88, 166, 255, 0.1);
  box-shadow: 0 2px 12px rgba(88, 166, 255, 0.12);
}

.admin-services-icon-btn--restart:hover:not(:disabled) {
  color: #79b8ff;
  background: rgba(88, 166, 255, 0.2);
  border-color: rgba(88, 166, 255, 0.65);
  box-shadow: 0 4px 16px rgba(88, 166, 255, 0.22);
}

/* Green play / start */
.admin-services-icon-btn--start {
  color: #43b581;
  border-color: rgba(67, 181, 129, 0.45);
  background: rgba(67, 181, 129, 0.1);
  box-shadow: 0 2px 12px rgba(67, 181, 129, 0.1);
}

.admin-services-icon-btn--start:hover:not(:disabled) {
  color: #5ee4a3;
  background: rgba(67, 181, 129, 0.2);
  border-color: rgba(67, 181, 129, 0.65);
  box-shadow: 0 4px 16px rgba(67, 181, 129, 0.18);
}

/* Red stop */
.admin-services-icon-btn--stop {
  color: #ed4245;
  border-color: rgba(237, 66, 69, 0.45);
  background: rgba(237, 66, 69, 0.1);
  box-shadow: 0 2px 12px rgba(237, 66, 69, 0.12);
}

.admin-services-icon-btn--stop:hover:not(:disabled) {
  color: #ff6b6e;
  background: rgba(237, 66, 69, 0.2);
  border-color: rgba(237, 66, 69, 0.65);
  box-shadow: 0 4px 16px rgba(237, 66, 69, 0.2);
}

.admin-services-foot {
  margin-top: 1.25rem;
}

/* Journal log dock (/admin/services) */
.admin-services-log-dock.panel {
  margin-top: 1.35rem;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(16, 18, 22, 0.98) 0%, rgba(10, 11, 14, 0.99) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.admin-services-log-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.65rem 0.85rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.28);
}

.admin-services-log-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft, #9aa0a8);
}

.admin-services-log-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.admin-services-log-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-soft, #949ba4);
}

.admin-services-log-label-text {
  opacity: 0.88;
}

.admin-services-log-label--grow {
  flex: 1 1 12rem;
  min-width: 8rem;
}

.admin-services-log-label--grow .admin-services-log-input {
  flex: 1;
  min-width: 6rem;
}

.admin-services-log-input {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color-scheme: dark;
  background-color: #1c2128;
  color: #e6edf3;
  max-width: min(22rem, 100%);
}

.admin-services-log-input::placeholder {
  color: rgba(230, 237, 243, 0.45);
}

.admin-services-log-input:focus {
  outline: 2px solid rgba(88, 101, 242, 0.6);
  outline-offset: 1px;
}

.admin-services-log-select {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* Native OS dropdowns often ignore `color: inherit` — force dark list + light text. */
  color-scheme: dark;
  background-color: #1c2128;
  color: #e6edf3;
  max-width: min(14rem, 100%);
}

.admin-services-log-select option,
.admin-services-log-select optgroup {
  background-color: #1c2128;
  color: #e6edf3;
}

.admin-services-log-select:focus {
  outline: 2px solid rgba(88, 101, 242, 0.6);
  outline-offset: 1px;
}

.admin-services-log-body {
  margin: 0;
  padding: 0;
}

.admin-services-log-pre {
  margin: 0;
  min-height: 12rem;
  max-height: min(55vh, 28rem);
  overflow: auto;
  padding: 0.75rem 0.85rem 1rem;
  font-family:
    ui-monospace,
    "Cascadia Code",
    "Source Code Pro",
    Menlo,
    Consolas,
    monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  tab-size: 4;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d6dde6;
  background: #0d1117;
  border: none;
  border-radius: 0;
}

.admin-services-log-line {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.12rem 0.35rem;
  margin: 0 -0.35rem;
  border-left: 3px solid transparent;
  border-radius: 3px;
}

.admin-services-log-level {
  flex: 0 0 auto;
  min-width: 2.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-align: center;
  padding: 0.05rem 0.2rem;
  border-radius: 3px;
  opacity: 0.95;
}

.admin-services-log-text {
  flex: 1;
  min-width: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-services-log-line--emerg,
.admin-services-log-line--alert,
.admin-services-log-line--crit {
  color: #fecaca;
  border-left-color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

.admin-services-log-line--emerg .admin-services-log-level,
.admin-services-log-line--alert .admin-services-log-level,
.admin-services-log-line--crit .admin-services-log-level {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.35);
}

.admin-services-log-line--err {
  color: #fca5a5;
  border-left-color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}

.admin-services-log-line--err .admin-services-log-level {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.28);
}

.admin-services-log-line--warning {
  color: #fde68a;
  border-left-color: #facc15;
  background: rgba(250, 204, 21, 0.08);
}

.admin-services-log-line--warning .admin-services-log-level {
  color: #fef08a;
  background: rgba(250, 204, 21, 0.22);
}

.admin-services-log-line--notice {
  color: #bae6fd;
  border-left-color: #38bdf8;
  background: rgba(56, 189, 248, 0.06);
}

.admin-services-log-line--notice .admin-services-log-level {
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.2);
}

.admin-services-log-line--info {
  color: #d6dde6;
}

.admin-services-log-line--info .admin-services-log-level {
  color: #9ca3af;
  background: rgba(148, 163, 184, 0.12);
}

.admin-services-log-line--debug {
  color: #9ca3af;
}

.admin-services-log-line--debug .admin-services-log-level {
  color: #6b7280;
  background: rgba(107, 114, 128, 0.15);
}

.admin-services-log-line--ok {
  color: #86efac;
  border-left-color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
}

.admin-services-log-line--ok .admin-services-log-level {
  color: #bbf7d0;
  background: rgba(74, 222, 128, 0.22);
}

.admin-services-log-line--trace {
  color: #fcd34d;
  border-left-color: #fbbf24;
  background: rgba(251, 191, 36, 0.07);
}

.admin-services-log-line--trace .admin-services-log-level {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.2);
}

.admin-services-log-line--meta {
  color: #6e7681;
  font-style: italic;
}

.admin-services-log-line--meta .admin-services-log-level {
  color: #6e7681;
  background: rgba(110, 118, 129, 0.12);
}

.admin-services-log-pre--err {
  color: #ff9e9e;
}

.admin-services-log-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin: 0;
  padding: 0 0.85rem 0.55rem;
  font-size: 0.68rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.15);
}

.admin-services-log-legend-item {
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  border-left: 2px solid transparent;
  padding-left: 0.4rem;
}

.admin-services-log-hint {
  margin: 0;
  padding: 0.45rem 0.85rem 0.65rem;
  font-size: 0.72rem;
  color: var(--text-soft, #7e848c);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

/* Admin banners (/admin/banners) */
.admin-banners-page {
  width: 100%;
  max-width: none;
}

.admin-banners-lead {
  max-width: none;
}

.admin-banners-form.panel {
  padding: 1.15rem 1.25rem;
  margin-top: 1rem;
}

.admin-banners-slot {
  margin: 0;
  padding: 0 0 1.15rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-banners-slot:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.admin-banners-slot-title {
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
}

.admin-banners-slot-desc {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-soft, #949ba4);
}

.admin-banners-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
}

.admin-banners-label span {
  color: var(--text-soft, #949ba4);
}

.admin-banners-input {
  width: 100%;
  box-sizing: border-box;
}

.admin-banners-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.1rem;
}

.admin-limits-page {
  max-width: 52rem;
}

.admin-limits-table-wrap {
  margin-top: 0.35rem;
}

.admin-limits-table .admin-limits-col-num {
  width: 9.5rem;
  text-align: right;
}

.admin-limits-tier-name {
  display: block;
  font-weight: 700;
}

.admin-limits-tier-threshold {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.12rem;
}

.admin-limits-input--table {
  max-width: 6.5rem;
  margin-left: auto;
}

.admin-limits-lead {
  margin-bottom: 1rem;
}

.admin-limits-form.panel {
  padding: 1.1rem 1.25rem;
}

.admin-limits-fieldset {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
}

.admin-limits-fieldset:last-of-type {
  margin-bottom: 0;
}

.admin-limits-legend {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.admin-limits-field-desc {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.admin-limits-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.admin-limits-input {
  max-width: 8rem;
}

.admin-limits-input--usd {
  max-width: 10rem;
}

.admin-limits-status {
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
}

.admin-limits-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.1rem;
}

/* How to trade (/how-to-trade) — panels use .overview-block like Summary */
.how-to-trade-doc > .lead {
  max-width: none;
  line-height: 1.55;
}

.how-to-trade-doc .how-to-trade-toc {
  margin: 0;
  padding-left: 1.35rem;
  line-height: 1.6;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.how-to-trade-doc .how-to-trade-toc li + li {
  margin-top: 0.35rem;
}

.how-to-trade-doc .how-to-trade-list {
  margin: 0;
  padding-left: 1.35rem;
  line-height: 1.55;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.how-to-trade-doc .how-to-trade-list li + li {
  margin-top: 0.35rem;
}

.how-to-trade-doc .how-to-trade-list--numbered {
  list-style: decimal;
}

.how-to-trade-doc .overview-block > p {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.how-to-trade-doc .overview-block > .overview-block-head + p {
  margin-top: 0;
}

.how-to-trade-doc .overview-block > p + .how-to-trade-list {
  margin-top: 0.45rem;
}

.how-to-trade-doc .overview-block > .how-to-trade-list + p,
.how-to-trade-doc .overview-block > ol + p {
  margin-top: 0.65rem;
}

.how-to-trade-doc .how-to-trade-muted {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.how-to-trade-doc .how-to-trade-subh {
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.how-to-trade-doc .overview-block-head + p + .how-to-trade-subh {
  margin-top: 0.85rem;
}

/* My Account hub + public account marketplace */
.account-hub-terms-panel {
  margin-bottom: 1.25rem;
}

.account-hub-section-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.account-hub-terms-hint {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.account-hub-terms-last-updated {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
}

.account-hub-terms-audit {
  margin: 0 0 1rem;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  padding: 0.5rem 0.75rem;
  background: var(--panel-2, rgba(0, 0, 0, 0.15));
}

.account-hub-terms-audit-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.account-hub-terms-audit-scroll {
  margin-top: 0.65rem;
  max-height: 16rem;
}

.account-hub-terms-audit-table {
  font-size: 0.82rem;
}

.account-hub-terms-audit-ts {
  white-space: nowrap;
  vertical-align: top;
  width: 11rem;
}

.account-hub-terms-audit-preview {
  color: var(--text-soft);
  word-break: break-word;
}

.account-market-terms-last-updated {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
}

.account-hub-terms-textarea {
  min-height: 8rem;
  resize: vertical;
}

.account-hub-actions {
  margin-top: 0.35rem;
}

.account-hub-game-columns {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 100%;
}

.account-hub-game-panel {
  width: 100%;
  min-width: 0;
}

/* Wider listing tables + title column (avoid letter-by-letter wrap in narrow split layout) */
.account-hub-table {
  min-width: 44rem;
}

.account-hub-table th.account-hub-col-title,
.account-hub-table td.account-hub-col-title {
  min-width: 14rem;
  width: 38%;
  word-break: normal;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  table.data.account-hub-table {
    table-layout: auto;
    min-width: 0;
    width: 100%;
  }

  .account-hub-table th.account-hub-col-title,
  .account-hub-table td.account-hub-col-title {
    min-width: 10rem;
    width: auto;
  }
}

.account-hub-game-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.account-hub-game-head .account-hub-section-title {
  margin: 0;
}

.account-hub-table .account-hub-col-prices {
  min-width: 9rem;
}

.account-hub-table .account-hub-col-listed {
  min-width: 7.5rem;
  white-space: nowrap;
}

.account-hub-table .account-hub-col-marketplace {
  min-width: 7.25rem;
}

.account-hub-cell-marketplace {
  font-size: 0.84rem;
  color: var(--text-soft);
}

.account-hub-marketplace-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
  color: var(--text);
}

.account-hub-marketplace-toggle .ah-listed-public-cb {
  margin: 0;
  flex-shrink: 0;
}

.account-hub-marketplace-readonly {
  font-weight: 500;
}

.account-hub-cell-listed {
  font-size: 0.84rem;
  color: var(--text-soft);
}

.account-hub-table .account-hub-col-actions {
  width: 5.5rem;
  text-align: right;
}

.account-hub-cell-prices {
  font-size: 0.84rem;
  color: var(--text-soft);
}

.account-hub-price-tag {
  display: inline-block;
  margin-right: 0.5rem;
}

.account-hub-footer-link {
  margin-top: 1.25rem;
}

.account-hub-dialog-inner {
  max-width: 32rem;
}

.account-hub-listing-dialog.market-filters-dialog.sub-redeem-dialog {
  max-width: min(56rem, calc(100vw - 2rem));
}

.account-hub-listing-dialog .account-hub-dialog-inner {
  max-width: none;
  width: 100%;
}

/* Add / Edit listing modal: Game, Original owner, Login type */
#ah-form > .ah-field {
  margin-top: 0.75rem;
}

#ah-form > .ah-field:first-of-type {
  margin-top: 0;
}

/*
 * Add / Edit listing: segmented toggles — same components + active styling as gold listing
 * “Add listing” dialog game tabs (#listing-create-game-tabs).
 */
.account-hub-listing-dialog .account-hub-seg-toggle.channel-market-toggle,
#ah-dialog .account-hub-seg-toggle.channel-market-toggle {
  margin-top: 0.35rem;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  box-sizing: border-box;
}

.account-hub-listing-dialog .account-hub-seg-toggle .channel-market-toggle-btn,
#ah-dialog .account-hub-seg-toggle .channel-market-toggle-btn {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.account-hub-listing-dialog .account-hub-seg-toggle--wide .channel-market-toggle-btn,
#ah-dialog .account-hub-seg-toggle--wide .channel-market-toggle-btn {
  font-size: 0.78rem;
  padding: 0.42rem 0.5rem;
  line-height: 1.25;
}

#listing-create-game-tabs .channel-market-toggle-btn:focus-visible,
#ah-seg-owner .channel-market-toggle-btn:focus-visible,
#ah-seg-login .channel-market-toggle-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.ah-stat-input {
  max-width: 8rem;
}

.ah-images-block {
  margin-top: 0.75rem;
}

.ah-images-hint {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.ah-images-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.ah-image-row {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
}

.ah-image-row-url-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.ah-image-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.ah-image-url {
  flex: 1 1 12rem;
  min-width: 0;
}

.ah-image-default-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
}

.ah-image-remove {
  margin-left: auto;
}

.ah-add-image-btn {
  margin-top: 0.15rem;
}

.account-market-lead a {
  color: var(--accent, #5865f2);
}

.account-market-risk {
  margin-top: 0.35rem;
  font-weight: 600;
  color: #e53935;
}

.account-market-risk strong {
  color: inherit;
}

.account-market-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.25rem;
}

.account-market-filters {
  margin-bottom: 0.65rem;
  padding: 0.85rem 1rem;
}

.account-market-filters.account-market-filters--compact {
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.55rem;
}

.account-market-filters--compact .account-market-filter-select {
  min-width: 0;
  width: 100%;
}

.account-market-filters-dense {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.3rem 0.45rem;
}

.account-market-filters--compact .account-market-filter-field {
  gap: 0.12rem;
}

.account-market-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.account-market-filters--compact .account-market-filter-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted, #72767d);
  line-height: 1.2;
}

.account-market-filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #72767d);
}

.account-market-filters--compact .account-market-filter-input,
.account-market-filters--compact .account-market-filter-select,
.account-market-filters--compact .sub-redeem-input {
  padding: 0.25rem 0.38rem;
  font-size: 0.78rem;
  line-height: 1.25;
}

.account-market-filters--compact .account-market-filter-field--q {
  flex: 1 1 10rem;
  min-width: min(100%, 9rem);
  max-width: 16rem;
}

.account-market-filters--compact .account-market-filter-field--per {
  flex: 0 0 4.35rem;
  min-width: 3.75rem;
}

.account-market-filters--compact .account-market-filter-field--sort {
  flex: 0 1 8.5rem;
  min-width: 6.5rem;
}

.account-market-filters--compact .account-market-filter-field--build {
  flex: 0 1 8rem;
  min-width: 5.5rem;
}

.account-market-filters--compact .account-market-filter-field--login {
  flex: 0 1 7.5rem;
  min-width: 5.5rem;
}

.account-market-filters--compact .account-market-filter-field--combat {
  flex: 0 0 8.25rem;
  width: 8.25rem;
  max-width: 100%;
}

.account-market-filters--compact .account-market-filter-field--combat .account-market-filter-input {
  width: 100%;
  min-width: 0;
}

.account-market-filters--compact .account-market-filter-field--actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.account-market-filters--compact .account-market-filter-label--spacer {
  min-height: 0.72rem;
  line-height: 1;
}

.account-market-filter-btn {
  padding: 0.22rem 0.5rem;
  font-size: 0.75rem;
}

.account-market-filter-input {
  min-width: min(100%, 14rem);
}

.account-market-filter-select {
  min-width: 10.5rem;
}

.account-market-filter-field--actions {
  justify-content: flex-end;
}

.account-market-filter-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.account-market-filter-label--spacer {
  visibility: hidden;
  min-height: 1.2em;
}

.account-market-pagination {
  margin-top: 1rem;
}

.account-market-filter-meta {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Account marketplace: 3 columns; compact card + detail dialog */
.account-market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  width: 100%;
}

@media (max-width: 1100px) {
  .account-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .account-market-grid {
    grid-template-columns: 1fr;
  }
}

.account-market-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
}

.account-market-card--clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-market-card--clickable:hover {
  border-color: rgba(88, 101, 242, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.account-market-card--clickable:focus-visible {
  outline: 2px solid var(--accent, #5865f2);
  outline-offset: 2px;
}

.account-market-card-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.65rem;
  min-width: 0;
}

.account-market-card-col--left {
  flex: 1 1 auto;
  min-width: 0;
}

.account-market-card-col--center {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  text-align: center;
  max-width: 104px;
}

.account-market-card-listed {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 104px;
  font-size: 0.62rem;
  line-height: 1.2;
  color: var(--muted, #72767d);
  word-break: break-word;
}

.account-market-card-listed time {
  font-variant-numeric: tabular-nums;
}

.account-market-card-col--center .account-market-thumb-open {
  text-align: center;
}

.account-market-keyfacts--card .account-market-kf-row {
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.25rem 0.45rem;
}

.account-market-keyfacts--card .account-market-kf-row dt {
  font-size: 0.72rem;
}

.account-market-keyfacts--card .account-market-kf-row dd {
  font-size: 0.8rem;
}

.account-market-card .account-market-card-title {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  line-height: 1.2;
  word-break: break-word;
}

a.account-market-card-title-link {
  color: inherit;
  text-decoration: none;
}

a.account-market-card-title-link:hover,
a.account-market-card-title-link:focus-visible {
  text-decoration: underline;
  color: var(--accent, #a5b4fc);
}

a.account-market-listing-code-link {
  color: inherit;
  text-decoration: none;
}

a.account-market-listing-code-link:hover code,
a.account-market-listing-code-link:focus-visible code {
  text-decoration: underline;
  color: var(--accent, #a5b4fc);
}

button.account-market-seller-profile-btn {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--accent, #a5b4fc);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

button.account-market-seller-profile-btn:hover,
button.account-market-seller-profile-btn:focus-visible {
  color: var(--accent-bright, #c7d2fe);
  text-decoration-style: solid;
}

.account-market-card-price-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: var(--accent, #a5b4fc);
  max-width: 100%;
  word-break: break-word;
}

.account-market-card-price-bubble--empty {
  font-weight: 600;
  color: var(--muted, #72767d);
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}

.account-market-card-price-bubble--keyfacts {
  max-width: 100%;
  font-size: 0.72rem;
  padding: 0.22rem 0.45rem;
  margin-top: 0.05rem;
}

.account-market-kf-price-dd {
  min-width: 0;
}

.account-market-card-col--center .market-post-open--buy.account-market-buy-accept {
  margin-top: 0.35rem;
  min-width: 4.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.account-market-own-listing-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted, #72767d);
  text-align: center;
}

.account-market-buy-gate {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted, #72767d);
  text-align: center;
}

.account-market-toolbar--with-buy {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.account-market-thumb-placeholder {
  width: 96px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--muted);
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

.account-listing-detail-dialog .account-listing-detail-inner {
  max-width: min(36rem, 96vw);
  max-height: 90vh;
  overflow-y: auto;
}

.account-listing-detail-listed-wrap {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted, #72767d);
}

.account-listing-detail-permalink {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
}

a.account-listing-detail-permalink-link {
  color: var(--accent, #a5b4fc);
}

.account-listing-detail-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.account-listing-detail-facts {
  flex: 1 1 14rem;
  min-width: 0;
}

.account-listing-detail-visual {
  flex: 0 0 auto;
}

.account-listing-detail-visual .account-market-thumb-placeholder {
  margin: 0 auto;
}

.account-listing-detail-subh {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #72767d);
}

.account-listing-detail-meta {
  margin-bottom: 0.75rem;
}

.account-listing-detail-toggles {
  margin-top: 0.5rem;
}

.account-listing-detail-price-dd {
  font-weight: 600;
  color: var(--accent, #5865f2);
}

.account-market-keyfacts {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.account-market-kf-row {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.account-market-kf-row dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted, #72767d);
}

.account-market-kf-row dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  word-break: break-word;
  min-width: 0;
}

.account-market-thumb-wrap {
  flex-shrink: 0;
}

.account-market-gallery-json {
  display: none !important;
}

.account-market-thumb-open {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  text-align: right;
}

.account-market-thumb-open:focus-visible {
  outline: 2px solid var(--accent, #5865f2);
  outline-offset: 3px;
}

.account-market-thumb-frame {
  position: relative;
  display: inline-block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.account-market-thumb-img {
  display: block;
  width: 96px;
  height: 72px;
  object-fit: cover;
}

.account-market-thumb-more {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  line-height: 1;
}

.account-gallery-dialog .account-gallery-dialog-inner {
  max-width: min(52rem, 96vw);
}

/* Base .market-filters-dialog limits dialogs to ~32rem — gallery needs almost full viewport. */
.market-filters-dialog.account-gallery-dialog--viewer {
  max-width: min(98vw, 1680px);
  width: min(98vw, 1680px);
  max-height: min(94vh, 1400px);
}

.account-gallery-dialog--viewer .account-gallery-dialog-inner {
  max-width: none;
  width: 100%;
  padding: 1rem 1rem 1.15rem;
  box-sizing: border-box;
}

.account-gallery-viewport {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  min-height: min(68vh, 880px);
}

.account-gallery-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.42);
  min-height: min(62vh, 820px);
}

.account-gallery-main img {
  display: block;
  max-width: 100%;
  max-height: min(84vh, 1200px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.account-gallery-nav {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(25, 28, 42, 0.92);
  color: rgba(235, 240, 252, 0.98);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease;
}

.account-gallery-nav:hover:not(:disabled) {
  background: rgba(45, 52, 72, 0.98);
  border-color: rgba(0, 229, 255, 0.35);
}

.account-gallery-nav:focus-visible {
  outline: 2px solid rgba(0, 229, 255, 0.65);
  outline-offset: 2px;
}

.account-gallery-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.account-gallery-counter {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(200, 208, 225, 0.88);
  text-align: center;
}

.account-gallery-dialog-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.account-gallery-dialog-head .market-filters-dialog-title {
  margin-bottom: 0;
}

/* Match listing-card “+N” bubble — total photo count when gallery has multiple images */
.account-gallery-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.4rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.account-gallery-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
  max-height: 70vh;
  overflow-y: auto;
}

.account-gallery-strip--thumbs {
  justify-content: center;
  margin-top: 0.85rem;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding-bottom: 0.15rem;
}

.account-gallery-thumb {
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.account-gallery-thumb img {
  display: block;
  width: 76px;
  height: 57px;
  object-fit: cover;
}

.account-gallery-thumb:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.account-gallery-thumb.account-gallery-thumb--active {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.2);
}

@media (max-width: 640px) {
  .market-filters-dialog.account-gallery-dialog--viewer {
    max-width: calc(100vw - 0.75rem);
    width: calc(100vw - 0.75rem);
    max-height: 92vh;
  }

  .account-gallery-viewport {
    min-height: min(58vh, 620px);
    gap: 0.2rem;
  }

  .account-gallery-main {
    min-height: min(52vh, 560px);
  }

  .account-gallery-main img {
    max-height: min(78vh, 900px);
  }

  .account-gallery-nav {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.4rem;
  }

  .account-gallery-thumb img {
    width: 64px;
    height: 48px;
  }
}

.account-market-seller-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.account-market-card-body {
  flex: 1;
  min-width: 0;
}

.account-market-description {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.account-market-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.account-market-prices--top {
  margin-top: 0;
  justify-content: flex-end;
  align-items: flex-start;
  flex: 0 1 auto;
  align-self: flex-start;
}

.account-market-prices--inline {
  margin-top: 0;
  justify-content: flex-start;
  align-items: center;
}

.account-market-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.28);
}

.account-market-price-label {
  font-weight: 600;
  opacity: 0.85;
}

.account-market-toggles {
  margin-top: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-market-toggle {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
}

.account-market-toggle + .account-market-toggle {
  margin-top: 0.45rem;
}

.account-market-toggle-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent, #5865f2);
  padding: 0.45rem 0.65rem;
  list-style: none;
}

.account-market-toggle-summary::-webkit-details-marker {
  display: none;
}

.account-market-toggle-summary::marker {
  content: "";
}

.account-market-toggle-body {
  padding: 0 0.65rem 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.account-market-toggle-body .account-market-description {
  margin-top: 0.5rem;
}

.account-market-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.account-market-toggle-body .account-market-images {
  margin-top: 0.35rem;
}

.account-market-img-link {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 100%;
}

.account-market-img {
  display: block;
  max-width: min(200px, 28vw);
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: cover;
}

.account-market-terms-body {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-soft);
  word-break: break-word;
}

/* pre-line: plain-text newlines are visible; long lines still wrap (unlike pre-wrap). */
.account-market-terms-body--html {
  white-space: pre-line;
}

.account-market-terms-body--html pre {
  white-space: pre;
  overflow-x: auto;
}

.account-market-terms-body--html p {
  margin: 0.4rem 0 0;
}

.account-market-terms-body--html p:first-child {
  margin-top: 0;
}

.account-market-terms-body--html ul,
.account-market-terms-body--html ol {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.account-market-terms-body--html a {
  color: var(--accent, #5865f2);
  text-decoration: underline;
}

.account-market-terms-body--html h1,
.account-market-terms-body--html h2,
.account-market-terms-body--html h3 {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.account-market-empty {
  margin-top: 0.5rem;
}

.account-market-listing-code {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.account-market-listing-code-label {
  font-weight: 600;
  margin-right: 0.35rem;
  color: var(--muted);
}

.account-market-listing-code code,
.account-market-listing-code-inline {
  font-size: 0.88rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-market-meta-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .account-market-meta-dl {
    grid-template-columns: auto 1fr auto 1fr;
  }
}

.account-market-meta-dl.account-market-meta-dl--compact {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.28rem 0.65rem;
  font-size: 0.8rem;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .account-market-meta-dl.account-market-meta-dl--compact {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.account-market-meta-dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.account-market-meta-dl dd {
  margin: 0;
  color: var(--text-soft);
  word-break: break-word;
}

.account-hub-col-id {
  width: 9.5rem;
  white-space: nowrap;
}

.account-hub-cell-id code {
  font-size: 0.78rem;
}

.account-hub-listing-code-display {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* Seller terms: optional classes (no <style> — site CSS only) */
.account-market-terms-body--html .ge-terms-wrap {
  max-width: 36rem;
  margin: 0 auto;
}

.account-market-terms-body--html .ge-terms-h1 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  color: #38bdf8;
}

.account-market-terms-body--html .ge-terms-card {
  background: rgba(30, 41, 59, 0.85);
  padding: 0.9rem 1rem;
  margin: 0 0 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-market-terms-body--html .ge-terms-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text, #e2e8f0);
}

.account-market-terms-body--html .ge-terms-details {
  margin: 0.5rem 0;
  line-height: 1.55;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.account-market-terms-body--html .ge-terms-price {
  margin-top: 0.5rem;
  color: #22c55e;
  font-weight: 700;
  font-size: 1.05rem;
}

.account-market-terms-body--html .ge-terms-note {
  margin-top: 1rem;
  padding: 0.65rem 0.75rem;
  background: rgba(2, 6, 23, 0.65);
  border-radius: 8px;
  font-size: 0.84rem;
  text-align: center;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Single listing page (/accounts/{game}/{id or listing_code}) */
.account-listing-view-title {
  margin-bottom: 0.35rem;
}

.account-listing-view-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted, #72767d);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
}

.account-listing-view-id {
  font-size: 0.82rem;
}

.account-listing-sold-badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1208;
  background: linear-gradient(135deg, #f0a030, #e87820);
  border: 1px solid rgba(255, 200, 120, 0.35);
}

.account-listing-sold-date {
  font-size: 0.88rem;
  color: var(--muted, #72767d);
}

.account-listing-view-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .account-listing-view-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    align-items: start;
  }
}

.account-listing-view-subh {
  margin: 1rem 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.account-listing-view-subh:first-of-type {
  margin-top: 0;
}

.account-listing-view-main > .account-listing-view-toggle:first-of-type {
  margin-top: 1rem;
}

.account-listing-view-desc .account-market-description {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.account-listing-view-terms {
  margin-top: 0.35rem;
}

.account-listing-view-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .account-listing-view-aside {
    align-items: stretch;
  }
}

.account-listing-view-thumb-wrap {
  text-align: center;
}

.account-listing-view-thumb-wrap .account-market-thumb-img,
.account-listing-view-thumb-img {
  width: 280px;
  height: 210px;
  max-width: 100%;
  object-fit: cover;
}

.account-listing-view-thumb-ph {
  width: 100%;
  max-width: 280px;
  min-height: 210px;
  margin: 0 auto;
}

.account-listing-view-share {
  font-size: 0.78rem;
  text-align: center;
  word-break: break-all;
}

.account-listing-view-share-label {
  font-weight: 600;
  color: var(--text-soft);
}

.account-listing-view-share-url {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
}

/* Gold market: force blue “Sell” UI (wins over cached CSS / generic .btn-primary orange) */
.channel-market-toggle-btn.is-active[data-market-panel="sell"] {
  color: #93c5fd !important;
  background: rgba(59, 130, 246, 0.22) !important;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.55),
    0 0 14px rgba(59, 130, 246, 0.22) !important;
}

article.market-post-panel .btn.market-post-open.market-post-open--accept.market-post-open--sell.btn-primary:not(:disabled) {
  background: linear-gradient(165deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(147, 197, 253, 0.45) !important;
  box-shadow:
    0 4px 22px rgba(59, 130, 246, 0.45),
    0 0 0 1px rgba(147, 197, 253, 0.25) !important;
}

article.market-post-panel .btn.market-post-open.market-post-open--accept.market-post-open--sell.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08) !important;
  color: #fff !important;
}

article.market-post-panel:hover .btn.market-post-open.market-post-open--accept.market-post-open--sell.btn-primary:not(:disabled),
article.market-post-panel:focus-within .btn.market-post-open.market-post-open--accept.market-post-open--sell.btn-primary:not(:disabled) {
  box-shadow:
    0 6px 28px rgba(59, 130, 246, 0.55),
    0 0 0 1px rgba(147, 197, 253, 0.45),
    0 0 36px rgba(37, 99, 235, 0.35) !important;
}

/* Stale poll HTML may still ship btn-danger — paint Sell blue anyway */
article.market-post-panel .btn.market-post-open.market-post-open--accept.market-post-open--sell.btn-danger:not(:disabled) {
  background: linear-gradient(165deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(147, 197, 253, 0.45) !important;
  box-shadow:
    0 4px 22px rgba(59, 130, 246, 0.45),
    0 0 0 1px rgba(147, 197, 253, 0.25) !important;
}

article.market-post-panel .btn.market-post-open.market-post-open--accept.market-post-open--sell.btn-danger:hover:not(:disabled) {
  filter: brightness(1.08) !important;
  color: #fff !important;
}

/* Site-wide GP → USD calculator (floating + dialog) */
.gp-calc-fab {
  position: fixed;
  z-index: 120;
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3.35rem;
  min-height: 3.35rem;
  padding: 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 0, 0.35);
  background: linear-gradient(155deg, rgba(28, 30, 42, 0.96) 0%, rgba(10, 12, 20, 0.98) 100%);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(255, 126, 0, 0.12);
  color: rgba(250, 245, 235, 0.98);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.gp-calc-fab:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 210, 255, 0.45);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(0, 210, 255, 0.15),
    0 0 32px rgba(0, 114, 255, 0.14);
}

.gp-calc-fab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gp-calc-fab__icon {
  display: block;
  width: 2.55rem;
  height: 2.55rem;
  object-fit: contain;
  pointer-events: none;
}

.gp-calc-dialog {
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 140, 0, 0.22);
  border-radius: calc(var(--radius) + 4px);
  max-width: min(22.5rem, calc(100vw - 1.75rem));
  width: 100%;
  background: linear-gradient(158deg, rgba(22, 24, 34, 0.99) 0%, rgba(8, 10, 18, 0.995) 100%);
  color: var(--text);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(255, 140, 0, 0.1),
    0 24px 56px rgba(0, 0, 0, 0.45);
}

.gp-calc-dialog::backdrop {
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.gp-calc-dialog__inner {
  padding: 1.2rem 1.3rem 1.25rem;
}

.gp-calc-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 140, 0, 0.14);
}

.gp-calc-dialog__head-text {
  min-width: 0;
}

.gp-calc-dialog__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.gp-calc-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.gp-calc-mode-btn {
  margin: 0;
  padding: 0.48rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.04em;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.gp-calc-mode-btn + .gp-calc-mode-btn {
  border-left: 1px solid var(--border-strong);
}

.gp-calc-mode-btn:hover {
  background: rgba(255, 126, 0, 0.08);
  color: var(--text);
}

.gp-calc-mode-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
  z-index: 1;
}

.gp-calc-mode-btn.is-active {
  background: rgba(255, 126, 0, 0.18);
  color: var(--titan-gold);
}

.gp-calc-dialog__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin: -0.2rem -0.15rem 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(210, 218, 235, 0.95);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.gp-calc-dialog__close:hover {
  background: rgba(255, 80, 60, 0.2);
  color: #fff;
}

.gp-calc-dialog__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gp-calc-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gp-calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.gp-calc-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.gp-calc-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--mono);
}

.gp-calc-input::placeholder {
  color: rgba(150, 165, 195, 0.55);
}

.gp-calc-input:focus {
  outline: none;
  border-color: rgba(255, 140, 0, 0.35);
  box-shadow: 0 0 0 2px var(--accent-orange-dim);
}

/* GP amount + M/B: grid keeps units on the same row (flex wrap was unreliable on narrow viewports) */
.gp-calc-amount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: linear-gradient(165deg, rgba(20, 22, 30, 0.95) 0%, rgba(0, 0, 0, 0.5) 100%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.gp-calc-amount-row:focus-within {
  border-color: rgba(255, 140, 0, 0.42);
  box-shadow: 0 0 0 2px var(--accent-orange-dim);
}

.gp-calc-amount-row--usd-only {
  grid-template-columns: 1fr;
}

.gp-calc-amount-row--usd-only .gp-calc-suffixes {
  display: none;
}

.gp-calc-input--amount {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gp-calc-input.gp-calc-input--amount:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.gp-calc-suffixes {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  align-self: stretch;
  border: none;
  border-left: 1px solid rgba(255, 140, 0, 0.18);
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 126, 0, 0.11) 0%, rgba(255, 90, 0, 0.05) 100%);
}

.gp-calc-suffix-btn {
  margin: 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.72rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 800;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.gp-calc-suffix-btn + .gp-calc-suffix-btn {
  border-left: 1px solid var(--border-strong);
}

.gp-calc-suffix-btn:hover {
  background: rgba(255, 126, 0, 0.12);
  color: var(--text);
}

.gp-calc-suffix-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
  z-index: 1;
}

.gp-calc-suffix-btn.is-active {
  background: rgba(255, 126, 0, 0.28);
  color: var(--titan-gold);
  text-shadow: 0 0 14px rgba(255, 200, 80, 0.25);
}

.gp-calc-input--rate {
  border-color: var(--border-strong);
  background: linear-gradient(165deg, rgba(20, 22, 30, 0.9) 0%, rgba(0, 0, 0, 0.42) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.gp-calc-result-wrap {
  margin-top: 1.15rem;
  padding: 0.85rem 1rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 140, 0, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 126, 0, 0.07) 0%, transparent 42%),
    rgba(0, 0, 0, 0.32);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 28px rgba(0, 0, 0, 0.35);
}

.gp-calc-result-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.gp-calc-result {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--titan-gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(255, 126, 0, 0.12);
}

.gp-calc-actions {
  margin-top: 1.05rem;
  display: flex;
  justify-content: flex-end;
}

.gp-calc-clear-btn {
  padding: 0.38rem 0.85rem;
  font-size: 0.8rem;
  font-family: var(--font);
  border: 1px solid rgba(255, 140, 0, 0.35);
  background: rgba(255, 126, 0, 0.08);
  color: var(--text-soft);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.gp-calc-clear-btn:hover {
  background: rgba(255, 126, 0, 0.16);
  border-color: rgba(255, 160, 80, 0.45);
  color: var(--text);
}

.gp-calc-clear-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* OSRS Services — provider directory & hub */
.osrs-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.osrs-services-card {
  padding: 0;
  overflow: hidden;
}

.osrs-services-card__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: inherit;
  text-decoration: none;
}

.osrs-services-card__link:hover {
  background: rgba(255, 126, 0, 0.06);
}

.osrs-services-card__avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.osrs-services-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.osrs-services-card__tag {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.osrs-services-card__cta {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--accent-bright);
}

.osrs-services-provider-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.osrs-services-provider-hero__main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.osrs-services-provider-hero__avatar {
  border-radius: 50%;
}

.osrs-services-provider-tag {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.osrs-services-provider-back {
  margin: 0 0 1rem;
}

.osrs-services-provider-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.osrs-services-tab {
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.osrs-services-tab.is-active {
  border-color: rgba(255, 140, 0, 0.45);
  background: rgba(255, 126, 0, 0.12);
  color: var(--text);
}

.osrs-services-panel {
  margin-bottom: 1rem;
}

.osrs-services-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.osrs-services-entry__title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}

.osrs-services-price-table {
  font-size: 0.88rem;
}

.osrs-services-settings-lead {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  max-width: 36rem;
}

.osrs-services-settings-grid {
  display: grid;
  gap: 0.5rem;
  max-width: 28rem;
  margin-bottom: 0.75rem;
}

.osrs-services-avatar-preview-wrap {
  margin-top: 0.15rem;
}

.osrs-services-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  background: var(--bg-elevated);
}

.osrs-services-publish-label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  cursor: pointer;
}

.osrs-services-hub-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.osrs-services-editor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.osrs-services-editor-head .section-title {
  flex: 1 1 auto;
  margin-bottom: 0;
  min-width: 0;
}

.osrs-services-editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 2;
  flex: 1 1 100%;
  justify-content: flex-start;
}

@media (min-width: 48rem) {
  .osrs-services-editor-tabs {
    flex: 0 1 auto;
    justify-content: flex-end;
  }
}

.osrs-services-quest-filter {
  max-width: 20rem;
  margin-bottom: 0.65rem;
}

.osrs-services-editor-mount {
  max-height: min(72vh, 42rem);
  overflow: auto;
  margin-bottom: 0.5rem;
}

.osrs-services-editor-mount .oss-editor-grid {
  min-height: 20rem;
}

/* OSRS Services — public price calculator */
.osrs-calc-layout {
  display: block;
  max-width: min(72rem, 100%);
  margin-bottom: 1rem;
}

/* display:block above wins over [hidden]; keep workspace/results fully collapsed until shown */
.osrs-calc-page-stack [hidden] {
  display: none !important;
}

.osrs-calc-category-nav {
  width: 100%;
}

.osrs-calc-page-stack > .osrs-calc-category-nav,
.osrs-services-hub-editor > .osrs-calc-category-nav {
  margin-bottom: 1rem;
}

.osrs-calc-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr));
  gap: 0.65rem;
}

.osrs-calc-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 5.5rem;
  padding: 0.85rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.osrs-calc-category-card:hover {
  border-color: rgba(255, 140, 0, 0.45);
  background: rgba(255, 126, 0, 0.08);
}

.osrs-calc-category-card.is-selected {
  border-color: rgba(255, 140, 0, 0.75);
  background: rgba(255, 126, 0, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.35);
}

.osrs-calc-category-card__icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
  pointer-events: none;
}

.osrs-calc-category-card__label {
  font-size: 0.88rem;
  font-weight: 600;
}

.osrs-calc-build-head {
  margin-bottom: 0.75rem;
}

.osrs-calc-build-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.osrs-calc-active-category {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.osrs-calc-tabs {
  margin-bottom: 0;
}

.osrs-calc-panel {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* [hidden] must win — otherwise display:flex keeps all category panels visible */
.osrs-calc-build [data-calc-panel][hidden] {
  display: none !important;
}

.osrs-calc-row-2 {
  display: grid;
  grid-template-columns: 1fr 5rem 1fr 5rem;
  gap: 0.35rem 0.5rem;
  align-items: end;
}

.osrs-calc-pick-list {
  max-height: 10rem;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  margin: 0.25rem 0 0.5rem;
}

.osrs-calc-pick-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.65rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.osrs-calc-pick-item:hover,
.osrs-calc-pick-item.is-selected {
  background: rgba(255, 126, 0, 0.12);
}

.osrs-calc-pick-empty {
  padding: 0.65rem;
  margin: 0;
  font-size: 0.82rem;
}

.osrs-calc-basket-list {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
}

.osrs-calc-basket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.osrs-calc-basket-rm {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
}

.osrs-calc-basket-rm:hover {
  color: var(--text);
}

.osrs-calc-basket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.osrs-calc-results {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.osrs-calc-results-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}

.osrs-calc-results-head {
  margin-bottom: 0.1rem;
}

.osrs-calc-results-title {
  margin-bottom: 0.15rem;
}

.osrs-calc-results--market {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.osrs-calc-results--market > p {
  grid-column: 1 / -1;
}

@media (max-width: 960px) {
  .osrs-calc-results--market {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .osrs-calc-results--market {
    grid-template-columns: minmax(0, 1fr);
  }
}

.osrs-calc-results--market > .osrs-calc-provider-block {
  min-width: 0;
}

.osrs-calc-skill-hub {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 26rem;
}

.osrs-calc-skill-select {
  width: 100%;
}

.osrs-calc-skill-levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  align-items: end;
}

.osrs-calc-skill-xp-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}

.osrs-calc-skill-xp-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
}

.osrs-calc-xp-output {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.osrs-calc-skill-submit {
  width: 100%;
  margin-top: 0.2rem;
}

/* OSRS skilling board (skill tile grid) */
.osrs-skill-board {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.osrs-skill-board__head,
.osrs-skill-board__toolbar {
  width: 100%;
}

.osrs-skill-board__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.35rem;
  width: 100%;
}

.osrs-skill-board__grid-wrap {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
  width: auto;
}

.osrs-skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
  max-width: 19.5rem;
  margin-inline: 0;
}

.osrs-skill-board__aside {
  flex: 1 1 11rem;
  min-width: 11rem;
  max-width: 15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.osrs-skill-board__levels-block {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  margin-top: 0;
}

@media (max-width: 360px) {
  .osrs-skill-grid {
    max-width: 100%;
  }
}

.osrs-skill-board__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(0, 114, 255, 0.12) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(46, 203, 255, 0.15);
}

.osrs-skill-board__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.osrs-skill-board__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.osrs-skill-board__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
}

.osrs-skill-board__clear {
  width: 100%;
  border-color: rgba(248, 113, 113, 0.35);
}

.osrs-skill-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  width: 100%;
  padding: 0.25rem 0.18rem;
  min-height: 2.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.osrs-skill-tile:hover {
  border-color: rgba(46, 203, 255, 0.22);
  background: rgba(0, 229, 255, 0.04);
}

.osrs-skill-tile.is-selected {
  border-color: rgba(46, 203, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(46, 203, 255, 0.25),
    0 0 20px rgba(46, 203, 255, 0.12);
  background: rgba(46, 203, 255, 0.06);
}

.osrs-skill-tile:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--focus-ring),
    0 0 0 1px rgba(46, 203, 255, 0.35);
}

.osrs-skill-tile--muted {
  opacity: 0.72;
}

.osrs-skill-tile--muted:not(.is-selected):hover {
  opacity: 0.88;
}

.osrs-skill-tile__img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
  pointer-events: none;
}

.osrs-skill-tile__name {
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.15;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-width: 100%;
}

.osrs-skill-board__levels-heading {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
}

.osrs-skill-board__footer {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  margin-top: 0;
}

@media (max-width: 520px) {
  .osrs-skill-board__body {
    flex-direction: column;
    align-items: center;
  }

  .osrs-skill-board__grid-wrap {
    width: 100%;
    justify-content: center;
  }

  .osrs-skill-grid {
    margin-inline: auto;
  }

  .osrs-skill-board__aside {
    width: 100%;
    max-width: 19.5rem;
  }
}

/* OSRS calculator — stack workspace + results */
.osrs-calc-page-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.osrs-calc-provider-block {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-strong);
  background: linear-gradient(165deg, var(--panel) 0%, rgba(20, 20, 24, 0.94) 100%);
}

.osrs-calc-provider-block--partial {
  border-color: rgba(232, 184, 74, 0.28);
}

.osrs-calc-provider-details {
  margin: 0;
}

.osrs-calc-provider-details > summary {
  list-style: none;
}

.osrs-calc-provider-details > summary::-webkit-details-marker {
  display: none;
}

.osrs-calc-provider-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.2rem 0;
  user-select: none;
}

.osrs-calc-provider-summary:focus {
  outline: none;
}

.osrs-calc-provider-summary:focus-visible {
  outline: 2px solid rgba(46, 203, 255, 0.45);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.osrs-calc-provider-summary__avatar {
  flex-shrink: 0;
}

.osrs-calc-provider-summary-avatar {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.osrs-calc-provider-summary-avatar.osrs-calc-provider-avatar--placeholder {
  width: 44px;
  height: 44px;
}

.osrs-calc-provider-summary__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.osrs-calc-provider-summary__name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.2;
}

.osrs-calc-provider-summary__quoted {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-soft);
  word-break: break-word;
}

.osrs-calc-provider-summary__price {
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ok);
  font-family: var(--mono);
}

.osrs-calc-provider-summary__chevron::before {
  content: "▼";
  display: block;
  font-size: 0.62rem;
  line-height: 1;
  color: var(--muted);
  opacity: 0.85;
}

.osrs-calc-provider-details[open] .osrs-calc-provider-summary__chevron::before {
  content: "▲";
}

.osrs-calc-provider-summary__chevron {
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
}

.osrs-calc-provider-expand {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.osrs-calc-provider-expand__foot {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.osrs-calc-provider-expand__foot .osrs-calc-visit-btn,
.osrs-calc-provider-expand__foot .osrs-calc-no-link {
  align-self: center;
}

.osrs-calc-provider-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.osrs-calc-provider-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border-strong);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.12);
}

.osrs-calc-provider-avatar--placeholder {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, var(--bg-elevated), var(--panel));
}

.osrs-calc-provider-id {
  flex: 1;
  min-width: 9rem;
}

.osrs-calc-provider-name {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

.osrs-calc-provider-total {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.osrs-calc-provider-total-label {
  margin-right: 0.25rem;
}

.osrs-calc-provider-total-val {
  color: var(--ok);
  font-size: 1.02rem;
  font-weight: 700;
}

.osrs-calc-visit-btn {
  flex-shrink: 0;
  align-self: center;
}

.osrs-calc-no-link {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.82rem;
}

.osrs-calc-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.75rem;
}

.osrs-calc-method-grid:has(> :only-child) {
  justify-items: center;
}

.osrs-calc-method-grid > :only-child {
  width: 100%;
  max-width: 38rem;
}

.osrs-calc-method-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.osrs-calc-method-card:hover {
  border-color: rgba(255, 126, 0, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.06);
}

.osrs-calc-method-card--missing {
  opacity: 0.88;
  border-style: dashed;
}

.osrs-calc-method-card__title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.osrs-calc-method-card--simple .osrs-calc-method-card__title {
  margin-bottom: 0.5rem;
}

.osrs-calc-simple-quote {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.osrs-calc-simple-quote__label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-right: 0.35rem;
}

.osrs-calc-simple-quote__val {
  color: var(--ok);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--mono);
}

.osrs-calc-method-card__method {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--titan-orange);
  text-transform: none;
  letter-spacing: 0;
}

.osrs-calc-method-breakdown {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.osrs-calc-method-breakdown__label {
  margin: 0 0 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.osrs-calc-method-breakdown__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.5rem;
  align-items: stretch;
}

@media (max-width: 380px) {
  .osrs-calc-method-breakdown__list {
    grid-template-columns: 1fr;
  }
}

.osrs-calc-breakdown__row {
  margin: 0;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(46, 203, 255, 0.08);
}

.osrs-calc-breakdown__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
}

.osrs-calc-breakdown__method {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.osrs-calc-breakdown__levels {
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--accent-bright);
}

.osrs-calc-breakdown__notes {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-soft);
}

.osrs-calc-breakdown__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.osrs-calc-breakdown__xp {
  color: #e8949a;
  font-family: var(--mono);
}

.osrs-calc-breakdown__ratio {
  color: var(--titan-orange);
  font-family: var(--mono);
}

.osrs-calc-breakdown__segprice {
  margin-left: auto;
  font-weight: 600;
  color: #3ddc84;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.osrs-calc-method-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.65rem;
  margin: 0;
}

.osrs-calc-method-stats--skill {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.osrs-calc-method-stats > div {
  margin: 0;
}

.osrs-calc-method-stats dt {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.osrs-calc-method-stats dd {
  margin: 0.12rem 0 0;
  font-size: 0.84rem;
  line-height: 1.3;
}

.osrs-calc-stat-levels {
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 0.86rem;
}

.osrs-calc-stat-ratio {
  color: var(--titan-orange);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.osrs-calc-stat-xp {
  color: #e8949a;
  font-family: var(--mono);
  font-size: 0.86rem;
}

.osrs-calc-stat-price {
  color: var(--ok);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--mono);
}

.osrs-calc-result-card--partial {
  border-color: rgba(255, 180, 0, 0.25);
}

.osrs-calc-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.osrs-calc-result-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.osrs-calc-result-name {
  margin: 0;
  font-size: 1rem;
}

.osrs-calc-result-total {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.osrs-calc-result-head .btn-discord {
  margin-left: auto;
}

.osrs-calc-line--missing td {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 900px) {
  .osrs-calc-row-2 {
    grid-template-columns: 1fr 1fr;
  }
  .osrs-calc-build-head-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.osrs-services-skill {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.45rem;
  background: rgba(0, 0, 0, 0.15);
}

.osrs-services-skill__summary {
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
}

.osrs-services-skill__body {
  padding: 0.5rem 0.65rem 0.65rem;
  border-top: 1px solid var(--border);
}

.osrs-services-method-row {
  display: grid;
  grid-template-columns: 1fr repeat(2, 4.5rem) 1fr;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.oss-input-narrow {
  min-width: 0;
}

.osrs-services-hub-settings,
.osrs-services-hub-editor {
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .osrs-services-method-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ——— Admin suggestions inbox (Discord Components V2 layout) ——— */
.suggestions-page-lead {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}

.suggestions-page.panel {
  padding: 1rem 1.1rem 1.25rem;
}

.suggestions-flash {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
}

.suggestions-flash--ok {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.suggestions-flash--err {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.suggestions-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.suggestions-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.72rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.suggestions-tab:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--panel-hover);
}

.suggestions-tab.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-elevated));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}

.suggestions-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

.suggestions-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.9rem;
}

.suggestions-toolbar-summary {
  margin: 0;
  font-size: 0.86rem;
}

.suggestions-per-page {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.suggestions-feed {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.suggestions-empty {
  margin: 0.5rem 0 0;
  padding: 2rem 1.25rem;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
}

/* —— Suggestion card (Discord-inspired + site theme) —— */
.ge-suggestion-card {
  --ge-sug-accent: var(--discord);
  --ge-sug-accent-dim: rgba(88, 101, 242, 0.14);
  --ge-sug-accent-glow: rgba(88, 101, 242, 0.22);
  position: relative;
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(155deg, #1e1f24 0%, #16171c 48%, #121318 100%);
  border: 1px solid var(--border-strong);
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.ge-suggestion-card:hover {
  border-color: color-mix(in srgb, var(--ge-sug-accent) 45%, var(--border-strong));
  box-shadow:
    var(--shadow-md),
    0 0 0 1px color-mix(in srgb, var(--ge-sug-accent) 18%, transparent),
    0 12px 36px rgba(0, 0, 0, 0.45);
}

.ge-suggestion-card--approved {
  --ge-sug-accent: #3dd68c;
  --ge-sug-accent-dim: rgba(61, 214, 140, 0.14);
  --ge-sug-accent-glow: rgba(61, 214, 140, 0.28);
}

.ge-suggestion-card--declined {
  --ge-sug-accent: #f87171;
  --ge-sug-accent-dim: rgba(248, 113, 113, 0.14);
  --ge-sug-accent-glow: rgba(248, 113, 113, 0.26);
}

.ge-suggestion-card--pending {
  --ge-sug-accent: var(--accent);
  --ge-sug-accent-dim: rgba(46, 203, 255, 0.12);
  --ge-sug-accent-glow: rgba(46, 203, 255, 0.22);
}

.ge-suggestion-card__accent {
  flex: 0 0 5px;
  background: linear-gradient(180deg, var(--ge-sug-accent) 0%, color-mix(in srgb, var(--ge-sug-accent) 35%, transparent) 100%);
  box-shadow: 4px 0 24px var(--ge-sug-accent-glow);
}

.ge-suggestion-card__shell {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ge-suggestion-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 1rem 1.15rem 0.85rem;
  background: linear-gradient(180deg, var(--ge-sug-accent-dim) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ge-suggestion-card__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 12rem;
}

.ge-suggestion-card__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1b1f;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.ge-suggestion-card__avatar--fallback {
  display: block;
  background: linear-gradient(145deg, #3a3d48 0%, #22242b 100%);
}

.ge-suggestion-card__who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ge-suggestion-card__author-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  font-size: 0.92rem;
  line-height: 1.35;
}

.ge-suggestion-card__author-prefix {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.ge-suggestion-card__author-name {
  font-weight: 700;
  color: var(--accent-bright);
  text-decoration: none;
}

.ge-suggestion-card__author-name:hover {
  text-decoration: underline;
  color: var(--titan-cyan);
}

.ge-suggestion-card__author-name--plain {
  color: var(--text);
}

.ge-suggestion-card__date {
  font-size: 0.76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ge-suggestion-card__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid color-mix(in srgb, var(--ge-sug-accent) 40%, transparent);
  background: color-mix(in srgb, var(--ge-sug-accent) 16%, #1a1b20);
  color: var(--text);
  box-shadow: 0 0 20px var(--ge-sug-accent-glow);
  flex-shrink: 0;
}

.ge-suggestion-card__status-pill-emoji {
  font-size: 0.95rem;
  line-height: 1;
}

.ge-suggestion-card__body {
  padding: 0.95rem 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ge-suggestion-card__content {
  padding: 0.85rem 1rem;
  border-radius: calc(var(--radius-sm) + 2px);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ge-suggestion-card__message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.58;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.ge-suggestion-card__image-link {
  display: block;
  margin-top: 0.75rem;
  border-radius: calc(var(--radius-sm) + 1px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.ge-suggestion-card__image-link:hover {
  border-color: color-mix(in srgb, var(--ge-sug-accent) 55%, transparent);
}

.ge-suggestion-card__image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
}

.ge-suggestion-card__votes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ge-suggestion-vote {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
  user-select: none;
  transition: opacity 0.15s ease;
}

.ge-suggestion-vote__svg {
  flex-shrink: 0;
  opacity: 0.92;
}

.ge-suggestion-vote--up {
  background: linear-gradient(180deg, #2d9f5a 0%, #1f7a45 100%);
  color: #fff;
  border-color: rgba(125, 255, 180, 0.25);
  box-shadow: 0 4px 14px rgba(35, 160, 89, 0.28);
}

.ge-suggestion-vote--down {
  background: linear-gradient(180deg, #e55353 0%, #b83a3a 100%);
  color: #fff;
  border-color: rgba(255, 180, 180, 0.2);
  box-shadow: 0 4px 14px rgba(218, 55, 60, 0.22);
}

.ge-suggestion-vote.is-disabled {
  opacity: 0.5;
  filter: grayscale(0.35);
}

.ge-suggestion-card__responses-heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.ge-suggestion-card__responses-icon {
  font-size: 0.95rem;
}

.ge-suggestion-card__responses-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: var(--text);
}

.ge-suggestion-card__responses-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ge-suggestion-response {
  margin: 0;
  padding: 0.7rem 0.85rem 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--titan-blue) 10%, #14151a);
  border: 1px solid rgba(0, 114, 255, 0.18);
  border-left: 3px solid var(--titan-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ge-suggestion-response__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-bottom: 0.35rem;
}

.ge-suggestion-response__badge {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--titan-blue) 22%, transparent);
  color: var(--accent-bright);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ge-suggestion-response__author {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.ge-suggestion-response__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.ge-suggestion-card__foot {
  padding: 0.75rem 1.15rem 1rem;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ge-suggestion-card__admin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 0.85rem;
}

.ge-suggestion-delete-form {
  margin: 0;
  flex-shrink: 0;
}

.ge-suggestion-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.suggestions-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  margin-top: 1.1rem;
}

.suggestions-pagination__pages {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.suggestions-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.35rem;
  border-radius: 4px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.suggestions-page-link:hover {
  color: var(--text);
  background: var(--panel-hover);
}

.suggestions-page-link.is-current {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 18%, var(--bg-elevated));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

@media (max-width: 640px) {
  .ge-suggestion-card__top {
    flex-direction: column;
    align-items: stretch;
  }

  .ge-suggestion-card__status-pill {
    align-self: flex-start;
  }

  .ge-suggestion-card__admin {
    flex-direction: column;
    align-items: stretch;
  }

  .ge-suggestion-delete-form {
    width: 100%;
  }

  .ge-suggestion-delete-btn {
    width: 100%;
    justify-content: center;
  }
}
