/* =============================================
   PoE 2 Boss Drop Tracker — Design System
   Based on pathofexile2.com visual language
   ============================================= */

/* === CSS RESET === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === CSS CUSTOM PROPERTIES (DESIGN TOKENS) === */
:root {
  /* Backgrounds */
  --bg-primary: #0a0a0e;
  --bg-secondary: #111118;
  --bg-tertiary: #1a1a24;
  --bg-surface: #0d0d14;
  --bg-hover: #1e1e2a;

  /* Gold / Accent */
  --gold-primary: #c8aa6e;
  --gold-light: #e2c992;
  --gold-dark: #8c6e3a;
  --gold-muted: #5c4a2a;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #b0b0b0;
  --text-heading: #c8aa6e;

  /* Blood / Danger */
  --blood-primary: #8b1a1a;
  --blood-light: #a52a2a;
  --blood-dark: #5c0e0e;
  --blood-glow: rgba(139, 26, 26, 0.4);

  /* Borders & Frames */
  --border-ornate: #5c4a2a;
  --border-subtle: #2a2a34;
  --border-active: #c8aa6e;

  /* Item Rarity */
  --rarity-normal: #c8c8c8;
  --rarity-magic: #8888ff;
  --rarity-rare: #ffff77;
  --rarity-unique: #af6025;
  --rarity-currency: #aa9e82;

  /* Shadows */
  --shadow-panel: 0 4px 24px rgba(0, 0, 0, 0.8);
  --shadow-glow-gold: 0 0 12px rgba(200, 170, 110, 0.3);
  --shadow-glow-blood: 0 0 16px rgba(139, 26, 26, 0.5);
  --shadow-inset: inset 0 1px 4px rgba(0, 0, 0, 0.6);

  /* Fonts */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-ui: 'Inter', sans-serif;
}

/* === GLOBAL STYLES === */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse at top center, rgba(20, 20, 40, 0.5) 0%, transparent 60%),
    var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
}

