/* NEXTUP builder + shared page fixes. Scoped to .nb (builder) unless noted. */

/* The prototype names Inter but never loaded it; load the bundled copy. */
@font-face {
  font-family: "Inter";
  src: url("/nextup_cards/static/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/nextup_cards/static/fonts/Inter-Variable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

.nb {
  --nb-navy: #0f1d33;
  --nb-ink: #18233a;
  --nb-muted: #5b6678;
  --nb-line: #dde4ee;
  --nb-red: #b8263f;
  --nb-red-soft: #fbeef1;
  --nb-ice: #f3f7fb;
  position: relative;
  padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: var(--nb-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.nb *, .nb *::before, .nb *::after { box-sizing: border-box; }

.nb-head {
  max-width: 1280px;
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.nb-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--nb-red);
}
.nb-kicker::before { content: ""; display: inline-block; width: 26px; height: 2px; margin: 0 10px 3px 0; background: var(--nb-red); vertical-align: middle; }
.nb-head h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--nb-navy);
}
.nb-head h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; letter-spacing: -0.03em; color: var(--nb-red); }
.nb-lede { max-width: 340px; margin: 0; font-size: 15px; line-height: 1.55; color: var(--nb-muted); }

.nb-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* ---------- left panel ---------- */
.nb-panel {
  background: #fff;
  border: 1px solid var(--nb-line);
  border-radius: 24px;
  box-shadow: 0 24px 60px -32px rgba(15, 29, 51, 0.35);
  overflow: hidden;
}
.nb-block { padding: 22px 24px; border-bottom: 1px solid var(--nb-line); }
.nb-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.nb-block-head h3 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nb-navy); }
.nb-note { font-size: 12px; color: var(--nb-muted); text-align: right; }

.nb-sports { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nb-sports-soon { grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.nb-sport {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px 10px;
  border: 1px solid var(--nb-line);
  border-radius: 14px;
  background: var(--nb-ice);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--nb-ink);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.nb-sport:hover { transform: translateY(-1px); border-color: #b9c6d6; }
.nb-sport.is-on { border-color: var(--nb-navy); background: #fff; box-shadow: 0 0 0 2px var(--nb-navy) inset; }
.nb-sport-icon { font-size: 22px; line-height: 1; }
.nb-sports-soon .nb-sport { padding: 9px 4px 8px; font-size: 11px; }
.nb-sports-soon .nb-sport-icon { font-size: 18px; }
.nb-sport-name { text-align: center; line-height: 1.15; }
.nb-sport.is-soon { color: var(--nb-muted); }
.nb-soon {
  position: absolute; top: 4px; right: 4px;
  font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 5px; border-radius: 99px; background: #e7ecf3; color: var(--nb-muted);
}
.nb-more { margin-top: 12px; }
.nb-more summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--nb-red);
  list-style: none;
}
.nb-more summary::-webkit-details-marker { display: none; }
.nb-more summary::after { content: " ↓"; }
.nb-more[open] summary::after { content: " ↑"; }
.nb-count { color: var(--nb-muted); font-weight: 600; }
.nb-hint { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--nb-muted); }
.nb-hint:empty { display: none; }
.nb-warn { color: #8a4b0f; background: #fff6e8; border: 1px solid #f3dfbf; padding: 10px 12px; border-radius: 12px; }

.nb-editions { display: grid; gap: 8px; }
.nb-edition {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--nb-line);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  text-align: left;
  color: var(--nb-ink);
  cursor: pointer;
}
.nb-edition.is-on { border-color: var(--nb-navy); box-shadow: 0 0 0 2px var(--nb-navy) inset; }
.nb-edition strong { display: block; font-size: 14px; }
.nb-edition small { display: block; font-size: 12px; color: var(--nb-muted); }
.nb-edition-swatch { flex: 0 0 34px; height: 46px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.nb-edition-swatch[data-design="signature"] { background: linear-gradient(165deg, #f4f7fa, #d6dfe9 48%, #9eb0c3); }
.nb-edition-swatch[data-design="chrome"] { background: conic-gradient(from 210deg at 70% 30%, #9fd2f5, #c9b8ee, #8ae0d5, #f2c6e4, #9fd2f5); }
.nb-edition-swatch[data-design="ultimate"] { background: radial-gradient(120% 90% at 30% 18%, #4b3524, #1c1511 55%, #090706); box-shadow: inset 0 0 0 2px #e3be76; }

.nb-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--nb-line); }
.nb-tab {
  padding: 16px 10px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nb-muted);
  cursor: pointer;
}
.nb-tab[aria-selected="true"] { color: var(--nb-navy); border-bottom-color: var(--nb-red); }
.nb-tabpanel { padding: 20px 24px 24px; }
.nb-tabpanel[hidden] { display: none; }

.nb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nb-field { display: block; margin-bottom: 14px; }
.nb-field > span {
  display: flex; justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nb-muted);
}
.nb-field > span em { font-style: normal; letter-spacing: 0; font-weight: 600; }
.nb input:not([type]), .nb input[type="text"], .nb input[type="email"], .nb textarea, .nb-stat-row input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--nb-line);
  border-radius: 12px;
  background: var(--nb-ice);
  font: inherit;
  font-size: 15px;
  color: var(--nb-ink);
}
.nb textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.nb input:focus, .nb textarea:focus { outline: none; border-color: var(--nb-navy); background: #fff; box-shadow: 0 0 0 3px rgba(15, 29, 51, 0.1); }

.nb-photo { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--nb-line); }
.nb-upload {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1.5px dashed #b9c6d6;
  border-radius: 16px;
  background: var(--nb-ice);
  cursor: pointer;
}
.nb-upload:hover { border-color: var(--nb-navy); }
.nb-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nb-upload:focus-within { box-shadow: 0 0 0 3px rgba(15, 29, 51, 0.15); }
.nb-upload-icon { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; font-size: 20px; color: var(--nb-navy); box-shadow: 0 1px 0 var(--nb-line); }
.nb-upload strong { display: block; font-size: 14px; color: var(--nb-navy); }
.nb-upload small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--nb-muted); }
.nb-sliders { display: grid; gap: 10px; margin-top: 14px; }
.nb-slider { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--nb-muted); }
.nb-slider input { width: 100%; accent-color: var(--nb-red); }
.nb-link { margin-top: 10px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--nb-red); cursor: pointer; }

