


/* -- ADMIN DRAWER + QR OVERLAY -- */
/* ---------------------------------------------------------------
   NEXORA � FINAL RESPONSIVE + ADMIN DRAWER + QR OVERLAY LAYER
   Appended at EOF so it wins every earlier cascade.
   --------------------------------------------------------------- */

/* -------------------------------------------
   1. ADMIN LEFT SLIDE-IN DRAWER
   ------------------------------------------- */
.admin-topbar {
  display: none;
}

.admin-backdrop {
  display: none;
}

.admin-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-side-head .brand {
  flex: 1;
  min-width: 0;
}

.admin-drawer-close {
  display: none;
}

/* legacy toggle button is retired by the drawer */
.admin-sidebar-toggle {
  display: none !important;
}

/* Desktop / large tablet: canonical admin layout � see overrides.css */
@media (min-width: 1025px) {
  .admin-side-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    flex: 1;
  }
}

/* Tablet + mobile: off-canvas drawer that slides in from the LEFT */
@media (max-width: 1024px) {

  .admin-body {
    display: block !important;
    grid-template-columns: none !important;
    padding-top: 60px;
  }

  .admin-topbar {
    display: flex !important;
    align-items: center;
    gap: 12px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 14px;
    background: #111827;
    border-bottom: 1px solid rgba(148, 163, 184, .22);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    z-index: 1200;
  }

  .admin-topbar .brand {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .admin-burger,
  .admin-topbar-out {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(255, 255, 255, .06);
    color: #facc15;
    font-size: 18px;
    cursor: pointer;
  }

  .admin-burger:active,
  .admin-topbar-out:active {
    background: rgba(250, 204, 21, .18);
  }

  .admin-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 12, .62);
    backdrop-filter: blur(2px);
    z-index: 1250;
    animation: adminFade .2s ease-out;
  }

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

  @keyframes adminFade {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .admin-side {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(84vw, 300px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #111827 !important;
    border-right: 1px solid rgba(148, 163, 184, .2) !important;
    border-bottom: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-104%) !important;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1) !important;
    z-index: 1300 !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, .5);
  }

  .admin-side.open {
    transform: translateX(0) !important;
  }

  .admin-side-head {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
    position: sticky;
    top: 0;
    background: #111827;
    z-index: 2;
  }

  .admin-side-head .brand {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .admin-drawer-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(255, 255, 255, .06);
    color: #f87171;
    font-size: 17px;
    cursor: pointer;
  }

  .admin-side-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    padding: 12px 12px 26px !important;
    background: transparent !important;
  }

  .admin-side .side-label {
    display: block !important;
    padding: 12px 12px 5px !important;
    font-size: 10px !important;
  }

  .admin-side a:not(.brand) {
    white-space: normal !important;
    padding: 12px 14px !important;
    font-size: 14.5px !important;
    border-radius: 10px !important;
  }

  .admin-side .logout {
    margin-top: 10px !important;
    border-top: 1px solid rgba(148, 163, 184, .14);
    padding-top: 14px !important;
  }

  body.admin-drawer-open {
    overflow: hidden;
  }

  .admin-main {
    padding: 18px 14px 40px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* -------------------------------------------
   2. QR SCANNER � PERMISSIONS + OVERLAY
   ------------------------------------------- */
.qr-permission-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.qr-perm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(148, 163, 184, .07);
}

.qr-perm-item .qr-perm-text {
  flex: 1;
  min-width: 0;
}

.qr-perm-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.qr-perm-item small {
  display: block;
  font-size: 12px;
  opacity: .75;
  overflow-wrap: anywhere;
}

.qr-perm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(250, 204, 21, .16);
  color: #facc15;
  font-size: 16px;
}

.qr-perm-item.granted {
  border-color: rgba(34, 197, 94, .45);
  background: rgba(34, 197, 94, .09);
}

.qr-perm-item.granted .qr-perm-icon {
  background: rgba(34, 197, 94, .18);
  color: #22c55e;
}

.qr-perm-item .btn {
  flex-shrink: 0;
}

