body {
  margin: 0;
  background: #111; /* just in case something shows behind */
  overflow-x: hidden;
}

.hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-inner{
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}

.hero-copy{
  border-left: 3px solid rgba(255,255,255,.4);
  padding-left: 32px;
  max-width: 560px;
}

.hero-title{
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-cta{
  display: inline-block;
  background: #e50914;
  color: #fff;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 8px 22px rgba(229,9,20,.4);
}

.hero-logo{ justify-self: center; align-self: center; }
.hero-logo img{
  width: 100%;
  height: auto;
  max-width: 700px;
  filter: drop-shadow(0 10px 25px #111);
}

@media (max-width: 992px){
  .hero-inner{ grid-template-columns: 1fr; text-align: center; }
  .hero-copy{ border: 0; padding: 0; margin-bottom: 2rem; }
  .hero-logo img{ max-width: 320px; }
}

/* Transparent navbar floating over hero */
.nav-over-hero {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: #111; /* faint tint */
  backdrop-filter: blur(8px);   /* subtle glass blur */
  border-top: 4px solid #e50914;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-over-hero.scrolled {
  background: #111;
  backdrop-filter: blur(12px);
}

/* Links inside */
.nav-over-hero .nav-link {
  color: #fff;
  font-weight: 500;
}

.nav-over-hero .nav-link:hover,
.nav-link.active {
  color: #e50914 !important;
  font-weight: 600;
  border-bottom: 2px solid #e50914;
}

.dropdown-item.active {
  color: #fff;
  background-color: #e50914 !important;
}

/* Optional: darker background on mobile for contrast */
@media (max-width: 991px) {
  .nav-over-hero {
    background: #111;
  }
}

.lang-switch{
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;   /* vertical stack */
  align-items: center;
  gap: 10px;
  z-index: 1000;
}

.lang-btn{
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.lang-switch .lang-btn img{
  width: 24px !important;   /* clamp size hard */
  height: auto !important;
  aspect-ratio: 4/3;
  border-radius: 4px;
  box-shadow: 0 2px 8px #111;
  display: block;
}

.lang-btn:hover img{
  transform: scale(1.1);
  opacity: .9;
}

.lang-btn.is-active img{
  outline: 2px solid #e50914;
  outline-offset: 2px;
}


/* =========================
   GLOBAL FULL PAGE BLUR
========================= */

body.blur-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/static/img/logo.50bc82cafc8f.png") center / cover no-repeat;
  filter: blur(40px) brightness(0.6);
  transform: scale(1.2);
  z-index: -1;
}

.success-check {
  font-size: 42px;
  color: #198754;
  line-height: 1;
}

.registration-sheet {
  position: relative;
  background: #fff;
  color: #111;
  overflow: hidden;
}

.registration-watermark {
  position: absolute;
  inset: 0;
  background: url("/static/img/sigil.d65655f8091e.png") center 58% / 380px no-repeat;
  opacity: 0.05;
  filter: grayscale(100%) brightness(1.25);
  pointer-events: none;
  z-index: 0;
}

.registration-sheet .card-body {
  position: relative;
  z-index: 1;
}

.registration-sheet .email-note {
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
  opacity: 0.85;
}

.sheet-header {
  position: relative;
}

.sheet-header h1 {
  font-weight: 700;
}

.sheet-header p {
  font-size: 0.95rem;
}

.sheet-header::before {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #111 0%, #111 70%, #7a0d0d 100%);
  margin-bottom: 1.25rem;
  border-radius: 999px;
}

.registration-id-box {
  min-width: 180px;
}

.registration-id {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status-banner {
  margin-bottom: 8px !important;
}

.status-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border-top: 1px solid #ccc !important;
  background: #111;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-panel {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 1rem;
  padding: 1.25rem;
  background: #fff;
}

.section-title {
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c757d;
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #6c757d;
  font-weight: 600;
  min-width: 140px;
}

.info-value {
  text-align: right;
  font-weight: 500;
}

.important-note p {
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-value {
    text-align: left;
  }
}

.no-print {
  margin-top: 1.5rem;
}

.no-print .btn {
  min-width: 180px;
  transition: all 0.2s ease;
}

.no-print .btn-outline-secondary:hover {
  background-color: #b30000;
  border-color: #b30000;
  color: #fff;
}

.no-print .btn-dark:hover {
  background-color: #8f0000;
  border-color: #8f0000;
  color: #fff;
}

@media print {
  @page {
    size: A4;
    margin: 8mm;
  }

  html,
  body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.blur-bg::before {
    display: none !important;
    content: none !important;
  }

  nav,
  .navbar,
  footer,
  .footer,
  .lang-switch,
  .language-switcher,
  .no-print {
    display: none !important;
  }

  main {
    padding: 0 !important;
    margin: 0 !important;
  }

  .container,
  .row.justify-content-center,
  .col-lg-10,
  .col-xl-8 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .registration-sheet,
  .card {
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  .card-body {
    padding: 14px !important;
  }

  .sheet-header {
    border-bottom: 1px solid #ddd !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
  }

  .sheet-header::before {
    width: 56px !important;
    height: 3px !important;
    margin-bottom: 0.6rem !important;
  }

  .sheet-header h1 {
    font-size: 1.9rem !important;
    margin-bottom: 0.35rem !important;
  }

  .sheet-header p {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
  }

  .registration-id-box {
    min-width: 150px !important;
  }

  .registration-id {
    font-size: 1rem !important;
  }

  .status-banner {
    margin-bottom: 12px !important;
  }

  .status-pill {
    padding: 0.25rem 0.7rem !important;
    font-size: 0.68rem !important;
  }

  .row.g-4 {
    --bs-gutter-x: 12px !important;
    --bs-gutter-y: 12px !important;
  }

  .row.g-4 > .col-md-6 {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    display: block !important;
  }

  .info-panel {
    padding: 0.85rem !important;
    border-radius: 0.75rem !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .section-title {
    font-size: 1rem !important;
    margin-bottom: 0.6rem !important;
    letter-spacing: 0.05em !important;
  }

  .info-row {
    padding: 0.42rem 0 !important;
    gap: 0.75rem !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .info-label,
  .info-value {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
  }

  .important-note {
    border-top: 1px solid #ddd !important;
    padding-top: 12px !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .important-note h3 {
    font-size: 0.9rem !important;
    margin-bottom: 0.35rem !important;
  }

  .important-note p {
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.35rem !important;
  }

  .registration-sheet .email-note {
    font-size: 0.8rem !important;
    margin-bottom: 0 !important;
  }

  .registration-watermark {
    opacity: 0.25;
    background-size: 240px;
    filter: grayscale(100%) brightness(1.2);
  }
  .qr-code-img {
    width: 56px !important;
    height: 56px !important;
    padding: 2px !important;
  }

  .qr-caption {
    font-size: 0.6rem !important;
    margin-top: 0.1rem !important;
  }
}

.sheet-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 4px;
}

.qr-box {
  display: inline-block;
}

.qr-code-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  padding: 4px;
}

.qr-caption {
  font-size: 0.72rem;
  margin-top: 0.35rem;
}

.social-footer {
  background: #0a0a0a;
  color: #fff;
  padding: 3rem 0 1.75rem;
}

.social-footer-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.social-footer-divider {
  width: 120px;
  height: 2px;
  background: #e50914;
  margin: 0 auto 2.5rem auto;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #e50914;
  color: #e50914;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-icon:hover {
  background: #e50914;
  color: #fff;
  transform: translateY(-3px) scale(1.04);
}

.social-footer-copy {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.social-footer-note {
  margin-top: 1rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  text-align: center;
}



@media (max-width: 767.98px) {
  .social-footer {
    padding: 2.5rem 0 1.5rem;
  }

  .social-footer-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
  }

  .social-footer-divider {
    width: 120px;
    height: 2px;
    background: #e50914;
    margin: 0 auto 2.5rem auto;
  }

  .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }

  .social-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #111;
    border: 2px solid #e50914;
    color: #e50914;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.25s ease;
  }

  .social-icon:hover {
  background: #e50914;
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  }
}


.about-page {
  position: relative;
}

.about-hero {
  max-width: 900px;
}

.about-kicker {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
}

.about-title {
  font-size: clamp(2.2rem, 4vw + 1rem, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
}

.about-lead {
  max-width: 760px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.about-panel {
  background: rgba(17, 17, 17, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid #e50914;
  border-radius: 1.25rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.about-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.about-panel p,
.about-panel li {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.about-list {
  padding-left: 1.2rem;
}

.about-list li {
  margin-bottom: 0.35rem;
}

.about-mini-card {
  height: 100%;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-mini-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  color: #fff;
}

.about-closing {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.about-motto {
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
}

.about-closing-text {
  color: rgba(255, 255, 255, 0.75);
}

/* Remove blue flash on click */
.dropdown-item:focus,
.dropdown-item:active {
    background-color: transparent !important;
    color: #fff !important;
}

/* Optional: keep hover nice */
.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Your active state (red theme) */
.dropdown-item.active {
    background-color: rgba(255, 0, 0, 0.15);
    color: #ff3b3b;
}

.category-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  height: 100%;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.category-item strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.category-item:hover {
  background: rgba(229, 9, 20, 0.10);
  border-color: rgba(229, 9, 20, 0.25);
  transform: translateY(-2px);
}

.about-closing {
  max-width: 700px;
  margin: 3rem auto 0;
  opacity: 0.85;
}

.meet-meta {
  color: rgba(255, 255, 255, 0.72);
}

.meet-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.meet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.meet-card-title {
  font-size: 1.7rem;
  font-weight: 700;
}

.meet-status-badge {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.meet-card-actions .btn {
  min-width: 160px;
}

button.active {
  border-color: #e50914 !important;
  background-color: #e50914 !important;
  color: #fff !important;
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: block;
}

.meet-card-link {
  display: block;
}

.meet-card-link:hover,
.meet-card-link:focus {
  text-decoration: none;
  color: inherit;
}

.meet-meta {
  color: rgba(255, 255, 255, 0.72);
}

.meet-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.meet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.meet-card-title {
  font-size: 1.7rem;
  font-weight: 700;
}

.meet-status-badge {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.meet-card-cta {
  display: inline-block;
  min-width: 160px;
  text-align: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 0.375rem;
  color: #fff;
  font-size: 0.875rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.meet-card:hover .meet-card-cta {
  background-color: rgba(229, 9, 20, 0.15);
  border-color: #e50914;
}

.meet-card-link:focus .meet-card {
  box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.25);
}

.staff-card {
  background: rgba(17, 17, 17, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid #e50914;
  border-radius: 1.25rem;
  padding: 1.5rem;
  height: 100%;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.staff-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.staff-photo,
.staff-photo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid rgba(229, 9, 20, 0.65);
}

.staff-photo {
  object-fit: cover;
  display: block;
}

.staff-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    145deg,
    rgba(229, 9, 20, 0.18),
    rgba(255, 255, 255, 0.03)
  );

  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;

  box-shadow: 0 0 18px rgba(229, 9, 20, 0.18);
}

.staff-role {
  color: #e50914;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.staff-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.staff-description {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  font-size: 0.95rem;
}

.staff-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.staff-social:hover {
  color: #ff3b3b;
}

.staff-social-muted {
  opacity: 0.65;
}

/* =========================
   WRPF REGISTRATION FORM
========================= */

.blur-bg .form-control,
.blur-bg .form-select {
  background-color: rgba(17, 17, 17, 0.86) !important;
  color: #fff !important;
  border: 1px solid rgba(229, 9, 20, 0.45) !important;
  border-radius: 0.75rem;
}

.blur-bg .form-control:focus,
.blur-bg .form-select:focus {
  background-color: rgba(17, 17, 17, 0.96) !important;
  color: #fff !important;
  border-color: #e50914 !important;
  box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.25) !important;
}

.blur-bg .form-control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* Custom select styling */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: rgba(17, 17, 17, 0.92) !important;
  color: #fff !important;
}

.form-select option {
  background: #111 !important;
  color: #fff !important;
}

.form-select option:hover,
.form-select option:checked,
.form-select option:focus {
  background: #e50914 !important;
  color: #fff !important;
}

/* Date picker icon */
.blur-bg input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* Checkbox */
.blur-bg .form-check-input {
  background-color: rgba(17, 17, 17, 0.9);
  border-color: rgba(229, 9, 20, 0.65);
}

.blur-bg .form-check-input:checked {
  background-color: #e50914;
  border-color: #e50914;
}

/* Submit button */
.blur-bg .btn-danger {
  background-color: #e50914;
  border-color: #e50914;
  border-radius: 0.75rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(229, 9, 20, 0.28);
}

.blur-bg .btn-danger:hover {
  background-color: #b8000a;
  border-color: #b8000a;
}


/* =========================
   CHOICES.JS WRPF THEME
========================= */

.choices {
  margin-bottom: 0;
}

.choices__inner {
  background-color: rgba(17, 17, 17, 0.92) !important;
  border: 1px solid rgba(229, 9, 20, 0.45) !important;
  border-radius: 0.75rem !important;
  color: #fff !important;
  min-height: 44px !important;
  padding: 0.45rem 0.75rem !important;
}

.choices[data-type*=select-one] .choices__inner {
  padding-bottom: 0.45rem !important;
}

.choices__list--single {
  padding: 0 !important;
}

.choices__item {
  color: #fff !important;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
  background-color: #111 !important;
  border: 1px solid rgba(229, 9, 20, 0.65) !important;
  border-radius: 0.75rem !important;
  overflow: hidden !important;
  margin-top: 0.35rem !important;
}

.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
  background-color: #111 !important;
  color: #fff !important;
  padding: 0.75rem 1rem !important;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background-color: #e50914 !important;
  color: #fff !important;
}

.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
  border-color: #e50914 !important;
  box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.25) !important;
}

.choices[data-type*=select-one]::after {
  border-color: #fff transparent transparent transparent !important;
}

.choices[data-type*=select-one].is-open::after {
  border-color: transparent transparent #fff transparent !important;
}

.blur-bg input[type="date"] {
  color-scheme: dark;
  accent-color: #e50914;
}

.blur-bg input[type="date"] {
  background-color: rgba(17, 17, 17, 0.92) !important;
  color: #fff !important;
  border: 1px solid rgba(229, 9, 20, 0.45) !important;
}

.blur-bg input[type="date"]:focus {
  border-color: #e50914 !important;
  box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.25) !important;
}

.blur-bg input[type="date"]::-webkit-calendar-picker-indicator {
  filter: brightness(0) saturate(100%) invert(13%) sepia(95%) saturate(7486%) hue-rotate(356deg) brightness(92%) contrast(117%);
  cursor: pointer;
  opacity: 1;
}

.disabled-social {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.selected-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.selected-discipline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e50914;
  color: white;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}

.remove-discipline,
.remove-division {
  border: none;
  background: transparent;
  color: white;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

#disciplineSelect {
  background-color: #111;
  color: #fff;
  border: 1px solid #e50914;
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

#disciplineSelect:focus {
  border-color: #ff1a1a;
  box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.25);
  outline: none;
}

.selected-discipline-badge {
  box-shadow: 0 12px 28px rgba(229, 9, 20, 0.35);
}

#disciplineSelect:focus,
#disciplineSelect:active {
  border-color: #e50914 !important;
  box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.25) !important;
  outline: none !important;
}