/* === GAME SELECTION LANDING === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-view {
  display: none;
}

html.game-selection-route,
html.game-selection-route body {
  height: 100%;
  overflow: hidden;
}

html.game-selection-route #hub-view,
html.game-selection-route #app-header,
html.game-selection-route #app-layout,
html.game-selection-route .modal-overlay {
  display: none !important;
}

html.game-selection-route .landing-view {
  display: block;
  min-height: 100svh;
  background: #060606;
  overflow: hidden;
}

.landing-brand {
  position: absolute;
  z-index: 8;
  top: clamp(1.5rem, 4vh, 3rem);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 42rem);
  color: var(--gold-light);
  pointer-events: none;
  transform: translateX(-50%);
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.88);
}

.landing-brand-title-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: clamp(0.75rem, 1.8vw, 1.5rem);
}

.landing-brand-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(200, 170, 110, 0.72));
}

.landing-brand-line:last-child {
  background: linear-gradient(90deg, rgba(200, 170, 110, 0.72), transparent);
}

.landing-brand-title {
  flex: 0 0 auto;
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-brand-subtitle {
  margin-top: 0.45rem;
  color: rgba(226, 201, 146, 0.84);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.landing-selector {
  display: flex;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #060606;
}

.landing-panel {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  text-decoration: none;
  transition: flex-grow 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-panel::after {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  content: '';
  background: linear-gradient(180deg,
      transparent 3%,
      rgba(140, 110, 58, 0.58) 25%,
      rgba(226, 201, 146, 0.8) 50%,
      rgba(140, 110, 58, 0.58) 75%,
      transparent 97%);
  box-shadow: 0 0 18px rgba(200, 170, 110, 0.16);
  pointer-events: none;
}

.landing-panel:last-child::after {
  display: none;
}

.landing-art,
.landing-panel-overlay,
.landing-panel-content {
  position: absolute;
  inset: 0;
}

.landing-art {
  background-repeat: no-repeat;
  background-size: cover;
  filter: brightness(0.52) saturate(0.54) contrast(0.95);
  transform: scale(1.025);
  transition:
    filter 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: filter, transform;
}

html.game-selection-route .landing-panel-poe1 .landing-art {
  background-image: url('/assets/landing/poe1-background.webp');
  background-position: 76% center;
}

html.game-selection-route .landing-panel-poe2 .landing-art {
  background-image: url('/assets/landing/poe2-background.webp');
  background-position: 50% center;
}

.landing-panel-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.02) 34%, rgba(0, 0, 0, 0.84) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.54) 0%, transparent 62%);
  transition: background 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-panel-poe2 .landing-panel-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.02) 34%, rgba(0, 0, 0, 0.84) 100%),
    linear-gradient(270deg, rgba(0, 0, 0, 0.42) 0%, transparent 62%);
}

.landing-panel-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(8.5rem, 20vh, 11rem) clamp(1.25rem, 5vw, 5rem) clamp(3rem, 11vh, 7rem);
  pointer-events: none;
}

.landing-game-logo {
  display: block;
  width: min(80%, 22rem);
  height: auto;
  max-height: 16rem;
  object-fit: contain;
  filter: brightness(0.9) drop-shadow(0 0 18px rgba(0, 0, 0, 0.9));
  opacity: 0.84;
  transform: scale(0.96);
  transition:
    filter 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-panel-poe2 .landing-game-logo {
  width: min(86%, 25rem);
}

.landing-panel-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.landing-game-title {
  color: rgba(255, 250, 238, 0.92);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.92);
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12.5rem;
  min-height: 3.35rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid rgba(200, 170, 110, 0.64);
  background: rgba(3, 3, 3, 0.42);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.38), 0 8px 28px rgba(0, 0, 0, 0.35);
  color: rgba(255, 250, 238, 0.9);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background 440ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 440ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 440ms cubic-bezier(0.22, 1, 0.36, 1),
    color 440ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes landing-art-drift {
  0%,
  100% {
    transform: scale(1.055) translate3d(-0.18%, 0.08%, 0);
  }

  50% {
    transform: scale(1.07) translate3d(0.18%, -0.08%, 0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .landing-panel:hover,
  .landing-panel:focus-visible {
    flex-grow: 1.38;
  }

  .landing-selector:hover .landing-panel:not(:hover) .landing-art {
    filter: brightness(0.36) saturate(0.36) contrast(0.92);
  }

  .landing-panel:hover .landing-art,
  .landing-panel:focus-visible .landing-art {
    filter: brightness(0.98) saturate(1.08) contrast(1.04);
  }

  .landing-panel:hover .landing-art {
    animation: landing-art-drift 9s ease-in-out infinite;
  }

  .landing-panel:focus-visible .landing-art {
    transform: scale(1.055);
  }

  .landing-panel:hover .landing-panel-overlay,
  .landing-panel:focus-visible .landing-panel-overlay {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, transparent 40%, rgba(0, 0, 0, 0.72) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.24) 0%, transparent 62%);
  }

  .landing-panel-poe2:hover .landing-panel-overlay,
  .landing-panel-poe2:focus-visible .landing-panel-overlay {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, transparent 40%, rgba(0, 0, 0, 0.72) 100%),
      linear-gradient(270deg, rgba(0, 0, 0, 0.2) 0%, transparent 62%);
  }

  .landing-panel:hover .landing-game-logo,
  .landing-panel:focus-visible .landing-game-logo {
    filter: brightness(1.08) drop-shadow(0 0 24px rgba(0, 0, 0, 0.95));
    opacity: 1;
    transform: scale(1);
  }

  .landing-panel:hover .landing-cta,
  .landing-panel:focus-visible .landing-cta {
    border-color: var(--gold-light);
    background: rgba(23, 15, 8, 0.68);
    box-shadow: inset 0 0 18px rgba(200, 170, 110, 0.14), 0 0 22px rgba(200, 170, 110, 0.16);
    color: #fff;
    transform: translateY(-3px);
  }
}

.landing-panel:focus-visible {
  z-index: 5;
  outline: 2px solid var(--gold-light);
  outline-offset: -8px;
}

@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  html.game-selection-route,
  html.game-selection-route body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
  }

  .landing-view {
    min-height: 100svh;
  }

  .landing-selector {
    flex-direction: column;
    height: auto;
    min-height: 100svh;
  }

  .landing-panel {
    flex: 1 0 52svh;
    min-height: 29rem;
  }

  .landing-panel::after {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 4%,
        rgba(140, 110, 58, 0.58) 25%,
        rgba(226, 201, 146, 0.8) 50%,
        rgba(140, 110, 58, 0.58) 75%,
        transparent 96%);
  }

  .landing-art {
    filter: brightness(0.78) saturate(0.82) contrast(1.02);
    transform: scale(1.03);
  }

  html.game-selection-route .landing-panel-poe1 .landing-art {
    background-position: 73% center;
  }

  .landing-panel-content {
    padding: clamp(7rem, 16vh, 8.5rem) 1.25rem clamp(2rem, 7vh, 3.5rem);
  }

  .landing-game-logo {
    width: min(72%, 18rem);
    max-height: 11rem;
    opacity: 1;
    transform: none;
  }

  .landing-panel-poe2 .landing-game-logo {
    width: min(74%, 20rem);
  }

  .landing-game-title {
    font-size: 1.45rem;
  }

  .landing-brand-title {
    font-size: 0.9rem;
  }

  .landing-cta {
    border-color: rgba(226, 201, 146, 0.82);
    background: rgba(3, 3, 3, 0.56);
    color: #fff;
  }

  .landing-panel:active .landing-art {
    filter: brightness(0.92) saturate(1) contrast(1.04);
    transform: scale(1.045);
  }

  .landing-panel:active .landing-cta {
    transform: translateY(1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-panel,
  .landing-art,
  .landing-panel-overlay,
  .landing-game-logo,
  .landing-cta {
    transition: none !important;
  }

  .landing-art {
    animation: none !important;
  }

  .landing-panel:hover,
  .landing-panel:focus-visible {
    flex-grow: 1;
  }

  .landing-panel:hover .landing-art,
  .landing-panel:focus-visible .landing-art,
  .landing-panel:active .landing-art {
    transform: none;
  }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-muted);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* === TOP BAR === */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 1.5rem;
  background: linear-gradient(180deg, #13131a 0%, #0a0a0e 100%);
  border-bottom: 1px solid var(--border-ornate);
  position: relative;
  z-index: 10;
}

/* Ornate gold line at bottom of top bar */
.top-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent, var(--gold-dark), var(--gold-primary), var(--gold-dark), transparent);
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
}

/* === BOSS PORTRAIT FRAME (Top Bar) === */
.boss-portrait-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 50;
}

.boss-portrait-frame {
  width: 112px;
  height: 64px;
  padding: 5px 8px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 2px solid var(--gold-dark);
  box-shadow: 0 0 6px rgba(200, 170, 110, 0.2), inset 0 0 4px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  background: var(--bg-tertiary);
}

