/* ── Google Font (Space Grotesk) ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&display=swap');

/* ── WondrX Design Tokens ── */
:root {
  --bg-cream:      #FAF6F0;
  --bg-peach:      #FFF3EA;
  --bg-lime:       #CEDC3A;
  --bg-orange:     #F37021;
  --bg-purple:     #4A3280;
  --bg-dark:       #1A1A1A;
  --bg-teal:       #2ABFBF;
  --bg-yellow:     #F5C518;

  --color-primary:   #F37021;
  --color-primary-dk:#D95F10;
  --color-lime:      #CEDC3A;
  --color-dark:      #111111;
  --color-white:     #FFFFFF;
  --color-muted:     #888888;
  --color-border:    #E0D8D0;
  --color-success:   #16A34A;
  --color-danger:    #DC2626;
  --color-warning:   #D97706;
  --color-text:      #1A1A1A;

  --radius-card: 16px;
  --shadow-card: 0 4px 24px rgba(0,0,0,.08);
  --shadow-sm:   0 2px 8px rgba(0,0,0,.06);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--bg-cream);
  color: var(--color-text);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Navbar ── */
.navbar {
  background: rgba(250,246,240,0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0 !important;
  z-index: 1050;
}
.navbar > .container {
  min-height: 60px;
  align-items: center;
  flex-wrap: wrap;
}

/* Mobile: expanded collapse gets solid bg + shadow */
@media (max-width: 991px) {
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    background: #FAF6F0;
    border-top: 1px solid var(--color-border);
    margin: 0 -12px;
    padding: .5rem 12px 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
  }
  .navbar .navbar-nav { gap: .1rem; }
  .navbar .nav-link { padding: .55rem .75rem !important; }
}
.navbar-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-dark) !important;
  letter-spacing: -0.02em;
  line-height: 1;
}
.navbar-brand .brand-x { color: var(--color-primary); }
.navbar-brand .badge-role {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: rgba(243,112,33,.12);
  color: var(--color-primary);
  padding: .25em .6em;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: .4rem;
}
.navbar .nav-link {
  color: rgba(17,17,17,.75) !important;
  font-weight: 500;
  font-size: .9rem;
  padding: .4rem .75rem !important;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.navbar .nav-link:hover {
  color: var(--color-primary) !important;
  background: rgba(243,112,33,.07);
}
.navbar .nav-link.active {
  color: var(--color-primary) !important;
  font-weight: 600;
}
.navbar .dropdown-menu {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: .4rem;
}
.navbar .dropdown-item {
  border-radius: 8px;
  font-size: .9rem;
  padding: .45rem .75rem;
}
.navbar .dropdown-item:hover { background: rgba(243,112,33,.08); color: var(--color-primary); }
.navbar .dropdown-item.text-danger:hover { background: #fef2f2; }

/* Navbar CTA pill */
.navbar-toggler {
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2817, 17, 17, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Main content offset for fixed navbar ── */
main.py-4 { padding-top: calc(60px + 1.5rem) !important; }
@media (max-width: 991px) {
  /* Extra space so expanded nav never hides content */
  main.py-4 { padding-top: calc(60px + 1rem) !important; }
}

/* ── Cards ── */
.card {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-sm) !important;
  background: #fff;
  overflow: hidden !important;
  transition: box-shadow .2s, transform .15s;
}
.card:hover { box-shadow: var(--shadow-card) !important; }
a.card:hover { transform: translateY(-2px); }
.card > *,
.card-header,
.card-body,
.card-footer,
.table-responsive,
.table {
  border-radius: 0 !important;
}
.card-header {
  background: var(--color-primary) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .01em;
  padding: .85rem 1.25rem;
  border-bottom: none !important;
}
.card-header .text-muted { color: rgba(255,255,255,.65) !important; }
.card-body { padding: 1.5rem; }

/* ── Buttons ── */
.btn {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  border-radius: 999px;
  transition: background .2s, transform .1s, box-shadow .2s;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary-dk);
  border-color: var(--color-primary-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(243,112,33,.35);
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 600;
}
.btn-outline-primary:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.btn-success {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}
.btn-success:hover { background: #15803d; border-color: #15803d; }

.btn-secondary {
  background: #f4f0eb;
  border-color: var(--color-border);
  color: var(--color-dark);
}
.btn-secondary:hover { background: #ede8e2; border-color: #d1c8be; color: var(--color-dark); }

.btn-outline-secondary {
  color: var(--color-muted);
  border-color: var(--color-border);
}
.btn-outline-secondary:hover { background: #f4f0eb; color: var(--color-dark); border-color: #ccc; }

.btn-danger { background: var(--color-danger); border-color: var(--color-danger); }
.btn-warning { background: var(--color-warning); border-color: var(--color-warning); color: #fff; }

.btn-lg { padding: .65rem 1.75rem; font-size: 1rem; }
.btn-xl { padding: .85rem 2rem; font-size: 1.1rem; font-weight: 700; }
.btn-sm { padding: .3rem 1rem; font-size: .8rem; }

/* ── Row action icon buttons ── */
.action-btns {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
}
.btn-icon-action {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .85rem;
  line-height: 1;
}

/* ── Forms ── */
.form-control, .form-select {
  font-family: 'Space Grotesk', sans-serif;
  border-color: var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  padding: .55rem .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(243,112,33,.15);
}
.form-control-lg { padding: .75rem 1rem; font-size: 1rem; }
.form-label {
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .35rem;
  color: var(--color-dark);
}
.input-group-text {
  background: #f4f0eb;
  border-color: var(--color-border);
  color: var(--color-muted);
  border-radius: 10px 0 0 10px !important;
}
.input-group .form-control { border-radius: 0 10px 10px 0 !important; }
.input-group .btn { border-radius: 0 999px 999px 0 !important; }

/* ── Login ── */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-cream);
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.login-wrapper::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,112,33,.12) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}
.login-wrapper::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206,220,58,.15) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  pointer-events: none;
}
.login-card {
  max-width: 440px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.login-logo {
  font-size: clamp(1.3rem, 7vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-dark);
  line-height: 1;
  white-space: nowrap;
}
.login-logo .accent { color: var(--color-primary); }
.login-card .card {
  border: 1px solid var(--color-border) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,.1) !important;
}

/* ── Points badge ── */
.badge-points {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: .75rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  line-height: 1.2;
}
.badge-points-sm {
  font-size: .8rem;
  padding: .18rem .6rem;
  background: rgba(243,112,33,.12);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: 999px;
  display: inline-block;
}

/* ── Status cards ── */
.status-card {
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
  border: 2px solid transparent;
}
.status-card.eligible {
  border-color: var(--color-success);
  background: #f0fdf4;
}
.status-card.ineligible {
  border-color: var(--color-danger);
  background: #fef2f2;
}
.status-icon { font-size: 3rem; line-height: 1; }
.prize-photo {
  display: block;
  max-width: 180px;
  max-height: 180px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(17,17,17,.12);
}
.status-card.eligible .status-title  { color: var(--color-success); font-weight: 800; font-size: 1.4rem; letter-spacing: -.01em; }
.status-card.ineligible .status-title { color: var(--color-danger);  font-weight: 800; font-size: 1.4rem; letter-spacing: -.01em; }

/* ── Participant info ── */
.participant-info {
  background: var(--bg-peach);
  border-left: 4px solid var(--color-primary);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.participant-info .name { font-weight: 700; font-size: 1.1rem; }
.participant-info .meta { color: var(--color-muted); font-size: .875rem; }

/* ── Scan input ── */
.scan-input-group .form-control {
  font-size: 1.05rem;
  padding: .75rem 1rem;
}

/* ── Table ── */
.table {
  font-size: .92rem;
  margin-bottom: 0 !important;
}
.table th {
  background: var(--bg-peach);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-muted);
  border-bottom: 2px solid var(--color-border) !important;
  white-space: nowrap;
}
.table td { vertical-align: middle; }
.table-hover tbody tr:hover { background: rgba(243,112,33,.04); }
.table > :not(caption) > * > * { border-bottom-color: var(--color-border); }

/* ── Card Table Alignment & Outline Fix ── */
.card > .table-responsive,
.card-body.p-0 > .table-responsive {
  border: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.card .table > thead > tr > th:first-child,
.card .table > tbody > tr > td:first-child {
  padding-left: 1.25rem;
}
.card .table > thead > tr > th:last-child,
.card .table > tbody > tr > td:last-child {
  padding-right: 1.25rem;
}
.card .table > tbody > tr:last-child > td,
.card .table > tbody > tr:last-child > th {
  border-bottom: 0 !important;
}
.card-footer {
  background: #fff !important;
  border-top: 1px solid var(--color-border) !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
}

/* ── Pagination Styling (WondrX Vibrant Orange) ── */
.pagination {
  --bs-pagination-color: var(--color-primary);
  --bs-pagination-hover-color: var(--color-primary-dk);
  --bs-pagination-hover-bg: rgba(243, 112, 33, 0.08);
  --bs-pagination-hover-border-color: var(--color-border);
  --bs-pagination-active-color: #ffffff;
  --bs-pagination-active-bg: var(--color-primary);
  --bs-pagination-active-border-color: var(--color-primary);
  --bs-pagination-disabled-color: #aaa;
  --bs-pagination-disabled-bg: #f8f9fa;
  --bs-pagination-disabled-border-color: var(--color-border);
  --bs-pagination-border-color: var(--color-border);
}

.pagination .page-link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--color-primary) !important;
  border-color: var(--color-border) !important;
  transition: all .15s ease-in-out;
}

