.upgrade-bar-wrapper {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.upgrade-bar {
  pointer-events: auto;
  background: var(--color-upgrade-bg);
  border: 2px solid var(--color-upgrade-border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(91, 33, 182, 0.1);
  padding: 0.9rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  width: 100%;
}

.upgrade-bar-text {
  margin: 0;
  font-size: 0.9rem;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.upgrade-bar-perks {
  color: #4b4b6b;
  font-weight: 400;
}

.upgrade-bar-link {
  color: #1a1a2e;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.upgrade-bar-link:hover {
  color: var(--color-upgrade-accent);
}

/* Offset page bottom so content isn't hidden behind the bar */
body:has(.upgrade-bar-wrapper) .app-main {
  padding-bottom: 4rem;
}

/* Push upgrade bar above the section bottom nav when both are visible */
body:has(.section-bottom-nav) .upgrade-bar-wrapper {
  bottom: 3.5rem;
}