.boss-portrait-frame:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(200, 170, 110, 0.5), inset 0 0 4px rgba(0, 0, 0, 0.6);
  transform: scale(1.08);
}

.boss-portrait-frame.active {
  border-color: var(--gold-light);
  box-shadow: 0 0 16px rgba(200, 170, 110, 0.6);
}

.boss-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: brightness(0.95) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  transition: filter 0.3s ease;
}

.boss-portrait-frame:hover .boss-portrait-img {
  filter: brightness(1.15) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
}

.boss-portrait-fallback {
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.58rem;
  line-height: 1.1;
  text-align: center;
}

.boss-portrait-img[hidden],
.boss-portrait-option img[hidden],
.boss-portrait-fallback[hidden],
.boss-portrait-option-fallback[hidden] {
  display: none !important;
}

.boss-portrait-border {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  border: 1px solid rgba(200, 170, 110, 0.15);
  pointer-events: none;
}

/* Boss Portrait Dropdown */
.boss-portrait-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #15151e 0%, #0c0c12 100%);
  border: 1px solid var(--border-ornate);
  border-radius: 6px;
  padding: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9), 0 0 12px rgba(200, 170, 110, 0.15);
  z-index: 100;
  width: min(620px, calc(100vw - 2rem));
  opacity: 0;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.boss-portrait-dropdown.open {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0.75rem;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Arrow pointing up to the portrait frame */
.boss-portrait-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--border-ornate);
}

.boss-portrait-dropdown::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #15151e;
}

/* Individual boss option in the dropdown */
.boss-portrait-option {
  width: 100%;
  min-width: 0;
  height: 108px;
  padding: 10px;
  border-radius: 6px;
  overflow: visible;
  cursor: pointer;
  position: relative;
  border: 2px solid var(--border-subtle);
  transition: all 0.25s ease;
  background: var(--bg-tertiary);
}

.boss-portrait-option:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(200, 170, 110, 0.4);
  transform: scale(1.1);
  z-index: 2;
}

.boss-portrait-option.current {
  border-color: var(--gold-light);
  box-shadow: 0 0 8px rgba(200, 170, 110, 0.3);
}

.boss-portrait-option img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: grayscale(25%) brightness(0.8) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.8));
  transition: filter 0.25s ease;
}

.boss-portrait-option:hover img {
  filter: grayscale(0%) brightness(1);
}

.boss-portrait-option.current img {
  filter: grayscale(0%) brightness(0.9);
}

.boss-portrait-option-fallback {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  line-height: 1.15;
  text-align: center;
}

.header-center {
  display: flex;
  align-items: center;
}

.session-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.3s ease;
}

.status-dot.active {
  background: #4caf50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.3);
  }

  50% {
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.7);
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-divider {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, transparent, var(--gold-dark), transparent);
}

/* Run Counter */
.run-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.run-counter-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.run-counter-value {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(200, 170, 110, 0.5);
  line-height: 1;
}

.session-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.timer-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.timer-value {
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

/* === MAIN LAYOUT (4 Columns) === */
.app-layout {
  display: grid;
  grid-template-columns: 220px minmax(480px, 580px) 1fr 320px;
  height: calc(100vh - 34px);
  overflow: hidden;
}

/* === SIDEBARS === */
.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar.sidebar-right {
  border-right: none;
  border-left: 1px solid var(--border-subtle);
  overflow-y: hidden;
  overflow-x: hidden;
  padding: 1rem 0;
}

/* Sidebar Logo */
.sidebar-logo {
  display: block;
  text-align: center;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
  cursor: pointer;
}

.tracker-home-link {
  border-radius: 4px;
  text-decoration: none;
}

.hub-home-link {
  display: inline-block;
}

.hub-logo-img {
  height: 310px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.hub-home-link:hover .hub-logo-img,
.hub-home-link:focus-visible .hub-logo-img {
  filter: drop-shadow(0 4px 14px rgba(175, 145, 78, 0.45));
  transform: scale(1.06);
}

.tracker-home-link:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 4px;
}

.sidebar-logo-img {
  max-height: 128px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transform: scale(1.08);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.sidebar-logo:hover .sidebar-logo-img,
.sidebar-logo:focus-visible .sidebar-logo-img {
  filter: drop-shadow(0 2px 12px rgba(175, 145, 78, 0.4));
  transform: scale(1.14);
}

.boss-card-fallback-title {
  color: var(--gold-primary);
  position: relative;
  z-index: 2;
}

.hub-leaderboard[hidden] {
  display: none;
}

.sidebar-section-title {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.sidebar-section {
  margin-bottom: 0.25rem;
}

/* Navigation */
.nav-list {
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(200, 170, 110, 0.08);
  color: var(--gold-primary);
  border-left: 2px solid var(--gold-primary);
}

.nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

/* Divider */
.divider-ornate {
  height: 1px;
  background: linear-gradient(90deg,
      transparent, var(--gold-dark) 20%, var(--gold-primary) 50%, var(--gold-dark) 80%, transparent);
  margin: 1rem 0;
  flex-shrink: 0;
}

/* === PRICE MOSAIC (Feature 3) === */
.price-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

.price-mosaic-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.price-mosaic-item:hover {
  border-color: var(--gold-dark);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.price-mosaic-item.selected {
  border-color: var(--gold-primary);
  background: rgba(200, 170, 110, 0.1);
  box-shadow: 0 0 8px rgba(200, 170, 110, 0.25);
}

.price-mosaic-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.price-mosaic-placeholder {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0.4;
  background: var(--bg-tertiary);
  border-radius: 2px;
}

.price-mosaic-name {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
  word-break: break-word;
}

/* Price List */
.price-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.price-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.price-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.price-suffix {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Stats Grid */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.stat-value {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

/* === MAIN CONTENT (Center) === */
.main-content {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

/* Panel Ornate */
.panel-ornate {
  background: var(--bg-secondary);
  border: 1px solid var(--border-ornate);
  box-shadow: var(--shadow-panel), inset 0 0 0 1px var(--border-subtle);
  padding: 1.25rem;
  position: relative;
  border-radius: 2px;
}

.panel-ornate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent, var(--gold-dark), var(--gold-primary), var(--gold-dark), transparent);
}

/* Section Title (inside panels) */
.section-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

/* Boss Header */
.boss-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.boss-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.boss-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.15rem;
  display: block;
}

.boss-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* Quick Add Grid */
.quick-add-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.btn-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-ornate);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.btn-drop:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-1px);
}

.btn-drop:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.drop-btn-icon {
  font-size: 1.5rem;
}

.drop-btn-name {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

/* === CUSTOM DROPDOWN (Feature 1) === */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.custom-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-ornate);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s ease;
  min-height: 36px;
}