.pagination .page-link:hover {
  color: var(--color-primary-dk) !important;
  background-color: rgba(243, 112, 33, 0.08) !important;
  border-color: var(--color-border) !important;
}

.pagination .page-item.active .page-link {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(243, 112, 33, 0.35);
}

.pagination .page-item.disabled .page-link {
  color: #bbb !important;
  background-color: #f8f9fa !important;
  border-color: var(--color-border) !important;
}

/* ── Dashboard stat cards ── */
.stat-card {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary);
}
.stat-card.accent::before  { background: var(--color-warning); }
.stat-card.success::before { background: var(--color-success); }
.stat-card.danger::before  { background: var(--color-danger); }

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}
.stat-card.accent  .stat-value { color: var(--color-warning); }
.stat-card.success .stat-value { color: var(--color-success); }
.stat-card.danger  .stat-value { color: var(--color-danger); }
.stat-label {
  font-size: .8rem;
  color: var(--color-muted);
  font-weight: 600;
  margin-top: .35rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ── Admin nav tabs ── */
.admin-sidebar .nav-link {
  color: var(--color-text);
  border-radius: 10px;
  padding: .55rem 1rem;
  font-weight: 500;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: background .15s, color .15s;
}
.admin-sidebar .nav-link:hover { background: var(--bg-peach); color: var(--color-primary); }
.admin-sidebar .nav-link.active {
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 600;
}

/* ── Badges / pills ── */
.badge {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: .03em;
}
.badge.bg-primary { background: var(--color-primary) !important; }
.badge.bg-success { background: var(--color-success) !important; }
.badge.bg-danger  { background: var(--color-danger) !important; }
.badge.bg-warning { background: var(--color-warning) !important; }

/* ── Flash alerts ── */
.flash-alert {
  border-radius: 12px;
  font-weight: 500;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border: none;
}
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ── Camera scanner ── */
.camera-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  line-height: 0;
}
#cameraReader { width: 100%; }
#cameraReader video {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 0;
}
#cameraReader img { display: none !important; }
.scan-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.scan-frame {
  width: 220px;
  height: 220px;
  position: relative;
  box-shadow: 0 0 0 2000px rgba(0,0,0,.52);
  border-radius: 4px;
}
.scan-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--color-primary);
  border-style: solid;
}
.scan-corner.tl { top: -2px; left: -2px; border-width: 4px 0 0 4px; border-radius: 3px 0 0 0; }
.scan-corner.tr { top: -2px; right: -2px; border-width: 4px 4px 0 0; border-radius: 0 3px 0 0; }
.scan-corner.bl { bottom: -2px; left: -2px; border-width: 0 0 4px 4px; border-radius: 0 0 0 3px; }
.scan-corner.br { bottom: -2px; right: -2px; border-width: 0 4px 4px 0; border-radius: 0 0 3px 0; }
.scan-line {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-primary) 30%, var(--color-primary) 70%, transparent);
  box-shadow: 0 0 10px rgba(243,112,33,.85);
  animation: scanLine 2s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes scanLine {
  0%   { top: 4px; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: calc(100% - 6px); opacity: 0; }
}

