:root {
  --pm-navy: #0b1638;
  --pm-navy-2: #111d48;
  --pm-blue: #075fe9;
  --pm-blue-bright: #0875ff;
  --pm-purple: #6719d8;
  --pm-purple-deep: #4e13b7;
  --pm-gold: #f1ad19;
  --pm-gold-soft: #fff4d6;
  --pm-ink: #15203b;
  --pm-muted: #68718a;
  --pm-line: #dfe4ee;
  --pm-surface: #ffffff;
  --pm-bg: #f5f7fb;
  --pm-success: #19714a;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--pm-ink);
  background: var(--pm-bg);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% -10%, rgba(7,95,233,.10), transparent 34rem),
    radial-gradient(circle at 100% 22%, rgba(103,25,216,.08), transparent 30rem),
    var(--pm-bg);
  color: var(--pm-ink);
}

button, input, select { font: inherit; }

button { cursor: pointer; }

.siteGlow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .12;
  pointer-events: none;
  z-index: -1;
}
.siteGlowOne { background: var(--pm-blue); top: 10rem; left: -18rem; }
.siteGlowTwo { background: var(--pm-purple); top: 30rem; right: -18rem; }

.topbar {
  position: relative;
  z-index: 10;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(11,22,56,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbarInner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 22px;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 180px;
  max-height: 54px;
  object-fit: contain;
}

.brandTagline {
  color: var(--pm-navy);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-align: right;
}

.shell {
  width: min(100% - 32px, 1080px);
  margin: 0 auto;
  padding: 34px 0 76px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 34px;
  align-items: center;
  padding: clamp(34px, 5vw, 62px);
  border-radius: 32px;
  color: white;
  background:
    linear-gradient(125deg, rgba(8,20,57,.98) 0%, rgba(21,45,111,.97) 46%, rgba(87,23,190,.94) 100%);
  box-shadow: 0 26px 70px rgba(11,22,56,.20);
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -45%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,173,25,.26), transparent 65%);
  pointer-events: none;
}