.payment-info-box {
  max-width: 520px;
  background: rgba(17, 17, 17, 0.85);
  border: 1px solid rgba(229, 9, 20, 0.6);
  border-radius: 14px;
  padding: 1rem;
  color: #fff;
}

.payment-info-box summary {
  cursor: pointer;
  font-weight: 700;
  color: rgba(229, 9, 20, 0.6);
}

.payment-info-content {
  margin-top: 1rem;
  color: #f8f9fa;
  font-size: 0.95rem;
}

.payment-info-box:not([open]) {
  padding: 0.85rem 1rem;
}

.registration-closed-box {
    display: flex;
    align-items: center;
    gap: 0.7rem;

    padding: 1rem 1.3rem;

    background: rgba(18, 18, 18, 0.92);

    border: 1px solid rgba(229, 9, 20, 0.8);
    border-radius: 14px;

    color: #b1121b;

    font-size: 1rem;
    font-weight: 700;
}

.registration-closed-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;

    background: #b1121b;
    border-radius: 50%;
}

/* =========================
   REGISTERED ATHLETES
========================= */

.athletes-heading h2 {
    font-weight: 700;
}


/* =========================
   TABLE CARD
========================= */

.athlete-table-card {
    background: rgba(18, 18, 18, 0.92);

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25);
}


