body {
  background:
    radial-gradient(circle at top left, rgba(255, 196, 87, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(185, 28, 28, 0.18), transparent 24%),
    linear-gradient(180deg, #fffdf6 0%, #fff8ea 36%, #f5f1e8 100%);
  color: #243447;
  font-family: 'Space Grotesk', sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(185, 28, 28, 0.15);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
  font-family: 'Fraunces', serif;
}

.card {
  border: none;
}

.bg-burgundy {
  background-color: #b91c1c !important;
}

.text-burgundy {
  color: #b91c1c !important;
}

.btn-burgundy {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}

.btn-burgundy:hover,
.btn-burgundy:focus {
  background: #991b1b;
  color: #fff;
  border-color: #991b1b;
}

.btn-outline-burgundy {
  color: #b91c1c;
  border-color: #b91c1c;
}

.btn-outline-burgundy:hover,
.btn-outline-burgundy:focus {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}

.glass-nav {
  background: rgba(18, 28, 43, 0.72) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav .navbar-brand {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.page-shell {
  position: relative;
}

.page-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(255, 196, 87, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(185, 28, 28, 0.12), transparent 24%);
  z-index: -1;
}

.soft-panel,
.hero-panel,
.section-card,
.card {
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.soft-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.content-hero {
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(185, 28, 28, 0.92), rgba(127, 29, 29, 0.92)),
    #0f172a;
  color: #fff;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.content-hero .hero-title,
.content-hero h1,
.content-hero h2,
.content-hero h3 {
  color: #fff;
}

.content-hero .text-muted,
.content-hero p {
  color: rgba(255, 255, 255, 0.86) !important;
}

.content-hero .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.34);
}

.themed-input,
.themed-input:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: none;
}

.table-theme {
  border-collapse: separate;
  border-spacing: 0 0.75rem;
}

.table-theme thead th {
  border: 0;
  color: #516173;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-theme tbody tr {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.table-theme tbody td {
  border-top: 0;
  border-bottom: 0;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.theme-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.theme-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

.theme-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #b91c1c);
}

#scan-result {
  min-height: 80px;
}

.landing-page {
  overflow: hidden;
}

.landing-nav {
  background: rgba(18, 28, 43, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-nav .navbar-brand {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-logo {
  width: 2.4rem;
  height: 2.4rem;
}

.landing-page .section-shell {
  position: relative;
  z-index: 1;
}

.hero-panel {
  position: relative;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(185, 28, 28, 0.92), rgba(127, 29, 29, 0.92)),
    #0f172a;
  color: #fff;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.hero-panel::before,
.hero-panel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel::before {
  width: 240px;
  height: 240px;
  top: -90px;
  right: -70px;
}

.hero-panel::after {
  width: 180px;
  height: 180px;
  bottom: -80px;
  left: -40px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 5rem);
  line-height: 0.98;
  font-weight: 900;
  margin: 1rem 0 1.1rem;
}

.hero-title span {
  display: block;
  color: #ffcf6c;
}

.hero-lead {
  max-width: 42rem;
  font-size: 1.06rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions .btn {
  border-radius: 999px;
  padding-inline: 1.35rem;
  padding-block: 0.8rem;
  font-weight: 700;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.media-shell {
  position: relative;
  z-index: 2;
}

.photo-card {
  position: relative;
  min-height: 430px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.24), rgba(15, 23, 42, 0.82));
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 430px;
}

.photo-card .photo-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.96));
  color: #fff;
}

.floating-stat {
  position: absolute;
  border-radius: 20px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.floating-stat.stat-top {
  top: 22px;
  left: -18px;
}

.floating-stat.stat-bottom {
  right: -12px;
  bottom: 24px;
}

.section-card {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.banner-carousel .carousel-item img,
.gallery-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-carousel .carousel-item {
  min-height: 420px;
  background: #0f172a;
}

.banner-carousel .carousel-caption {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem;
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.94));
}