.eyebrow,
.sectionKicker {
  display: block;
  margin-bottom: 9px;
  color: var(--pm-gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.15rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.hero h1 span {
  background: linear-gradient(90deg, #fff, #d8dcff 38%, #f7c44a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.79);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.65;
}

.trustRow {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.trustRow span {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.88);
  font-size: .78rem;
  font-weight: 700;
}

.heroSteps {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.heroStep {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(7px);
}

.heroStep strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  background: var(--pm-gold);
  color: var(--pm-navy);
  font-size: .9rem;
}

.heroStep span {
  color: white;
  font-weight: 800;
}

.card {
  margin: 22px 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(11,22,56,.07);
  border-radius: 26px;
  background: rgba(255,255,255,.97);
  box-shadow:
    0 18px 44px rgba(11,22,56,.07),
    0 2px 8px rgba(11,22,56,.04);
}

.eventCard { margin-top: 26px; }

.sectionHeading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.sectionHeading h2,
.resultsIntro h2 {
  margin: 0;
  color: var(--pm-navy);
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.sectionHeading p,
.resultsIntro p {
  margin: 8px 0 0;
  color: var(--pm-muted);
  line-height: 1.55;
}

.sectionBadge,
.goldBadge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.sectionBadge {
  color: var(--pm-purple);
  background: #f1ecff;
}

.goldBadge {
  color: #7c5100;
  background: var(--pm-gold-soft);
  border: 1px solid #f4d786;
}

label {
  display: block;
  margin: 14px 0 7px;
  color: var(--pm-navy);
  font-size: .86rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--pm-line);
  border-radius: 14px;
  outline: none;
  background: white;
  color: var(--pm-ink);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input:focus,
select:focus {
  border-color: var(--pm-blue);
  box-shadow: 0 0 0 4px rgba(7,95,233,.10);
}

input::placeholder { color: #9aa2b4; }

.fileInput {
  padding: 10px;
  background: #f9faff;
}

.inlineAction {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.primaryButton {
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(100deg, var(--pm-blue) 0%, var(--pm-purple) 100%);
  color: white;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(63,35,190,.18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.primaryButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(63,35,190,.24);
  filter: brightness(1.03);
}

.primaryButton:active { transform: translateY(0); }
.primaryButton:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.fullButton { width: 100%; margin-top: 18px; }

.statusText {
  margin-top: 12px;
  color: var(--pm-muted);
  font-size: .9rem;
}

.eventFound {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef5ff;
  color: var(--pm-navy);
}

.eventFound span {
  color: var(--pm-muted);
  font-size: .85rem;
}

.modeNotice {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--pm-gold-soft);
  color: #765100;
  font-size: .9rem;
}

.modeNotice span {
  display: inline-block;
  margin-right: 7px;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  margin: 2px 0 18px;
  border-radius: 16px;
  background: #f1f3f8;
}

.tab {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--pm-muted);
  font-weight: 800;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.tab.active {
  background: white;
  color: var(--pm-navy);
  box-shadow: 0 4px 12px rgba(11,22,56,.08);
}

.tabIcon { color: var(--pm-purple); margin-right: 5px; }

.searchPanel { padding-top: 3px; }

.fieldGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: var(--pm-muted);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.45;
}

.consent input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  accent-color: var(--pm-purple);
}

.athleteResults {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.athlete {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--pm-line);
  border-radius: 14px;
  background: white;
  color: var(--pm-navy);
  text-align: left;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.athlete:hover {
  border-color: #b9c6e7;
  background: #f8faff;
  transform: translateY(-1px);
}

.athlete span { color: var(--pm-muted); font-size: .82rem; }

.resultsSection { margin-top: 34px; }

.resultsIntro {
  margin-bottom: 18px;
  padding: 0 4px;
}

.photoGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.photo {
  position: relative;
  overflow: hidden;
  padding: 8px;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 20px;
  background: white;
  color: var(--pm-navy);
  box-shadow: 0 10px 26px rgba(11,22,56,.07);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(11,22,56,.12);
}

.photo.selected {
  border-color: var(--pm-purple);
  box-shadow: 0 0 0 4px rgba(103,25,216,.10), 0 16px 34px rgba(11,22,56,.10);
}

.photo.selected::after {
  content: "✓";
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pm-gold);
  color: var(--pm-navy);
  font-weight: 950;
  box-shadow: 0 3px 10px rgba(11,22,56,.20);
}

.photoProof {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--pm-navy);
  isolation: isolate;
}

.photoProof > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}

/* Lighter proof protection:
   one centered Photo Magic logo + diagonal semi-transparent brand text. */
.proofWatermark {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.proofWatermarkLogo {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 57%;
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: .41;
  filter:
    drop-shadow(0 1px 2px rgba(255,255,255,.70))
    drop-shadow(0 2px 4px rgba(0,0,0,.45));
}

.proofWatermarkText {
  position: absolute;
  top: 22%;
  right: -54%;
  bottom: 22%;
  left: -54%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-27deg);
  opacity: .31;
}

.proofWatermarkText span {
  display: block;
  width: 210%;
  color: rgba(255,255,255,.96);
  font-size: clamp(.66rem, 2.7vw, 1.02rem);
  font-weight: 950;
  letter-spacing: .17em;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.72);
}

.photoCaption {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 4px 3px !important;
  font-size: .82rem !important;
  text-align: left;
}

.photoCaption strong { color: var(--pm-navy); }
.photoCaption small { color: var(--pm-muted); font-weight: 650; }

.packageCard { margin-top: 28px; }

.packageHeading { margin-bottom: 18px; }

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

.shopPackage {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1.5px solid var(--pm-line);
  border-radius: 20px;
  background: white;
  color: var(--pm-ink);
  text-align: left;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.shopPackage:hover {
  transform: translateY(-2px);
  border-color: #b7c5ea;
  box-shadow: 0 14px 30px rgba(11,22,56,.08);
}

.shopPackage.selected {
  border-color: var(--pm-purple);
  box-shadow: 0 0 0 4px rgba(103,25,216,.09), 0 14px 30px rgba(11,22,56,.09);
}

.shopPackageTop {
  display: grid;
  grid-template-columns: 105px minmax(0,1fr);
  min-height: 112px;
}

.packageVisual {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 112px;
  background:
    radial-gradient(circle at 20% 15%, rgba(241,173,25,.33), transparent 35%),
    linear-gradient(145deg, #0d2b72, #6618d1);
}

.packageVisual > img:not(.packageFallbackLogo) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.packageFallbackLogo {
  width: 82%;
  max-height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.22));
}

.packageCopy {
  padding: 16px 15px 12px;
}

.packageName {
  color: var(--pm-navy);
  font-weight: 900;
  line-height: 1.18;
}

.packageDescription {
  margin-top: 6px;
  color: var(--pm-muted);
  font-size: .78rem;
  line-height: 1.42;
}

.packageBottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid #edf0f6;
  background: #fbfcff;
}

.packagePrice {
  color: var(--pm-navy);
  font-size: 1.08rem;
  font-weight: 950;
}