/* ── Section divider / page header ── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.page-header-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.page-header-sub {
  font-size: .85rem;
  color: var(--color-muted);
  margin-top: .2rem;
  font-weight: 500;
}

/* ── Section badge (WondrX style) ── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(0,0,0,.05);
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: .75rem;
}
.section-badge::before {
  content: '•';
  color: var(--color-primary);
  font-size: .8rem;
  line-height: 1;
}

/* ── Footer ── */
footer.site-footer {
  background: var(--bg-cream);
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0;
  margin-top: 3rem;
}
footer.site-footer .footer-brand {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.01em;
  color: var(--color-dark);
}
footer.site-footer .footer-brand span { color: var(--color-primary); }
footer.site-footer .footer-copy {
  font-size: .78rem;
  color: var(--color-muted);
}

/* ── Misc utilities ── */
.text-primary   { color: var(--color-primary) !important; }
.bg-primary     { background: var(--color-primary) !important; }
.border-primary { border-color: var(--color-primary) !important; }
.fw-800         { font-weight: 800 !important; }
.fw-700         { font-weight: 700 !important; }
.cursor-pointer { cursor: pointer; }
.img-proof      { max-width: 80px; max-height: 60px; object-fit: cover; border-radius: 6px; cursor: pointer; }
.text-muted     { color: var(--color-muted) !important; }
.rounded-pill   { border-radius: 999px !important; }