.banner-carousel .carousel-caption h5 {
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  font-weight: 800;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.82rem;
  margin: 0.25rem 0.35rem 0 0;
}

.gallery-frame {
  position: relative;
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #0f172a);
}

.gallery-frame .gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.95));
  color: #fff;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mini-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 20px;
}

.soft-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.landing-placeholder-featured {
  min-height: 430px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.32), rgba(15, 23, 42, 0.92)),
    url('https://images.unsplash.com/photo-1547347298-4074fc3086f0?auto=format&fit=crop&w=1200&q=80') center/cover;
}

.landing-placeholder-mini {
  min-height: 160px;
  border-radius: 20px;
  overflow: hidden;
}

.landing-placeholder-mini-1 {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.55), rgba(15, 23, 42, 0.86)),
    url('https://images.unsplash.com/photo-1530549387789-4c1017266635?auto=format&fit=crop&w=900&q=80') center/cover;
}

.landing-placeholder-mini-2 {
  background:
    linear-gradient(135deg, rgba(185, 28, 28, 0.58), rgba(15, 23, 42, 0.86)),
    url('https://images.unsplash.com/photo-1505428038823-ef8f1b9d0cba?auto=format&fit=crop&w=900&q=80') center/cover;
}

.admin-media-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
}

@media (max-width: 991.98px) {
  .floating-stat {
    display: none;
  }

  .hero-panel,
  .photo-card {
    border-radius: 24px;
  }

  .banner-carousel .carousel-item {
    min-height: 300px;
  }

  .content-hero {
    border-radius: 24px;
  }

  .soft-panel,
  .hero-panel,
  .section-card {
    border-radius: 20px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .photo-card,
  .photo-card img {
    min-height: 320px;
  }

  .gallery-frame {
    min-height: 280px;
  }

  .banner-carousel .carousel-caption {
    padding: 1.2rem;
  }

  .banner-carousel .carousel-caption h5 {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
  }

  .banner-carousel .carousel-caption p {
    font-size: 0.95rem;
  }

  .section-kicker {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .eyebrow {
    font-size: 0.7rem;
    padding: 0.4rem 0.85rem;
  }

  .hero-chip {
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
  }

  .content-hero .btn {
    font-size: 0.9rem;
    padding-inline: 1.1rem;
    padding-block: 0.65rem;
  }

  .hero-actions .btn {
    font-size: 0.9rem;
    padding-inline: 1.1rem;
    padding-block: 0.65rem;
  }

  .display-5 {
    font-size: 2.2rem;
  }

  .h1 {
    font-size: 1.6rem;
  }

  .h3 {
    font-size: 1.2rem;
  }

  .h4 {
    font-size: 1.05rem;
  }

  .h5 {
    font-size: 0.95rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .landing-placeholder-featured,
  .landing-placeholder-mini {
    min-height: 160px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 0.95rem;
  }

  .content-hero {
    border-radius: 20px;
    padding: 1.25rem !important;
  }

  .soft-panel {
    border-radius: 18px;
    padding: 1.1rem !important;
  }

  .hero-panel {
    border-radius: 20px;
    padding: 1.5rem 1.25rem !important;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.05;
  }

  .hero-lead {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .photo-card,
  .photo-card img {
    min-height: 260px;
  }

  .gallery-frame {
    min-height: 220px;
  }

  .banner-carousel .carousel-item {
    min-height: 240px;
  }

  .banner-carousel .carousel-caption {
    padding: 1rem;
  }

  .banner-carousel .carousel-caption h5 {
    font-size: 1.05rem;
  }

  .banner-carousel .carousel-caption p {
    font-size: 0.85rem;
  }

  .feature-pill {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }

  .section-kicker {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }

  .eyebrow {
    font-size: 0.68rem;
    padding: 0.35rem 0.75rem;
  }

  .hero-chip {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .content-hero .btn {
    width: 100%;
    text-align: center;
  }

  .display-5 {
    font-size: 1.8rem;
  }

  .h1 {
    font-size: 1.35rem;
  }

  .h2 {
    font-size: 1.15rem;
  }

  .h3 {
    font-size: 1.05rem;
  }

  .h4 {
    font-size: 0.98rem;
  }

  .h5 {
    font-size: 0.9rem;
  }

  .h6 {
    font-size: 0.85rem;
  }

  .navbar-brand {
    font-size: 0.95rem;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.45rem 0.6rem;
  }

  .btn {
    font-size: 0.85rem;
  }

  .btn-sm {
    font-size: 0.78rem;
  }

  .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
  }

  .form-control,
  .form-select {
    font-size: 0.9rem;
    padding: 0.55rem 0.7rem;
  }

  .badge {
    font-size: 0.78rem;
  }

  .small {
    font-size: 0.82rem;
  }

  .mini-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .mini-gallery img {
    height: 120px;
    border-radius: 14px;
  }

  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .row.g-4 {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
  }

  .table-responsive {
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 0.9rem;
  }

  .glass-nav .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .navbar-collapse {
    padding-bottom: 0.75rem;
    margin-top: 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    font-size: 0.88rem;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    background: rgba(255, 255, 255, 0.08);
  }

  .btn-link.nav-link {
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
  }

  .content-hero {
    border-radius: 16px;
    padding: 1rem !important;
  }

  .soft-panel {
    border-radius: 16px;
    padding: 1rem !important;
  }

  .hero-panel {
    border-radius: 18px;
    padding: 1.25rem 1rem !important;
  }

  .hero-title {
    font-size: clamp(1.35rem, 7vw, 1.7rem);
  }

  .hero-lead {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .photo-card,
  .photo-card img {
    min-height: 220px;
  }

  .gallery-frame {
    min-height: 180px;
  }

  .banner-carousel .carousel-item {
    min-height: 200px;
  }

  .banner-carousel .carousel-caption {
    padding: 0.85rem;
  }

  .banner-carousel .carousel-caption h5 {
    font-size: 1rem;
  }

  .banner-carousel .carousel-caption p {
    font-size: 0.8rem;
  }

  .banner-carousel .carousel-caption .btn {
    font-size: 0.78rem;
    padding: 0.4rem 0.9rem;
  }

  .feature-pill {
    font-size: 0.68rem;
    padding: 0.3rem 0.6rem;
  }

  .section-kicker {
    font-size: 0.68rem;
    padding: 0.3rem 0.6rem;
  }

  .eyebrow {
    font-size: 0.65rem;
    padding: 0.3rem 0.65rem;
  }

  .hero-chip {
    font-size: 0.75rem;
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .display-5 {
    font-size: 1.6rem;
  }

  .h1 {
    font-size: 1.2rem;
  }

  .h2 {
    font-size: 1.05rem;
  }

  .h3 {
    font-size: 0.98rem;
  }

  .h4 {
    font-size: 0.92rem;
  }

  .h5 {
    font-size: 0.85rem;
  }

  .h6 {
    font-size: 0.8rem;
  }

  .navbar-brand {
    font-size: 0.9rem;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }

  .btn {
    font-size: 0.82rem;
    padding: 0.5rem 0.9rem;
  }

  .btn-sm {
    font-size: 0.74rem;
  }

  .btn-lg {
    font-size: 0.9rem;
    padding: 0.55rem 1.1rem;
  }

  .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .form-control,
  .form-select {
    font-size: 0.85rem;
    padding: 0.5rem 0.65rem;
  }

  textarea.form-control {
    min-height: 70px;
  }

  .badge {
    font-size: 0.72rem;
    padding: 0.35em 0.55em;
  }

  .small {
    font-size: 0.78rem;
  }

  .mini-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .mini-gallery img {
    height: 100px;
    border-radius: 12px;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .row {
    --bs-gutter-x: 0.6rem;
    --bs-gutter-y: 0.6rem;
  }

  .row.g-4 {
    --bs-gutter-x: 0.7rem;
    --bs-gutter-y: 0.7rem;
  }

  .d-flex {
    flex-direction: column;
    align-items: stretch !important;
  }

  .d-flex.gap-2,
  .d-flex.gap-3 {
    gap: 0.5rem !important;
  }

  .text-lg-end {
    text-align: start !important;
  }

  .justify-content-lg-end {
    justify-content: start !important;
  }

  .table-responsive {
    font-size: 0.8rem;
  }

  #reader {
    min-height: 280px !important;
  }
}

@media (max-width: 374.98px) {
  .hero-title {
    font-size: clamp(1.2rem, 8vw, 1.4rem);
  }

  .hero-lead {
    font-size: 0.82rem;
  }

  .photo-card,
  .photo-card img {
    min-height: 190px;
  }

  .gallery-frame {
    min-height: 150px;
  }

  .banner-carousel .carousel-item {
    min-height: 170px;
  }

  .display-5 {
    font-size: 1.4rem;
  }

  .h1 {
    font-size: 1.1rem;
  }

  .btn {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
  }

  .nav-link {
    font-size: 0.78rem;
  }

  #reader {
    min-height: 240px !important;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1320px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 3.5vw, 5.5rem);
  }
}

/* ============================================
   Mobile Enhancements - Register & Gate Pages
   ============================================ */

/* Icon styling for form labels across pages */
.register-page .form-label i,
.gate-page .form-label i {
  color: #b91c1c;
  width: 1rem;
  text-align: center;
  font-size: 0.85em;
}

/* Register page: compact success details on mobile */
@media (max-width: 767.98px) {
  .register-page .success-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .register-page .detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.88rem;
    flex-wrap: wrap;
  }

  .register-page .detail-item:last-child {
    border-bottom: none;
  }

  .register-page .detail-icon {
    color: #b91c1c;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
  }

  .register-page .detail-label {
    font-weight: 600;
    min-width: 5.5rem;
    font-size: 0.82rem;
    color: #516173;
  }

  .register-page .detail-value {
    font-size: 0.82rem;
  }

  .register-page h6.mb-2.mt-3 i {
    color: #b91c1c;
  }

  .register-page #download-barcode i {
    color: #fff;
  }

  /* Register team page: compact payment review */
  .register-page #payment-review .text-muted {
    font-size: 11px !important;
  }

  .register-page #payment-review .fw-bold {
    font-size: 0.9rem;
  }

  /* Gate page: compact modal on tablet/mobile */
  .gate-page .modal-body .row.g-2.small > div {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .gate-page #reader {
    min-height: 300px !important;
  }
}