.nb-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: 14px; font-weight: 700; color: var(--nb-navy); cursor: pointer; }
.nb-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--nb-red); }
.nb-check small { display: block; font-weight: 500; font-size: 12px; color: var(--nb-muted); }
.nb-stats { display: grid; gap: 8px; }
.nb-stats[hidden] { display: none; }
.nb-stat-row { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }
.nb-stat-row input { padding: 10px 12px; font-size: 14px; }

/* ---------- stage ---------- */
.nb-stage {
  position: sticky;
  top: 24px;
  padding: 22px clamp(16px, 3vw, 32px) 26px;
  border-radius: 28px;
  background:
    radial-gradient(70% 60% at 50% 40%, #ffffff 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #e9eff6 0%, #dfe7f1 100%);
  border: 1px solid #d7e0eb;
  text-align: center;
}
.nb-stage-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nb-stage-label { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--nb-muted); }
.nb-side { display: inline-flex; padding: 4px; border-radius: 99px; background: #fff; box-shadow: 0 1px 0 var(--nb-line), 0 8px 18px -12px rgba(15,29,51,.4); }
.nb-side button { padding: 8px 16px; border: 0; border-radius: 99px; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--nb-muted); cursor: pointer; }
.nb-side button[aria-pressed="true"] { background: var(--nb-navy); color: #fff; }

.nb-card-wrap { position: relative; margin: 26px auto 22px; width: min(380px, 78%); perspective: 1600px; }
.nb-sample {
  position: absolute; z-index: 3; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 5px 12px; border-radius: 99px; background: rgba(15,29,51,.85); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.nb-sample[hidden] { display: none; }
.nb-flip { position: relative; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(.2,.75,.2,1); }
.nb-flip.is-back { transform: rotateY(180deg); }
.nb-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 30px 40px rgba(15, 29, 51, 0.32)); }
.nb-face-back { position: absolute; inset: 0; transform: rotateY(180deg); }

