.theme-switcher {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 96;
}

.theme-switcher__toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: var(--navy-light);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.theme-switcher__toggle:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-accent);
}

.theme-switcher__panel {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  left: 0;
  min-width: 240px;
  max-height: min(480px, 72vh);
  overflow-y: auto;
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  scrollbar-width: thin;
}

.theme-switcher__group {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  padding: 0.5rem 0.5rem 0.35rem;
  margin-top: 0.25rem;
}

.theme-switcher__group:first-child { margin-top: 0; }

.theme-switcher.open .theme-switcher__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-switcher__label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0.25rem 0.5rem 0.5rem;
}

.theme-switcher__option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.theme-switcher__option:hover { background: #f1f5f9; }

.theme-switcher__option.active {
  background: #f1f5f9;
  outline: 2px solid #dc2626;
}

.theme-switcher__swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(0, 0, 0, 0.08);
}

.theme-switcher__swatch--classic { background: linear-gradient(135deg, #e6392e 50%, #0c1a2e 50%); }
.theme-switcher__swatch--wincar { background: linear-gradient(135deg, #c00000 50%, #0a1654 50%); }
.theme-switcher__swatch--light { background: linear-gradient(135deg, #dc2626 50%, #f1f5f9 50%); border: 1px solid #cbd5e1; }
.theme-switcher__swatch--midnight { background: linear-gradient(135deg, #f87171 50%, #020617 50%); }
.theme-switcher__swatch--ocean { background: linear-gradient(135deg, #00b4d8 50%, #0a2540 50%); }
.theme-switcher__swatch--emerald { background: linear-gradient(135deg, #52b788 50%, #0d1f17 50%); }
.theme-switcher__swatch--sunset { background: linear-gradient(135deg, #f97316 50%, #1c1008 50%); }
.theme-switcher__swatch--violet { background: linear-gradient(135deg, #a855f7 50%, #1a0b2e 50%); }
.theme-switcher__swatch--rose { background: linear-gradient(135deg, #f43f5e 50%, #1f0f14 50%); }
.theme-switcher__swatch--amber { background: linear-gradient(135deg, #f59e0b 50%, #1c1408 50%); }
.theme-switcher__swatch--graphite { background: linear-gradient(135deg, #38bdf8 50%, #111827 50%); }
.theme-switcher__swatch--mint { background: linear-gradient(135deg, #2dd4bf 50%, #0a1f1c 50%); }

@media (max-width: 768px) {
  .theme-switcher { bottom: 1rem; left: 1rem; }
}