.packageSelectLabel {
  color: var(--pm-purple);
  font-size: .72rem;
  font-weight: 900;
}

.shopPackage.selected .packageSelectLabel {
  color: var(--pm-success);
}

.checkoutPanel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #e2e7f1;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(248,250,255,.96), rgba(255,255,255,.98));
}

.checkoutField { max-width: 560px; }

.checkoutAction,
.prepaidCheckoutAction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.secureNote {
  display: grid;
  gap: 3px;
  color: var(--pm-muted);
  font-size: .82rem;
}

.secureNote strong {
  color: var(--pm-navy);
  font-size: .92rem;
}

.checkoutButton {
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.prepaidCard { margin-top: 22px; }

.prepaidSteps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin: 4px 0 18px;
}

.prepaidSteps div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f5f7fc;
}

.prepaidSteps strong {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pm-blue), var(--pm-purple));
  color: white;
  font-size: .75rem;
}

.prepaidSteps span {
  color: var(--pm-navy);
  font-size: .76rem;
  font-weight: 800;
}

.prepaidPackageSection {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #edf0f6;
}

.footer {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 34px 0 4px;
  color: var(--pm-muted);
  text-align: center;
}

.footer img {
  width: 150px;
  max-height: 52px;
  object-fit: contain;
  opacity: .94;
}

.footer p {
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.muted { color: var(--pm-muted); }

.hidden { display: none !important; }

.visuallyHidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Screenshot/capture deterrence layer — preserved from the approved version. */
#captureProtection {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.86);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-backdrop-filter: blur(20px) saturate(.62);
  backdrop-filter: blur(20px) saturate(.62);
  transition:
    opacity 110ms ease-out,
    visibility 0s linear 110ms;
}

#captureProtection.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition:
    opacity 110ms ease-out,
    visibility 0s linear 0s;
}

.captureProtectionMessage {
  max-width: 420px;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transform: scale(.985);
  transition:
    opacity 90ms ease-out 45ms,
    transform 120ms ease-out 45ms;
}

#captureProtection.active .captureProtectionMessage {
  opacity: 1;
  transform: scale(1);
}

.captureProtectionLogo {
  display: block;
  width: min(48vw,360px);
  max-height: 42vh;
  object-fit: contain;
  opacity: .96;
  filter:
    drop-shadow(0 6px 24px rgba(0,0,0,.42))
    drop-shadow(0 0 1px rgba(255,255,255,.18));
}

/* Prevent casual extraction of protected proofs. */
.photoGrid,
.photoGrid img,
.photoProof,
.proofWatermark {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

#results {
  transition: filter 100ms ease-out, opacity 100ms ease-out;
}

.capture-protected #results {
  filter: blur(16px);
  opacity: .18;
  pointer-events: none;
}

/* Never place proof pixels into browser print or Save-as-PDF output. */
@media print {
  body > :not(#captureProtection) {
    display: none !important;
  }

  #captureProtection {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    background: #000 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  #captureProtection .captureProtectionMessage {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (min-width: 760px) {
  .photoGrid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 780px) {
  .topbarInner { min-height: 68px; padding: 10px 16px; }
  .brand img { width: 150px; max-height: 46px; }
  .brandTagline { display: none; }

  .shell { width: min(100% - 24px, 1080px); padding-top: 18px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 24px;
    border-radius: 24px;
  }

  .heroSteps { grid-template-columns: repeat(3,1fr); }
  .heroStep { display: grid; justify-items: center; gap: 5px; text-align: center; padding: 10px 6px; }
  .heroStep span { font-size: .7rem; }
  .heroStep strong { width: 30px; height: 30px; }

  .fieldGrid { grid-template-columns: 1fr; gap: 0; }
  .packageGrid { grid-template-columns: 1fr; }
  .checkoutAction, .prepaidCheckoutAction { align-items: stretch; flex-direction: column; }
  .checkoutButton { width: 100%; min-width: 0; }
  .sectionHeading { align-items: flex-start; }
}

@media (max-width: 520px) {
  .inlineAction { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.15rem, 12vw, 3.25rem); }
  .heroSteps { gap: 6px; }
  .card { padding: 20px 17px; border-radius: 21px; }
  .photoGrid { gap: 9px; }
  .photo { padding: 6px; border-radius: 16px; }
  .photoProof { border-radius: 11px; }

  .proofWatermarkLogo { width: 60%; opacity: .40; }
  .proofWatermarkText { top: 20%; bottom: 20%; opacity: .31; }

  .shopPackageTop { grid-template-columns: 92px minmax(0,1fr); }
  .packageVisual { min-height: 104px; }
}