.nb-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.nb-btn {
  padding: 15px 26px;
  border-radius: 99px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.nb-btn:hover:not(:disabled) { transform: translateY(-1px); }
.nb-ghost { border: 1px solid var(--nb-line); background: #fff; color: var(--nb-navy); }
.nb-primary { border: 0; background: var(--nb-red); color: #fff; box-shadow: 0 14px 30px -14px rgba(184, 38, 63, 0.8); }
.nb-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.nb-status { min-height: 1.4em; margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--nb-navy); }
.nb-fine { margin: 6px auto 0; max-width: 420px; font-size: 12px; line-height: 1.5; color: var(--nb-muted); }

@media (max-width: 960px) {
  .nb-shell { grid-template-columns: 1fr; }
  .nb-stage { position: relative; top: 0; order: -1; }
  .nb-card-wrap { width: min(300px, 72%); }
}
@media (max-width: 520px) {
  .nb-block, .nb-tabpanel { padding-left: 16px; padding-right: 16px; }
  .nb-sports-soon { grid-template-columns: repeat(3, 1fr); }
  .nb-row { grid-template-columns: 1fr; gap: 0; }
  .nb-slider { grid-template-columns: 1fr; gap: 4px; }
  .nb-stage-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .nb-flip { transition: none; }
}

/* ---------- showcase sections (Season Pack, Moment) use the real card ---------- */
.nx-card-slot .nxc-trim { box-shadow: 0 30px 50px -24px rgba(15, 29, 51, 0.45); }
.nx-share-stack { position: relative; width: min(260px, 70%); margin: 0 auto; aspect-ratio: 2.5 / 3.6; }
.nx-share-stack > div { position: absolute; inset: 0 0 auto 0; }
.nx-share-stack > div:nth-child(1) { transform: rotate(-9deg) translate(-18%, 4%); opacity: .9; }
.nx-share-stack > div:nth-child(2) { transform: rotate(-3deg) translate(-6%, 1%); }
.nx-share-stack > div:nth-child(3) { transform: rotate(5deg) translate(10%, 0); }
.nx-share-count {
  position: absolute; right: -6%; bottom: -4%; z-index: 4;
  padding: 8px 14px; border-radius: 99px; background: #0f1d33; color: #fff;
  font: 800 13px/1 Inter, sans-serif; letter-spacing: .08em;
}

/* Edition step (above the builder) renders real cards too. */
.nu-choice-click .nb-edition-card { display: block; width: min(250px, 100%); margin: 0 auto; }

/* ---------- photo permission, upload and artwork (milestone 3) ---------- */
.nb-step-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.nb-step-head h4, .nb-art h4 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--nb-navy); }
.nb-step-badge { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--nb-red-soft); color: var(--nb-red); }
.nb-step-badge[data-tone="ok"] { background: #e8f6ee; color: #1d7a45; }
.nb-step-badge[data-tone="wait"] { background: #fff6e8; color: #8a4b0f; }
.nb-consent { padding: 16px; border: 1px solid var(--nb-line); border-radius: 18px; background: #fbfcfe; }
.nb-consent-lede { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--nb-ink); }
.nb fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.nb legend { padding: 0; margin-bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--nb-muted); }
.nb-who label, .nb-under13 label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 6px; border: 1px solid var(--nb-line); border-radius: 12px; background: #fff; font-size: 14px; cursor: pointer; }
.nb-who label:has(input:checked), .nb-under13 label:has(input:checked) { border-color: var(--nb-navy); box-shadow: 0 0 0 1px var(--nb-navy) inset; }
.nb-who input, .nb-under13 input { accent-color: var(--nb-red); width: 16px; height: 16px; }
.nb-minor-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: #eef3f8; font-size: 14px; }
.nb-minor-note[hidden], .nb-consent-details[hidden], .nb-under13[hidden], .nb-upload-step[hidden], .nb-art[hidden], .nb-ai[hidden], .nb-progress[hidden], .nb-consent[hidden] { display: none; }
.nb-checks { display: grid; gap: 8px; margin: 4px 0 6px; }
.nb-checks .nb-check { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--nb-ink); }
.nb-check-optional { padding: 10px 12px; border-radius: 12px; background: #f3f7fb; }
.nb-block-btn { width: 100%; margin-top: 10px; }
.nb-error { min-height: 1.2em; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--nb-red); }
.nb-consent-status { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--nb-ink); padding: 10px 12px; border-radius: 12px; background: #f3f7fb; }
.nb-progress { height: 6px; margin-top: 10px; border-radius: 99px; background: #e3e9f1; overflow: hidden; }
.nb-progress span { display: block; height: 100%; width: 0; background: var(--nb-red); transition: width .3s ease; }
.nb-warnings { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.nb-warnings li { padding: 10px 12px; border-radius: 12px; background: #fff6e8; border: 1px solid #f3dfbf; color: #6f3c0b; font-size: 13px; line-height: 1.45; }
.nb-art { margin-top: 16px; }
.nb-art-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.nb-art-option { padding: 6px; border: 1px solid var(--nb-line); border-radius: 14px; background: #fff; font: inherit; cursor: pointer; text-align: center; }
.nb-art-option.is-on { border-color: var(--nb-navy); box-shadow: 0 0 0 2px var(--nb-navy) inset; }
.nb-art-thumb { display: block; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden;
  background: repeating-conic-gradient(#eef2f7 0 25%, #fff 0 50%) 50% / 14px 14px; }
.nb-art-thumb img { width: 100%; height: 100%; object-fit: contain; }
.nb-art-label { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--nb-ink); }
.nb-ai { margin-top: 14px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #f7f2ff, #eef6ff); border: 1px solid #e2dcf5; }
.nb-ai-head { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--nb-navy); }
.nb-ai-head span { font-size: 12px; color: var(--nb-muted); }
.nb-ai-styles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nb-chip { padding: 7px 12px; border-radius: 99px; border: 1px solid var(--nb-line); background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--nb-ink); cursor: pointer; }
.nb-chip.is-on { background: var(--nb-navy); border-color: var(--nb-navy); color: #fff; }
.nb-ghost:disabled { opacity: .5; cursor: not-allowed; }
.nb-upload-step .nb-sliders { margin-top: 16px; }

/* ---------- order step (milestone 4) ---------- */
.nb-order { margin: 4px 24px 24px; padding: 16px; border: 1px solid var(--nb-line); border-radius: 18px; background: #fbfcfe; }
.nb-order[hidden], .nb-order [hidden] { display: none; }
.nb-blockers { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 6px; }
.nb-blockers:empty { display: none; }
.nb-blockers li { padding: 9px 12px; border-radius: 12px; background: #f3f7fb; font-size: 13px; line-height: 1.45; color: var(--nb-ink); }
.nb-blockers li::before { content: "• "; color: var(--nb-red); font-weight: 900; }
.nb-products, .nb-addons { display: grid; gap: 8px; }
.nb-addons { margin-top: 6px; }
.nb-product, .nb-addon { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--nb-line); border-radius: 14px; background: #fff; cursor: pointer; }
.nb-product:has(input:checked) { border-color: var(--nb-navy); box-shadow: 0 0 0 1px var(--nb-navy) inset; }
.nb-product input, .nb-addon input { accent-color: var(--nb-red); width: 16px; height: 16px; margin: 0; }
.nb-product-text { display: grid; gap: 2px; min-width: 0; }
.nb-product-text strong { font-size: 14px; color: var(--nb-navy); }
.nb-product-text small { font-size: 12px; line-height: 1.4; color: var(--nb-muted); }
.nb-product-price { display: grid; justify-items: end; font-size: 15px; font-weight: 800; color: var(--nb-navy); white-space: nowrap; }
.nb-product-price small { font-size: 11px; font-weight: 600; color: var(--nb-muted); }
.nb-proof { margin: 14px 0 0; font-weight: 600; font-size: 13px; }
.nb-review-note { margin: 0 0 8px; padding: 12px 14px; border-radius: 12px; background: #fff6e8; border: 1px solid #f3dfbf; color: #6f3c0b; font-size: 14px; line-height: 1.5; }
.nb-order-done { margin: 0; padding: 12px 14px; border-radius: 12px; background: #e8f6ee; color: #1d5b37; font-size: 14px; line-height: 1.5; }
@media (max-width: 720px) { .nb-order { margin: 4px 16px 20px; } }