/* =========================
   DIVISION TABS
========================= */

.division-tabs {
    display: flex;
    align-items: stretch;

    width: 100%;

    overflow-x: auto;

    margin: 0;
    padding: 0;

    background: rgba(18, 18, 18, 0.97);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    scrollbar-width: thin;
}

.division-tabs::-webkit-scrollbar {
    height: 6px;
}

.division-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.division-tab {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0.5rem;

    padding: 17px 20px;

    background: transparent;

    color: rgba(255, 255, 255, 0.65);

    border: 0;
    border-bottom: 3px solid transparent;

    border-radius: 0;

    font-weight: 700;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.division-tab:hover {
    background: rgba(255, 255, 255, 0.04);

    color: #fff;
}

.division-tab.active {
    background: rgba(229, 9, 20, 0.08);

    color: #fff;

    border-bottom-color: #e50914;
}


/* =========================
   DIVISION COUNTER
========================= */

.division-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 24px;
    height: 24px;

    padding: 0 7px;

    background: rgba(255, 255, 255, 0.1);

    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 700;

    line-height: 1;
}

.division-tab.active .division-tab-count {
    background: rgba(229, 9, 20, 0.28);
}


/* =========================
   ATHLETE TABLE
========================= */

.athlete-table {
    margin-bottom: 0 !important;

    color: #fff !important;

    --bs-table-bg: transparent;
    --bs-table-color: #fff;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.025);
    --bs-table-striped-color: #fff;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.045);
    --bs-table-hover-color: #fff;
}

