:root {
  --bg-start: #f6f3eb;
  --bg-end: #e9f0f7;
  --card-bg: #ffffff;
  --card-border: #e4e7ec;
  --text-main: #1f2a37;
  --text-muted: #5f6b7a;
  --accent: #2f6fed;
  --accent-dark: #2057bf;
  --accent-warm: #f2994a;
  --radius: 22px;
  --shadow: 0 18px 38px rgba(31, 42, 55, 0.14);
}

body {
  min-height: 100vh;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #ffffff 0%, transparent 40%),
    linear-gradient(135deg, var(--bg-start), var(--bg-end));
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
}

.app-page {
  position: relative;
  background-color: var(--bg-start);
  background-image: var(--app-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  isolation: isolate;
}

.app-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
}

.app-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--app-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.app-title {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.4px;
}

.app-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.app-event-banner {
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(228, 231, 236, 0.8);
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 14px 28px rgba(31, 42, 55, 0.08);
}

.app-event-message {
  margin: 0;
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.05rem;
}

.app-event-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.app-event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-event-location {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.app-event-location span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-event-location .app-open-label,
.app-event-location .app-open-range {
  display: block;
}

.app-event-location .app-open-label.blink {
  color: #16a34a;
}

.app-header-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.app-logo-row {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.app-header-logo {
  max-width: 120px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.app-footer {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.row.g-4.justify-content-center > div {
  display: flex;
}

.app-card {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 231, 236, 0.8);
  border-radius: 28px;
  min-height: 320px;
  width: 100%;
  box-shadow: var(--shadow);
  animation: cardRise 0.5s ease;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.app-card:hover,
.app-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(31, 42, 55, 0.18);
}

.app-card.disabled {
  pointer-events: none;
  opacity: 0.65;
  filter: grayscale(0.2);
}

.app-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 32px 34px;
}

.app-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(47, 111, 237, 0.12);
  color: var(--accent-dark);
}

.app-icon {
  font-size: 2rem;
}

.app-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.app-card-text {
  color: var(--text-muted);
  margin: 0;
}

.app-card-cta {
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #b91c1c;
}

.blink {
  animation: blinkText 1.2s ease-in-out infinite;
}

@keyframes blinkText {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

#app-root {
  animation: fadeIn 0.45s ease;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .app-page {
    background-attachment: scroll;
  }

  .app-card {
    min-height: 260px;
  }
}

@media (max-width: 576px) {
  .app-card {
    min-height: 220px;
  }

  .app-card-body {
    padding: 26px 28px;
  }
}

@media (max-width: 768px) {
  .user-card-row {
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .user-card-row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}



/* --- Centralized Modules Styles --- */
.modules-page {
  position: relative;
}

.modules-page::before {
  content: "";
  position: absolute;
  inset: 80px 0 auto;
  height: 260px;
  background: linear-gradient(120deg, rgba(47, 111, 237, 0.12), rgba(47, 111, 237, 0));
  filter: blur(0.5px);
  z-index: 0;
}

.modules-page > * {
  position: relative;
  z-index: 1;
}

.modules-header {
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(228, 231, 236, 0.8);
  box-shadow: 0 14px 28px rgba(31, 42, 55, 0.08);
}

.modules-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 111, 237, 0.18);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.modules-back:hover,
.modules-back:focus {
  transform: translateX(-2px);
  box-shadow: 0 12px 20px rgba(31, 42, 55, 0.12);
  color: var(--accent-dark);
}

.modules-count {
  box-shadow: 0 8px 18px rgba(47, 111, 237, 0.3);
}

.modules-empty-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 36px 38px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed rgba(47, 111, 237, 0.28);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.modules-empty-card::before {
  display: none;
}

.modules-empty-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(47, 111, 237, 0.18), transparent 60%);
  opacity: 0.6;
}

.modules-empty-card .app-card-body {
  padding: 0;
  z-index: 1;
}

.modules-empty-card .app-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: rgba(47, 111, 237, 0.18);
}

