.reg-page-header {
  margin-bottom: 2rem;
}

.reg-page-title {
  font-size: 1.5rem;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .reg-page-title {
    font-size: 2rem;
  }
}

.reg-page-desc {
  margin-top: 0.5rem;
  color: rgb(107 114 128);
  font-size: 0.9375rem;
}

.dark .reg-page-desc {
  color: rgb(161 161 170);
}

.reg-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .reg-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reg-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.reg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fff;
  border: 2px solid transparent;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  text-align: right;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.dark .reg-card {
  background: rgb(63 63 70);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.reg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.reg-card--emerald:hover {
  border-color: rgb(34 197 94);
}

.reg-card--blue:hover {
  border-color: rgb(59 130 246);
}

.reg-card--amber:hover {
  border-color: rgb(245 158 11);
}

.reg-card__badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.reg-card--emerald .reg-card__badge {
  background: rgba(34, 197, 94, 0.12);
  color: rgb(22 163 74);
}

.reg-card--blue .reg-card__badge {
  background: rgba(59, 130, 246, 0.12);
  color: rgb(37 99 235);
}

.reg-card--amber .reg-card__badge {
  background: rgba(245, 158, 11, 0.15);
  color: rgb(180 83 9);
}

.reg-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.reg-card__subtitle {
  font-size: 0.875rem;
  color: rgb(107 114 128);
  margin-bottom: 0.75rem;
}

.dark .reg-card__subtitle {
  color: rgb(161 161 170);
}

.reg-card__desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgb(113 113 122);
  flex: 1;
  margin-bottom: 1.25rem;
}

.dark .reg-card__desc {
  color: rgb(161 161 170);
}

.reg-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(34 197 94);
}

.reg-detail-preview {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.dark .reg-detail-preview {
  background: rgb(63 63 70);
}

.reg-detail-preview--emerald {
  border-top: 4px solid rgb(34 197 94);
}

.reg-detail-preview--blue {
  border-top: 4px solid rgb(59 130 246);
}

.reg-detail-preview--amber {
  border-top: 4px solid rgb(245 158 11);
}

/* Closed modal */
.reg-closed-modal {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.reg-closed-modal.hidden {
  display: none;
}

.reg-closed-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.reg-closed-modal__panel {
  position: relative;
  width: 100%;
  max-width: 24rem;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: #fff;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation: reg-modal-in 0.25s ease;
}

.dark .reg-closed-modal__panel {
  background: rgb(39 39 42);
}

@keyframes reg-modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.reg-closed-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.15);
  color: rgb(217 119 6);
}

.reg-closed-modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.reg-closed-modal__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgb(107 114 128);
}

.dark .reg-closed-modal__text {
  color: rgb(161 161 170);
}

.reg-closed-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 400px) {
  .reg-closed-modal__actions {
    flex-direction: row;
    justify-content: center;
  }
}

.reg-closed-modal__btn {
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.reg-closed-modal__btn--primary {
  background: rgb(34 197 94);
  color: #fff;
}

.reg-closed-modal__btn--primary:hover {
  background: rgb(22 163 74);
}

.reg-closed-modal__btn--secondary {
  background: rgb(243 244 246);
  color: rgb(63 63 70);
}

.dark .reg-closed-modal__btn--secondary {
  background: rgb(63 63 70);
  color: rgb(228 228 231);
}

.reg-closed-modal__btn--secondary:hover {
  background: rgb(229 231 235);
}

body.reg-closed-modal-open {
  overflow: hidden;
}