.custom-dropdown-trigger:hover {
  border-color: var(--gold-dark);
}

.custom-dropdown-trigger.open {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 1px rgba(200, 170, 110, 0.15);
}

.custom-dropdown-trigger.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.custom-dropdown-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-dropdown-value img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.custom-dropdown-arrow {
  color: var(--gold-dark);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.custom-dropdown-trigger.open .custom-dropdown-arrow {
  transform: rotate(180deg);
}

.custom-dropdown-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--gold-dark);
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.drop-special-slots { display: grid; gap: 0.55rem; }
.drop-special-slot { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); align-items: center; gap: 0.65rem; }
.drop-special-slot-label { color: var(--text-muted); font-size: 0.78rem; }
.drop-special-selection-summary { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.drop-special-selection-chip { padding: 0.25rem 0.5rem; border: 1px solid rgba(190, 146, 67, 0.35); color: var(--text-secondary); font-size: 0.76rem; }

.custom-dropdown-options.open-up {
  top: auto;
  bottom: calc(100% + 4px);
  border-top: 1px solid var(--gold-dark);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

.custom-dropdown-options.open {
  display: block;
}

.custom-dropdown-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-primary);
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--border-subtle);
}

.custom-dropdown-option:last-child {
  border-bottom: none;
}

.custom-dropdown-option:hover {
  background: var(--bg-hover);
}

.custom-dropdown-option.selected {
  background: rgba(200, 170, 110, 0.1);
  color: var(--gold-light);
}

.custom-dropdown-option img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.custom-dropdown-option-name {
  flex: 1;
}

/* Form Styles */
.form-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.form-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.prism-belief-group {
  min-width: 260px;
}

.prism-belief-controls {
  display: flex;
  gap: 0.5rem;
}

.prism-belief-level {
  flex: 0 0 88px;
}

.prism-belief-skill {
  min-width: 0;
}

/* Metrics Panel */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  text-align: center;
}

.metric-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.metric-value {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.metric-highlight {
  text-shadow: 0 0 8px rgba(200, 170, 110, 0.4);
}

.metric-unit {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* === SPREADSHEET PANEL (Feature 5) === */
.spreadsheet-panel {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.spreadsheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0;
}

.spreadsheet-header .section-title {
  margin-bottom: 0;
}

.spreadsheet-count {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spreadsheet-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  border-top: 1px dashed var(--border-subtle);
  margin-top: 0.5rem;
}

.input-small-select {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  width: auto;
  min-width: 140px;
  background-color: var(--bg-tertiary);
}

.btn-small {
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
}

.spreadsheet-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 0.75rem 0.5rem;
}

.spreadsheet-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.75rem;
}

.spreadsheet-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 0.65rem;
  padding: 0.5rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid var(--border-ornate);
  z-index: 1;
}

.spreadsheet-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s ease;
}

.spreadsheet-table tbody tr:hover {
  background: var(--bg-hover);
}

.spreadsheet-table td {
  padding: 0.45rem 0.4rem;
  color: var(--text-primary);
  vertical-align: middle;
  white-space: nowrap;
}

.spreadsheet-table td:first-child {
  color: var(--gold-light);
  font-weight: 500;
}

.spreadsheet-table td:nth-child(2) {
  color: var(--gold-primary);
  font-variant-numeric: tabular-nums;
}

.spreadsheet-table td:nth-child(3) {
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.spreadsheet-table td:nth-child(5) {
  color: var(--text-secondary);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Spreadsheet inline edit */
.spreadsheet-edit-input {
  background: var(--bg-surface);
  border: 1px solid var(--gold-dark);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  padding: 0.2rem 0.3rem;
  width: 100%;
  border-radius: 2px;
  outline: none;
}

.spreadsheet-edit-input:focus {
  border-color: var(--gold-primary);
}

.spreadsheet-delete-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.15rem 0.3rem;
  font-size: 0.7rem;
  border-radius: 2px;
  transition: all 0.15s ease;
  opacity: 0;
}

.spreadsheet-table tbody tr:hover .spreadsheet-delete-btn {
  opacity: 1;
}

.spreadsheet-delete-btn:hover {
  border-color: var(--blood-primary);
  color: var(--blood-light);
}

.spreadsheet-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
}

