.theme-switcher-bar {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(10px);
}

.theme-switcher-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0.55rem 0 0.75rem;
  white-space: nowrap;
}

.theme-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.theme-switcher-btn i {
  font-size: 0.95rem;
}

.theme-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.theme-switcher-btn.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

@media (max-width: 767px) {
  .theme-switcher-bar {
    left: 0.75rem;
    right: 0.75rem;
    transform: none;
    width: auto;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 1rem;
    bottom: 0.85rem;
  }

  .theme-switcher-label {
    width: 100%;
    text-align: center;
    padding: 0.15rem 0 0;
  }

  .theme-switcher-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
  }
}

body.has-theme-switcher {
  padding-bottom: 4.5rem;
}

@media (max-width: 767px) {
  body.has-theme-switcher {
    padding-bottom: 5.5rem;
  }
}