.athlete-table > :not(caption) > * > * {
    background-color: transparent !important;

    color: #fff !important;

    border-color:
        rgba(255, 255, 255, 0.08) !important;
}


/* =========================
   TABLE HEADER
========================= */

.athlete-table thead th {
    background: rgba(255, 255, 255, 0.055) !important;

    color: #fff !important;

    padding: 15px 18px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.12) !important;

    font-weight: 700;

    white-space: nowrap;
}


/* =========================
   TABLE BODY
========================= */

.athlete-table tbody td {
    background: transparent !important;

    color: #fff !important;

    padding: 14px 18px;

    vertical-align: middle;
}

.athlete-table tbody tr {
    transition: background-color 0.15s ease;
}

.athlete-table tbody tr:hover > td {
    background: rgba(255, 255, 255, 0.04) !important;
}

.athlete-name {
    font-weight: 600;
}

.athlete-number {
    opacity: 0.65;
}


/* =========================
   BADGES
========================= */

.weight-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px 10px;

    border-radius: 999px;

    font-size: 0.85rem;
    font-weight: 600;

    white-space: nowrap;
}

.weight-badge {
    background: rgba(255, 255, 255, 0.1);
}

.status-badge.tested {
    background: rgba(40, 167, 69, 0.22);

    color: #fff;
}