.spreadsheet-empty.visible {
  display: flex;
}

/* Drop name cell with icon */
.spreadsheet-drop-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.spreadsheet-drop-cell img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* === RIGHT SIDEBAR — Drop Feed === */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.sidebar-header-actions {
  display: flex;
  gap: 0.35rem;
}

.drop-rates-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  min-height: 0;
  overflow-y: auto;
}

.drop-rate-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: 0.2rem 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.drop-rate-name {
  color: var(--text-primary);
  font-weight: 500;
  min-width: 0;
}

.drop-rate-value {
  color: var(--gold-light);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  max-width: 48%;
  text-align: right;
}

.drop-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.feed-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
}

.feed-empty-icon {
  font-size: 2.5rem;
  opacity: 0.3;
}

.feed-empty-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

/* Drop Entry */
.drop-entry {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s ease;
  animation: fade-slide-in 0.3s ease forwards;
}

.drop-entry:hover {
  background: var(--bg-hover);
}

.drop-entry .item-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 1px solid var(--border-ornate);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: 2px;
}

.drop-entry .item-details {
  flex: 1;
  min-width: 0;
}

.drop-entry .item-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drop-entry .item-meta {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.drop-entry .item-price {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
}

.drop-entry .item-actions {
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.drop-entry:hover .item-actions {
  opacity: 1;
}

.btn-action {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.15rem 0.3rem;
  font-size: 0.75rem;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.btn-action:hover {
  border-color: var(--border-ornate);
  color: var(--gold-light);
}

.btn-action.delete:hover {
  border-color: var(--blood-primary);
  color: var(--blood-light);
}

/* Rarity Colors for item names */
.rarity-currency {
  color: var(--rarity-currency);
}

.rarity-unique {
  color: var(--rarity-unique);
}

.rarity-rare {
  color: var(--rarity-rare);
}

.rarity-magic {
  color: var(--rarity-magic);
}

.rarity-normal {
  color: var(--rarity-normal);
}

/* === BUTTONS === */

/* Gold button */
.btn-gold {
  background: linear-gradient(180deg, #5c4a2a 0%, #3a2e1a 100%);
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 2px;
}

.btn-gold:hover:not(:disabled) {
  background: linear-gradient(180deg, #6e5a34 0%, #4a3a22 100%);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-glow-gold);
  color: #fff;
}

.btn-gold:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Blood CTA button */
.btn-blood {
  background: linear-gradient(180deg, var(--blood-primary) 0%, var(--blood-dark) 100%);
  border: 1px solid var(--blood-light);
  color: var(--gold-light);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 2px;
}

.btn-blood:hover:not(:disabled) {
  box-shadow: var(--shadow-glow-blood);
  border-color: #c44;
}

.btn-blood:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Finish CTA button */
.btn-finish {
  background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
  border: 1px solid #4a5568;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 2px;
}

.btn-finish:hover:not(:disabled) {
  background: linear-gradient(180deg, #4a5568 0%, #2d3748 100%);
  border-color: var(--text-primary);
  box-shadow: 0 0 12px rgba(160, 174, 192, 0.2);
  color: #fff;
}

.btn-finish:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-ornate);
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.btn-ghost:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* Full-width button modifier */
.btn-full {
  width: 100%;
  text-align: center;
}

/* === INPUT FIELDS === */
.input-field {
  background: var(--bg-surface);
  border: 1px solid var(--border-ornate);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding: 0.5rem 0.65rem;
  outline: none;
  transition: border-color 0.2s ease;
  border-radius: 2px;
  width: 100%;
}

.input-field:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 1px rgba(200, 170, 110, 0.15);
}

.input-field::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.input-field:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.input-small {
  width: 80px;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
}

/* Select styling */
select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c6e3a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.8rem;
}

select.input-field option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* === ANIMATIONS === */
@keyframes fade-slide-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-gold {

  0%,
  100% {
    box-shadow: 0 0 4px rgba(200, 170, 110, 0.2);
  }

  50% {
    box-shadow: 0 0 12px rgba(200, 170, 110, 0.5);
  }
}

@keyframes click-pulse-anim {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(200, 170, 110, 0);
  }

  50% {
    transform: scale(0.97);
    box-shadow: 0 0 15px rgba(200, 170, 110, 0.6);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(200, 170, 110, 0);
  }
}

.click-pulse-anim {
  animation: click-pulse-anim 0.2s ease-out;
}

.session-active-indicator {
  animation: pulse-gold 2s ease-in-out infinite;
}

/* === IMAGE ASSETS === */
.inline-currency-img {
  height: 1.1em;
  width: 1.1em;
  object-fit: contain;
  vertical-align: text-bottom;
  margin-left: 0.25rem;
}

.drop-img-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.quick-add-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* === HUB VIEW === */
.hub-view {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(30, 25, 40, 0.6) 0%, var(--bg-primary) 70%);
  padding: 2rem;
  overflow-y: auto;
}

.hub-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  margin: auto 0;
}

.hub-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--gold-primary);
  letter-spacing: 0.04em;
  text-shadow: none;
  text-align: center;
}

.hub-leaderboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 1050px;
  margin-top: -1.75rem;
}

