.icon-button {
  display: grid;
  width: var(--tap-target);
  height: var(--tap-target);
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--charcoal-800);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--brand-pink-050);
}

.icon-button:active {
  transform: scale(0.97);
}

.icon-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-button--quiet {
  border-color: transparent;
  background: var(--surface-soft);
  color: var(--charcoal-600);
}

.badge {
  display: inline-flex;
  min-height: 1.6rem;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 780;
  letter-spacing: 0.015em;
  line-height: 1;
  white-space: nowrap;
}

.badge--soft {
  background: var(--brand-pink-100);
  color: var(--brand-pink-700);
}

.badge--highlight {
  background: var(--brand-pink-100);
  color: var(--brand-pink-700);
}

.badge--success {
  background: var(--success-100);
  color: var(--success-700);
}

.badge--neutral {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--charcoal-600);
}

.card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card--compact {
  padding: 0.9rem 1rem;
}

.card__copy {
  margin-top: 0.75rem;
  color: var(--ink-subtle);
  font-size: 0.82rem;
  line-height: 1.55;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.section-header > div {
  min-width: 0;
}

.section-header__eyebrow,
.page-kicker {
  color: var(--brand-pink-700);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-header h2 {
  margin-top: 0.22rem;
  color: var(--charcoal-950);
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.button-stack {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  background: var(--brand-pink-600);
  box-shadow: 0 5px 12px rgb(99 2 195 / 16%);
  color: white;
}

.button--primary:hover {
  background: var(--brand-pink-700);
  box-shadow: 0 7px 16px rgb(99 2 195 / 19%);
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--charcoal-800);
}

.button--secondary:hover {
  border-color: #cec8d0;
  background: var(--brand-pink-050);
}

.loading-state,
.empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 1.65rem 0.65rem 0.45rem;
  text-align: center;
}

.loading-spinner {
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.9rem;
  border: 3px solid var(--brand-pink-100);
  border-top-color: var(--brand-pink-600);
  border-radius: 50%;
  animation: spin 780ms linear infinite;
}

.loading-state strong,
.empty-state strong {
  color: var(--charcoal-900);
  font-size: 0.92rem;
  line-height: 1.35;
}

.loading-state > p,
.empty-state > p {
  max-width: 16.5rem;
  margin-top: 0.35rem;
  color: var(--ink-subtle);
  font-size: 0.76rem;
  line-height: 1.5;
}

.loading-skeleton {
  display: grid;
  width: 100%;
  gap: 0.48rem;
  margin-top: 1.2rem;
}

.loading-skeleton span {
  height: 0.55rem;
  border-radius: 999px;
  background: #ebe8ec;
  animation: soft-pulse 1.3s ease-in-out infinite alternate;
}

.loading-skeleton span:nth-child(2) {
  width: 88%;
  animation-delay: 120ms;
}

.loading-skeleton span:nth-child(3) {
  width: 68%;
  animation-delay: 240ms;
}

.empty-state__icon {
  display: grid;
  width: 3.7rem;
  height: 3.7rem;
  margin-bottom: 0.9rem;
  place-items: center;
  border: 1px solid var(--brand-pink-200);
  border-radius: 1.2rem;
  background: var(--brand-pink-050);
  color: var(--brand-pink-600);
}

.empty-state__icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.toast-region {
  position: absolute;
  z-index: 60;
  right: 0.85rem;
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 0.75rem);
  left: 0.85rem;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  min-height: 3.65rem;
  padding: 0.65rem 0.65rem 0.65rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 1rem;
  background: var(--charcoal-950);
  box-shadow: var(--shadow-floating);
  color: white;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(0.75rem);
  transition:
    opacity 180ms ease,
    transform 220ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast__icon {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-pink-300);
  color: var(--charcoal-950);
}

.toast__icon svg {
  width: 1rem;
  height: 1rem;
}

.toast p {
  font-size: 0.78rem;
  font-weight: 680;
  line-height: 1.35;
}

.toast__close {
  display: grid;
  width: var(--tap-target);
  height: var(--tap-target);
  padding: 0;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: var(--charcoal-400);
  cursor: pointer;
}

.toast__close:hover {
  background: rgb(255 255 255 / 8%);
  color: white;
}

.toast__close svg {
  width: 1rem;
  height: 1rem;
}

.noscript-message {
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: var(--warning-100);
  color: var(--warning-700);
  font-size: 0.8rem;
  line-height: 1.45;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes soft-pulse {
  from {
    opacity: 0.58;
  }
  to {
    opacity: 1;
  }
}

