.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill, 999px);
  background: var(--glass-bg);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.theme-toggle:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--glow-primary);
}

.theme-toggle i {
  width: 16px;
  text-align: center;
}

.auth-theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
}

.theme-toggle-inline {
  white-space: nowrap;
}

@media (max-width: 576px) {
  .theme-toggle {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .auth-theme-toggle {
    top: 12px;
    right: 12px;
  }
}