.hub-leaderboard-item,
.hub-leaderboard-empty {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  background: rgba(5, 5, 8, 0.82);
  border: 1px solid var(--border-ornate);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  box-shadow: var(--shadow-panel);
}

.hub-leaderboard-empty {
  display: block;
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
}

.hub-leaderboard-rank {
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-leaderboard-name {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-leaderboard-value {
  color: var(--gold-primary);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hub-leaderboard-roi {
  color: var(--text-secondary);
  font-size: 0.72rem;
  grid-column: 2 / -1;
}

.hub-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  justify-content: center;
}

.boss-card {
  position: relative;
  width: 320px;
  height: 480px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border-ornate);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.boss-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) brightness(0.5);
  transition: all 0.4s ease;
}

.boss-card[data-boss-id="atziri"] .boss-card-bg {
  object-position: 38% center;
}

.boss-card[data-boss-id="the_eater_of_worlds"] .boss-card-bg {
  transform: translateY(4%) scale(1.08);
}

.boss-card[data-boss-id="venarius"] .boss-card-bg {
  transform: scale(0.92);
}

.boss-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 14, 0.9) 100%);
  z-index: 1;
}

.boss-card-logo {
  position: absolute;
  bottom: 13.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-height: 130px;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  filter: brightness(0.8);
  transition: all 0.4s ease;
}

.boss-card-logo-poe1 {
  bottom: 10rem;
}

.boss-card-analysis {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0.85rem;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.76) 0%, rgba(5, 5, 8, 0.96) 100%);
  border-top: 1px solid rgba(200, 170, 110, 0.45);
  color: var(--text-primary);
  font-family: var(--font-ui);
}

.boss-card-analysis-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.boss-rank,
.boss-economy-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boss-rank {
  color: var(--gold-light);
}

.boss-economy-positive,
.hub-leaderboard-positive .hub-leaderboard-value,
.analytics-rating-positive {
  color: #7fd98b;
}

.boss-economy-neutral,
.analytics-rating-neutral {
  color: var(--gold-light);
}

.boss-economy-negative,
.analytics-rating-negative,
.analytics-negative {
  color: #ff8a8a !important;
}

.boss-economy-unknown,
.analytics-rating-unknown {
  color: var(--text-muted);
}

.boss-card-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.28rem 0.75rem;
  font-size: 0.72rem;
}

.boss-card-metrics span {
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.boss-card-metrics b {
  color: #fff;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.boss-card-note {
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.boss-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: 0 15px 40px rgba(200, 170, 110, 0.4);
}

.boss-card:hover .boss-card-bg {
  filter: grayscale(0%) brightness(1);
}

.boss-card:hover .boss-card-logo {
  filter: brightness(1.2);
}

/* === TRACKER BOSS LOGO === */
.boss-name-img {
  height: 150px;
  width: auto;
  max-width: 440px;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.9));
  margin-bottom: 0.2rem;
}

.atziri-logo-center {
  object-position: center bottom !important;
}

/* === MODAL STYLES === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  background: var(--bg-primary);
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-ornate);
  border-radius: 4px;
}

/* === COMPACT TABLE MODIFIER === */
.spreadsheet-table.compact td,
.spreadsheet-table.compact th {
  padding: 0.2rem 0.3rem;
  font-size: 0.65rem;
}

.spreadsheet-table.compact .item-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
}

/* === SIDEBAR TABS === */
.sidebar-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0 1rem;
  flex-shrink: 0;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border-ornate);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  padding: 0.4rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.tab-btn.active {
  background: rgba(197, 169, 119, 0.15);
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  text-shadow: 0 0 5px rgba(197, 169, 119, 0.3);
}

/* Tab content containers */
.sidebar-tab-content {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.sidebar-tab-content.active {
  display: flex;
}

.global-prices-list {
  list-style: none;
  padding: 0 1rem 1rem 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  overflow-y: auto;
}

.global-price-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-ornate);
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.global-price-item:hover {
  background: rgba(200, 170, 110, 0.08);
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px rgba(200, 170, 110, 0.15);
}

.global-price-item-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.global-price-item-info img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.global-price-item-name {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.global-price-item-val {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  flex-shrink: 0;
}

/* === ANALYTICS VIEW === */
.analytics-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.analytics-breakdown-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.6rem;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-ornate);
  border-radius: 4px;
  padding: 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-ui);
}

.analytics-breakdown-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 0.85rem;
}

.analytics-breakdown-item b {
  color: var(--gold-primary);
  font-variant-numeric: tabular-nums;
}

.analytics-breakdown-item small {
  grid-column: 1 / -1;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.analytics-rating {
  font-size: 1.35rem;
  line-height: 1.2;
  white-space: nowrap;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-ornate);
  border-radius: 4px;
  padding: 0.75rem;
}

.breakdown-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.breakdown-info {
  display: flex;
  flex-direction: column;
}

.breakdown-name {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-primary);
}

.breakdown-count {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--gold-primary);
  font-variant-numeric: tabular-nums;
}

/* === METRICS CARDS === */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.metric-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-ornate);
  border-radius: 4px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.metric-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.metric-highlight {
  color: var(--gold-primary);
  text-shadow: 0 0 12px rgba(197, 169, 119, 0.4);
}

