:root {
  --color-primary: #2D3B36;
  --color-secondary: #6B8076;
  --color-accent: #4A9B7F;
  --color-bg-light: #F5FAF8;
  --color-bg-alt: #EBF5F1;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: 'Inter', system-ui, sans-serif; }

::selection {
  background: rgba(74, 155, 127, 0.22);
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rotate-180 { transform: rotate(180deg); }

.glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:focus-visible {
  outline: 2px solid rgba(74,155,127,0.35);
  outline-offset: 2px;
}

.badge-soft {
  background: rgba(74,155,127,0.10);
  border: 1px solid rgba(74,155,127,0.18);
  color: #1f2937;
}

.hr-fade {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(17,24,39,0.12), transparent);
}

.input {
  width: 100%;
  border: 1px solid rgb(229 231 235);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  color: rgb(17 24 39);
}

.input:focus {
  outline: none;
  border-color: rgba(74,155,127,0.55);
  box-shadow: 0 0 0 4px rgba(74,155,127,0.14);
}

.input[aria-invalid="true"] {
  border-color: rgb(239 68 68);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
}

.form-hint {
  font-size: 0.8rem;
  color: rgb(107 114 128);
}

.toast {
  position: fixed;
  inset-inline: 0;
  bottom: 1rem;
  z-index: 120;
  display: none;
  justify-content: center;
  pointer-events: none;
}

.toast__inner {
  pointer-events: auto;
  max-width: 36rem;
  margin: 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgb(229 231 235);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(17,24,39,0.12);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.toast__title {
  font-weight: 700;
  color: rgb(17 24 39);
  font-size: 0.95rem;
}

.toast__msg {
  color: rgb(55 65 81);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.toast__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(74,155,127,0.12);
  border: 1px solid rgba(74,155,127,0.2);
  color: var(--color-accent);
  flex: 0 0 auto;
}

.toast__close {
  margin-left: auto;
  border: 1px solid rgb(229 231 235);
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.35rem;
  line-height: 0;
}

.toast__close:hover {
  background: rgb(249 250 251);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { transition: none; transform: none; }
}