/* ── Scroll animation base ── */
.anim-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.anim-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive (booth / tablet) ── */
@media (max-width: 767px) {
  .btn-xl { width: 100%; }
  .card-body { padding: 1.25rem; }
  .stat-value { font-size: 1.75rem; }
  .page-header { flex-direction: column; }
  main.py-4 { padding-top: calc(60px + 1rem) !important; }
}

/* ── Participant portal (dashboard / QR) ── */
.portal-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #F1F2F5;
  background-image: radial-gradient(rgba(17,17,17,.08) 1px, transparent 1px);
  background-size: 18px 18px;
  padding: 2rem 1rem 3rem;
}
.portal-card {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}
.qr-frame {
  display: inline-block;
  background: #fff;
  border: none;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(17,17,17,.06);
  padding: 1.25rem;
  max-width: 280px;
  width: 100%;
}
.qr-frame svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Modern card refinements (participant portal only) ── */
.portal-wrapper .card {
  border: none !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 30px rgba(17,17,17,.07) !important;
}
.portal-wrapper .status-card {
  border: 2px solid transparent;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(17,17,17,.06);
}
.portal-wrapper .status-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto;
}
.portal-wrapper .status-card.eligible .status-icon   { background: rgba(22,163,74,.12); }
.portal-wrapper .status-card.ineligible .status-icon { background: rgba(220,38,38,.10); }

/* ── Participant topbar (hamburger + logo) ── */
.participant-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hamburger-btn {
  position: absolute;
  left: 0;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-dark);
  padding: .25rem .5rem;
  line-height: 1;
}
.hamburger-menu {
  display: none;
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  min-width: 140px;
  z-index: 10;
  overflow: hidden;
}
.hamburger-menu.show { display: block; }
.hamburger-menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  color: var(--color-danger);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.hamburger-menu a:hover { background: #fef2f2; }

/* ── Participant portal typography ── */
.participant-page {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Participant profile card ── */
.profile-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: #F4F1EC;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(17,17,17,.05);
  padding: 1.1rem 1.35rem;
  margin-bottom: 1.25rem;
}
.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-text { text-align: left; min-width: 0; }
.profile-name { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.profile-email {
  color: var(--color-muted);
  font-size: .82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-divider {
  border: none;
  height: 4px;
  background: var(--color-primary);
  border-radius: 999px;
  opacity: 1;
  margin: 0 0 1.5rem;
}

/* ── QR id badge ── */
.qr-id-badge {
  display: inline-block;
  background: #f4f0eb;
  color: var(--color-muted);
  font-family: monospace;
  font-size: .78rem;
  letter-spacing: .04em;
  padding: .3rem .8rem;
  border-radius: 999px;
}

/* ── Points box ── */
.points-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(42, 191, 191, .12);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(42,191,191,.14);
  padding: 1.35rem 1.5rem;
}
.points-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--bg-teal);
  text-transform: uppercase;
}
.points-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.1;
}
.points-plus-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(42, 191, 191, .25);
  color: var(--bg-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Solid status card (eligible / grand CTA) ── */
.status-card-solid {
  background: linear-gradient(155deg, var(--color-primary) 0%, var(--color-primary-dk) 100%);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(243,112,33,.28);
  padding: 1.85rem 1.5rem;
  text-align: center;
}
.status-card-solid .status-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto;
}
.status-card-solid p { color: rgba(255,255,255,.9); }
.status-title-solid {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.01em;
  color: #fff;
}
.status-card-solid .btn-light {
  color: var(--color-primary);
  font-weight: 700;
}
.status-card-solid .btn-outline-light {
  border-color: rgba(255,255,255,.6);
  color: #fff;
  font-weight: 600;
}
.status-card-solid .btn-outline-light:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* ── QR zoom overlay ── */
.qr-zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.qr-zoom-overlay.show { display: flex; }
.qr-zoom-box {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2rem;
  width: min(85vw, 380px);
  text-align: center;
}
.qr-zoom-box svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Prize celebration overlay (konfeti + foto hadiah) ── */
#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4000;
  display: none;
}
.prize-celebrate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,.82);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.prize-celebrate-overlay.show { display: flex; }
.prize-celebrate-box {
  background: #fff;
  border-radius: 24px;
  padding: 2.25rem 1.75rem;
  width: min(88vw, 400px);
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  animation: celebratePop .5s cubic-bezier(.18,1.25,.4,1) both;
}
@keyframes celebratePop {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.celebration-title { font-size: 2rem; font-weight: 800; color: var(--color-primary); letter-spacing: -.02em; }
.celebration-sub { color: var(--color-muted); font-size: .9rem; margin-bottom: 1rem; }
.prize-photo-lg {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 18px;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(17,17,17,.18);
}
.celebration-prize-name { font-weight: 800; font-size: 1.25rem; color: var(--color-dark); margin-bottom: 1.25rem; }
body.no-scroll { overflow: hidden; }