.metric-unit {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* =============================================
   COLLAPSIBLE PANELS SYSTEM
   ============================================= */

/* --- Design Tokens --- */
:root {
  --sidebar-collapsed-width: 40px;
  --collapse-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Collapse Toggle Button (Sidebar lateral) --- */
.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 28px;
  background: rgba(200, 170, 110, 0.1);
  border: 1px solid var(--gold-dark);
  border-radius: 2px;
  color: var(--gold-light);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  gap: 0.4rem;
}

.sidebar-collapse-btn:hover {
  border-color: var(--gold-primary);
  color: #fff;
  background: rgba(200, 170, 110, 0.2);
}

.sidebar-collapse-btn .collapse-chevron {
  font-size: 0.65rem;
  transition: transform var(--collapse-transition);
  line-height: 1;
}

/* --- Sidebar Collapsed Vertical Label --- */
.sidebar-collapsed-label {
  display: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-light);
  font-weight: 600;
  cursor: pointer;
  padding: 1rem 0;
  flex: 1;
  text-align: center;
  transition: color 0.2s ease;
  user-select: none;
}

.sidebar-collapsed-label:hover {
  color: #fff;
}

/* --- Sidebar Collapsed State --- */
.sidebar.collapsed {
  padding: 0.5rem 0;
  align-items: center;
  overflow: hidden;
  transition: all var(--collapse-transition);
}

.sidebar.collapsed>*:not(.sidebar-collapse-btn):not(.sidebar-collapsed-label) {
  display: none !important;
}

.sidebar.collapsed .sidebar-collapse-btn {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--gold-dark);
  background: rgba(200, 170, 110, 0.15);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  padding: 0;
}

.sidebar.collapsed .sidebar-collapse-btn .collapse-chevron {
  font-size: 1.1rem;
}

.sidebar.collapsed .sidebar-collapse-btn .collapse-label {
  display: none;
}

.sidebar.collapsed .sidebar-collapsed-label {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Dynamic Grid Layout (Collapse combinations) --- */
.app-layout {
  transition: grid-template-columns var(--collapse-transition);
}

.app-layout.left-collapsed {
  grid-template-columns: var(--sidebar-collapsed-width) minmax(480px, 1fr) 1fr 320px;
}

.app-layout.right-collapsed {
  grid-template-columns: 220px minmax(480px, 1fr) 1fr var(--sidebar-collapsed-width);
}

.app-layout.spreadsheet-collapsed {
  grid-template-columns: 220px minmax(480px, 1fr) var(--sidebar-collapsed-width) 320px;
}

.app-layout.left-collapsed.right-collapsed {
  grid-template-columns: var(--sidebar-collapsed-width) minmax(480px, 1fr) 1fr var(--sidebar-collapsed-width);
}

.app-layout.left-collapsed.spreadsheet-collapsed {
  grid-template-columns: var(--sidebar-collapsed-width) minmax(480px, 1fr) var(--sidebar-collapsed-width) 320px;
}

.app-layout.right-collapsed.spreadsheet-collapsed {
  grid-template-columns: 220px minmax(480px, 1fr) var(--sidebar-collapsed-width) var(--sidebar-collapsed-width);
}

.app-layout.left-collapsed.right-collapsed.spreadsheet-collapsed {
  grid-template-columns: var(--sidebar-collapsed-width) minmax(480px, 1fr) var(--sidebar-collapsed-width) var(--sidebar-collapsed-width);
}

/* --- Spreadsheet Collapsed State --- */
.spreadsheet-panel.collapsed {
  padding: 0.5rem 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spreadsheet-panel.collapsed>*:not(.spreadsheet-collapse-btn):not(.spreadsheet-collapsed-label) {
  display: none !important;
}

.spreadsheet-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(200, 170, 110, 0.1);
  border: 1px solid var(--gold-dark);
  border-radius: 2px;
  color: var(--gold-light);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  margin-left: auto;
}

.spreadsheet-collapse-btn:hover {
  border-color: var(--gold-primary);
  color: #fff;
  background: rgba(200, 170, 110, 0.2);
}

.spreadsheet-collapse-btn .collapse-chevron {
  font-size: 0.6rem;
  transition: transform var(--collapse-transition);
  line-height: 1;
}

.spreadsheet-collapsed-label {
  display: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-light);
  font-weight: 600;
  cursor: pointer;
  padding: 1rem 0;
  flex: 1;
  text-align: center;
  transition: color 0.2s ease;
  user-select: none;
}

.spreadsheet-collapsed-label:hover {
  color: #fff;
}

.spreadsheet-panel.collapsed .spreadsheet-collapse-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold-dark);
  background: rgba(200, 170, 110, 0.15);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  padding: 0;
  margin: 0 auto 0.5rem auto;
}

.spreadsheet-panel.collapsed .spreadsheet-collapse-btn .collapse-chevron {
  font-size: 1.1rem;
}

.spreadsheet-panel.collapsed .spreadsheet-collapse-btn .collapse-label {
  display: none;
}

