:root {
  --brand-green: #0f6b33;
  --brand-blue: #0d3b8c;
  font-size: 18px;
}

body {
  font-size: 1rem;
}

.navbar-brand {
  font-weight: 700;
}

.hero-image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .hero-image {
    height: 280px;
  }
}

.text-brand-blue {
  color: var(--brand-blue);
}

.text-brand-green {
  color: var(--brand-green);
}

.btn-lg {
  padding: 0.75rem 1.25rem;
  font-size: 1.15rem;
}

.btn-lg:disabled {
  opacity: 0.65;
}

.form-control-lg,
.form-select-lg {
  font-size: 1.05rem;
}

.has-error .form-control,
.has-error .form-select {
  border-color: #dc3545;
}

.has-error .form-control:focus,
.has-error .form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.login-badge {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-blue));
  font-size: 1.5rem;
}

:root {
  --ink: #1a1f24;
  --muted: #5b6570;
  --page-bg: #f5f7f6;
  --surface: #ffffff;
  --border: #d8dde3;
  --slate: #5b7290;
}

.landing-page {
  background-color: var(--page-bg);
  color: var(--ink);
}

.landing-hero {
  position: relative;
}

.landing-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(15, 36, 33, 0.75), rgba(15, 36, 33, 0));
  padding: 1.5rem;
}

.landing-hero-overlay h1 {
  font-family: "Anton", sans-serif;
  color: #fff;
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .landing-hero-overlay h1 {
    font-size: 2.75rem;
  }
}

.raffle-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.raffle-card:hover {
  border-color: #c5ccd6;
  box-shadow: 0 4px 14px rgba(26, 31, 36, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .raffle-card {
    transition: none;
  }
}

.raffle-card-banner-wrap {
  aspect-ratio: 3 / 4;
  max-height: 280px;
  background: #eef1f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.raffle-card-banner {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.raffle-card-body {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.raffle-card-prize {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.raffle-card-meta {
  font-size: 0.875rem;
  color: var(--muted);
}

.raffle-card-winner {
  font-size: 0.95rem;
}

.raffle-card-cta {
  margin-top: auto;
  min-height: 44px;
  background-color: var(--brand-green);
  color: #fff;
  font-weight: 600;
  border: none;
}

.raffle-card-cta:hover {
  background-color: #0c5a2a;
  color: #fff;
}

.raffle-card-link {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.raffle-card-link:hover {
  text-decoration: underline;
}

.raffle-section-scheduled,
.raffle-section-closed {
  color: var(--slate);
}

.status-badge-active {
  background-color: #e6f4ea;
  color: var(--brand-green);
}

.status-badge-scheduled {
  background-color: #eef1f5;
  color: var(--slate);
}

.status-badge-ongoing {
  background-color: #e8eef8;
  color: var(--brand-blue);
}

.status-badge-closed {
  background-color: #eef1f5;
  color: #44505c;
}

/* ---- Public results list ---- */
.results-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border, #d8dde3);
  text-decoration: none;
  color: inherit;
}

.results-list-row:hover {
  color: var(--brand-green);
}

.results-list-prize {
  font-weight: 700;
  font-size: 1.1rem;
}

.results-list-meta {
  color: var(--slate, #5a6570);
  font-size: 0.95rem;
}

/* ---- Public results detail / winner ladder ---- */
.results-detail-banner-wrap {
  width: 100%;
  overflow: hidden;
  background: #eef1f5;
  border-radius: 0.5rem;
}

.results-detail-banner {
  display: block;
  width: 100%;
  max-height: min(42vh, 420px);
  object-fit: cover;
  object-position: center;
}

.results-detail-meta {
  color: var(--slate, #5a6570);
}

.winner-ladder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--brand-green);
}

.winner-ladder-step {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border, #d8dde3);
  position: relative;
}

.winner-ladder-step::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 1.15rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--brand-green);
}