/* overlay shell */
.qr-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 6, 12, .78);
  backdrop-filter: blur(5px);
  z-index: 2000;
}

.qr-overlay.open {
  display: flex;
}

body.qr-overlay-lock {
  overflow: hidden;
}

.qr-overlay-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
  background: #131a26;
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: qrPop .24s cubic-bezier(.2, .9, .3, 1);
}

@keyframes qrPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.qr-overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 4;
  transition: background .2s, transform .2s;
}

.qr-overlay-close:hover {
  background: rgba(239, 68, 68, .85);
  transform: rotate(90deg);
}

.qr-overlay-head {
  padding: 24px 58px 20px 22px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg, #1f2937, #111827);
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.qr-overlay-head[data-state="approved"] {
  background: linear-gradient(135deg, #14532d, #052e16);
}

.qr-overlay-head[data-state="rejected"],
.qr-overlay-head[data-state="invalid"] {
  background: linear-gradient(135deg, #7f1d1d, #450a0a);
}

.qr-overlay-head[data-state="already"] {
  background: linear-gradient(135deg, #78350f, #451a03);
}

.qr-overlay-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
}

.qr-overlay-head h2 {
  margin: 10px 0 4px;
  color: #fff;
  font-size: clamp(19px, 5vw, 26px);
  overflow-wrap: anywhere;
}

.qr-overlay-head p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13.5px;
}

.qr-overlay-body {
  padding: 18px 20px 4px;
}

.qr-person {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 15px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(148, 163, 184, .28);
}

.qr-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  font-size: 20px;
  font-weight: 800;
}

.qr-person strong {
  display: block;
  font-size: 17px;
  color: #f8fafc;
  overflow-wrap: anywhere;
}

.qr-person small {
  display: block;
  font-size: 12.5px;
  color: rgba(226, 232, 240, .68);
}

.qr-line-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.qr-line {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(148, 163, 184, .09);
  border: 1px solid rgba(148, 163, 184, .14);
  min-width: 0;
}

.qr-line span {
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, .6);
}

.qr-line strong {
  font-size: 13.5px;
  color: #f1f5f9;
  overflow-wrap: anywhere;
}

.qr-proof-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, .4);
  background: rgba(56, 189, 248, .1);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 600;
}

.qr-invalid-box {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px 16px;
  text-align: center;
  color: #fca5a5;
}

.qr-invalid-box i {
  font-size: 40px;
}

.qr-invalid-box p {
  margin: 0;
  font-size: 14px;
  color: rgba(248, 250, 252, .82);
}

.qr-overlay-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px 20px 6px;
}

.qr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .16s, filter .16s, opacity .16s;
}

.qr-btn i {
  font-size: 17px;
}

.qr-btn.approve {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  box-shadow: 0 8px 22px rgba(22, 163, 74, .3);
}

.qr-btn.reject {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  box-shadow: 0 8px 22px rgba(220, 38, 38, .3);
}

.qr-btn.confirm-payment {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 8px 22px rgba(245, 158, 11, .3);
}

.qr-btn.scan-next {
  background: rgba(148, 163, 184, .15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, .25);
}

.qr-btn.team-approve {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  box-shadow: 0 8px 22px rgba(139, 92, 246, .3);
}

.qr-pay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.qr-pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.qr-pay-badge.paid {
  background: rgba(34, 197, 94, .18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, .3);
}

.qr-pay-badge.unpaid {
  background: rgba(239, 68, 68, .18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, .3);
}

.qr-pay-badge.verifying {
  background: rgba(234, 179, 8, .18);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, .3);
}

.qr-status-chip {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
}

.qr-status-chip.approved {
  background: rgba(34, 197, 94, .18);
  color: #4ade80;
}

.qr-status-chip.rejected {
  background: rgba(239, 68, 68, .18);
  color: #f87171;
}

.qr-status-chip.pending {
  background: rgba(148, 163, 184, .15);
  color: #94a3b8;
}

.qr-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.qr-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.qr-overlay-note {
  margin: 0;
  padding: 12px 20px 20px;
  font-size: 12.8px;
  line-height: 1.5;
  color: rgba(226, 232, 240, .7);
}