.status-badge.untested {
    background: rgba(255, 193, 7, 0.22);

    color: #fff;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 767.98px) {

    .athlete-table-card {
        border-radius: 12px;
    }

    /* Categories scroll independently */
    .division-tabs {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .division-tab {
        flex: 0 0 auto;
        padding: 13px 15px;
        font-size: 0.85rem;
    }

    .division-tab-count {
        min-width: 21px;
        height: 21px;
        padding: 0 6px;
        font-size: 0.7rem;
    }

    /* Table stays wide and scrolls horizontally */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .athlete-table {
        min-width: 850px;
    }

    .athlete-table thead th,
    .athlete-table tbody td {
        padding: 11px 13px;
        font-size: 0.88rem;
    }

    .athlete-name {
        min-width: 180px;
    }

    .athlete-table th:nth-child(6),
    .athlete-table td:nth-child(6) {
        min-width: 260px;
    }
}

/* =========================
   MAIN MEET NAVIGATION
========================= */
.meet-navigation {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

.meet-nav-tab {
    flex: 1;
    padding: 16px 20px;
    background: rgba(18, 18, 18, 0.85);
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.meet-nav-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.meet-nav-tab.active {
    color: #fff;
    border-bottom-color: #e50914;
    background: rgba(229, 9, 20, 0.12);
}

.meet-nav-tab:first-child {
    border-radius: 12px 0 0 0;
}

.meet-nav-tab:last-child {
    border-radius: 0 12px 0 0;
}

@media (max-width: 767.98px) {
    .meet-nav-tab {
        padding: 13px 10px;
        font-size: 0.9rem;
    }
}

.result-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.result-filters .form-select {
    min-width: 0;
    background-color: #1c1c1c;
    color: #fff;
    border: 1px solid #444;
    padding: 12px;
    border-radius: 8px;
}

.result-filters .form-select:focus {
    border-color: #e50914;
    box-shadow: 0 0 0 0.15rem rgba(229, 9, 20, 0.2);
}

@media (max-width: 1199px) {
    .result-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .result-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .result-filters .form-select {
        width: 100%;
        min-width: 0;
        padding: 11px 30px 11px 10px;
        font-size: 0.8rem;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    #resultDivisionFilter,
    #resultWeightFilter {
        grid-column: 1 / -1;
    }
}

.results-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .results-desktop {
        display: none;
    }

    .results-mobile {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .result-card {
        background: #1b1b1b;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        padding: 16px;
        color: #fff;
    }

    .result-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
    }

    .result-card-header > div:first-child {
        min-width: 0;
        flex: 1;
    }

    .result-card-place {
        display: inline-block;
        color: #e50914;
        font-size: 0.8rem;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .result-card-name {
        font-size: 1.05rem;
        font-weight: 700;
        margin-bottom: 6px;
        overflow-wrap: anywhere;
    }

    .result-card-meta {
        color: #aaa;
        font-size: 0.78rem;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .result-card-total {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        flex-shrink: 0;
    }

    .result-card-total strong {
        font-size: 1.25rem;
        white-space: nowrap;
    }

    .result-card-total span {
        color: #aaa;
        font-size: 0.7rem;
    }

    .result-card-lifts {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 16px;
        padding-top: 14px;
        border-top: 1px solid #383838;
    }

    .result-card-lifts > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .result-card-lifts span {
        color: #aaa;
        font-size: 0.78rem;
    }

    .result-card-lifts strong {
        font-size: 0.95rem;
    }

    .result-card-details {
        margin-top: 14px;
        border-top: 1px solid #383838;
        padding-top: 12px;
    }

    .result-card-details summary {
        color: #ddd;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
    }

    .result-attempts {
        margin-top: 12px;
    }

    .result-attempt-row {
        display: grid;
        grid-template-columns: 1.3fr repeat(3, 1fr);
        gap: 5px;
        padding: 9px 0;
        border-bottom: 1px solid #333;
        font-size: 0.8rem;
        text-align: center;
    }

    .result-attempt-row span:first-child {
        text-align: left;
        font-weight: 600;
    }
}

.attempt-success {
    color: #4caf50;
    font-weight: 600;
}

.attempt-failed {
    color: #f44336;
    font-weight: 600;
}

.result-card-category {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.result-category-label {
    color: #aaa;
    font-size: 0.72rem;
}

@media (max-width: 575px) {
    .result-card-header {
        flex-wrap: wrap;
    }

    .result-card-total {
        margin-left: auto;
    }

    .result-card-lifts strong {
        font-size: 0.9rem;
    }
}

/* =========================
   DESKTOP RESULT ATTEMPTS
========================= */

.result-attempt-toggle {
    background: transparent;
    border: 1px solid #555;
    color: #ddd;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

.result-attempt-toggle:hover {
    border-color: #e50914;
    color: #fff;
}

.result-attempt-toggle[aria-expanded="true"] {
    border-color: #e50914;
    color: #fff;
}

.result-attempt-detail td {
    background: #202020;
    padding: 16px 24px;
}

.desktop-attempts {
    max-width: 700px;
    margin: 0 auto;
}

.desktop-attempts .result-attempt-row {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #383838;
    text-align: center;
}

.desktop-attempts .result-attempt-row span:first-child {
    text-align: left;
    font-weight: 600;
}

.result-search .form-control {
    width: 100%;
    background-color: #1c1c1c;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px 16px;
}

.result-search .form-control::placeholder {
    color: #999;
}

.result-search .form-control:focus {
    background-color: #1c1c1c;
    color: #fff;
    border-color: #e50914;
    box-shadow: 0 0 0 0.15rem rgba(229, 9, 20, 0.2);
}