.winner-ladder-place {
  min-width: 2.5rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.winner-ladder-name {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ---- Public schedule registration detail ---- */
.schedule-detail-page {
  background: var(--page-bg);
  color: var(--ink);
  min-height: 100vh;
}

.schedule-detail-shell {
  max-width: 1080px;
}

.schedule-detail-topbar {
  padding: 0.75rem 0 0;
}

.schedule-detail-back {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.schedule-detail-back:hover {
  text-decoration: underline;
}

.schedule-detail-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.schedule-detail-aside {
  width: 100%;
}

.schedule-detail-banner-wrap {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  background: #eef1f5;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-detail-banner {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.schedule-detail-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1.3;
  margin: 0.35rem 0 0.5rem;
}

.schedule-detail-prize {
  font-size: 1.05rem;
  color: var(--ink);
}

.schedule-detail-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.schedule-detail-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.15rem 1.25rem;
}

.schedule-detail-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin: 0 0 0.85rem;
}

.privacy-notice-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 0 0.85rem;
}

.privacy-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.privacy-lang-switch-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted, #5b6570);
  line-height: 1;
}

.privacy-lang-switch-label.is-active {
  color: var(--brand-green);
}

.privacy-lang-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.privacy-lang-switch-track {
  position: relative;
  width: 2.4rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #cfd6de;
  border: 1px solid var(--border, #d8dde3);
  transition: background-color 0.15s ease;
  flex-shrink: 0;
}

.privacy-lang-switch-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.privacy-lang-switch-input:checked + .privacy-lang-switch-track {
  background: var(--brand-green);
  border-color: var(--brand-green);
}

.privacy-lang-switch-input:checked + .privacy-lang-switch-track .privacy-lang-switch-thumb {
  transform: translateX(1.05rem);
}

.privacy-lang-switch-input:focus-visible + .privacy-lang-switch-track {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.privacy-lang-panel.is-hidden {
  display: none;
}

.schedule-detail-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.schedule-detail-steps li:last-child {
  margin-bottom: 0;
}

.schedule-detail-step-num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.schedule-reg-form .form-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.schedule-reg-form .form-control,
.schedule-reg-form .form-select {
  border-color: var(--border);
}

.schedule-reg-form .form-control:focus,
.schedule-reg-form .form-select:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 0.2rem rgba(15, 107, 51, 0.2);
}

.schedule-reg-form .errorlist {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  color: #dc3545;
  font-size: 0.875rem;
}

.schedule-reg-submit {
  min-height: 48px;
  font-weight: 600;
}

/* ---- Staff schedule admin detail ---- */
.schedule-admin-page {
  max-width: 1400px;
}

.schedule-admin-banner-thumb {
  max-height: 120px;
  width: auto;
}

.schedule-admin-summary dt {
  font-weight: 600;
  color: var(--muted, #5b6570);
}

.schedule-admin-registrants-card {
  position: sticky;
  top: 1rem;
}

.schedule-admin-registrants-scroll {
  max-height: min(70vh, 36rem);
  overflow: auto;
}

.registrant-proof-link {
  display: inline-block;
}

.registrant-proof-thumb {
  width: 100%;
  max-width: 220px;
  height: 160px;
  object-fit: cover;
  border: 1px solid var(--border, #d8dde3);
  border-radius: 0.5rem;
  background: #eef1f5;
}

.registrant-proof-image {
  max-width: 100%;
  max-height: min(75vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #eef1f5;
}

.schedule-admin-proof-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid var(--border, #d8dde3);
  background: #eef1f5;
}

@media (min-width: 768px) {
  .schedule-detail-title {
    font-size: 1.6rem;
  }

  .schedule-detail-layout {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 1.75rem 2rem;
  }

  .schedule-detail-banner-wrap {
    max-width: none;
    max-height: none;
  }

  .schedule-detail-layout--form .schedule-detail-aside {
    position: sticky;
    top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .schedule-detail-banner-wrap {
    max-height: 320px;
  }

  .schedule-admin-registrants-card {
    position: static;
  }
}

/* ---- Draw result: lottery box reveal ---- */
.draw-result-page {
  max-width: 1200px;
}

.draw-stage {
  min-height: 380px;
}

.draw-box-scene {
  position: relative;
  height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(15, 107, 51, 0.12), transparent 60%),
    linear-gradient(180deg, #f7f9f8 0%, #eef2f0 100%);
  border-radius: 0.75rem;
}

.draw-box {
  position: relative;
  width: 160px;
  height: 120px;
  margin-bottom: 2rem;
  transform-origin: 50% 80%;
  z-index: 2;
}

.draw-box-lid {
  position: absolute;
  left: 8px;
  right: 8px;
  top: -14px;
  height: 28px;
  background: linear-gradient(180deg, #1a8a45, #0f6b33);
  border-radius: 6px 6px 2px 2px;
  transform-origin: 20% 100%;
  transition: transform 450ms ease;
  z-index: 3;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.draw-box.is-open .draw-box-lid {
  transform: rotate(-42deg) translateY(-6px);
}

.draw-box-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0d3b8c, #0a2f70);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(13, 59, 140, 0.28);
}

.draw-box-label {
  color: #fff;
  font-family: Anton, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

.draw-box-front {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 38%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 8px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.draw-box.is-shaking {
  animation: draw-box-shake 0.28s ease-in-out infinite;
}

.draw-hand {
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-30%) translateY(-120%);
  opacity: 0;
  z-index: 4;
  transition: transform 700ms ease, opacity 300ms ease;
  pointer-events: none;
}

.draw-hand.is-reaching {
  opacity: 1;
  transform: translateX(-30%) translateY(18%);
}

.draw-hand.is-pulling {
  transform: translateX(-10%) translateY(-8%);
}

.draw-paper {
  position: absolute;
  left: 50%;
  bottom: 42%;
  width: min(86%, 280px);
  transform: translateX(-50%) translateY(40px) scale(0.85);
  opacity: 0;
  background: #fffdf7;
  border: 1px solid #d8dde3;
  border-radius: 0.5rem;
  padding: 1rem 1.15rem;
  text-align: center;
  box-shadow: 0 12px 28px rgba(26, 31, 36, 0.16);
  z-index: 5;
  transition: transform 500ms ease, opacity 400ms ease;
}

.draw-paper.is-shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.draw-paper-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-green, #0f6b33);
}

.draw-paper-name {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 800;
  color: var(--brand-blue, #0d3b8c);
  line-height: 1.25;
  min-height: 1.5em;
}

.draw-winner-panel {
  position: sticky;
  top: 1rem;
}

.draw-winner-card {
  opacity: 0.45;
  filter: grayscale(0.4);
  transform: translateY(8px);
  transition: opacity 350ms ease, filter 350ms ease, transform 350ms ease, box-shadow 350ms ease;
  border-color: var(--border, #d8dde3) !important;
}

.draw-winner-card.is-revealed {
  opacity: 1;
  filter: none;
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(15, 107, 51, 0.12);
  border-color: rgba(15, 107, 51, 0.35) !important;
}

.draw-winner-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-green, #0f6b33);
}

.draw-winner-card-name {
  color: var(--brand-blue, #0d3b8c);
  font-weight: 800;
}

.draw-winner-card-meta dt {
  color: var(--muted, #5b6570);
  font-weight: 600;
}

.draw-winner-card-meta dd {
  margin-bottom: 0.35rem;
}

@keyframes draw-box-shake {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  25% { transform: rotate(-4deg) translateX(-3px); }
  75% { transform: rotate(4deg) translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .draw-box.is-shaking,
  .draw-hand,
  .draw-paper,
  .draw-winner-card {
    animation: none !important;
    transition: none !important;
  }

  .draw-hand.is-reaching,
  .draw-hand.is-pulling {
    opacity: 1;
    transform: translateX(-20%) translateY(0);
  }

  .draw-paper.is-shown {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@media (max-width: 991.98px) {
  .draw-winner-panel {
    position: static;
  }
}

/* ---- Registration success / response page ---- */
.reg-response-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(15, 107, 51, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(13, 59, 140, 0.08), transparent 50%),
    var(--page-bg);
  color: var(--ink);
}

.reg-response-card {
  width: 100%;
  max-width: 28rem;
  text-align: center;
  animation: reg-response-in 280ms ease-out;
}

.reg-response-mark {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  background: rgba(15, 107, 51, 0.1);
  border: 1.5px solid rgba(15, 107, 51, 0.35);
}

.reg-response-brand {
  font-family: Anton, sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  letter-spacing: 0.02em;
  color: var(--brand-blue);
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.reg-response-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.reg-response-title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand-green);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.reg-response-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.reg-response-lead strong {
  color: var(--ink);
  font-weight: 600;
}

.reg-response-meta {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.reg-response-meta div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.reg-response-meta dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.reg-response-meta dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.reg-response-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reg-response-actions .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

@keyframes reg-response-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reg-response-card {
    animation: none;
  }

  .reg-response-actions .btn {
    transition: none;
  }
}

@media (min-width: 480px) {
  .reg-response-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .reg-response-actions .btn {
    flex: 1 1 auto;
    min-width: 10rem;
  }
}

/* —— Staff admin dashboard shell —— */
:root {
  --admin-sidebar-width: 260px;
  --admin-canvas: #eef2f6;
  --admin-ink: #152033;
  --admin-muted: #5f6b7a;
  --admin-line: #d5dde8;
  --admin-sidebar: #0a2f6f;
  --admin-sidebar-2: #0d3b8c;
}

.admin-body {
  margin: 0;
  background: var(--admin-canvas);
  color: var(--admin-ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 16px;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
}

.admin-sidebar {
  width: var(--admin-sidebar-width);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--admin-sidebar-2) 0%, var(--admin-sidebar) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1040;
}

.admin-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.25rem 0.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 1rem;
}

.admin-brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--brand-green), #1f8f4d);
  color: #fff;
  flex-shrink: 0;
}

.admin-brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.admin-brand-sub {
  font-size: 0.78rem;
  opacity: 0.75;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  overflow-y: auto;
}

.admin-nav-label {
  margin: 0.85rem 0.65rem 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}

.admin-nav-link {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  padding: 0.6rem 0.75rem;
  border-radius: 0.55rem;
  font-weight: 550;
  transition: background-color 160ms ease, color 160ms ease;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-nav-link.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--brand-green);
}

.admin-sidebar-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-user {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.65rem 0.75rem;
}

.admin-user-name {
  font-weight: 650;
}

.admin-user-role {
  font-size: 0.78rem;
  opacity: 0.7;
}

.admin-logout-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  border-radius: 0.55rem;
  padding: 0.55rem 0.75rem;
  font-weight: 600;
}

.admin-logout-btn:hover,
.admin-logout-btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--admin-line);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.admin-topbar-title {
  font-weight: 700;
  color: var(--admin-ink);
  margin-right: auto;
}

.admin-topbar-link {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}

.admin-topbar-link:hover {
  text-decoration: underline;
}

.admin-menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--admin-line);
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.55rem;
  flex-direction: column;
  justify-content: space-between;
}

.admin-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--admin-ink);
  border-radius: 2px;
}

.admin-messages {
  padding: 0.85rem 1.25rem 0;
  display: grid;
  gap: 0.5rem;
}

.admin-content {
  padding: 1.25rem;
  flex: 1;
}

.admin-page {
  max-width: 1100px;
  margin: 0 auto;
}

.admin-page--wide {
  max-width: 1400px;
}

.admin-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.admin-page-lead {
  margin: 0;
  color: var(--admin-muted);
}

.admin-stat-card {
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 0.85rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 1px 2px rgba(21, 32, 51, 0.04);
  border-top: 3px solid var(--brand-blue);
  height: 100%;
}

.admin-stat-card--green {
  border-top-color: var(--brand-green);
}

.admin-stat-card--slate {
  border-top-color: #5b7290;
}

.admin-stat-label {
  color: var(--admin-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0.35rem;
  letter-spacing: -0.03em;
}

.admin-panel {
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 0.85rem;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 1px 2px rgba(21, 32, 51, 0.04);
  height: 100%;
}

.admin-panel--flush {
  padding: 0;
  overflow: hidden;
}

.admin-panel-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.admin-stack {
  display: grid;
  gap: 0.85rem;
}

.admin-list-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 0.85rem;
  padding: 1rem 1.15rem;
}

.admin-list-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.admin-list-card-prize {
  margin: 0 0 0.35rem;
  color: var(--brand-green);
  font-weight: 650;
}

.admin-list-card-meta {
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.9rem;
}

.admin-list-card-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.admin-empty {
  text-align: center;
  background: #fff;
  border: 1px dashed var(--admin-line);
  border-radius: 0.85rem;
  padding: 2.5rem 1.25rem;
  color: var(--admin-muted);
}

.admin-table thead th {
  background: #f7f9fc;
  color: var(--admin-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom-color: var(--admin-line);
  white-space: nowrap;
}

.admin-table tbody td {
  border-color: #e8edf3;
}

.admin-backdrop {
  display: none;
}

.admin-body .btn-primary {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.admin-body .btn-primary:hover,
.admin-body .btn-primary:focus-visible {
  background-color: #0a2f6f;
  border-color: #0a2f6f;
}

.admin-body .btn-success {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.admin-body .btn-success:hover,
.admin-body .btn-success:focus-visible {
  background-color: #0b5528;
  border-color: #0b5528;
}

.admin-body .form-control:focus,
.admin-body .form-select:focus {
  border-color: #7ea0d6;
  box-shadow: 0 0 0 0.2rem rgba(13, 59, 140, 0.18);
}

/* Login */
.admin-login-body {
  min-height: 100vh;
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(15, 107, 51, 0.18), transparent 42%),
    linear-gradient(160deg, #0a2f6f 0%, #0d3b8c 48%, #134a7a 100%);
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-login-panel {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 18px 40px rgba(8, 24, 56, 0.28);
}

.admin-login-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.admin-login-kicker {
  margin: 0;
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-login-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-login-lead {
  color: var(--admin-muted);
  margin-bottom: 1.25rem;
}

.admin-login-footer {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

.admin-login-footer a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
}

.admin-login-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 200ms ease;
  }

  .admin-nav-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-menu-toggle {
    display: inline-flex;
  }

  .admin-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.45);
    z-index: 1030;
  }

  .admin-backdrop[hidden] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-sidebar,
  .admin-nav-link,
  .admin-logout-btn {
    transition: none;
  }
}

/* —— Registrants —— */
.registrant-count-chip {
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 650;
  color: var(--admin-muted);
  font-size: 0.9rem;
}

.registrant-filters {
  padding: 1rem 1.15rem;
}

.registrant-name-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.registrant-name-link:hover .registrant-name {
  color: var(--brand-blue);
  text-decoration: underline;
}

.registrant-avatar {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), #1a5bb8);
  flex-shrink: 0;
}

.registrant-avatar--lg {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.05rem;
  border-radius: 0.8rem;
}

.registrant-name {
  font-weight: 650;
}

.registrant-metric {
  display: inline-flex;
  min-width: 1.6rem;
  justify-content: center;
  font-weight: 650;
}

.registrant-win-badge {
  display: inline-flex;
  min-width: 1.6rem;
  justify-content: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 107, 51, 0.12);
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.85rem;
}