.modules-grid-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 28px;
  border: 1px solid rgba(228, 231, 236, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  min-height: 340px;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.modules-grid-card::before {
  display: none;
}

.modules-grid-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(47, 111, 237, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modules-grid-card:hover,
.modules-grid-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(31, 42, 55, 0.18);
  border-color: rgba(47, 111, 237, 0.3);
}

.modules-grid-card:hover::after,
.modules-grid-card:focus::after {
  opacity: 1;
}

.modules-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(47, 111, 237, 0.12), rgba(255, 255, 255, 0.85));
  border-bottom: 1px solid rgba(228, 231, 236, 0.85);
}

.modules-media-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  background: #ffffff;
}

.modules-media-slideshow {
  width: 100%;
  height: 100%;
}

.modules-media-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: #ffffff;
}

.modules-media-slideshow img.is-visible {
  opacity: 1;
}

.modules-media-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(47, 111, 237, 0.7);
  font-size: 2rem;
}

.modules-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 28px 30px;
}

.modules-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(47, 111, 237, 0.12);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.modules-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.modules-card-text {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}

.modules-video-section {
  margin-top: 48px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 1px solid rgba(228, 231, 236, 0.8);
}

.modules-content-section {
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 231, 236, 0.8);
  box-shadow: var(--shadow);
}

.modules-content-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.modules-content-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.modules-content-subtitle {
  margin: 0;
  color: var(--text-muted);
}

.modules-video-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.modules-video-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.modules-video-subtitle {
  margin: 0;
  color: var(--text-muted);
}

.modules-video-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  border: 1px solid rgba(228, 231, 236, 0.8);
  box-shadow: 0 16px 30px rgba(31, 42, 55, 0.12);
  padding: 18px;
  height: 100%;
}

.modules-video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #e9eef8;
}

.modules-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modules-video-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.modules-video-body p {
  margin: 0;
  color: var(--text-muted);
}

.modules-grid-card,
.modules-empty-card,
.modules-video-card {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
}

.modules-reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.modules-viewer-open {
  overflow: hidden;
}

.modules-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1060;
}

.modules-lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.modules-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 24, 0.78);
  backdrop-filter: blur(2px);
}

.modules-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 88vh;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 12px;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s ease;
}

.modules-lightbox.is-visible .modules-lightbox-content {
  transform: scale(1) translateY(0);
}

.modules-lightbox-image {
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(5, 10, 18, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modules-lightbox.is-visible .modules-lightbox-image {
  opacity: 1;
}

.modules-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.modules-lightbox-close:hover,
.modules-lightbox-close:focus {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.32);
}

@media (max-width: 768px) {
  .modules-header {
    padding: 14px;
  }

  .modules-grid-card {
    min-height: 260px;
  }

  .modules-media {
    aspect-ratio: 4 / 3;
  }

  .modules-content-section {
    padding: 18px;
  }

  .modules-video-section {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .modules-scroll-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 0 12px 8px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }

  .modules-scroll-row > [class*="col-"] {
    flex: 0 0 88%;
    max-width: 88%;
    scroll-snap-align: start;
  }

  .modules-scroll-row::-webkit-scrollbar {
    height: 6px;
  }
}

.modules-promo-section {
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 231, 236, 0.8);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modules-promo-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.modules-promo-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.modules-promo-subtitle {
  margin: 0;
  color: var(--text-muted);
}

.modules-promo-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.modules-promo-marquee + .modules-promo-marquee {
  margin-top: 14px;
}

.modules-promo-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: promoScroll 28s linear infinite;
}

.modules-promo-track.is-reverse {
  animation: promoScrollReverse 28s linear infinite;
}

.modules-promo-item {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  overflow: hidden;
  background: #edf1f8;
  border: 1px solid rgba(228, 231, 236, 0.9);
  box-shadow: 0 10px 20px rgba(31, 42, 55, 0.12);
  flex: 0 0 auto;
}

.modules-promo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes promoScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes promoScrollReverse {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .modules-promo-section {
    padding: 18px;
  }

  .modules-promo-item {
    width: 96px;
    height: 96px;
  }
}



