.commission-main {
  position: relative;
  display: grid;
  gap: 1rem;
  isolation: isolate;
}

.commission-main::before {
  content: "";
  position: absolute;
  inset: -1rem -1rem auto;
  height: min(45vh, 20rem);
  background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.25), transparent 60%),
    radial-gradient(circle at 75% 20%, rgba(6, 182, 212, 0.2), transparent 50%);
  filter: blur(8px);
  z-index: -1;
}

.commission-hero {
  display: grid;
  gap: 0.9rem;
  overflow: hidden;
}

.kicker {
  width: fit-content;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-points span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.flow-card h2,
.agreement-card h2 {
  margin-bottom: 0.8rem;
}

.flow-steps {
  display: grid;
  gap: 0.85rem;
  margin-left: 1.2rem;
}

.flow-steps li {
  color: var(--muted);
}

.agreement-card {
  display: grid;
  gap: 0.8rem;
}

.agreement-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.agreement-progress {
  margin: 0;
  font-weight: 600;
  color: var(--brand-2);
}

.agreements {
  display: grid;
  gap: 0.7rem;
}

.checkbox-row {
  position: relative;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.checkbox-row:has(input:checked) {
  border-color: rgba(34, 197, 94, 0.75);
  background: rgba(34, 197, 94, 0.1);
  transform: translateX(2px);
}

.checkbox-row input {
  margin-top: 0.25rem;
}

.commission-actions {
  margin-top: 0.3rem;
}

.button-ready {
  animation: pulseReady 620ms ease;
}

@keyframes pulseReady {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.reveal-on-load {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp 650ms ease forwards;
}

.reveal-delay-1 {
  animation-delay: 110ms;
}

.reveal-delay-2 {
  animation-delay: 220ms;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 34rem);
  margin: 10vh auto 0;
  padding: 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)), var(--panel);
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.5);
  transform: translateY(12px) scale(0.99);
  opacity: 0;
}

.modal--active .modal__panel {
  animation: modalIn 220ms ease forwards;
}

.modal--closing .modal__panel {
  animation: modalOut 180ms ease forwards;
}

@keyframes modalIn {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes modalOut {
  to {
    transform: translateY(8px) scale(0.99);
    opacity: 0;
  }
}

.modal-actions {
  margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-load,
  .button-ready,
  .modal--active .modal__panel,
  .modal--closing .modal__panel {
    animation: none !important;
  }

  .checkbox-row {
    transition: none;
  }
}