.registrant-row:hover td {
  background: #f7fafc;
}

.admin-back-link {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}

.admin-back-link:hover {
  text-decoration: underline;
}

.registrant-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.registrant-hero-main {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-width: 0;
}

.registrant-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.registrant-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.registrant-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--admin-muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.registrant-chip--win {
  background: rgba(15, 107, 51, 0.12);
  color: var(--brand-green);
}

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

.registrant-profile-grid-span {
  grid-column: 1 / -1;
}

.schedule-reg-list {
  display: grid;
  gap: 0.75rem;
}

.schedule-reg-item {
  border: 1px solid var(--admin-line);
  border-radius: 0.75rem;
  padding: 0.85rem;
  background: #f8fafc;
}

.schedule-reg-meta {
  color: var(--admin-muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 0.15rem;
}

.schedule-reg-proofs {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--admin-line);
}

.schedule-admin-banner-thumb {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  flex-shrink: 0;
}

.registrant-field-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--admin-muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.registrant-field-value {
  font-weight: 550;
  word-break: break-word;
}

.registrant-section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--admin-muted);
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.registrant-upload-card {
  border: 1px solid var(--admin-line);
  border-radius: 0.75rem;
  padding: 1rem;
  background: #f8fafc;
}

.registrant-upload-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.registrant-proof-tile {
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 0.65rem;
  padding: 0.85rem;
  height: 100%;
}

.registrant-proof-label {
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.registrant-proof-meta {
  color: var(--admin-muted);
  font-size: 0.85rem;
}

@media (max-width: 767.98px) {
  .registrant-profile-grid {
    grid-template-columns: 1fr;
  }

  .registrant-hero-main {
    width: 100%;
  }
}