@media (max-width: 575.98px) {
  /* Scanner responsiveness */
  .gate-page #reader {
    min-height: 240px !important;
  }

  /* Gate modal: 1-column info on very small screens */
  .gate-page .modal-body .row.g-2.small {
    --bs-gutter-x: 0;
  }

  .gate-page .modal-body .row.g-2.small > div {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .gate-page .modal-body .row.g-2.small > div:last-child {
    border-bottom: none;
  }

  /* Gate modal image */
  .gate-page #modal-photo {
    max-height: 200px !important;
  }

  /* Gate page: instruction icons */
  .gate-page .theme-list li i {
    color: #b91c1c;
    width: 1rem;
    text-align: center;
  }

  /* Register pages: ensure forms stack and inputs are comfortable */
  .register-page .form-control,
  .register-page .form-select {
    font-size: 0.85rem;
    padding: 0.5rem 0.65rem;
  }

  .register-page .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  /* Team member row: stack on very small screens */
  .register-page .team-member-row .row.g-3 > [class*="col-md"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Payment review cards stack */
  .register-page #payment-review .row.g-2 > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .register-page #payment-review .row.g-2 > .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 374.98px) {
  .gate-page #reader {
    min-height: 200px !important;
  }

  .gate-page #modal-photo {
    max-height: 160px !important;
  }
}

@keyframes floatY {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.floaty {
  animation: floatY 6s ease-in-out infinite;
}