@media (max-width: 520px) {
  .qr-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .qr-overlay-card {
    width: 100%;
    max-height: 94dvh;
    border-radius: 22px 22px 0 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .qr-overlay-head {
    border-radius: 22px 22px 0 0;
    padding: 22px 56px 18px 18px;
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .qr-overlay-body {
    padding: 16px 16px 2px;
  }

  .qr-line-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .qr-overlay-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 16px 4px;
    position: sticky;
    bottom: 0;
    background: rgba(15, 18, 28, .95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(148, 163, 184, .12);
  }

  .qr-overlay-actions .qr-btn {
    flex: 1 1 calc(50% - 5px);
    min-height: 48px;
    padding: 12px 12px;
    font-size: 13.5px;
  }

  .qr-overlay-actions .qr-btn.scan-next {
    flex: 1 1 100%;
  }

  .qr-overlay-note {
    padding: 10px 16px 22px;
  }

  .qr-pay-row {
    flex-wrap: wrap;
  }
}

/* live camera feed always fits its frame */
#qr-reader {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0f16;
}

#qr-reader video,
#qr-reader canvas {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: cover;
}

#qr-reader img[alt="Info icon"] {
  display: none !important;
}

/* -------------------------------------------
   3. GAME CARD GRID � 3 PER ROW, EVERYWHERE
   ------------------------------------------- */
.game-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(14px, 2.2vw, 28px) !important;
  align-items: stretch !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

.game-card {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
}

.game-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.game-body .card-cta {
  margin-top: auto;
}

.game-body h3 {
  overflow-wrap: anywhere;
}

/* laptop / small desktop */
@media (max-width: 1180px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* tablet � 2 per row */
@media (max-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

/* phone � still 2 per row so the layout matches the laptop feel */
@media (max-width: 620px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 11px !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }

  .game-body {
    padding: 11px !important;
  }

  .game-body h3 {
    font-size: 14.5px !important;
    line-height: 1.25 !important;
  }

  .game-title-row {
    display: grid !important;
    gap: 6px !important;
  }

  .platform-pill-new,
  .platform-pill {
    font-size: 10px !important;
    padding: 3px 8px !important;
  }

  .price-chips {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  .price-chips p {
    padding: 6px 7px !important;
  }

  .price-chips small {
    font-size: 9.5px !important;
  }

  .price-chips strong {
    font-size: 13px !important;
  }

  .card-cta {
    min-height: 34px !important;
    padding: 7px 9px !important;
    font-size: 11.5px !important;
  }

  .window-note {
    font-size: 10.5px !important;
  }

  .status-pill {
    font-size: 9.5px !important;
    padding: 3px 7px !important;
  }

  /* punch holes look broken at small widths */
  .game-body::before,
  .game-body::after {
    display: none !important;
  }
}

/* very small phones � single column, full width */
@media (max-width: 400px) {
  .game-grid {
    grid-template-columns: 1fr !important;
    max-width: none !important;
    margin-inline: 0 !important;
    gap: 12px !important;
  }

  .game-body h3 {
    font-size: 17px !important;
  }
}

/* View All header row */
.heading-row.games-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.heading-row.games-heading-row .section-heading {
  flex: 1;
  min-width: 240px;
  margin-bottom: 0;
  text-align: left;
}

.view-all-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .heading-row.games-heading-row {
    display: grid;
    gap: 14px;
    justify-items: stretch;
    text-align: center;
  }

  .heading-row.games-heading-row .section-heading {
    min-width: 0;
    text-align: center;
  }

  .view-all-btn {
    justify-self: center;
    width: min(100%, 280px);
    justify-content: center;
  }
}

/* -------------------------------------------
   4. COVER / HERO IMAGE FITS ITS FRAME
   ------------------------------------------- */
.hero {
  min-height: clamp(400px, 62vh, 620px) !important;
  overflow: hidden !important;
}

.hero-slider {
  overflow: hidden !important;
}

.hero-slide {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #06080c !important;
}

.hero-inner {
  min-width: 0;
}

.hero-title,
.hero-content h1 {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {

  /* on portrait screens a cover crop cuts faces off � pull focus to the top */
  .hero-slide {
    background-position: center 28% !important;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 470px !important;
    padding: 52px 0 64px !important;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 10, 14, .58) 0%, rgba(8, 10, 14, .80) 55%, rgba(8, 10, 14, .93) 100%) !important;
  }

  .hero-acts {
    display: grid !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .hero-acts .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }

  .hero-dots {
    bottom: 14px !important;
  }
}

