:root {
  color-scheme: dark;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(120% 120% at 50% 0%, rgba(30, 64, 175, 0.45) 0%, rgba(15, 23, 42, 0.95) 45%, #020617 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
}

a {
  text-decoration: none;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.05);
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.1);
}

.icon-button.is-active {
  background: rgba(250, 204, 21, 0.2);
  border-color: rgba(250, 204, 21, 0.6);
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  color: #1e293b;
  transition: border 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pill-button:hover {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.12);
  color: #312e81;
}

.pill-button.is-active {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.14);
  color: #065f46;
}

.domain-pill {
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.04);
  padding: 0.8rem 1rem;
  display: grid;
  gap: 0.35rem;
}

.domain-pill--available {
  color: #047857;
}

.domain-pill--taken {
  color: #b91c1c;
}

.domain-pill--premium {
  color: #92400e;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.25rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.chip::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.6);
}

.chip--tone::before {
  background: rgba(52, 211, 153, 0.8);
}

.chip--secondary::before {
  background: rgba(245, 158, 11, 0.8);
}

.chip--handle::before {
  background: rgba(99, 102, 241, 0.8);
}

.color-swatch {
  --swatch-color: #38bdf8;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.75rem;
  background: var(--swatch-color);
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0px 16px 30px -20px rgba(15, 23, 42, 0.8);
}

.color-swatch--detail {
  width: 2.1rem;
  height: 2.1rem;
}

.rating-star {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease, color 0.2s ease;
}

.rating-star:hover {
  transform: translateY(-1px);
}

.rating-star--active {
  color: #f59e0b;
}

.rating-star--preview {
  color: #fcd34d;
}

.favorite-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.12);
}

.favorite-card__title {
  font-weight: 700;
  color: #f8fafc;
}

.favorite-card__subtitle {
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.7);
  margin-top: 0.35rem;
}

.favorite-card__remove {
  border: none;
  background: rgba(244, 63, 94, 0.16);
  color: rgba(248, 113, 113, 0.9);
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.favorite-card__remove:hover {
  background: rgba(244, 63, 94, 0.24);
}

.toast-stack {
  position: fixed;
  right: 1.5rem;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 60;
}

.toast {
  min-width: 240px;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  box-shadow: 0px 18px 45px -20px rgba(15, 23, 42, 0.6);
  animation: toast-in 0.18s ease forwards;
}

.toast--success {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(13, 148, 136, 0.9);
}

.toast--error {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.92);
}

.toast__content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem 0.75rem 1rem;
}

.toast__icon {
  font-size: 1.1rem;
}

.toast__body {
  font-size: 0.85rem;
  font-weight: 600;
}

.toast__close {
  margin-left: auto;
  border: none;
  background: transparent;
  color: rgba(248, 250, 252, 0.7);
  font-size: 1rem;
  cursor: pointer;
}

.toast__close:hover {
  color: #fff;
}

.toast--leaving {
  animation: toast-out 0.16s ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.prompt {
  width: 100%;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.2);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(226, 232, 240, 0.86);
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
}

.prompt:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
}

.prompt__title {
  font-weight: 700;
  font-size: 0.95rem;
}

.prompt__subtitle {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.35rem;
}

.prompt__icon {
  font-size: 1.2rem;
  color: rgba(96, 165, 250, 0.8);
}

.share-dialog {
  border: none;
  border-radius: 2rem;
  padding: 0;
  background: transparent;
}

.share-dialog::backdrop {
  background: rgba(4, 7, 23, 0.55);
  backdrop-filter: blur(16px);
}

.share-dialog__panel {
  display: block;
  width: min(92vw, 420px);
  border-radius: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.98);
  padding: 2rem;
  box-shadow: 0px 38px 90px -32px rgba(15, 23, 42, 0.35);
}

.share-dialog__button {
  border: none;
  border-radius: 9999px;
  padding: 0.65rem 1.3rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  cursor: pointer;
  transition: background 0.2s ease;
}

.share-dialog__button:hover {
  background: rgba(59, 130, 246, 0.2);
}

.share-dialog__button--ghost {
  background: rgba(15, 23, 42, 0.05);
  color: #1f2937;
}

.share-dialog__button--ghost:hover {
  background: rgba(15, 23, 42, 0.1);
}

.auth-dialog {
  border: none;
  padding: 0;
  background: transparent;
}

.auth-dialog::backdrop {
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(18px);
}

.auth-dialog__panel {
  position: relative;
  width: min(92vw, 460px);
  border-radius: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.98);
  padding: 2.5rem;
  box-shadow: 0 40px 90px -28px rgba(15, 23, 42, 0.4);
  color: #0f172a;
}

.auth-dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #1e293b;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth-dialog__close:hover {
  background: rgba(59, 130, 246, 0.18);
  transform: translateY(-1px);
}

.auth-dialog__header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.auth-dialog__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(30, 41, 59, 0.66);
}

.auth-dialog__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
}

.auth-dialog__subtitle {
  font-size: 0.95rem;
  color: rgba(30, 41, 59, 0.75);
  line-height: 1.5;
}

.auth-dialog__tabs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 9999px;
  padding: 0.25rem;
}

.auth-dialog__tab {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 9999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.auth-dialog__tab:hover {
  color: rgba(15, 23, 42, 0.85);
}

.auth-dialog__tab.is-active {
  background: #0f172a;
  color: #f8fafc;
}

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

.auth-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-form__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.65);
}

.auth-form__input {
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(241, 245, 249, 0.92);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #0f172a;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.auth-form__input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.auth-form__submit {
  border: none;
  border-radius: 9999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #34d399, #60a5fa, #818cf8);
  color: #0f172a;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px -20px rgba(99, 102, 241, 0.5);
}

.auth-form__submit.is-loading,
.auth-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-form__footnote {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.58);
  text-align: center;
}

.auth-form__switch {
  border: none;
  background: none;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.auth-form__switch:hover {
  color: #1d4ed8;
}

.auth-form__error {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #991b1b;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.auth-form__error.hidden {
  display: none;
}

.auth-form__privacy {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.48);
  text-align: center;
  line-height: 1.6;
}

.auth-form__privacy-link {
  color: #1d4ed8;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-form__privacy-link:hover {
  color: #2563eb;
}