.spreadsheet-panel.collapsed .spreadsheet-collapsed-label {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Internal Section Collapsible (Center tracker + Right sidebar) --- */
.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.collapsible-header:hover {
  color: var(--gold-light);
}

.collapsible-header:hover .section-title {
  color: var(--gold-light);
}

.collapsible-header .collapse-indicator {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform var(--collapse-transition), color 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
  padding: 0.2rem;
}

.collapsible-header:hover .collapse-indicator {
  color: var(--gold-light);
}

.collapsible-header .section-title {
  margin-bottom: 0;
}

.collapsible-content {
  max-height: 800px;
  overflow: hidden;
  transition: max-height var(--collapse-transition),
    padding var(--collapse-transition),
    opacity 0.2s ease;
  opacity: 1;
}

.collapsible-content.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Fix margin when collapsed (sub-sections in center tracker) */
.panel-ornate .collapsible-content.collapsed {
  margin-top: 0;
}

.panel-ornate .collapsible-header {
  margin-bottom: 0;
}

.panel-ornate .collapsible-header:not(.section-collapsed) {
  margin-bottom: 0;
}

.panel-ornate .collapsible-content:not(.collapsed) {
  margin-top: 1rem;
  overflow: visible;
}

/* Rotate chevron indicator when collapsed */
.collapsible-header.section-collapsed .collapse-indicator {
  transform: rotate(-90deg);
}

/* --- Drop Rates Collapsible (Right sidebar) --- */
.drop-rates-collapsible {
  flex-shrink: 0;
}

.drop-rates-collapsible .collapsible-content {
  max-height: min(30vh, 260px);
  overflow: hidden;
}

.drop-rates-collapsible .drop-rates-list {
  max-height: min(26vh, 220px);
}

.drop-rates-collapsible .collapsible-content.collapsed {
  max-height: 0;
  margin-bottom: 0;
}

/* Hide sidebar logo when collapsed */
.sidebar.collapsed .sidebar-logo {
  display: none;
}

/* === CHANGELOG STYLES === */
.cl-h1,
.cl-h2,
.cl-h3 {
  font-family: var(--font-heading);
  color: var(--gold-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.cl-h1 {
  font-size: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.cl-h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  color: var(--gold-light);
}

.cl-h3 {
  font-size: 1.25rem;
}

.cl-text,
.cl-list {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cl-list {
  padding-left: 1.5rem;
}

.cl-list li {
  margin-bottom: 0.5rem;
}

.cl-indent {
  margin-left: 1.5rem;
  list-style-type: circle;
  color: var(--text-secondary);
}

.cl-code {
  font-family: var(--font-ui);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: var(--gold-primary);
  font-size: 0.9em;
}

.top-nav-select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.top-nav-select:hover {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 8px rgba(175, 143, 76, 0.4);
  background: rgba(175, 143, 76, 0.1) !important;
}




.top-nav-select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.top-nav-select:hover {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 8px rgba(175, 143, 76, 0.4);
  background: rgba(175, 143, 76, 0.1) !important;
}
.top-bar-field-select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.top-bar-field-select:hover {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 8px rgba(175, 143, 76, 0.4);
  background: rgba(175, 143, 76, 0.1) !important;
}

/* --- Hub Profit Toggle --- */
.hub-profit-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hub-profit-toggle-container label[for="toggle-hub-profit"],
.hub-profit-toggle-container label[for="toggle-hub-uber-mode"],
.hub-profit-toggle-container label[for="hub-league-selector"] {
  color: var(--gold-light);
  cursor: pointer;
}

.hub-profit-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.hub-profit-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.hub-profit-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(200, 170, 110, 0.2);
  transition: .4s;
  border-radius: 24px;
  border: 1px solid var(--border-ornate);
}
.hub-profit-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .4s;
  border-radius: 50%;
}
.hub-profit-switch input:checked + .hub-profit-slider {
  background-color: rgba(200, 170, 110, 0.4);
  border-color: var(--gold-primary);
}
.hub-profit-switch input:checked + .hub-profit-slider:before {
  transform: translateX(20px);
  background-color: var(--gold-light);
}

.boss-card-analysis {
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.boss-card-analysis.hide-profit {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.boss-card-logo.boss-arbiter-logo {
  bottom: 9rem;
}
.drop-details-fields {
  margin: 0.75rem 0;
  padding: 0.85rem;
  border: 1px solid rgba(190, 146, 67, 0.35);
  background: rgba(8, 8, 10, 0.45);
}

.drop-details-fields .input-field[multiple] { min-height: 10rem; }
.drop-special-combobox { position: relative; }
.drop-special-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.drop-special-selection-chip { display: inline-flex; align-items: center; gap: 0.45rem; background: rgba(190, 146, 67, 0.12); cursor: pointer; text-align: left; }
.drop-special-chip-remove { color: var(--text-muted); font-size: 0.68rem; text-transform: uppercase; }
.drop-special-combobox-options { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; max-height: 15rem; overflow-y: auto; background: var(--bg-secondary); border: 1px solid var(--border-ornate); box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.55); }
.drop-special-combobox-option { display: block; width: 100%; padding: 0.6rem 0.7rem; border: 0; border-bottom: 1px solid var(--border-subtle); background: transparent; color: var(--text-secondary); text-align: left; cursor: pointer; }
.drop-special-combobox-option:hover,
.drop-special-combobox-option:focus-visible { background: rgba(190, 146, 67, 0.14); color: var(--gold-light); outline: none; }
.drop-details-help { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.4rem; }
.drop-detail-summary { color: var(--text-secondary); font-size: 0.76rem; margin-top: 0.2rem; }
.drop-edit-modal-content { max-width: 650px; max-height: 90vh; overflow-y: auto; padding: 1.5rem; }
.drop-edit-item { color: var(--gold-primary); margin: 0.5rem 0 1rem; }
.drop-edit-actions { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1rem; }
/* Bootstrap failure state */
.startup-error {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  color: var(--text-primary);
  background: var(--bg-primary);
}

.startup-error h1,
.startup-error p {
  margin: 0;
}