/* prize banner image frame � canonical in overrides.css */

/* gallery / memory images never stretch */
.gallery-media img,
.memory-card img,
.leader-photo-wrap img,
.reg-hero-poster img,
.sponsor-logo-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.sponsor-logo-box img {
  object-fit: contain !important;
}

.gallery-media,
.memory-card .gallery-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0d1119;
}

/* -------------------------------------------
   5. MESSAGES / DIRECTORS � SAME VIEW ON MOBILE
   ------------------------------------------- */
.review-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 14px !important;
  align-items: start !important;
}

.review-card {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.review-card p {
  overflow-wrap: anywhere !important;
  white-space: pre-line;
}

.review-top {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  min-width: 0 !important;
}

.review-top .avatar {
  flex-shrink: 0 !important;
}

.leader-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: clamp(14px, 2.4vw, 26px) !important;
  align-items: stretch !important;
}

.leader-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.leader-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.leader-body {
  flex: 1 1 auto;
}

.leader-quote {
  overflow-wrap: anywhere !important;
}

@media (max-width: 760px) {

  .review-grid,
  .leader-grid {
    grid-template-columns: 1fr !important;
  }

  .leader-photo-wrap {
    aspect-ratio: 16 / 10;
  }
}

/* -------------------------------------------
   6. GLOBAL OVERFLOW GUARDS
   ------------------------------------------- */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  min-width: 0;
}

img,
video,
iframe,
svg,
table {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(12px, 4vw, 24px);
}

pre,
code,
.account,
.footer-contact a,
.qr-line strong,
.reg-card-details strong,
.reg-card-player p {
  overflow-wrap: anywhere;
}

/* -------------------------------------------
   7. ADMIN CONTENT RESPONSIVENESS
   ------------------------------------------- */
@media (max-width: 1024px) {

  .admin-panel {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .stat-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 11px !important;
  }

  .admin-form,
  .admin-card-grid,
  .compact-admin-grid,
  .prize-admin-grid,
  .mini-form-grid {
    grid-template-columns: 1fr !important;
    gap: 13px !important;
  }

  .filter-bar {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
    gap: 12px !important;
  }

  .filter-actions {
    grid-column: 1 / -1 !important;
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  .filter-actions .btn {
    flex: 1 1 140px !important;
    justify-content: center !important;
  }

  .result-summary {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
    align-items: center !important;
  }

  .result-summary .btn {
    margin-left: 0 !important;
    flex: 1 1 160px !important;
    justify-content: center !important;
  }

  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .reg-card-main {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 12px !important;
  }

  .reg-card-details {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    gap: 10px !important;
  }

  .reg-card-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .reg-card-status {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 7px !important;
  }

  .qr-scan-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (max-width: 560px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .reg-card-main,
  .reg-card-details {
    grid-template-columns: 1fr 1fr !important;
  }

  .reg-card-actions .mini-action,
  .reg-card-actions .danger-link {
    flex: 1 1 calc(50% - 8px) !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 11.5px !important;
  }

  .admin-head h1 {
    font-size: clamp(20px, 6vw, 27px) !important;
  }
}

@media (max-width: 400px) {

  .reg-card-main,
  .reg-card-details {
    grid-template-columns: 1fr !important;
  }
}

/* -------------------------------------------
   8. PUBLIC PAGES � ABOUT / GALLERY / REGISTER
   ------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: clamp(10px, 2vw, 20px) !important;
}

@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .gallery-card figcaption strong {
    font-size: 13.5px !important;
  }

  .gallery-card figcaption span {
    font-size: 11.5px !important;
  }
}

@media (max-width: 380px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
}