/* --- Centralized Register Styles --- */
.register-page {
  position: relative;
}

.register-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(228, 231, 236, 0.8);
  box-shadow: 0 14px 28px rgba(31, 42, 55, 0.08);
}

.register-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.register-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.12);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 111, 237, 0.18);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.back-link:hover,
.back-link:focus {
  transform: translateX(-2px);
  box-shadow: 0 10px 20px rgba(31, 42, 55, 0.12);
  color: var(--accent-dark);
}

.register-page .app-card {
  display: block;
  padding: 32px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 231, 236, 0.8);
  border-radius: 28px;
  box-shadow: var(--shadow);
  animation: cardRise 0.5s ease;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: auto;
}

.register-page .app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(31, 42, 55, 0.18);
}

.register-page .app-form {
  padding: 28px;
}

.register-page .form-label {
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.register-page .form-control,
.register-page .form-select {
  border-radius: 14px;
  border-color: #d8dde4;
  padding: 12px 14px;
  background-color: #fff;
}

.register-page .form-control:focus,
.register-page .form-select:focus {
  border-color: rgba(47, 111, 237, 0.6);
  box-shadow: 0 0 0 0.25rem rgba(47, 111, 237, 0.15);
}

.register-page .form-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.register-page .children-count-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.register-page .gender-count-grid {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  justify-content: center;
}

.register-page .child-count-card {
  border: 1px solid rgba(47, 111, 237, 0.2);
  border-radius: 16px;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  display: grid;
  place-items: center;
  gap: 4px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.register-page .child-count-card:hover,
.register-page .child-count-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(31, 42, 55, 0.12);
}

.register-page .child-count-card.is-active {
  border-color: rgba(47, 111, 237, 0.7);
  box-shadow: 0 12px 24px rgba(47, 111, 237, 0.2);
  background: rgba(47, 111, 237, 0.12);
  color: var(--accent-dark);
}

.register-page .child-count-number {
  font-size: 1.2rem;
}

.register-page .child-count-label {
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.register-page .child-count-card.is-active .child-count-label {
  color: var(--accent-dark);
}

.register-page .action-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1f6cf4 0%, #1a58c8 100%);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.register-page .panel-header {
  text-align: left;
}

.register-page .panel-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.register-page .panel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  margin-left: 8px;
}

.register-page .panel-subtitle {
  margin: 6px 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
  color: #e9f2ff;
}

.register-page #childrenFields {
  display: grid;
  gap: 12px;
}

.register-page .child-field {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  animation: fieldPop 0.25s ease;
}

.register-page .child-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.register-page .child-grid {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.register-page .child-field .form-label {
  color: #ffffff;
  font-weight: 600;
}

.register-page .child-field .form-control,
.register-page .child-field .form-select {
  background: rgba(255, 255, 255, 0.95);
  width: 100%;
}

@media (max-width: 576px) {
  .register-page .gender-count-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.register-page .app-button {
  border-radius: 18px;
  padding: 14px 20px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(9, 29, 68, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.register-page .action-panel .app-button {
  background: #ffffff;
  color: #1a58c8;
  border: none;
}

.register-page .guardian-gender-grid .child-count-card {
  border-color: rgba(47, 111, 237, 0.2);
  color: var(--text-main);
}

.register-page .guardian-gender-grid .child-count-card.is-active {
  border-color: rgba(47, 111, 237, 0.7);
  box-shadow: 0 12px 24px rgba(47, 111, 237, 0.2);
  background: rgba(47, 111, 237, 0.12);
  color: var(--accent-dark);
}

.register-page .child-gender-grid .child-count-card {
  border: 2px solid rgba(220, 38, 38, 0.35);
  background: #ffffff;
  color: #b91c1c;
}

.register-page .child-gender-grid .child-count-card.is-active {
  border-color: #dc2626;
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.25);
}

.register-page .child-gender-grid .child-count-card.is-active .child-count-number,
.register-page .child-gender-grid .child-count-card.is-active .child-count-label {
  color: #ffffff;
}

.register-page .app-button:hover,
.register-page .app-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(9, 29, 68, 0.3);
}

.register-page .qr-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.register-page .qr-box {
  width: 100%;
  border-radius: 24px;
  border: 2px dashed rgba(47, 111, 237, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px;
  background: rgba(47, 111, 237, 0.06);
  animation: qrGlow 2.6s ease-in-out infinite;
  overflow: hidden;
}

.register-page .qr-square {
  width: 100%;
  max-width: 500px;
}

.register-page .qr-card {
  padding: 20px;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  overflow: hidden;
}

.register-page .qr-inner {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  background: repeating-linear-gradient(
    45deg,
    rgba(47, 111, 237, 0.2),
    rgba(47, 111, 237, 0.2) 10px,
    rgba(255, 255, 255, 0.9) 10px,
    rgba(255, 255, 255, 0.9) 20px
  );
  display: grid;
  place-items: center;
}

.register-page .qr-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 16px;
  display: block;
}

.register-page .qr-title {
  font-weight: 700;
  color: var(--accent-dark);
  text-align: center;
  font-size: 1rem;
}

.register-page .qr-name {
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
}

.register-page .qr-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 111, 237, 0.2);
  background: #ffffff;
  font-size: 0.9rem;
}

.register-page .qr-account-label {
  color: var(--text-muted);
  font-weight: 600;
}

.register-page .qr-account-value {
  font-weight: 700;
  color: var(--text-main);
}

.register-page .qr-copy-button {
  border: none;
  background: rgba(47, 111, 237, 0.12);
  color: var(--accent-dark);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.register-page .qr-copy-button:hover,
.register-page .qr-copy-button:focus {
  transform: scale(1.05);
  background: rgba(47, 111, 237, 0.2);
}

.register-page .qr-copy-button.is-copied {
  background: rgba(34, 197, 94, 0.2);
  color: #166534;
}

.register-page .qr-download {
  border-radius: 999px;
  padding: 6px 12px;
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #334155;
  font-weight: 700;
}

.register-page .qr-label {
  font-weight: 700;
  color: var(--accent-dark);
}

.register-page .receipt-card {
  position: relative;
  overflow: hidden;
}

.register-page .receipt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47, 111, 237, 0.08), transparent 50%);
  pointer-events: none;
}

.register-page .receipt-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.register-page .receipt-subtitle {
  color: var(--text-muted);
  margin: 0;
}

.register-page .receipt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.12);
  color: var(--accent-dark);
  font-weight: 600;
}

.register-page .receipt-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 111, 237, 0.12);
}

.register-page .receipt-item .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.register-page .receipt-item .value {
  font-weight: 600;
}

.register-page .receipt-note {
  padding: 14px 18px;
  border-left: 4px solid var(--accent-warm);
  background: rgba(242, 153, 74, 0.12);
  border-radius: 12px;
  color: #7c4a1d;
}

@keyframes fieldPop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes qrGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(47, 111, 237, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(47, 111, 237, 0.35);
  }
}

@media (max-width: 992px) {
  .register-page .register-header {
    padding: 16px;
  }

  .register-page .action-panel {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .register-page .app-form {
    padding: 22px;
  }

  .register-page .register-step {
    width: 100%;
    justify-content: center;
  }

  .register-page .action-panel {
    background: linear-gradient(135deg, #1f6cf4 0%, #1a58c8 100%);
  }
}

.register-page .same-age-switch .form-check-input:checked {
  background-color: #dc2626;
  border-color: #dc2626;
}

.register-page .same-age-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.25);
}

.register-page .child-group.is-shared {
  opacity: 0.65;
}

.register-page .child-group.is-shared .form-label {
  color: rgba(100, 116, 139, 0.9);
}

.register-page .child-group.is-shared .form-control,
.register-page .child-group.is-shared .form-select {
  background-color: #f1f5f9;
  color: #64748b;
}
.register-page .panel-hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  min-height: 1.2rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.register-page .panel-hint.is-visible {
  opacity: 1;
}
