@font-face {
  font-family: "NaturalMono";
  src: url("./Assets/Fonts/NaturalMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NaturalMono";
  src: url("./Assets/Fonts/NaturalMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050505;
  --ink: #f7f7f2;
  --accent: #f7f7f2;
  --card: #0d0d0d;
  --line: rgba(247, 247, 242, 0.16);
  --muted: rgba(247, 247, 242, 0.72);
  --font-price: "NaturalMono", "Courier New", monospace;
}

/* ── Price typography ────────────────────────────────────────────────────────
   NaturalMono for all price elements site-wide. */
.arrival-price,
.product-price-display,
.product-price-original,
.basket-item-price,
.basket-summary-total,
.preview-original-price,
#product-price,
#product-price-original {
  font-family: var(--font-price);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

* {
  box-sizing: border-box;
}

/* Ensure [hidden] always wins over class-level display rules */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.page {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 120px 0 80px; /* top clears the fixed 84px header */
}

.home-page .page {
  padding-top: 0;
  padding-bottom: 0;
}

.home-page .site-footer {
  margin-top: 0;
}

.home-splash {
  position: relative;
  isolation: isolate;
  width: 100vw;
  min-height: 100svh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 84px max(32px, calc((100vw - 1240px) / 2)) 72px;
  /* Bottom-left anchor — A24 style */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: #050505;
}

/* Light-leak overlay — sits above the gradient, below all content */
.home-splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('./Assets/Images/overlay.png') center center / cover no-repeat;
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

/* Image slideshow */
.home-splash-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.home-splash-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: blur(18px);
  transform: scale(1.06);
  transition: opacity 1.6s ease, filter 1.6s ease, transform 1.6s ease;
  will-change: opacity, filter, transform;
}

.home-splash-slide.is-active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* Dark overlay */
.home-splash-slides::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1;
  pointer-events: none;
}

/* CSS film grain / noise texture */
.home-splash::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  background-repeat: repeat;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  width: 100%;
  transition: background 360ms ease;
}

/* Solid black bar — no transparency */
.site-header.is-scrolled {
  background: #050505;
}

/* Idle — bar fades entirely; only the hamburger lingers */
.site-header.is-idle {
  background: transparent;
}

.site-header-center,
.site-header-right {
  transition: opacity 360ms ease, transform 360ms ease;
}

.site-header.is-idle .site-header-center,
.site-header.is-idle .site-header-right {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

.site-header-overlay {
  min-height: 84px;
  padding: 0 20px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header-left,
.site-header-center,
.site-header-right {
  display: flex;
  align-items: center;
  height: 84px;
  min-height: 84px;
}

.site-header-left {
  justify-content: flex-start;
}

.site-header-center {
  justify-content: center;
  justify-self: center;
}

.site-header-right {
  justify-content: flex-end;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.site-logo {
  display: block;
  width: 76px;
  height: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  width: auto;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  flex: 0 0 auto;
  line-height: 1;
  opacity: 1;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 200ms ease;
}

/* Touch: active-only feedback — resets when finger lifts */
.nav-toggle:active {
  opacity: 0.5;
}

/* Pointer devices only — prevents iOS sticky hover */
@media (hover: hover) {
  .nav-toggle:hover {
    opacity: 0.5;
  }
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 22px;
  height: 16px;
}

.nav-toggle-icon span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
}

.nav-toggle-label {
  display: inline-block;
  width: auto;
  height: auto;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  line-height: 1;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  padding: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 28vw;
  min-width: 320px;
  max-width: 460px;
  height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 20px;
  padding: 30px 28px 32px;
  background: #000;
  border-right: 1px solid rgba(247, 247, 242, 0.06);
  z-index: 201;
  justify-self: start;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0ms linear 260ms;
}

.site-nav.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-close {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  margin-bottom: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  opacity: 1;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 200ms ease;
}

.nav-close:active {
  opacity: 0.5;
}

@media (hover: hover) {
  .nav-close:hover {
    opacity: 0.5;
  }
}

.nav-close-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.nav-close-icon span {
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 1px;
  background: var(--ink);
}

.nav-close-icon span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-close-icon span:nth-child(2) {
  transform: rotate(-45deg);
}

.nav-close-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  line-height: 1;
}

.site-nav a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(2.4rem, 3.6vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 260ms ease, transform 260ms ease;
}

/* Stagger links in as the panel opens */
.site-nav.is-open a {
  opacity: 1;
  transform: translateX(0);
}
.site-nav.is-open a:nth-child(2) { transition-delay: 80ms; }
.site-nav.is-open a:nth-child(3) { transition-delay: 150ms; }
.site-nav.is-open a:nth-child(4) { transition-delay: 220ms; }

/* Spotlight hover — non-hovered siblings dim */
.site-nav.is-open:has(a:hover) a:not(:hover) {
  opacity: 0.22;
  transition: opacity 160ms ease;
}

/* Numbered label inside each nav link */
.nav-num {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: rgba(247, 247, 242, 0.32);
  line-height: 1;
  text-transform: uppercase;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 32px;
  height: 32px;
  color: var(--ink);
  align-self: center;
  flex: 0 0 auto;
  z-index: 2;
}

.cart-icon-image {
  display: block;
  width: 20px;
  height: auto;
}

/* Basket item count — only rendered by nav.js when count > 0 */
.cart-count {
  position: absolute;
  bottom: 2px;
  right: 1px;
  font-family: var(--font-price);
  font-size: 0.5rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
}

.hero {
  width: 100%;
  padding: 28px 0;
}

.home-hero {
  --hero-width: min(1120px, 90vw);
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  gap: 28px;
  padding-top: 0;
  padding-bottom: 0;
  flex-shrink: 0;
}

.home-hero-logo {
  display: none; /* logo lives in the site header */
}

/* Large cinematic tagline — left-anchored, A24 scale */
.home-hero h1 {
  text-align: left;
  margin-bottom: 0;
  font-size: clamp(3.4rem, 9vw, 10.5rem);
  letter-spacing: -0.04em;
  line-height: 0.88;
  max-width: 16ch;
}

/* Button: auto width, no extra margin */
.home-hero .home-actions {
  width: auto;
  margin-top: 0;
}

/* Welcome heading above the lede */
.home-welcome {
  font-size: clamp(3.2rem, 7vw, 8.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.86;
  margin: 56px 0 24px;
  color: var(--ink);
}

/* Relocated intro paragraph — below the hero, wider breathing room */
.home-page-lede {
  max-width: none;
  width: 100%;
  margin: 20px 0 72px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ─── New Arrivals ──────────────────────────────────────────────────────────── */

.new-arrivals {
  margin-bottom: 64px;
}

.new-arrivals-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.12);
  margin-bottom: 20px;
}

.new-arrivals-link {
  color: rgba(247, 247, 242, 0.4);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 200ms ease;
}

@media (hover: hover) {
  .new-arrivals-link:hover {
    color: var(--ink);
  }
}

.arrivals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.arrival-card {
  display: flex;
  flex-direction: column;
}

/* Film-poster proportion: A4 ratio 1:√2 */
.arrival-poster {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1.414;
  padding: 14px;
  text-decoration: none;
  border: 1px solid rgba(247, 247, 242, 0.07);
  position: relative;
  overflow: hidden;
  transition: border-color 280ms ease;
}

.arrival-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0; /* below the hover overlay */
}

.arrival-poster > * {
  position: relative;
  z-index: 2; /* text above the overlay */
}

/* Image inherits position:relative from above but must stay at z-index 0 */
.arrival-poster > img {
  position: absolute;
  z-index: 0;
}

/* Overlay: vignette for gradient-only cards, dark for image cards.
   Hidden by default on image cards, revealed on hover.
   z-index: 1 sits above the image (z-index 0) and below text (z-index 2). */
.arrival-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 60%, transparent 30%, rgba(5, 5, 5, 0.55) 100%);
  pointer-events: none;
  transition: opacity 220ms ease;
}

/* For image cards: use a flat dark overlay instead of vignette */
.arrival-poster:has(img)::after {
  background: rgba(0, 0, 0, 0.84);
  opacity: 0;
}

@media (hover: hover) {
  .arrival-poster:hover {
    border-color: rgba(247, 247, 242, 0.22);
  }

  /* Reveal overlay + text on hover for image cards */
  .arrival-poster:has(img):hover::after {
    opacity: 1;
  }

  .arrival-poster:has(img):hover .arrival-cat,
  .arrival-poster:has(img):hover .arrival-title-card,
  .arrival-poster:has(img):hover .arrival-year {
    opacity: 1;
  }

  /* Boost text colours so they're legible on the dark overlay */
  .arrival-poster:has(img):hover .arrival-cat {
    color: rgba(247, 247, 242, 0.55);
  }
  .arrival-poster:has(img):hover .arrival-title-card {
    color: var(--ink);
  }
  .arrival-poster:has(img):hover .arrival-year {
    color: rgba(247, 247, 242, 0.65);
  }
}

.arrival-cat {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.36);
  line-height: 1;
  transition: opacity 220ms ease;
}

/* Hide text on image cards by default — revealed on hover */
.arrival-poster:has(img) .arrival-cat {
  opacity: 0;
}

/* Title pushes down with auto top-margin */
.arrival-title-card {
  display: block;
  margin-top: auto;
  padding-bottom: 8px;
  font-size: clamp(1.5rem, 1.8vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
  transition: opacity 220ms ease;
}

.arrival-poster:has(img) .arrival-title-card {
  opacity: 0;
}

.arrival-year {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: rgba(247, 247, 242, 0.28);
  line-height: 1;
  transition: opacity 220ms ease;
}

.arrival-poster:has(img) .arrival-year {
  opacity: 0;
}

.arrival-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(247, 247, 242, 0.08);
}

.arrival-name {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1;
}

.arrival-price {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1;
}

/* Sale price group */
.arrival-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.arrival-price-original {
  font-size: 0.7rem;
  color: rgba(247, 247, 242, 0.28);
  text-decoration: line-through;
  line-height: 1;
  font-family: var(--font-price);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Sale badge on poster */
.arrival-sale-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
  pointer-events: none;
}

/* ─── Now Showing ────────────────────────────────────────────────────────────── */

.now-showing {
  border-top: 1px solid rgba(247, 247, 242, 0.12);
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

/* Image zone: full-bleed background on desktop */
.now-showing-image-zone {
  position: absolute;
  inset: 0;
}

.now-showing-figure {
  margin: 0;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 15%, #12182e 0%, #050505 68%);
}

.now-showing-figure img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient scrim — desktop only, dark on left (text side) fading to transparent right */
.now-showing-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.78) 0%, transparent 70%);
  pointer-events: none;
}

/* View Product button — shrink to content width to match Get Access button */
#home-now-showing-link {
  align-self: flex-start;
}

/* Inner: foreground content */
.now-showing-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  padding: 0 0 48px;
}

.now-showing-body {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
}

.now-showing-eyebrow {
  margin: 0 0 20px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.45);
}

.now-showing-title {
  margin: 0 0 32px;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink, #f7f7f2);
}

/* ─── Product-page trailer elements (shared) ──────────────────────────────── */

.trailer-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #070707;
  border: 1px solid rgba(247, 247, 242, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle scanline texture */
.trailer-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(247, 247, 242, 0.012) 3px,
    rgba(247, 247, 242, 0.012) 4px
  );
  pointer-events: none;
}

/* Corner marks — film frame aesthetic */
.trailer-frame::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(247, 247, 242, 0.06);
  pointer-events: none;
}

.trailer-play-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.trailer-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(247, 247, 242, 0.3);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 240ms ease, background 240ms ease;
}

.trailer-play-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--ink);
  margin-left: 3px;
}

.trailer-play-btn:active {
  background: rgba(247, 247, 242, 0.08);
}

@media (hover: hover) {
  .trailer-play-btn:hover {
    border-color: var(--ink);
    background: rgba(247, 247, 242, 0.06);
  }
}

.trailer-coming-soon {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.26);
}

/* ─── Cognitive Cinema ──────────────────────────────────────────────────────── */

.cognitive-cinema {
  margin-bottom: 80px;
  padding-top: 72px;
  border-top: 1px solid rgba(247, 247, 242, 0.12);
}

.cognitive-inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 72px;
  align-items: end;
}

.cognitive-title {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 7.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.88;
  color: var(--ink);
}

.cognitive-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.76;
  color: var(--muted);
  max-width: 46ch;
  padding-bottom: 6px; /* optically aligns to title baseline */
}

.home-loading #home-hero-title,
.home-loading #home-hero-copy,
.home-loading .home-actions {
  visibility: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1;
}

h1 {
  width: var(--hero-width);
  max-width: none;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  text-align: left;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lede,
p,
li {
  line-height: 1.6;
  color: var(--muted);
}

.lede {
  width: var(--hero-width);
  max-width: none;
  margin-top: 28px;
  margin-bottom: 0;
  font-size: 1rem;
  text-align: left;
}

.access-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--card);
}

.home-actions,
.home-grid {
  display: grid;
  gap: 16px;
}

.home-actions {
  width: min(var(--hero-width), 280px);
  margin-top: 28px;
  grid-template-columns: minmax(0, 1fr);
}

.home-grid {
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-card h2 {
  margin-bottom: 10px;
}

.home-marquee {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 16px 0 18px;
  border-top: 1px solid rgba(247, 247, 242, 0.12);
  border-bottom: 1px solid rgba(247, 247, 242, 0.12);
}

.home-marquee p {
  margin: 0;
  color: rgba(247, 247, 242, 0.64);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
  gap: 32px;
  margin-top: 34px;
  align-items: start;
}

.home-column {
  padding-top: 12px;
  border-top: 1px solid rgba(247, 247, 242, 0.12);
}

.home-column h2 {
  max-width: 14ch;
  margin-bottom: 12px;
}

.home-column-quote {
  padding-left: 22px;
}

.home-quote {
  max-width: 18ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.home-feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  margin-top: 46px;
}

.home-feature {
  padding: 26px 24px;
  border: 1px solid rgba(247, 247, 242, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.home-feature h2 {
  max-width: 13ch;
  margin-bottom: 14px;
}

.home-feature-muted {
  display: grid;
  align-content: start;
}

.home-feature-muted .secondary-link {
  margin-top: 10px;
}

/* ─── Free Download: Origami Wallet ─────────────────────────────────────── */

.free-dl {
  border-top: 1px solid rgba(247, 247, 242, 0.12);
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

/* Image zone: full-bleed background on desktop */
.free-dl-image-zone {
  position: absolute;
  inset: 0;
  /* No z-index here — play button inside participates in .free-dl's stacking context */
}

.free-dl-figure {
  margin: 0;
  position: absolute;
  inset: 0;
  background: #060606;
}

.free-dl-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Play button — centred within the image zone */
.free-dl-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 1px solid rgba(247, 247, 242, 0.4);
  color: var(--ink, #f7f7f2);
  padding: 10px 16px 10px 12px;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
  z-index: 2;
}

.free-dl-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(247, 247, 242, 0.4);
  flex-shrink: 0;
  transition: border-color 200ms ease;
}

.free-dl-play-icon svg {
  width: 11px;
  height: 11px;
  fill: var(--ink, #f7f7f2);
  margin-left: 2px;
}

.free-dl-play-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (hover: hover) {
  .free-dl-play-btn:hover {
    border-color: rgba(247, 247, 242, 0.85);
    background: rgba(247, 247, 242, 0.06);
  }
  .free-dl-play-btn:hover .free-dl-play-icon {
    border-color: rgba(247, 247, 242, 0.85);
  }
}

/* Inner: foreground content layer */
.free-dl-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 80px 0;
}

/* ── Body / text ── */

.free-dl-body {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
}

.free-dl-eyebrow {
  margin: 0 0 20px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.45);
}

.free-dl-title {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--ink, #f7f7f2);
}

.free-dl-copy {
  margin: 0 0 32px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(247, 247, 242, 0.62);
  max-width: 32ch;
}

/* ── Trailer modal ── */

.free-dl-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fdModalIn 220ms ease forwards;
}

.free-dl-modal[hidden] {
  display: none;
}

@keyframes fdModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.free-dl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.88);
  border: none;
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.free-dl-modal-box {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100vw - 32px));
}

.free-dl-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(247, 247, 242, 0.25);
  color: var(--ink, #f7f7f2);
  cursor: pointer;
  transition: border-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.free-dl-modal-close:focus:not(:focus-visible) {
  outline: none;
}

.free-dl-modal-close svg {
  width: 12px;
  height: 12px;
}

@media (hover: hover) {
  .free-dl-modal-close:hover {
    border-color: rgba(247, 247, 242, 0.7);
  }
}

.free-dl-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.free-dl-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── Mobile ── */

@media (max-width: 720px) {
  .free-dl {
    margin-bottom: 56px;
    overflow: visible;
  }

  /* Image zone becomes a 16:9 block at the top of the section */
  .free-dl-image-zone {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  /* Play button stays absolutely centred within the image zone */
  .free-dl-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  /* Inner: normal block flow below the image zone */
  .free-dl-inner {
    position: static;
    min-height: unset;
    padding: 0;
    display: block;
  }

  .free-dl-body {
    max-width: 100%;
    padding: 28px 0 8px;
    background: none;
  }

  /* Section buttons: full width on mobile for consistency */
  .home-actions .button,
  .now-showing-body .button,
  .free-dl-body .button,
  .home-reviews-foot .button,
  .closing-statement .button {
    display: flex;
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .free-dl-modal-close {
    top: -44px;
    width: 40px;
    height: 40px;
  }
}

/* ── Access Room home panel ── */
.free-dl--access {
  margin-top: 80px;
  margin-bottom: 48px;
}

/* Create a stacking context on the figure so overlays stay beneath .free-dl-inner (z-index:1) */
.free-dl--access .free-dl-figure {
  z-index: 0;
}

/* Red cinematic overlay from the right — mirrors the access room hero style */
.free-dl--access .free-dl-figure::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('./Assets/Images/overlay.png') right top / auto 130% no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

/* Black gradient from the left for text legibility */
.free-dl--access .free-dl-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.65) 35%, rgba(5,5,5,0.18) 62%, transparent 78%);
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 720px) {
  .free-dl--access {
    margin-bottom: 32px;
  }
}

.panel-head,
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.panel-head {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-hint,
.result-copy {
  margin: 0;
  font-size: 0.92rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
}

@media (min-width: 721px) {
  .button {
    min-width: 220px;
  }
}

.primary {
  background: var(--accent);
  color: #050505;
}

.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #111;
  color: var(--ink);
  font: inherit;
}

select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #111;
  color: var(--ink);
  font: inherit;
}

.status {
  min-height: 24px;
  margin-top: 12px;
}

.status.error {
  color: #ff8e8e;
}

.status.success {
  color: #b8ffb7;
}

.result {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.result-list {
  display: grid;
  gap: 12px;
}

.video-player {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.video-player-head {
  margin-bottom: 12px;
}

.video-frame-wrap {
  border: 1px solid var(--line);
  background: #111;
}

#video-embed-frame {
  width: 100%;
  min-height: 540px;
  display: block;
}

.product-result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #111;
}

.product-meta {
  display: grid;
  gap: 4px;
}

.product-type {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.secondary-link,
.support-link {
  margin: 18px 0 0;
  font-size: 0.95rem;
}

.secondary-link a {
  color: inherit;
  text-decoration: none;
}

.support-link {
  color: rgba(247, 247, 242, 0.5);
}

/* ── Mindhaus Video Club modal ───────────────────────────────────────────── */

.vc-modal-box {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 32px));
  background: #080808;
  border: 1px solid rgba(247, 247, 242, 0.07);
}

.vc-modal-inner {
  padding: 48px 44px 52px;
  text-align: left;
}

/* mix-blend-mode: screen dissolves the logo's black background so only
   the orange VIDEO and white type float on the dark panel */
.vc-modal-logo {
  display: block;
  width: 100%;
  margin: 0 auto 40px;
  mix-blend-mode: screen;
  user-select: none;
  pointer-events: none;
}

.vc-modal-heading {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.vc-modal-copy {
  margin: 0 0 32px;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  line-height: 1.75;
  color: rgba(247, 247, 242, 0.5);
  max-width: 30ch;
}

.vc-form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vc-input {
  background: rgba(247, 247, 242, 0.05);
  border: 1px solid rgba(247, 247, 242, 0.12);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  padding: 14px 18px;
  outline: none;
  min-width: 0;
  text-align: left;
  -webkit-appearance: none;
}

.vc-input::placeholder {
  color: rgba(247, 247, 242, 0.22);
}

.vc-input:focus {
  border-color: rgba(247, 247, 242, 0.28);
  background: rgba(247, 247, 242, 0.04);
}

.vc-submit {
  background: var(--ink);
  color: var(--bg);
  border: none;
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 15px 28px;
  cursor: pointer;
  transition: opacity 200ms ease;
  white-space: nowrap;
}

@media (hover: hover) {
  .vc-submit:hover {
    opacity: 0.82;
  }
}

/* Confirmation state */
#vc-modal-confirmed .vc-modal-heading {
  margin-bottom: 16px;
}

@media (max-width: 520px) {
  .vc-modal-inner {
    padding: 36px 28px 44px;
  }
  .vc-modal-logo {
    width: 100%;
    margin-bottom: 32px;
  }
  .vc-modal-heading {
    font-size: clamp(2rem, 11vw, 2.6rem);
  }
}

/* ── Closing statement ───────────────────────────────────────────────────── */

.closing-statement {
  padding: 96px 0 112px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.closing-line {
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  font-weight: 600;
  line-height: 0.90;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 24px;
}

.closing-sub {
  margin: 0 0 40px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.35);
}

@media (max-width: 720px) {
  .closing-statement {
    padding-top: 80px;
    padding-bottom: 88px;
  }

  .closing-line {
    font-size: clamp(3rem, 13vw, 4.4rem);
    margin-bottom: 40px;
  }
}

/* ── Site footer — full-width cinematic footer ───────────────────────────── */

.site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 120px;
  background: #050505;
  border-top: 1px solid rgba(247, 247, 242, 0.08);
}

/* ── Main grid — three columns ─────────────────────────────────────────────── */

.footer-inner {
  display: grid;
  grid-template-columns: 180px 1fr 460px;
  padding: 0 max(48px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid rgba(247, 247, 242, 0.08);
}

/* ── Shared col styles ─────────────────────────────────────────────────────── */

.footer-col-nav,
.footer-col-social {
  border-right: 1px solid rgba(247, 247, 242, 0.08);
  display: flex;
  flex-direction: column;
}

.footer-col-nav {
  padding: 64px 40px 64px 0;
}

.footer-col-social {
  padding: 64px 40px 64px 40px;
}

.footer-col-club {
  display: flex;
  flex-direction: column;
  padding: 64px 0 64px 56px;
}

/* Section label + extending rule ─────────────────────────────────────────── */

.footer-col-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-col-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(247, 247, 242, 0.1);
}

.footer-col-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.35);
  white-space: nowrap;
}

/* ── Nav links (shared by info + social cols) ──────────────────────────────── */

.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.38);
  text-decoration: none;
  padding: 7px 0;
  transition: color 200ms ease;
}

.footer-nav a:hover { color: var(--ink); }

/* ── Newsletter col ────────────────────────────────────────────────────────── */

.footer-club-sub {
  font-size: 0.9rem;
  color: rgba(247, 247, 242, 0.45);
  line-height: 1.75;
  margin: 0 0 36px;
  max-width: 480px;
}

.footer-form {
  display: flex;
  max-width: 500px;
  border: 1px solid rgba(247, 247, 242, 0.14);
}

.footer-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 15px 20px;
  outline: none;
  -webkit-appearance: none;
  min-width: 0;
}

.footer-input::placeholder { color: rgba(247, 247, 242, 0.2); }
.footer-input:focus { background: rgba(247, 247, 242, 0.02); }

.footer-submit {
  flex-shrink: 0;
  background: rgba(247, 247, 242, 0.06);
  color: rgba(247, 247, 242, 0.5);
  border: none;
  border-left: 1px solid rgba(247, 247, 242, 0.14);
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 15px 24px;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  white-space: nowrap;
}

.footer-submit:hover {
  background: rgba(247, 247, 242, 0.1);
  color: var(--ink);
}

.footer-form-status {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(247, 247, 242, 0.5);
}

.footer-form-status.success { color: rgba(247, 247, 242, 0.6); }
.footer-form-status.error   { color: #e07070; }

/* ── Base bar ──────────────────────────────────────────────────────────────── */

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px max(48px, calc((100vw - 1200px) / 2));
}

.footer-logo-link {
  display: block;
  line-height: 0;
}

.footer-logo {
  height: 22px;
  width: auto;
  opacity: 0.35;
  filter: brightness(0) invert(1);
  transition: opacity 200ms ease;
}

.footer-logo-link:hover .footer-logo { opacity: 0.65; }

.footer-copy {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(247, 247, 242, 0.18);
  margin: 0;
  text-transform: uppercase;
}

.admin-hero {
  max-width: 980px;
}

.admin-shell {
  margin-top: 24px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-toolbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

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

.admin-card {
  min-height: 100%;
}

.admin-form-note {
  margin: -6px 0 0;
}

.admin-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

.admin-check input {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: #f7f7f2;
}

.product-builder-page {
  min-height: 100vh;
  background: #030303;
}

.product-builder-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  overflow: hidden;
}

.product-builder-sidebar {
  min-height: 0;
  padding: 28px 24px 60px;
  border-right: 1px solid rgba(247, 247, 242, 0.08);
  background: #070707;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Sidebar header ── */

.product-builder-head {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.07);
  margin-bottom: 4px;
}

.builder-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.builder-head-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.builder-head-actions .button {
  flex: 1;
  text-align: center;
}

/* ── Field labels & hints ── */

.builder-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.builder-field-label {
  display: block;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.45);
  font-weight: 500;
}

.builder-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(247, 247, 242, 0.3);
}

.builder-req {
  color: rgba(247, 247, 242, 0.25);
  font-weight: 400;
}

.builder-tag {
  display: inline-block;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.35);
  border: 1px solid rgba(247, 247, 242, 0.12);
  padding: 1px 6px;
  vertical-align: middle;
  margin-left: 4px;
  font-style: normal;
}

.builder-em {
  font-style: italic;
  color: rgba(247, 247, 242, 0.3);
}

/* ── Section divider ── */

.builder-divider {
  height: 1px;
  background: rgba(247, 247, 242, 0.06);
  margin: 2px 0;
}

/* ── Two-column layout inside panels ── */

.builder-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Vertical checkbox stack ── */

.builder-checks-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Section head (label + action button) ── */

.builder-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

/* ── Sub-details (collapsible within a panel) ── */

.builder-sub-details {
  border: 1px solid rgba(247, 247, 242, 0.07);
  background: rgba(255, 255, 255, 0.02);
  margin-top: 4px;
}

.builder-sub-summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.builder-sub-summary::-webkit-details-marker { display: none; }
.builder-sub-summary::before { content: "+"; color: rgba(247,247,242,0.3); }
.builder-sub-details[open] .builder-sub-summary::before { content: "−"; }

.builder-sub-body {
  padding: 0 14px 14px;
  display: grid;
  gap: 12px;
}

/* ── Panel improvements ── */

.product-builder-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.product-builder-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.builder-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(184, 255, 183, 0.22);
  background: rgba(184, 255, 183, 0.08);
  color: #b8ffb7;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.builder-badge-muted {
  border-color: rgba(247, 247, 242, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(247, 247, 242, 0.54);
}

.builder-badge-error {
  border-color: rgba(255, 142, 142, 0.24);
  background: rgba(255, 142, 142, 0.08);
  color: #ff8e8e;
}

.product-builder-panels {
  display: grid;
  gap: 14px;
}

.builder-panel {
  border: 1px solid rgba(247, 247, 242, 0.08);
  background: #0b0b0b;
}

.builder-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.builder-panel summary::-webkit-details-marker {
  display: none;
}

.builder-panel summary::after {
  content: "+";
  color: rgba(247, 247, 242, 0.38);
}

.builder-panel[open] summary::after {
  content: "-";
}

.builder-panel-body {
  display: grid;
  gap: 18px;
  padding: 4px 18px 22px;
}

.builder-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.builder-inline-field {
  margin: 0;
}

.builder-inline-button {
  min-height: 48px;
}

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

.builder-fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(247, 247, 242, 0.08);
}

.builder-fieldset legend {
  padding: 0 8px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.42);
}

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

.builder-media-card {
  padding: 16px;
  border: 1px solid rgba(247, 247, 242, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.builder-media-head,
.builder-richtext-head,
.product-builder-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.builder-upload {
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed rgba(247, 247, 242, 0.18);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.builder-upload input {
  margin-top: 12px;
}

/* R2 URL input — prefix label + path field */
.builder-r2-input {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(247, 247, 242, 0.12);
  background: #111;
  min-height: 44px;
}

.builder-price-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(247, 247, 242, 0.12);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(247, 247, 242, 0.04);
}

.builder-price-wrap:focus-within {
  border-color: rgba(247, 247, 242, 0.3);
}

.builder-price-prefix {
  flex-shrink: 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
  background: rgba(247, 247, 242, 0.06);
  border-right: 1px solid rgba(247, 247, 242, 0.10);
  font-size: 0.85rem;
  color: rgba(247, 247, 242, 0.5);
  user-select: none;
}

.builder-price-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-size: 0.85rem;
  color: inherit;
  outline: none;
  min-width: 0;
}

.builder-r2-prefix {
  flex-shrink: 0;
  width: 72px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  background: rgba(247, 247, 242, 0.04);
  border-right: 1px solid rgba(247, 247, 242, 0.10);
  font-size: 0.62rem;
  color: rgba(247, 247, 242, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
  font-family: monospace;
  direction: rtl; /* shows the end of the URL — the unique part */
  text-align: left;
}

.builder-r2-input input {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-family: monospace;
  font-size: 0.82rem;
  padding: 0 12px;
}

.builder-r2-input input:focus {
  outline: none;
}

.builder-r2-input:focus-within {
  outline: 1px solid rgba(247, 247, 242, 0.4);
  outline-offset: -1px;
}

.builder-richtext {
  display: grid;
  gap: 12px;
}

.builder-richtext-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.builder-tool {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(247, 247, 242, 0.12);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.builder-editor {
  min-height: 200px;
  padding: 16px;
  border: 1px solid rgba(247, 247, 242, 0.12);
  background: #111;
  color: var(--ink);
  line-height: 1.7;
}

.builder-editor:focus {
  outline: 1px solid rgba(247, 247, 242, 0.4);
  outline-offset: -1px;
}

.builder-editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(247, 247, 242, 0.32);
}

.builder-editor h3,
.builder-editor p,
.builder-editor ul,
.builder-editor ol,
.builder-editor blockquote {
  margin: 0 0 14px;
}

.builder-editor blockquote {
  padding-left: 14px;
  border-left: 1px solid rgba(247, 247, 242, 0.2);
  color: rgba(247, 247, 242, 0.72);
}

.product-builder-preview-shell {
  min-width: 0;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
}

.product-builder-preview {
  min-height: calc(100vh - 64px);
  padding: 20px;
  background: #050505;
}

.product-builder-preview-page {
  min-height: calc(100vh - 104px);
  padding: 40px;
  border: 1px solid rgba(247, 247, 242, 0.08);
  background: #080808;
}

.product-builder-breadcrumb {
  margin-bottom: 48px;
}

.product-builder-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.product-builder-gate .lede {
  max-width: 32ch;
}

.editor-page {
  background: #020202;
}

.editor-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
}

.editor-sidebar {
  padding: 28px 24px;
  border-right: 1px solid rgba(247, 247, 242, 0.08);
  background: #070707;
}

.editor-sidebar-head {
  margin-bottom: 24px;
}

.editor-sidebar .eyebrow {
  margin-bottom: 8px;
}

.editor-controls {
  display: grid;
  gap: 16px;
}

.editor-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-preview-shell {
  min-width: 0;
  padding: 24px;
}

.editor-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.editor-preview {
  min-height: calc(100vh - 64px);
  padding: 20px;
  background: #030303;
}

.editor-canvas {
  min-height: calc(100vh - 104px);
  padding: 40px;
  border: 1px solid rgba(247, 247, 242, 0.08);
  background: #080808;
}

.editor-canvas-home .editor-canvas-splash {
  min-height: 70vh;
  padding: 36px;
  display: grid;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.34) 0%, rgba(5, 5, 5, 0.44) 48%, rgba(5, 5, 5, 0.7) 100%),
    url("./Assets/Images/bg.png") center center / cover no-repeat;
}

.editor-preview-mark {
  width: 66px;
  margin-bottom: auto;
  padding: 8px 0;
  border: 1px solid rgba(247, 247, 242, 0.8);
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
}

.editor-canvas h1 {
  max-width: 8ch;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.editor-canvas h2 {
  max-width: 14ch;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.editor-preview-copy {
  max-width: 34ch;
  color: var(--muted);
  line-height: 1.7;
}

.editor-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.editor-preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(247, 247, 242, 0.2);
}

.editor-preview-button.primary {
  background: #f7f7f2;
  color: #050505;
}

.editor-preview-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.editor-preview-note {
  padding-top: 12px;
  border-top: 1px solid rgba(247, 247, 242, 0.16);
}

.editor-preview-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editor-preview-card {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(247, 247, 242, 0.12);
  background: #0d0d0d;
}

.editor-form-lines {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.editor-form-lines span {
  display: block;
  min-height: 48px;
  border: 1px solid rgba(247, 247, 242, 0.14);
}

.editor-form-lines .editor-preview-button {
  min-height: 48px;
}

.editor-preview-support {
  margin-top: 18px;
  color: rgba(247, 247, 242, 0.5);
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 24px, 1240px);
  }

  .home-splash {
    /* Keep bottom-left anchor — tighten padding on small screens */
    padding: 64px 20px 56px;
  }

  .home-splash::before {
    opacity: 0.4;
  }

  .site-header {
    grid-template-columns: 56px 1fr 56px;
  }

  .site-header-left,
  .site-header-center,
  .site-header-right {
    height: 64px;
    min-height: 64px;
  }

  .site-nav {
    width: 78vw;
    min-width: 0;
    max-width: 340px;
    height: 100dvh;
    padding: 24px 22px 28px;
    gap: 16px;
  }

  .site-nav a {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }

  .nav-toggle-label {
    display: none;
  }

  .nav-close {
    margin-bottom: 18px;
  }

  .site-header-overlay {
    min-height: 64px;
    padding: 0 12px;
    background: transparent;
  }

  .hero {
    padding: 18px 0;
  }

  .access-panel {
    padding: 22px;
  }

  .panel-head,
  .result-head,
  .product-result,
  .admin-toolbar,
  .admin-toolbar-actions,
  .admin-grid,
  .home-grid,
  .home-editorial-grid,
  .home-feature-band {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .home-hero {
    --hero-width: min(420px, 92vw);
    gap: 20px;
  }

  .home-hero h1 {
    font-size: clamp(3.2rem, 12vw, 4.5rem);
    max-width: 14ch;
  }

  .home-page-lede {
    margin: 16px 0 56px;
    font-size: 0.95rem;
  }

  .arrivals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .arrival-title-card {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .now-showing {
    margin-bottom: 56px;
    overflow: visible;
  }

  .now-showing-image-zone {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .now-showing-figure::after {
    display: none;
  }

  .now-showing-inner {
    position: static;
    min-height: unset;
    padding: 0;
    display: block;
  }

  .now-showing-body {
    max-width: 100%;
    padding: 28px 0 8px;
  }

  .cognitive-cinema {
    margin-bottom: 56px;
    padding-top: 48px;
  }

  .cognitive-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cognitive-title {
    font-size: clamp(2.8rem, 12vw, 4.8rem);
  }

  .cognitive-body p {
    max-width: none;
    padding-bottom: 0;
  }

  h1 {
    font-size: clamp(1.45rem, 5.6vw, 2.15rem);
    line-height: 0.96;
  }

  .lede {
    font-size: 0.95rem;
  }

  .home-marquee {
    gap: 12px 16px;
  }

  .home-marquee p {
    font-size: 0.78rem;
  }

  .home-column-quote {
    padding-left: 0;
  }

  .home-feature {
    padding: 20px 18px;
  }

  .editor-shell {
    grid-template-columns: 1fr;
  }

  .product-builder-shell {
    height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .product-builder-sidebar,
  .product-builder-preview-shell {
    padding: 16px;
  }

  .product-builder-preview-page {
    min-height: auto;
    padding: 20px;
  }

  .builder-inline-row,
  .builder-grid-two,
  .builder-check-grid {
    grid-template-columns: 1fr;
  }

  .editor-sidebar,
  .editor-preview-shell {
    padding: 16px;
  }

  .editor-canvas {
    min-height: auto;
    padding: 20px;
  }

  .editor-canvas-home .editor-canvas-splash {
    min-height: 56vh;
    padding: 20px;
  }

  .editor-preview-notes {
    grid-template-columns: 1fr;
  }

  .cinema-frame {
    min-height: 260px;
  }

  #video-embed-frame {
    min-height: 360px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SHARED INNER-PAGE STYLES
   catalogue · product · basket · access · contact
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Page header ────────────────────────────────────────────────────────────── */

.page-header {
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.1);
  margin-bottom: 0;
}

.page-eyebrow {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.3);
  margin-bottom: 20px;
}

.page-title {
  font-size: clamp(3.2rem, 7vw, 8.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.86;
  margin: 0;
  color: var(--ink);
}

/* ─── Category filter bar ────────────────────────────────────────────────────── */

.cat-filter {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(247, 247, 242, 0.1);
  margin-bottom: 40px;
  position: sticky;
  top: 84px;
  background: var(--bg);
  z-index: 10;
  /* bleed to full viewport width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 max(32px, calc((100vw - 1240px) / 2));
  /* Lock touch scrolling to horizontal only — prevents the bar drifting up/down */
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.cat-filter::-webkit-scrollbar { display: none; }

.cat-btn {
  flex: 0 0 auto;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: rgba(247, 247, 242, 0.34);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  -webkit-tap-highlight-color: transparent;
  transition: color 200ms ease;
}

.cat-btn.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

@media (hover: hover) {
  .cat-btn:hover { color: rgba(247, 247, 242, 0.7); }
  .cat-btn.is-active:hover { color: var(--ink); }
}

/* ─── Catalogue grid ─────────────────────────────────────────────────────────── */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: 100px;
}

.cat-item[hidden] { display: none; }

/* Catalogue loading / empty state */
.cat-loading {
  grid-column: 1 / -1;
  color: rgba(247, 247, 242, 0.35);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 60px 0;
  text-align: center;
}

/* ─── Product detail ─────────────────────────────────────────────────────────── */

/* Hide product/app content while data is loading from Firestore */
[data-loading="true"] .product-dynamic-content {
  visibility: hidden;
}

[data-loading="true"] .app-dynamic-content {
  visibility: hidden;
}

/* Not-found state */
.product-not-found {
  padding: 80px 0 120px;
}

/* ─── Product hero ────────────────────────────────────────────────────────── */

/* Remove page top-padding when a hero is present — header floats over it */
#product-main.has-hero {
  padding-top: 0;
}

.product-hero {
  position: relative;
  /* Break out of .page horizontal margins */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 88vh;
  min-height: 520px;
  overflow: hidden;
  margin-bottom: 80px;
}

.product-hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  background: #050505;
}

.product-hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}



/* Optional gradient — toggled per-product, desktop only */
@media (min-width: 721px) {
  .product-hero--gradient .product-hero-figure::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 30%),
      linear-gradient(to top,    rgba(0,0,0,0.82) 0%, rgba(0,0,0,0) 55%);
    pointer-events: none;
  }
}

/* Play button — centred */
.product-hero-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Title block — bottom left, aligned with page content */
.product-hero-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 max(32px, calc((100vw - 1240px) / 2)) 48px;
}

.product-hero-eyebrow {
  margin: 0 0 12px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.5);
}

.product-hero-name {
  margin: 0;
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink, #f7f7f2);
}

.product-layout {
  display: grid;
  grid-template-columns: 0.68fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}

.product-cover-wrap {
  position: sticky;
  top: 120px;
}

.product-cover-poster {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(247, 247, 242, 0.07);
  position: relative;
  overflow: hidden;
}

.product-cover-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 65%, transparent 28%, rgba(5, 5, 5, 0.6) 100%);
  pointer-events: none;
}

.product-cover-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Film products on the product page: image chooses its own aspect ratio.     */
/* Only kicks in when an actual image is present; falls back to A4 otherwise. */
.product-cover-poster.product-cover-film:has(img[data-product-image]) {
  aspect-ratio: unset;
  padding: 0;
  display: block;
}

.product-cover-poster.product-cover-film:has(img[data-product-image]) img[data-product-image] {
  position: static;
  width: 100%;
  height: auto;
  object-fit: unset;
  display: block;
}

/* Hide text overlays when the image is filling the frame */
.product-cover-poster.product-cover-film:has(img[data-product-image]) .arrival-cat,
.product-cover-poster.product-cover-film:has(img[data-product-image]) .arrival-title-card,
.product-cover-poster.product-cover-film:has(img[data-product-image]) .arrival-year {
  display: none;
}

/* Hide the gradient vignette when image fills edge-to-edge */
.product-cover-poster.product-cover-film:has(img[data-product-image])::after {
  display: none;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 4px;
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-cat-tag {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.34);
}

.product-title-large {
  font-size: clamp(2.6rem, 4.8vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.88;
  margin: 0;
  /* padding-bottom compensates for the tight line-height: glyphs visually
     overflow the layout box downward, so we push the next element clear */
  padding-bottom: 0.22em;
  color: var(--ink);
}

.product-artist {
  margin: 0.4em 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.product-pricing-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(247, 247, 242, 0.08);
  border-bottom: 1px solid rgba(247, 247, 242, 0.08);
}

.product-price-display {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}

.product-add-btn {
  flex: 1;
  max-width: 280px;
}

.product-description {
  border-top: 1px solid rgba(247, 247, 242, 0.08);
  padding-top: 28px;
}

.product-description > h2 {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.36);
  margin: 0 0 20px;
}

.product-description h3 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 28px 0 10px;
}

.product-description p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.74;
  color: var(--muted);
}

.product-description mark {
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}

.product-description ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

.product-description li {
  font-size: 0.95rem;
  line-height: 1.74;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Trailer on product page */
.product-trailer {
  margin-bottom: 80px;
}

/* The inline trailer slot lives inside .product-info — hidden on desktop */
.product-trailer-inline {
  display: none;
  margin-bottom: 0;
}

/* ─── Reviews ────────────────────────────────────────────────────────────────── */

.reviews-section {
  padding-top: 72px;
  border-top: 1px solid rgba(247, 247, 242, 0.1);
  margin-bottom: 80px;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.reviews-heading {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.reviews-meta-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.34);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-card {
  padding: 24px;
  border: 1px solid rgba(247, 247, 242, 0.07);
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-star {
  width: 10px;
  height: 10px;
  background: rgba(247, 247, 242, 0.7);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.review-star.empty {
  background: rgba(247, 247, 242, 0.16);
}

.review-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
}

.review-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(247, 247, 242, 0.07);
  padding-top: 14px;
}

.review-author {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.review-verified {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.28);
  margin: 0;
}

/* ─── Basket / Cart ──────────────────────────────────────────────────────────── */

.basket-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.basket-list {
  border-top: 1px solid rgba(247, 247, 242, 0.1);
}

.basket-line {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(247, 247, 242, 0.07);
}

.basket-thumb {
  width: 56px;
  aspect-ratio: 1 / 1.414;
  display: block;
  border: 1px solid rgba(247, 247, 242, 0.07);
  flex-shrink: 0;
  overflow: hidden;
  background: #0d0d0d;
}

.basket-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.basket-thumb-ph {
  width: 56px;
  aspect-ratio: 1 / 1.414;
  background: #0d0d0d;
  border: 1px solid rgba(247, 247, 242, 0.07);
  flex-shrink: 0;
}

.basket-item-name {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.3;
}

.basket-item-sub {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(247, 247, 242, 0.36);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.basket-item-price {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
  white-space: nowrap;
}

.basket-remove-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(247, 247, 242, 0.26);
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 200ms ease;
}

@media (hover: hover) {
  .basket-remove-btn:hover { color: var(--ink); }
}

.basket-summary-panel {
  position: sticky;
  top: 120px;
  padding: 28px;
  border: 1px solid rgba(247, 247, 242, 0.09);
  background: rgba(255, 255, 255, 0.02);
}

.basket-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(247, 247, 242, 0.07);
}

.basket-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.basket-discount-wrap {
  padding: 20px 0 4px;
  border-top: 1px solid rgba(247, 247, 242, 0.09);
}

.basket-discount-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.basket-discount-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid rgba(247, 247, 242, 0.18);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0 14px;
  height: 44px;
  outline: none;
  transition: border-color 0.2s;
}

.basket-discount-input::placeholder {
  color: rgba(247, 247, 242, 0.3);
}

.basket-discount-input:focus {
  border-color: rgba(247, 247, 242, 0.45);
}

.basket-discount-btn {
  flex-shrink: 0;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* Email verification row — stacked, full-width */
#basket-discount-email-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

#basket-discount-email-row .basket-discount-input {
  width: 100%;
}

#basket-discount-email-row .basket-discount-btn {
  width: 100%;
  min-width: 0;
  height: 44px;
}

.basket-discount-feedback {
  margin: 10px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.basket-discount-feedback-ok {
  color: rgba(120, 220, 130, 0.9);
}

.basket-discount-feedback-error {
  color: rgba(255, 100, 90, 0.9);
}

.basket-discount-saving {
  color: rgba(120, 220, 130, 0.9);
}

.basket-checkout-btn {
  width: 100%;
  margin-top: 20px;
}

.basket-empty-state {
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid rgba(247, 247, 242, 0.1);
  border-bottom: 1px solid rgba(247, 247, 242, 0.1);
}

.basket-empty-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.3);
  margin-bottom: 16px;
}

.basket-empty-title {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 0 0 28px;
}

/* ─── Access Room ────────────────────────────────────────────────────────────── */

.access-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: start;
}

.access-intro {
  position: sticky;
  top: 120px;
}

.access-intro-copy {
  max-width: 38ch;
  margin: 24px 0 0;
  font-size: 0.95rem;
  line-height: 1.74;
  color: var(--muted);
}

.access-form-panel {
  padding: 36px;
  border: 1px solid rgba(247, 247, 242, 0.09);
  background: rgba(255, 255, 255, 0.02);
}

.access-form-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.36);
  margin-bottom: 28px;
}

.access-result-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(247, 247, 242, 0.07);
}

.access-result-thumb {
  width: 44px;
  aspect-ratio: 1 / 1.414;
  background: #0d0d0d;
  border: 1px solid rgba(247, 247, 242, 0.07);
  flex-shrink: 0;
}

/* ─── Contact ────────────────────────────────────────────────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 64px;
  padding-bottom: 0;
}

.contact-aside {
  position: sticky;
  top: 120px;
}

.contact-aside-body {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.3);
  margin-bottom: 6px;
}

.contact-detail-value {
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}

.contact-detail-value:is(a):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.4);
}

.contact-textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px 16px;
  border: 1px solid rgba(247, 247, 242, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.contact-textarea:focus,
input:focus {
  outline: 1px solid rgba(247, 247, 242, 0.4);
  outline-offset: -1px;
}

/* ─── Mobile overrides ───────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .page {
    padding-top: 80px;
  }

  .cat-filter {
    top: 64px;
    padding: 0 12px;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-hero {
    height: 92svh;
    min-height: 520px;
    margin-bottom: 40px;
  }

  .product-hero-foot {
    padding: 0 20px 28px;
  }

  .product-hero-name {
    font-size: clamp(2.4rem, 9vw, 3.2rem);
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-cover-wrap {
    position: static;
    max-width: 280px;
  }

  /* Additional text flows as a seamless continuation of the description on mobile */
  .product-additional-text {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  /* Reduce flex gap inside the product info column so description → additional info is tight */
  .product-info {
    gap: 16px;
  }

  /* Mobile product page ordering */
  #product-main {
    display: flex;
    flex-direction: column;
  }

  #product-not-found   { order: 0; }
  #product-main > .page-eyebrow { order: 1; }
  .product-layout      { order: 2; }
  .product-additional-text { order: 3; }
  .product-bundle-contents  { order: 4; }
  #product-reviews-section  { order: 5; }
  .product-reviews-section  { order: 5; }
  #product-main > footer.site-footer { order: 99; }

  /* Trailer: hide the standalone section on mobile; show the inline slot instead */
  #product-trailer-section {
    display: none !important;
  }
  .product-trailer-inline {
    display: block;
    margin-bottom: 0;
  }

  .product-pricing-row {
    flex-wrap: wrap;
  }

  .product-add-btn {
    max-width: none;
    width: 100%;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .basket-layout {
    grid-template-columns: 1fr;
  }

  .basket-summary-panel {
    position: static;
  }

  .access-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .access-intro {
    position: static;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 40px;
  }

  .contact-aside {
    position: static;
  }

  .policy-body {
    margin-top: 40px;
  }

  .page-title {
    font-size: clamp(2.6rem, 11vw, 5rem);
  }
}

/* ─── Success / Order Confirmed page ─────────────────────────────────────── */

[data-page="success"] .page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 84px; /* clear the header */
  padding-bottom: 80px;
}

[data-page="success"] .basket-empty-state {
  border: none;
  padding: 0;
  max-width: 520px;
  width: 100%;
  text-align: left;
}

[data-page="success"] .basket-empty-label {
  margin-bottom: 24px;
}

[data-page="success"] .basket-empty-title {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.88;
  margin-bottom: 32px;
}

.success-msg {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(247, 247, 242, 0.55);
  margin: 0 0 36px;
  max-width: 42ch;
}

.success-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
}

.success-auth-actions .button {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.success-shipping-note {
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(247, 247, 242, 0.38);
  margin: 20px 0 0;
  max-width: 38ch;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADMIN PAGE — premium redesign
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Admin header (fixed, replaces site-header on admin pages) ──────────── */

.admin-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  background: #050505;
  border-bottom: 1px solid rgba(247, 247, 242, 0.07);
}

.admin-header-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  justify-self: start;
}

.admin-header-logo {
  display: block;
  width: 48px;
  height: auto;
  opacity: 0.9;
}

.admin-header-label {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.3);
  justify-self: center;
}

.admin-header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

/* ─── Login view ─────────────────────────────────────────────────────────── */

.admin-page-body {
  background: var(--bg);
}

.admin-login-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
}

.admin-login-card {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  border: 1px solid rgba(247, 247, 242, 0.09);
  background: rgba(255, 255, 255, 0.02);
}

.admin-login-top {
  margin-bottom: 28px;
}

.admin-login-top .page-eyebrow {
  display: block;
  margin-bottom: 14px;
}

.admin-login-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}

.admin-login-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.admin-login-btn {
  width: 100%;
  margin-top: 4px;
}

/* ─── Dashboard view ─────────────────────────────────────────────────────── */

.admin-shell-page {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 88px 0 80px; /* clears 64px fixed admin header */
}

.admin-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.1);
  margin-bottom: 32px;
}

.admin-dash-title-block .page-eyebrow {
  display: block;
  margin-bottom: 12px;
}

.admin-dash-title {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.86;
  color: var(--ink);
}

.admin-dash-user {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.admin-dash-user-info {
  text-align: right;
}

.admin-user-caption {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.28);
  margin-bottom: 5px;
}

.admin-user-email-display {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-signout-btn {
  flex-shrink: 0;
}

/* ─── Quick action cards ─────────────────────────────────────────────────── */

.admin-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}

.admin-quick-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 30px;
  border: 1px solid rgba(247, 247, 242, 0.09);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 220ms ease, background 220ms ease;
}

.admin-quick-primary {
  border-color: rgba(247, 247, 242, 0.18);
  background: rgba(247, 247, 242, 0.03);
}

@media (hover: hover) {
  .admin-quick-card:hover {
    border-color: rgba(247, 247, 242, 0.32);
    background: rgba(247, 247, 242, 0.05);
  }
}

.admin-quick-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-quick-eyebrow {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.3);
}

.admin-quick-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.admin-quick-hint {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 32ch;
}

.admin-quick-arrow {
  font-size: 1.4rem;
  color: rgba(247, 247, 242, 0.3);
  flex-shrink: 0;
  transition: transform 200ms ease, color 200ms ease;
  align-self: flex-start;
  margin-top: 2px;
}

@media (hover: hover) {
  .admin-quick-card:hover .admin-quick-arrow {
    transform: translateX(5px);
    color: rgba(247, 247, 242, 0.7);
  }
}

/* ─── Divider ────────────────────────────────────────────────────────────── */

.admin-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-divider::before,
.admin-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(247, 247, 242, 0.08);
}

.admin-divider-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.24);
  flex-shrink: 0;
}

/* ─── Tools grid ─────────────────────────────────────────────────────────── */

.admin-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.admin-tool-card {
  padding: 32px;
  border: 1px solid rgba(247, 247, 242, 0.08);
  background: rgba(255, 255, 255, 0.015);
}

.admin-tool-head {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.06);
}

.admin-tool-label {
  margin: 0 0 7px;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.38);
}

.admin-tool-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Shared form styles (admin tool cards) ──────────────────────────────── */

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-field-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.38);
}

.admin-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-form-actions {
  margin-top: 4px;
}

.admin-highlight-current {
  min-height: 74px;
  padding: 16px 18px;
  border: 1px solid rgba(247, 247, 242, 0.08);
  background: rgba(247, 247, 242, 0.025);
}

.admin-highlight-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-highlight-img-preview {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(247, 247, 242, 0.08);
  margin-bottom: 4px;
}

.admin-highlight-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.admin-highlight-meta {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.42);
}

/* ─── Users list ─────────────────────────────────────────────────────────── */

.admin-users-section {
  margin-top: 20px;
}

.admin-users-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.admin-users-search {
  padding: 8px 14px;
  background: rgba(247, 247, 242, 0.04);
  border: 1px solid rgba(247, 247, 242, 0.12);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  width: 240px;
  border-radius: 2px;
  transition: border-color 150ms;
}

.admin-users-search:focus {
  outline: none;
  border-color: rgba(247, 247, 242, 0.3);
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 18px;
  background: rgba(247, 247, 242, 0.02);
  border: 1px solid rgba(247, 247, 242, 0.06);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border-radius: 2px;
}

.admin-user-row:hover {
  background: rgba(247, 247, 242, 0.05);
  border-color: rgba(247, 247, 242, 0.14);
}

.admin-user-row-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(247, 247, 242, 0.08);
  border: 1px solid rgba(247, 247, 242, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(247, 247, 242, 0.6);
  flex-shrink: 0;
}

.admin-user-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-user-row-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.admin-user-row-email {
  font-size: 0.72rem;
  color: rgba(247, 247, 242, 0.42);
}

.admin-user-row-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
  flex-shrink: 0;
}

.admin-user-row-date {
  font-size: 0.68rem;
  color: rgba(247, 247, 242, 0.32);
}

.admin-user-row-arrow {
  color: rgba(247, 247, 242, 0.25);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.admin-users-empty {
  padding: 24px;
  color: rgba(247, 247, 242, 0.3);
  font-size: 0.85rem;
  text-align: center;
}

/* ─── User detail slide-over panel ──────────────────────────────────────── */

.admin-user-panel {
  position: fixed;
  inset: 0;
  z-index: 900;
}

.admin-user-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.admin-user-panel-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(580px, 100vw);
  background: #0d0d0d;
  border-left: 1px solid rgba(247, 247, 242, 0.08);
  overflow-y: auto;
  padding: 0 0 60px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-user-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.07);
  position: sticky;
  top: 0;
  background: #0d0d0d;
  z-index: 10;
}

.admin-user-panel-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.admin-user-panel-email {
  font-size: 0.78rem;
  color: rgba(247, 247, 242, 0.42);
}

.admin-user-panel-close {
  background: none;
  border: 1px solid rgba(247, 247, 242, 0.12);
  color: rgba(247, 247, 242, 0.5);
  font: inherit;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 2px;
  transition: color 150ms, border-color 150ms;
}

.admin-user-panel-close:hover {
  color: var(--ink);
  border-color: rgba(247, 247, 242, 0.3);
}

.admin-user-meta-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 16px;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.07);
}

.admin-user-meta-item {
  display: contents;
}

.admin-user-meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.3);
  padding-top: 1px;
}

.admin-user-meta-value {
  font-size: 0.78rem;
  color: rgba(247, 247, 242, 0.75);
  word-break: break-all;
  font-family: monospace;
}

.admin-user-panel-actions {
  padding: 18px 28px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.07);
}

.admin-user-section {
  padding: 20px 28px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.07);
}

.admin-user-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-user-section-title {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.4);
  font-weight: 600;
}

.admin-user-section-hint {
  font-size: 0.68rem;
  color: rgba(247, 247, 242, 0.3);
}

/* Grant form */
.admin-grant-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(247, 247, 242, 0.03);
  border: 1px solid rgba(247, 247, 242, 0.07);
  border-radius: 2px;
}

.admin-grant-select,
.admin-grant-input {
  padding: 9px 12px;
  background: rgba(247, 247, 242, 0.04);
  border: 1px solid rgba(247, 247, 242, 0.1);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  border-radius: 2px;
  width: 100%;
  transition: border-color 150ms;
}

.admin-grant-select:focus,
.admin-grant-input:focus {
  outline: none;
  border-color: rgba(247, 247, 242, 0.3);
}

/* Entitlement rows */
.admin-ent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(247, 247, 242, 0.05);
}

.admin-ent-row:last-child { border-bottom: none; }

.admin-ent-row-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-ent-product {
  font-size: 0.8rem;
  font-weight: 500;
}

.admin-ent-order {
  font-size: 0.68rem;
  color: rgba(247, 247, 242, 0.35);
  font-family: monospace;
}

.admin-ent-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-ent-pill {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.admin-ent-active  { background: rgba(80, 200, 120, 0.12); color: rgba(80, 200, 120, 0.9); }
.admin-ent-revoked { background: rgba(220, 80, 80, 0.12);  color: rgba(220, 80, 80, 0.8);  }

/* Activity log */
.admin-log-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(247, 247, 242, 0.05);
}

.admin-log-row:last-child { border-bottom: none; }

.admin-log-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 3px;
}

.admin-log-action {
  font-size: 0.8rem;
  font-weight: 500;
}

.admin-log-time {
  font-size: 0.65rem;
  color: rgba(247, 247, 242, 0.35);
  flex-shrink: 0;
}

.admin-log-product {
  display: block;
  font-size: 0.7rem;
  color: rgba(247, 247, 242, 0.45);
  margin-bottom: 3px;
}

.admin-log-row-meta {
  display: flex;
  gap: 14px;
}

.admin-log-ip,
.admin-log-session {
  font-size: 0.65rem;
  font-family: monospace;
  color: rgba(247, 247, 242, 0.3);
}

.admin-panel-loading,
.admin-panel-empty,
.admin-panel-error {
  font-size: 0.8rem;
  color: rgba(247, 247, 242, 0.3);
  padding: 8px 0;
}

.admin-panel-error { color: rgba(220, 80, 80, 0.7); }

/* Prevent body scroll when panel is open */
body.panel-open { overflow: hidden; }

/* ─── Admin footer ───────────────────────────────────────────────────────── */

.admin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 247, 242, 0.07);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PRODUCT BUILDER — enhanced UI
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Sidebar head ───────────────────────────────────────────────────────── */

.builder-head-nav {
  margin-bottom: 18px;
}

.builder-back-link {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.36);
  text-decoration: none;
  transition: color 200ms ease;
}

@media (hover: hover) {
  .builder-back-link:hover {
    color: var(--ink);
  }
}

.builder-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}

.builder-subtitle {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
}

.builder-publish-btn {
  min-width: 160px;
}

.builder-status-row {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── Panel header numbering ─────────────────────────────────────────────── */

.builder-panel summary {
  gap: 10px;
}

.builder-panel-num {
  display: inline-block;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(247, 247, 242, 0.24);
  font-weight: 400;
  margin-right: 4px;
}

/* ─── Field labels inside builder ────────────────────────────────────────── */

.builder-label-text {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.5);
  margin-bottom: 6px;
}

.builder-label-sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(247, 247, 242, 0.3);
  margin-bottom: 8px;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

.builder-label-req {
  color: rgba(247, 247, 242, 0.3);
  font-weight: 400;
}

.builder-note {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(247, 247, 242, 0.36);
}

.builder-note-info {
  padding: 12px 14px;
  border: 1px solid rgba(247, 247, 242, 0.07);
  background: rgba(247, 247, 242, 0.02);
  color: rgba(247, 247, 242, 0.42);
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0 0 4px;
}

.builder-note code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.76rem;
  color: rgba(247, 247, 242, 0.6);
  background: rgba(247, 247, 242, 0.06);
  padding: 1px 5px;
}

/* ─── Find row ───────────────────────────────────────────────────────────── */

.builder-find-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.builder-find-btn {
  min-height: 48px;
  white-space: nowrap;
}

/* ─── Checks column (for Active + Show on Site) ─────────────────────────── */

.builder-checks-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 26px; /* align with the select */
}

/* ─── Section blocks in description ─────────────────────────────────────── */

.builder-section-block {
  padding: 16px;
  border: 1px solid rgba(247, 247, 242, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

/* ─── Gradient swatch picker ─────────────────────────────────────────────── */

.builder-gradient-section {
  padding: 16px;
  border: 1px solid rgba(247, 247, 242, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.builder-gradient-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}

.builder-gradient-swatch {
  aspect-ratio: 1 / 1.414;
  border: 1px solid rgba(247, 247, 242, 0.1);
  cursor: pointer;
  padding: 0 0 7px 7px;
  display: flex;
  align-items: flex-end;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 180ms ease, transform 180ms ease, outline 180ms ease;
  outline: 1px solid transparent;
  outline-offset: 2px;
}

@media (hover: hover) {
  .builder-gradient-swatch:hover {
    border-color: rgba(247, 247, 242, 0.32);
    transform: scale(1.06);
  }
}

.builder-gradient-swatch.is-selected {
  border-color: rgba(247, 247, 242, 0.6);
  outline-color: rgba(247, 247, 242, 0.24);
}

.builder-swatch-label {
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.36);
  line-height: 1;
  pointer-events: none;
}

/* ─── Year presets ───────────────────────────────────────────────────────── */

.builder-year-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.builder-year-preset {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(247, 247, 242, 0.1);
  background: transparent;
  color: rgba(247, 247, 242, 0.4);
  font: inherit;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

@media (hover: hover) {
  .builder-year-preset:hover {
    color: var(--ink);
    border-color: rgba(247, 247, 242, 0.3);
    background: rgba(247, 247, 242, 0.04);
  }
}

/* ─── Description toolbar extras ────────────────────────────────────────── */

.builder-tool-italic {
  font-style: normal;
}

.builder-tool-template {
  background: rgba(247, 247, 242, 0.04);
  border-color: rgba(247, 247, 242, 0.18);
  color: rgba(247, 247, 242, 0.7);
}

@media (hover: hover) {
  .builder-tool-template:hover {
    background: rgba(247, 247, 242, 0.08);
    border-color: rgba(247, 247, 242, 0.3);
    color: var(--ink);
  }
}

/* Make <mark> tags visible in the editor and in the preview */
.builder-editor mark,
.product-description mark {
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}

/* ─── Image card ─────────────────────────────────────────────────────────── */

.builder-image-card {
  padding: 16px;
  border: 1px solid rgba(247, 247, 242, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.builder-image-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.builder-ghost-sm {
  padding: 0 10px;
  min-height: 28px;
  border: 1px solid rgba(247, 247, 242, 0.14);
  background: transparent;
  color: rgba(247, 247, 242, 0.42);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

@media (hover: hover) {
  .builder-ghost-sm:hover {
    color: var(--ink);
    border-color: rgba(247, 247, 242, 0.3);
  }
}

/* ── Bundle product search results ───────────────────────────────────────── */

.builder-bundled-confirmed {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.builder-bundled-confirmed-name {
  font-size: 0.82rem;
  color: var(--ink);
}

.builder-bundled-confirmed-id {
  font-size: 0.68rem;
  color: rgba(247, 247, 242, 0.35);
  font-family: "Courier New", monospace;
}

.builder-bundled-results {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.builder-bundled-results-msg {
  font-size: 0.72rem;
  color: rgba(247, 247, 242, 0.35);
  margin: 4px 0;
}

.builder-bundled-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  background: rgba(247, 247, 242, 0.04);
  border: 1px solid rgba(247, 247, 242, 0.1);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  transition: background 120ms;
}

.builder-bundled-result-item:hover {
  background: rgba(247, 247, 242, 0.09);
}

.builder-bundled-result-name {
  flex: 1;
}

.builder-bundled-result-id {
  font-size: 0.66rem;
  color: rgba(247, 247, 242, 0.35);
  font-family: "Courier New", monospace;
  white-space: nowrap;
}

.builder-upload {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  border: 1px dashed rgba(247, 247, 242, 0.14);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.builder-upload-label {
  font-size: 0.78rem;
  color: rgba(247, 247, 242, 0.6);
}

.builder-upload-hint {
  font-size: 0.68rem;
  color: rgba(247, 247, 242, 0.3);
  letter-spacing: 0.02em;
}

.builder-upload input[type="file"] {
  display: none;
}

/* ─── Mobile overrides for new elements ──────────────────────────────────── */

@media (max-width: 720px) {
  .admin-header {
    padding: 0 16px;
  }

  .admin-shell-page {
    width: min(100% - 24px, 1240px);
    padding-top: 80px;
  }

  .admin-dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .admin-dash-user {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .admin-dash-user-info {
    text-align: left;
  }

  .admin-quick-actions,
  .admin-tools-grid {
    grid-template-columns: 1fr;
  }

  .admin-field-row {
    grid-template-columns: 1fr;
  }

  .builder-gradient-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .builder-checks-col {
    padding-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PRODUCT PAGE — sale price, secondary video, additional text
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Sale price display ─────────────────────────────────────────────── */

.product-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-price-original {
  font-size: 0.9rem;
  color: rgba(247, 247, 242, 0.36);
  text-decoration: line-through;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ─── Secondary video section ────────────────────────────────────────── */

.product-secondary-video {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.product-secondary-video-frame {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Each video is wrapped in .video-aspect-wrap which handles the 16:9 ratio */

/* ─── Additional text section (full-width, below product layout) ─────── */

.product-additional-text {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.product-additional-text-body {
  /* Full-width — matches the product layout above it */
}

.product-additional-text-body h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 20px;
}

.product-additional-text-body h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 32px 0 10px;
  color: var(--ink);
}

.product-additional-text-body p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 14px;
}

.product-additional-text-body ul {
  margin: 10px 0 16px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.product-additional-text-body blockquote {
  border-left: 2px solid var(--line);
  margin: 24px 0;
  padding: 10px 20px;
  color: rgba(247, 247, 242, 0.55);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
}

.product-additional-text-body mark {
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}

/* ─── Extra images gallery ─────────────────────────────────────────────── */

#product-extra-images-section {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.product-extra-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product-extra-images img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Single image spans full width */
.product-extra-images img:only-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

/* Odd last image (3rd, 5th, etc.) spans full width */
.product-extra-images img:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

@media (max-width: 600px) {
  .product-extra-images {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .product-extra-images img,
  .product-extra-images img:only-child,
  .product-extra-images img:last-child:nth-child(odd) {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }
}

/* ── Bundle Contents ─────────────────────────────────────────────────────────── */

.product-bundle-contents {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.product-bundle-head {
  margin-bottom: 28px;
}

.product-bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.product-bundle-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.18s;
}

.product-bundle-card:hover {
  opacity: 0.8;
}

.product-bundle-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 10px;
}

.product-bundle-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-bundle-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.product-bundle-name {
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .product-bundle-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADMIN — product list
   ═══════════════════════════════════════════════════════════════════════════════ */

.admin-products-section {
  margin-top: 20px;
  margin-bottom: 40px;
}

.admin-products-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-products-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.admin-product-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(247, 247, 242, 0.018);
  border: 1px solid rgba(247, 247, 242, 0.07);
  text-decoration: none;
  color: var(--ink);
  transition: background 150ms ease, border-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .admin-product-row:hover {
    background: rgba(247, 247, 242, 0.04);
    border-color: rgba(247, 247, 242, 0.14);
  }
}

.admin-product-row-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.admin-product-row-name {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-product-row-meta {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(247, 247, 242, 0.4);
}

.admin-product-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.admin-product-pill {
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid;
  line-height: 1.5;
}

.admin-product-pill-live {
  color: rgba(160, 220, 160, 0.8);
  border-color: rgba(120, 200, 120, 0.2);
  background: rgba(60, 160, 60, 0.06);
}

.admin-product-pill-hidden {
  color: rgba(247, 247, 242, 0.28);
  border-color: rgba(247, 247, 242, 0.1);
}

.admin-product-row-arrow {
  font-size: 0.85rem;
  color: rgba(247, 247, 242, 0.22);
}

.admin-products-loading,
.admin-products-empty {
  font-size: 0.85rem;
  color: rgba(247, 247, 242, 0.34);
  padding: 20px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADMIN — stats row
   ═══════════════════════════════════════════════════════════════════════════════ */

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

.admin-stat-box {
  border: 1px solid rgba(247, 247, 242, 0.07);
  background: rgba(247, 247, 242, 0.015);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-stat-num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.admin-stat-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADMIN — shared search input
   ═══════════════════════════════════════════════════════════════════════════════ */

.admin-search-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(247, 247, 242, 0.1);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  padding: 8px 12px;
  outline: none;
  min-width: 180px;
  transition: border-color 180ms ease;
}

.admin-search-input:focus {
  border-color: rgba(247, 247, 242, 0.3);
}

.admin-search-input::placeholder {
  color: rgba(247, 247, 242, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADMIN — quick action button variant (discount codes)
   ═══════════════════════════════════════════════════════════════════════════════ */

.admin-quick-btn {
  background: none;
  border: 1px solid rgba(247, 247, 242, 0.09);
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.admin-discount-arrow {
  font-size: 1.1rem !important;
  transition: transform 200ms ease, color 200ms ease !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADMIN — discount codes panel
   ═══════════════════════════════════════════════════════════════════════════════ */

.admin-discount-panel {
  margin-top: -28px;   /* pull up so it abuts the quick actions grid */
  margin-bottom: 40px;
  border: 1px solid rgba(247, 247, 242, 0.09);
  background: rgba(247, 247, 242, 0.018);
  animation: slideDown 200ms ease;
}

/* Also tighten quick-actions bottom when panel is visible */
.admin-quick-actions:has(+ .admin-discount-panel:not([hidden])) {
  margin-bottom: 0;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Admin — VIP panel ──────────────────────────────────────────────────── */

.admin-vip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.admin-vip-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-vip-search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.admin-vip-result-row,
.admin-vip-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(247,247,242,0.04);
  border-radius: 4px;
}

.admin-vip-result-info,
.admin-vip-member-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-vip-result-name,
.admin-vip-member-name {
  font-size: 0.82rem;
  color: var(--color-text, #f7f7f2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-vip-result-email,
.admin-vip-member-email {
  font-size: 0.72rem;
  color: rgba(247,247,242,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-vip-no-results {
  font-size: 0.78rem;
  color: rgba(247,247,242,0.35);
  padding: 8px 0;
}

.admin-vip-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 860px) {
  .admin-vip-inner { grid-template-columns: 1fr; }
}

/* ─── Admin — Discount ────────────────────────────────────────────────────── */

.admin-discount-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.admin-discount-create {
  padding: 28px 32px;
  border-right: 1px solid rgba(247, 247, 242, 0.07);
}

.admin-discount-list-wrap {
  padding: 28px 32px;
}

/* Single-column panel interior — used by reviews and product-order panels */
.admin-panel-stack {
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  gap: 0;
}

.admin-discount-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 16px;
}

.admin-code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(247, 247, 242, 0.02);
  border: 1px solid rgba(247, 247, 242, 0.06);
}

.admin-code-row-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.admin-code-code {
  font-size: 0.88rem;
  font-weight: 600;
  font-family: "Courier New", monospace;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.admin-code-meta {
  font-size: 0.7rem;
  color: rgba(247, 247, 242, 0.38);
}

.admin-code-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-code-pill {
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid;
}

.admin-code-active {
  color: rgba(160, 220, 160, 0.8);
  border-color: rgba(120, 200, 120, 0.2);
  background: rgba(60, 160, 60, 0.06);
}

.admin-code-inactive {
  color: rgba(247, 247, 242, 0.28);
  border-color: rgba(247, 247, 242, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADMIN — placeholder tool card (banner designer)
   ═══════════════════════════════════════════════════════════════════════════════ */

.admin-tool-placeholder-card {
  opacity: 0.7;
}

.admin-placeholder-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 24px;
  border: 1px dashed rgba(247, 247, 242, 0.1);
  background: rgba(247, 247, 242, 0.01);
}

.admin-placeholder-badge {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(247, 247, 242, 0.14);
  color: rgba(247, 247, 242, 0.35);
}

.admin-placeholder-text {
  font-size: 0.82rem;
  color: rgba(247, 247, 242, 0.28);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADMIN — sale creator
   ═══════════════════════════════════════════════════════════════════════════════ */

.admin-sale-status-display {
  margin-bottom: 20px;
}

.admin-sale-active-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(60, 160, 60, 0.06);
  border: 1px solid rgba(120, 200, 120, 0.2);
  font-size: 0.82rem;
  color: rgba(160, 220, 160, 0.9);
}

.admin-sale-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(120, 200, 120, 0.8);
  flex-shrink: 0;
  animation: salePulse 2s infinite;
}

@keyframes salePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.admin-sale-pct-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sale-pct-wrap input {
  width: 90px;
}

.admin-sale-pct-suffix {
  font-size: 0.85rem;
  color: rgba(247, 247, 242, 0.45);
}

.admin-sale-exclude-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 247, 242, 0.15) transparent;
}

.admin-sale-exclude-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: rgba(247, 247, 242, 0.65);
  cursor: pointer;
  padding: 4px 0;
}

.admin-sale-exclude-item input[type="checkbox"] {
  accent-color: rgba(247, 247, 242, 0.7);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADMIN — products head with actions + collapse
   ═══════════════════════════════════════════════════════════════════════════════ */

.admin-products-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-collapse-btn {
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADMIN — users list scrollable
   ═══════════════════════════════════════════════════════════════════════════════ */

.admin-users-scroll {
  max-height: 560px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 247, 242, 0.12) transparent;
}

.admin-users-scroll::-webkit-scrollbar {
  width: 4px;
}

.admin-users-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.admin-users-scroll::-webkit-scrollbar-thumb {
  background: rgba(247, 247, 242, 0.12);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PRODUCT BUILDER — price input, confirm, delete, toggles
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Price block with £ prefix ──────────────────────────────────────── */

.builder-price-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.builder-price-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid rgba(247, 247, 242, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease;
}

.builder-price-input-wrap:focus-within {
  border-color: rgba(247, 247, 242, 0.36);
}

.builder-price-symbol {
  padding: 0 10px;
  font-size: 0.88rem;
  color: rgba(247, 247, 242, 0.34);
  pointer-events: none;
  flex-shrink: 0;
  border-right: 1px solid rgba(247, 247, 242, 0.08);
  align-self: stretch;
  display: flex;
  align-items: center;
}

.builder-price-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 12px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
}

.builder-sale-toggle {
  margin-top: 2px;
}

/* ─── Chapter builder ────────────────────────────────────────────────── */

.builder-chapters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.builder-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.builder-chapter-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.builder-chapter-num {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(247, 247, 242, 0.28);
  padding-top: 11px;
  min-width: 16px;
  flex-shrink: 0;
}

.builder-chapter-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.builder-chapter-title-input,
.builder-chapter-url-input {
  width: 100%;
  padding: 8px 10px;
  background: rgba(247, 247, 242, 0.04);
  border: 1px solid rgba(247, 247, 242, 0.1);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  border-radius: 2px;
  transition: border-color 150ms;
}

.builder-chapter-url-input {
  font-size: 0.7rem;
  color: rgba(247, 247, 242, 0.6);
}

.builder-chapter-title-input:focus,
.builder-chapter-url-input:focus {
  outline: none;
  border-color: rgba(247, 247, 242, 0.3);
}

.builder-chapter-remove {
  padding: 0 6px;
  min-height: 28px;
  background: none;
  border: 1px solid rgba(247, 247, 242, 0.1);
  color: rgba(247, 247, 242, 0.3);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 4px;
  flex-shrink: 0;
  transition: color 150ms, border-color 150ms;
}

.builder-chapter-remove:hover {
  color: rgba(220, 80, 80, 0.8);
  border-color: rgba(220, 80, 80, 0.3);
}

/* ─── Confirm button (beneath file path / embed inputs) ──────────────── */

.builder-confirm-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(247, 247, 242, 0.18);
  background: rgba(247, 247, 242, 0.03);
  color: rgba(247, 247, 242, 0.6);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

@media (hover: hover) {
  .builder-confirm-btn:hover {
    background: rgba(247, 247, 242, 0.07);
    border-color: rgba(247, 247, 242, 0.3);
    color: var(--ink);
  }
}

/* ─── Danger / delete button ─────────────────────────────────────────── */

.builder-danger-btn {
  border-color: rgba(220, 80, 80, 0.3) !important;
  color: rgba(220, 100, 100, 0.7) !important;
}

@media (hover: hover) {
  .builder-danger-btn:hover {
    background: rgba(220, 60, 60, 0.08) !important;
    border-color: rgba(220, 80, 80, 0.5) !important;
    color: rgba(220, 100, 100, 1) !important;
  }
}

/* ─── Toggle section wrappers (panel 05) ─────────────────────────────── */

.builder-toggle-section {
  display: grid;
  gap: 10px;
}

/* Conditional reveal divs — add breathing room when visible */
#builder-trailer-fields,
#builder-sale-price-row,
#builder-secondary-video-fields,
#builder-additional-text-fields {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.builder-toggle-section:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* ─── Preview: sale price ────────────────────────────────────────────── */

.preview-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview-original-price {
  font-size: 0.85rem;
  color: rgba(247, 247, 242, 0.34);
  text-decoration: line-through;
  font-weight: 400;
}

/* ─── Mobile: admin product list ─────────────────────────────────────── */

@media (max-width: 720px) {
  .admin-products-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .admin-product-row-name {
    font-size: 0.85rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   AUTH PAGES — login.html · register.html
   ═══════════════════════════════════════════════════════════════════════════════ */

.auth-page {
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
}

/* Floating logo at the top */
.auth-brand {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.auth-brand img {
  height: 26px;
  width: auto;
  display: block;
}

.auth-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(440px, 100%);
  padding: 48px;
  border: 1px solid rgba(247, 247, 242, 0.09);
  background: rgba(255, 255, 255, 0.018);
}

.auth-card-top {
  margin-bottom: 32px;
}

.auth-card-top .page-eyebrow {
  display: block;
  margin-bottom: 10px;
}

.auth-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 10px;
  color: var(--ink);
}

.auth-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.36);
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-submit {
  margin-top: 8px;
  width: 100%;
}

.auth-links {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.auth-text-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  color: rgba(247, 247, 242, 0.38);
  cursor: pointer;
  text-decoration: none;
  transition: color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .auth-text-btn:hover { color: var(--ink); }
}

.auth-links-sep {
  color: rgba(247, 247, 242, 0.16);
  font-size: 0.78rem;
}

@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
  .auth-field-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ACCESS ROOM — access.html
   ═══════════════════════════════════════════════════════════════════════════════ */

.access-room-page {
  background: var(--bg);
  min-height: 100dvh;
}

/* ─── Auth gate ──────────────────────────────────────────────────────────── */

.ar-gate {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.ar-gate-brand img {
  height: 26px;
  width: auto;
  opacity: 0.45;
  display: block;
}

.ar-gate-msg {
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.22);
}

/* ─── Access room — library collapse toggle ─────────────────────────────── */

.ar-library-footer {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
}

.ar-library-toggle {
  background: none;
  border: 1px solid rgba(247, 247, 242, 0.18);
  color: rgba(247, 247, 242, 0.55);
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.ar-library-toggle:hover {
  border-color: rgba(247, 247, 242, 0.45);
  color: rgba(247, 247, 242, 0.9);
}

/* ─── Access room — VIP badge ────────────────────────────────────────────── */

.ar-vip-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #bfa14a 0%, #e8d07a 50%, #bfa14a 100%);
  color: #1a1400;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* ─── Access room — hero action buttons ──────────────────────────────────── */

.ar-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

@media (max-width: 720px) {
  .ar-hero-actions {
    margin-top: 28px;
  }
  .ar-hero-actions .button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    font-size: 0.85rem;
    padding: 0 14px;
  }
}

/* ─── Access room — orders modal ─────────────────────────────────────────── */

.ar-orders-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.ar-orders-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.88);
  cursor: pointer;
}

.ar-orders-panel {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  max-height: min(78vh, 640px);
  background: #0d0d0d;
  border: 1px solid rgba(247, 247, 242, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ar-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.06);
  flex-shrink: 0;
}

.ar-orders-heading {
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.36);
}

.ar-orders-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(247, 247, 242, 0.36);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.ar-orders-close svg {
  width: 14px;
  height: 14px;
  display: block;
}

@media (hover: hover) {
  .ar-orders-close:hover { color: var(--ink); }
}

.ar-orders-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ar-orders-empty {
  padding: 48px 28px;
  font-size: 0.88rem;
  color: rgba(247, 247, 242, 0.3);
  margin: 0;
}

.ar-order-row {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.05);
}

.ar-order-row:last-child {
  border-bottom: none;
}

.ar-order-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ar-order-ref {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0;
}

.ar-receipt-btn {
  background: none;
  border: 1px solid rgba(247, 247, 242, 0.14);
  color: rgba(247, 247, 242, 0.38);
  font: inherit;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 160ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .ar-receipt-btn:hover {
    border-color: rgba(247, 247, 242, 0.4);
    color: var(--ink);
  }
}

.ar-order-num {
  font-family: var(--font-price);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(247, 247, 242, 0.28);
}

.ar-order-date {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(247, 247, 242, 0.2);
}

.ar-order-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ar-order-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(247, 247, 242, 0.03);
}

.ar-order-item:last-child {
  border-bottom: none;
}

.ar-order-item-name {
  font-size: 0.88rem;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}

.ar-order-item-status {
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.22);
  flex-shrink: 0;
}

.ar-order-item-status.is-active {
  color: rgba(160, 220, 160, 0.55);
}

.ar-shipping-status {
  margin: 12px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ar-shipping-status.is-pending {
  color: rgba(247, 247, 242, 0.3);
}

.ar-shipping-status.is-shipped {
  color: rgba(160, 220, 160, 0.6);
}

.ar-tracking-link,
.ar-tracking-num {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  .ar-orders-modal {
    padding: 0;
    align-items: flex-end;
  }
  .ar-orders-panel {
    width: 100%;
    max-height: 85vh;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.ar-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: radial-gradient(ellipse at 18% 45%, rgba(15, 10, 26, 1) 0%, #050505 62%);
  border-bottom: 1px solid rgba(247, 247, 242, 0.05);
}

.ar-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Anchored right before flip — scaleX(-1) moves it to left top with hard edge flush to the left */
  background: url('./Assets/Images/overlay.png') right top / auto 130% no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
  transform: scaleX(-1);
}

/* Cinematic photo — sits between background gradient and grain overlay */
.ar-hero-img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 52%;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  user-select: none;
  opacity: 0.72;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 22%, black 48%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 22%, black 48%);
}

.ar-hero-inner {
  position: relative;
  z-index: 3; /* above photo and grain overlay */
  padding: 140px 80px 72px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  box-sizing: border-box;
}

.ar-eyebrow {
  margin: 0 0 18px;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.24);
}

.ar-greeting {
  margin: 0 0 14px;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}

.ar-hero-sub {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: rgba(247, 247, 242, 0.3);
}

.ar-hero-name {
  margin: 10px 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.2);
}

/* ─── Library section ────────────────────────────────────────────────────── */

.ar-section {
  width: min(1240px, calc(100% - 80px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

.ar-section-head {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.ar-section-title {
  margin: 0 0 32px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  text-transform: none;
}

/* ─── Library filter bar ─────────────────────────────────────────────────── */

.ar-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.ar-filter-btn {
  flex: 0 0 auto;
  padding: 12px 20px;
  border: 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: rgba(247, 247, 242, 0.34);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color 200ms ease;
}

.ar-filter-btn.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

@media (hover: hover) {
  .ar-filter-btn:hover { color: rgba(247, 247, 242, 0.7); }
  .ar-filter-btn.is-active:hover { color: var(--ink); }
}

/* ─── Recommendations ────────────────────────────────────────────────────── */

.ar-recs {
  width: min(1240px, calc(100% - 80px));
  margin: 0 auto;
  padding: 0 0 40px;
}

.ar-recs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.12);
  margin-bottom: 20px;
}

.ar-recs-title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ar-recs-link {
  color: rgba(247, 247, 242, 0.4);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 200ms ease;
}

@media (hover: hover) {
  .ar-recs-link:hover { color: var(--ink); }
}

/* ─── Library grid ───────────────────────────────────────────────────────── */

.ar-library {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* ─── Product card ───────────────────────────────────────────────────────── */

.ar-card {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  animation: ar-card-in 420ms ease both;
}

@keyframes ar-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ar-card-poster {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(247, 247, 242, 0.07);
  transition: border-color 280ms ease;
}

.ar-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 420ms ease;
}

.ar-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(
    to top,
    rgba(5, 5, 5, 0.92) 0%,
    rgba(5, 5, 5, 0.24) 45%,
    transparent 100%
  );
  transition: opacity 220ms ease;
}

/* When image present: flat dark overlay, hidden by default — revealed on hover */
.ar-card-poster:has(.ar-card-image) .ar-card-overlay {
  background: rgba(0, 0, 0, 0.84);
  opacity: 0;
}

.ar-card-cat {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.42);
  margin-bottom: 4px;
  transition: opacity 220ms ease;
}

.ar-card-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
  transition: opacity 220ms ease;
}

/* Hide text on image cards by default */
.ar-card-poster:has(.ar-card-image) .ar-card-cat,
.ar-card-poster:has(.ar-card-image) .ar-card-title {
  opacity: 0;
}

.ar-card-action {
  display: block;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.34);
  opacity: 0;
  transition: opacity 220ms ease;
}

@media (hover: hover) {
  .ar-card:hover .ar-card-poster { border-color: rgba(247, 247, 242, 0.22); }
  /* Reveal overlay + text on hover for image cards */
  .ar-card:hover .ar-card-poster:has(.ar-card-image) .ar-card-overlay { opacity: 1; }
  .ar-card:hover .ar-card-poster:has(.ar-card-image) .ar-card-cat,
  .ar-card:hover .ar-card-poster:has(.ar-card-image) .ar-card-title  { opacity: 1; }
  /* Action label always revealed on hover */
  .ar-card:hover .ar-card-action { opacity: 1; }
}

.ar-card.is-active .ar-card-poster { border-color: rgba(247, 247, 242, 0.5); }

/* ─── Empty / loading states ─────────────────────────────────────────────── */

.ar-loading, .ar-error {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(247, 247, 242, 0.28);
  padding: 16px 0;
  grid-column: 1 / -1;
}

.ar-verify-notice {
  grid-column: 1 / -1;
  padding: 48px 0;
  max-width: 480px;
}

.ar-verify-heading {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.ar-verify-copy {
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
}

.ar-verify-resend {
  margin-top: 8px;
}

.ar-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 48px 0;
}

.ar-empty-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ar-empty-sub {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
}

/* ─── Viewer ─────────────────────────────────────────────────────────────── */

.ar-viewer {
  border-top: 1px solid rgba(247, 247, 242, 0.07);
  background: rgba(5, 5, 5, 0.98);
}

.ar-viewer-bar {
  width: min(1240px, calc(100% - 80px));
  margin: 0 auto;
  padding: 28px 0 0;
}

.ar-viewer-close {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 150ms ease;
}

@media (hover: hover) {
  .ar-viewer-close:hover { color: var(--ink); }
}

.ar-viewer-inner {
  width: min(1240px, calc(100% - 80px));
  margin: 0 auto;
  padding: 32px 0 96px;
}

.ar-viewer-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 64px;
  align-items: start;
}

/* ─── Cinema layout (video products — full width) ────────────────────────── */

.ar-viewer-cinema {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ar-viewer-cinema-info {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(247, 247, 242, 0.07);
  margin-bottom: 0;
}

.ar-viewer-cinema-title {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  flex: 1;
  min-width: 200px;
}

.ar-viewer-cinema-artist {
  font-size: 0.78rem;
  color: rgba(247, 247, 242, 0.42);
  letter-spacing: 0.02em;
}

.ar-viewer-cinema-year {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: rgba(247, 247, 242, 0.24);
}

.ar-viewer-cinema-desc {
  padding-top: 28px;
  max-width: 680px;
}

.ar-viewer-cinema-desc > h2 {
  font-size: 0.56rem !important;
  letter-spacing: 0.2em !important;
  color: rgba(247, 247, 242, 0.26) !important;
  margin-bottom: 12px !important;
}

.ar-viewer-cinema-desc p,
.ar-viewer-cinema-desc li {
  font-size: 0.9rem !important;
  line-height: 1.75 !important;
}

/* ─── Collapsible descriptions ───────────────────────────────────────────── */

.ar-desc-collapsible {
  max-height: 130px;
  overflow: hidden;
  position: relative;
}

.ar-desc-collapsible::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.ar-desc-collapsible.is-expanded {
  max-height: none;
}

.ar-desc-collapsible.is-expanded::after {
  display: none;
}

.ar-desc-toggle {
  background: none;
  border: none;
  color: rgba(247, 247, 242, 0.4);
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 0 0;
  display: block;
  transition: color 160ms ease;
}

.ar-desc-toggle:hover {
  color: var(--ink);
}

/* ─── Custom video player ────────────────────────────────────────────────── */

.ar-custom-player {
  display: flex;
  align-items: stretch;
  background: #080808;
  border: 1px solid rgba(247, 247, 242, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

/* Video pane — grows to fill available width beside the sidebar */
.ar-player-main {
  flex: 1;
  min-width: 0;
}

/* 16:9 aspect-ratio container; iframe + watermark are absolute inside */
.ar-player-aspect {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

.ar-player-aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Chapter sidebar ────────────────────────────────────────────────────── */

.ar-chapters-sidebar {
  width: 256px;
  flex-shrink: 0;
  max-height: min(553px, calc((100vw - 336px) * 0.5625));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  border-left: 1px solid rgba(247, 247, 242, 0.06);
  overflow-y: auto;  /* sidebar-level scroll removed — list scrolls instead */
}

.ar-chapters-header {
  padding: 14px 18px 10px;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.28);
  border-bottom: 1px solid rgba(247, 247, 242, 0.05);
  flex-shrink: 0;
}

.ar-chapters-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.ar-chapter-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(247, 247, 242, 0.04);
  cursor: pointer;
  text-align: left;
  color: rgba(247, 247, 242, 0.45);
  transition: background 0.15s ease, color 0.15s ease;
}

.ar-chapter-item:hover {
  background: rgba(247, 247, 242, 0.04);
  color: rgba(247, 247, 242, 0.75);
}

.ar-chapter-item.is-active {
  background: rgba(247, 247, 242, 0.07);
  color: #f7f7f2;
}

.ar-chapter-num {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(247, 247, 242, 0.25);
  padding-top: 2px;
  flex-shrink: 0;
  min-width: 20px;
}

.ar-chapter-item.is-active .ar-chapter-num {
  color: rgba(247, 247, 242, 0.45);
}

.ar-chapter-title {
  font-size: 0.78rem;
  line-height: 1.35;
}

/* Fullscreen: our container is the fullscreen element, iframe fills it */
.ar-player-aspect:fullscreen,
.ar-player-aspect:-webkit-full-screen {
  padding-bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
}

.ar-player-aspect:fullscreen iframe,
.ar-player-aspect:-webkit-full-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Mobile: sidebar drops below the video */
@media (max-width: 720px) {
  .ar-custom-player {
    flex-direction: column;
  }

  .ar-chapters-sidebar {
    width: 100%;
    max-height: 220px;
    border-left: none;
    border-top: 1px solid rgba(247, 247, 242, 0.07);
  }
}

/* Single-video variant (no chapter sidebar) */
.ar-custom-player--single {
  display: block;
}

/* Video player — fixed-size / legacy embeds */
.ar-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* overridden per-embed via inline style */
  background: #080808;
  border: 1px solid rgba(247, 247, 242, 0.05);
}

.ar-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Video player — responsive embeds (SproutVideo padding-bottom wrapper)
   Plain passthrough: no position, no aspect-ratio, no iframe override.
   The embed's own inner wrapper handles all sizing.
   We DO override max-width on the inner wrapper — SproutVideo sets it to the
   original embed pixel width (e.g. 924px) which causes the player to centre
   itself and leave black bars on either side at wider container widths. */
.ar-video-responsive {
  width: 100%;
  background: #080808;
  border: 1px solid rgba(247, 247, 242, 0.05);
  display: block;
  overflow: hidden;
}

.ar-video-responsive > * {
  display: block;
  width: 100% !important;
  max-width: none !important;
}

/* Download area */
.ar-download-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 72px 60px;
  border: 1px solid rgba(247, 247, 242, 0.06);
  background: rgba(255, 255, 255, 0.012);
  min-height: 360px;
  justify-content: center;
}

.ar-download-icon {
  font-size: 2.4rem;
  color: rgba(247, 247, 242, 0.14);
  line-height: 1;
  margin-bottom: 4px;
}

.ar-download-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.ar-download-meta {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: rgba(247, 247, 242, 0.3);
}

.ar-download-btns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

/* Printable images section */
.ar-printables {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 247, 242, 0.08);
  width: 100%;
}

.ar-printables-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.35);
  margin: 0 0 10px;
}

.ar-printables-btns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.ar-printable-btn {
  font-size: 0.8rem;
}

/* No-content fallback */
.ar-no-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 60px;
  border: 1px solid rgba(247, 247, 242, 0.05);
  min-height: 300px;
  justify-content: center;
}

.ar-no-content-icon { margin: 0; font-size: 2rem; color: rgba(247,247,242,0.12); line-height: 1; }

.ar-no-content p { margin: 0; font-size: 0.86rem; color: rgba(247,247,242,0.4); line-height: 1.6; }

.ar-no-content-sub { font-size: 0.76rem !important; color: rgba(247,247,242,0.24) !important; }

/* ── Review form ──────────────────────────────────────────────────────────── */

.ar-review-form-wrap {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(247, 247, 242, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ar-review-title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ar-review-stars {
  display: flex;
  gap: 6px;
}

.ar-review-star {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: rgba(247, 247, 242, 0.18);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 120ms ease, transform 100ms ease;
}

.ar-review-star.is-active,
.ar-review-star:hover {
  color: var(--ink);
}

.ar-review-star:hover {
  transform: scale(1.15);
}

.ar-review-textarea {
  width: 100%;
  background: rgba(247, 247, 242, 0.04);
  border: 1px solid rgba(247, 247, 242, 0.1);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 12px 14px;
  resize: vertical;
  min-height: 90px;
  transition: border-color 160ms ease;
}

.ar-review-textarea:focus {
  outline: none;
  border-color: rgba(247, 247, 242, 0.3);
}

.ar-review-textarea::placeholder {
  color: rgba(247, 247, 242, 0.25);
}

.ar-review-thanks {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
}

.ar-review-thanks-icon {
  font-size: 1.6rem;
  color: rgba(247, 247, 242, 0.5);
  margin: 0;
  line-height: 1;
}

.ar-review-thanks-msg {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(247, 247, 242, 0.55);
  line-height: 1.5;
}

/* Info sidebar */
.ar-viewer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 88px;
}

.ar-viewer-poster {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  border: 1px solid rgba(247, 247, 242, 0.07);
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}

.ar-viewer-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ar-viewer-cat {
  font-size: 0.54rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.3);
}

.ar-viewer-title {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.ar-viewer-meta {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(247, 247, 242, 0.36);
}

.ar-viewer-year { font-size: 0.68rem !important; color: rgba(247,247,242,0.24) !important; letter-spacing: 0.08em; }

.ar-viewer-desc {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 247, 242, 0.07);
}

.ar-viewer-desc > h2 {
  font-size: 0.54rem !important;
  letter-spacing: 0.2em !important;
  color: rgba(247,247,242,0.26) !important;
  margin-bottom: 10px !important;
}

.ar-viewer-desc p,
.ar-viewer-desc li { font-size: 0.8rem !important; line-height: 1.7 !important; }

.ar-viewer-desc h3 { font-size: 0.7rem !important; margin: 14px 0 6px !important; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.ar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  border-top: 1px solid rgba(247, 247, 242, 0.05);
}

.ar-footer p {
  margin: 0;
  font-size: 0.66rem;
  color: rgba(247, 247, 242, 0.18);
  letter-spacing: 0.06em;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .ar-library { grid-template-columns: repeat(3, 1fr); }
  .ar-viewer-layout { grid-template-columns: 1fr 200px; gap: 40px; }
}

@media (max-width: 720px) {
  .ar-hero-inner { padding: 110px 24px 56px; }

  /* On mobile, image fills the full hero width but sits quietly in the background */
  .ar-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% center;
    opacity: 0.32;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 38%, black 68%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 38%, black 68%);
  }

  /* Light leak on mobile — smaller, hard edge flush to left top corner */
  .ar-hero::before {
    background: url('./Assets/Images/overlay.png') right top / 75% auto no-repeat;
    opacity: 0.4;
    transform: scaleX(-1);
  }

  .ar-section,
  .ar-recs {
    width: calc(100% - 32px);
    padding: 40px 0 56px;
  }

  .ar-library { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .ar-viewer-layout { grid-template-columns: 1fr; gap: 32px; }

  .ar-viewer-info {
    position: static;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: start;
  }

  .ar-viewer-poster { margin-bottom: 0; grid-row: 1 / 5; }
  .ar-viewer-desc { grid-column: 1 / -1; }

  .ar-viewer-bar,
  .ar-viewer-inner { width: calc(100% - 32px); }

  .ar-download-area { padding: 40px 24px; min-height: 240px; }
  .ar-footer { padding: 20px 24px; }
}

/* ─── Inline video player (trailer + secondary video) ────────────────────── */

.video-aspect-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-aspect-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* When trailer is playing, clip the decorative pseudo-elements */
.trailer-frame:has(.video-aspect-wrap)::before,
.trailer-frame:has(.video-aspect-wrap)::after {
  display: none;
}

/* ─── Builder embed-code converter ──────────────────────────────────────── */

.builder-converter {
  margin-top: 20px;
  padding: 16px;
  background: rgba(247, 247, 242, 0.03);
  border: 1px solid rgba(247, 247, 242, 0.08);
}

.builder-converter-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.builder-converter-pill {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.5);
  border: 1px solid rgba(247, 247, 242, 0.15);
  padding: 2px 7px;
}

.builder-converter-hint {
  font-size: 0.7rem;
  color: rgba(247, 247, 242, 0.38);
  margin: 0 0 10px;
  line-height: 1.5;
}

.builder-converter-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(247, 247, 242, 0.04);
  border: 1px solid rgba(247, 247, 242, 0.12);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.72rem;
  padding: 9px 11px;
  resize: vertical;
  min-height: 60px;
  outline: none;
  transition: border-color 180ms ease;
}

.builder-converter-textarea:focus {
  border-color: rgba(247, 247, 242, 0.28);
}

.builder-converter-result {
  margin-top: 10px;
}

.builder-converter-result-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.36);
  margin-bottom: 5px;
}

.builder-converter-result-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(247, 247, 242, 0.04);
  border: 1px solid rgba(247, 247, 242, 0.1);
  color: rgba(247, 247, 242, 0.55);
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  padding: 8px 10px;
  outline: none;
  cursor: default;
}

.builder-converter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  justify-content: flex-end;
}

/* ── Site footer — mobile ────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .site-footer {
    margin-top: 80px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 0 28px;
  }

  .footer-col-nav,
  .footer-col-social {
    border-right: none;
    border-bottom: 1px solid rgba(247, 247, 242, 0.08);
    padding: 40px 0;
  }

  .footer-col-club {
    padding: 40px 0 48px;
    order: -1;
  }

  .footer-col-nav  { order: 0; }
  .footer-col-social { order: 1; }

  .footer-club-sub {
    max-width: none;
  }

  .footer-form {
    max-width: 100%;
  }

  .footer-base {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 28px 20px;
  }

  .footer-copy {
    text-align: center;
  }

  .home-welcome {
    margin-top: 36px;
  }

}

/* ── Policy pages ────────────────────────────────────────────────────────── */

.policy-body {
  max-width: 720px;
  margin: 0 auto;
  margin-top: 64px;
  padding-bottom: 80px;
}

.policy-body h2 {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.45);
  margin: 52px 0 14px;
  padding-top: 40px;
  border-top: 1px solid rgba(247, 247, 242, 0.08);
}

.policy-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.policy-body p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(247, 247, 242, 0.72);
  margin: 0 0 18px;
}

.policy-body strong {
  color: var(--ink);
  font-weight: 500;
}

.policy-body ul {
  margin: 12px 0 22px;
  padding-left: 20px;
}

.policy-body ul li {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(247, 247, 242, 0.72);
  margin-bottom: 8px;
}

.policy-body a {
  color: var(--ink);
  text-underline-offset: 3px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   REVIEWS — shared components, homepage strip, reviews page, product page,
   admin panel
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Star display ────────────────────────────────────────────────────────── */

.rev-stars {
  display: flex;
  gap: 3px;
  align-items: center;
}

.rev-star {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(247, 247, 242, 0.18);
  flex-shrink: 0;
}

.rev-star.filled {
  background: #f7f7f2;
}

/* ── Review card ─────────────────────────────────────────────────────────── */

.rev-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid rgba(247, 247, 242, 0.08);
  background: #080808;
}

.rev-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rev-card-author {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.5);
}

.rev-card-date {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: rgba(247, 247, 242, 0.28);
}

.rev-card-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(247, 247, 242, 0.82);
  margin: 0;
  font-style: italic;
}

.rev-card-text::before { content: "\201C"; }
.rev-card-text::after  { content: "\201D"; }

.rev-card-product {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.28);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(247, 247, 242, 0.06);
}

/* Rating-only cards (no text) */
.rev-card--rating-only .rev-card-text { display: none; }

/* ── Homepage reviews strip ──────────────────────────────────────────────── */

.home-reviews {
  margin-top: 0;
}

.home-reviews-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.home-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(247, 247, 242, 0.06);
  border: 1px solid rgba(247, 247, 242, 0.06);
}

.home-reviews-grid .rev-card {
  border: none;
  background: #050505;
  display: flex;
  flex-direction: column;
}

.home-reviews-grid .rev-card-text {
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 247, 242, 0.15) transparent;
}

.home-reviews-grid .rev-card-text::-webkit-scrollbar {
  width: 3px;
}

.home-reviews-grid .rev-card-text::-webkit-scrollbar-track {
  background: transparent;
}

.home-reviews-grid .rev-card-text::-webkit-scrollbar-thumb {
  background: rgba(247, 247, 242, 0.15);
  border-radius: 2px;
}

.home-reviews-foot {
  margin-top: 24px;
  text-align: center;
}

/* ── Reviews page ────────────────────────────────────────────────────────── */

.reviews-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(247, 247, 242, 0.06);
  border: 1px solid rgba(247, 247, 242, 0.06);
  margin-bottom: 48px;
}

.reviews-page-grid .rev-card {
  border: none;
  background: #050505;
}

.reviews-show-more {
  display: flex;
  justify-content: center;
  padding: 40px 0 20px;
}

.reviews-show-more-btn {
  background: transparent;
  border: 1px solid rgba(247, 247, 242, 0.2);
  color: rgba(247, 247, 242, 0.6);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 36px;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}

.reviews-show-more-btn:hover {
  border-color: rgba(247, 247, 242, 0.5);
  color: var(--ink);
}

.reviews-show-more-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.reviews-summary {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: rgba(247, 247, 242, 0.3);
  text-align: center;
  margin: 0 0 32px;
  text-transform: uppercase;
}

/* ── Product page reviews ────────────────────────────────────────────────── */

.product-reviews-section {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid rgba(247, 247, 242, 0.08);
}

.product-reviews-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.product-reviews-title {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.45);
}

.product-reviews-count {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(247, 247, 242, 0.28);
}

.product-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(247, 247, 242, 0.06);
  border: 1px solid rgba(247, 247, 242, 0.06);
  margin-bottom: 24px;
}

.product-reviews-list .rev-card {
  border: none;
  background: #050505;
}

/* ── Admin product order panel ───────────────────────────────────────────── */

.admin-order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* Status line that follows the order header */
#admin-order-status {
  margin: 8px 0 16px;
  min-height: 1em;
}

.admin-order-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(247, 247, 242, 0.06);
}

.admin-order-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-order-btn {
  background: transparent;
  border: 1px solid rgba(247, 247, 242, 0.15);
  color: rgba(247, 247, 242, 0.5);
  font-size: 0.7rem;
  width: 26px;
  height: 22px;
  cursor: pointer;
  line-height: 1;
  transition: background 150ms ease, color 150ms ease;
}

.admin-order-btn:hover:not(:disabled) {
  background: rgba(247, 247, 242, 0.08);
  color: var(--ink);
}

.admin-order-btn:disabled {
  opacity: 0.2;
  cursor: default;
}

.admin-order-num {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(247, 247, 242, 0.25);
  min-width: 20px;
  text-align: right;
}

.admin-order-name {
  flex: 1;
  font-size: 0.85rem;
  color: rgba(247, 247, 242, 0.8);
}

.admin-order-cat {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.3);
}

/* ── Admin reviews panel ─────────────────────────────────────────────────── */

.admin-rev-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-rev-search {
  flex: 1;
  min-width: 200px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 200ms ease;
}

.admin-rev-search:focus { border-color: rgba(247, 247, 242, 0.4); }
.admin-rev-search::placeholder { color: rgba(247,247,242,0.25); }

.admin-rev-count {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: rgba(247,247,242,0.35);
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-rev-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-rev-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  background: #0a0a0a;
  border: 1px solid rgba(247,247,242,0.05);
  transition: background 150ms ease;
}

.admin-rev-row:hover { background: #0f0f0f; }

.admin-rev-row--pending {
  border-color: rgba(247,247,242,0.15);
  background: rgba(247,247,242,0.03);
}

.admin-rev-pending-badge {
  display: inline-block;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,247,242,0.5);
  border: 1px solid rgba(247,247,242,0.18);
  padding: 2px 6px;
  border-radius: 2px;
}

.admin-rev-row-email {
  font-size: 0.62rem;
  color: rgba(247,247,242,0.25);
  font-style: normal;
}

.admin-rev-row-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-rev-row-author {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.admin-rev-row-date {
  font-size: 0.64rem;
  color: rgba(247,247,242,0.3);
}

.admin-rev-row-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-rev-row-product {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,247,242,0.3);
}

.admin-rev-row-text {
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(247,247,242,0.65);
  font-style: italic;
}

.admin-rev-row-text.no-text {
  color: rgba(247,247,242,0.2);
  font-style: normal;
  font-size: 0.72rem;
}

.admin-rev-row-actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-shrink: 0;
}

.admin-rev-edit-btn,
.admin-rev-delete-btn {
  background: transparent;
  border: 1px solid rgba(247,247,242,0.12);
  color: rgba(247,247,242,0.5);
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.admin-rev-edit-btn:hover {
  border-color: rgba(247,247,242,0.4);
  color: var(--ink);
}

.admin-rev-delete-btn:hover {
  border-color: rgba(220,60,60,0.5);
  color: rgba(220,60,60,0.9);
}

/* Edit modal */
.admin-rev-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-rev-modal {
  background: #0d0d0d;
  border: 1px solid rgba(247,247,242,0.12);
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-rev-modal-title {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247,247,242,0.45);
  margin: 0;
}

.admin-rev-modal-stars {
  display: flex;
  gap: 8px;
}

.admin-rev-modal-star-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(247,247,242,0.2);
  background: transparent;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
  font-size: 0.7rem;
  color: rgba(247,247,242,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-rev-modal-star-btn.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.admin-rev-modal textarea,
.admin-rev-modal input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(247,247,242,0.15);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  padding: 12px 14px;
  outline: none;
  resize: vertical;
  transition: border-color 200ms ease;
  box-sizing: border-box;
}

.admin-rev-modal textarea { min-height: 100px; }
.admin-rev-modal textarea:focus,
.admin-rev-modal input:focus { border-color: rgba(247,247,242,0.4); }

.admin-rev-modal-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,247,242,0.35);
  display: block;
  margin-bottom: 6px;
}

.admin-rev-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .home-reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .home-reviews-grid { grid-template-columns: 1fr; }
  .rev-card { padding: 24px; }
  .closing-statement {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .admin-rev-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-rev-row-actions { flex-direction: row; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN — add review form
   ═══════════════════════════════════════════════════════════════════════════ */

.admin-rev-add-wrap {
  border: 1px solid rgba(247, 247, 242, 0.09);
  background: rgba(247, 247, 242, 0.018);
  padding: 24px 28px 20px;
  margin-bottom: 28px;
  animation: slideDown 200ms ease;
}

.admin-rev-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-rev-add-text-field {
  margin-bottom: 4px;
}

.admin-rev-add-text-field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(247, 247, 242, 0.12);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
  transition: border-color 180ms ease;
  box-sizing: border-box;
  min-height: 72px;
}

.admin-rev-add-text-field textarea:focus {
  border-color: rgba(247, 247, 242, 0.36);
}

.admin-rev-add-stars {
  display: flex;
  gap: 6px;
  padding-top: 2px;
}

.rev-add-product-wrap {
  position: relative;
}

.rev-add-product-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  background: #1c1c17;
  border: 1px solid rgba(247, 247, 242, 0.14);
  border-radius: 4px;
  z-index: 200;
  max-height: 200px;
  overflow-y: auto;
}

.rev-add-product-result {
  padding: 9px 12px;
  font-size: 0.82rem;
  color: var(--color-text, #f7f7f2);
  cursor: pointer;
  border-bottom: 1px solid rgba(247, 247, 242, 0.06);
  transition: background 100ms ease;
}

.rev-add-product-result:last-child {
  border-bottom: none;
}

.rev-add-product-result:hover,
.rev-add-product-result:focus {
  background: rgba(247, 247, 242, 0.07);
  outline: none;
}

.rev-add-product-no-results {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: rgba(247, 247, 242, 0.35);
  margin: 0;
}

.admin-field-label-optional {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.22);
  font-weight: 400;
  margin-left: 4px;
}

@media (max-width: 640px) {
  .admin-rev-add-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN — sidebar two-panel layout
   ═══════════════════════════════════════════════════════════════════════════ */

/* App shell — flex row filling the viewport */
.admin-app {
  display: flex;
  min-height: 100dvh;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */

.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  height: 100dvh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  background: #060606;
  border-right: 1px solid rgba(247, 247, 242, 0.07);
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 247, 242, 0.1) transparent;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.06);
  flex-shrink: 0;
}

.admin-sidebar-brand-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.admin-sidebar-logo {
  width: 32px;
  height: auto;
  opacity: 0.85;
}

.admin-sidebar-label {
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.25);
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */

.admin-nav {
  flex: 1;
  padding: 12px 0 16px;
  overflow-y: auto;
}

.admin-nav-group {
  margin-bottom: 2px;
}

.admin-nav-group-label {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.2);
  padding: 10px 18px 4px;
  pointer-events: none;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 18px;
  font: inherit;
  font-size: 0.82rem;
  color: rgba(247, 247, 242, 0.5);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 36px;
  border-radius: 0;
  line-height: 1.3;
}

@media (hover: hover) {
  .admin-nav-item:hover {
    color: rgba(247, 247, 242, 0.85);
    background: rgba(247, 247, 242, 0.04);
  }
}

.admin-nav-item.is-active {
  color: var(--ink);
  background: rgba(247, 247, 242, 0.07);
}

.admin-nav-external {
  color: rgba(247, 247, 242, 0.38);
  font-size: 0.78rem;
}

.admin-nav-arrow {
  font-size: 0.68rem;
  opacity: 0.45;
  flex-shrink: 0;
}

/* ─── Sidebar footer ─────────────────────────────────────────────────────── */

.admin-sidebar-foot {
  flex-shrink: 0;
  padding: 16px 18px;
  border-top: 1px solid rgba(247, 247, 242, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-sidebar-foot .admin-user-caption {
  font-size: 0.52rem;
}

.admin-sidebar-foot .admin-user-email-display {
  font-size: 0.74rem;
  word-break: break-all;
}

.admin-sidebar-foot .admin-signout-btn {
  width: 100%;
}

/* ─── Main content area ──────────────────────────────────────────────────── */

.admin-main {
  flex: 1;
  min-width: 0;
  height: 100dvh;
  overflow-y: auto;
}

.admin-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

/* ─── Section wrapper + header ───────────────────────────────────────────── */

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.08);
  margin-bottom: 32px;
}

.admin-section-title {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}

.admin-section-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 52ch;
}

/* ─── Section content overrides ──────────────────────────────────────────── */

/* Discount codes: keep its 2-col inner but give it a container border */
.admin-section .admin-discount-inner {
  border: 1px solid rgba(247, 247, 242, 0.08);
  background: rgba(247, 247, 242, 0.012);
}

/* Sale and highlight forms: constrain width so they don't spread too wide */
.admin-form-constrained {
  max-width: 480px;
}

/* Users list: let the page scroll rather than a scroll-box inside the section */
.admin-section .admin-users-list {
  max-height: none;
  overflow-y: visible;
}

/* Order status message spacing */
#admin-order-status {
  margin: -16px 0 20px;
  min-height: 1.2em;
}

/* Prevent body + main scroll when user slide-over is open */
body.panel-open .admin-main { overflow: hidden; }

/* ─── Responsive: narrow screens ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .admin-sidebar { width: 180px; }
  .admin-content { padding: 36px 28px 60px; }
}

@media (max-width: 640px) {
  .admin-app { flex-direction: column; }

  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid rgba(247, 247, 242, 0.07);
  }

  .admin-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    padding: 8px;
  }

  .admin-nav-group { margin-bottom: 0; }
  .admin-nav-group-label { display: none; }

  .admin-nav-item {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.76rem;
    width: auto;
    flex: none;
  }

  .admin-sidebar-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .admin-sidebar-foot .admin-signout-btn { width: auto; }

  .admin-main { height: auto; }

  .admin-content { padding: 28px 16px 60px; }

  .admin-section .admin-discount-inner {
    grid-template-columns: 1fr;
  }

  .admin-section .admin-discount-create {
    border-right: none;
    border-bottom: 1px solid rgba(247, 247, 242, 0.07);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Fulfillment
   ═══════════════════════════════════════════════════════════════════════════ */

.fulfillment-row {
  border: 1px solid rgba(247, 247, 242, 0.08);
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

.fulfillment-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(247, 247, 242, 0.04);
  border-bottom: 1px solid rgba(247, 247, 242, 0.06);
}

.fulfillment-order-num {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.fulfillment-date {
  font-size: 0.75rem;
  color: var(--muted);
}

.fulfillment-row-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.fulfillment-col {
  padding: 16px;
  border-right: 1px solid rgba(247, 247, 242, 0.06);
}

.fulfillment-col:last-child { border-right: none; }

.fulfillment-label {
  margin: 0 0 4px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.fulfillment-value {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink);
}

.fulfillment-email { color: var(--muted); font-size: 0.78rem; }

.fulfillment-items { font-size: 0.82rem; color: var(--muted); }

.fulfillment-row-foot {
  padding: 12px 16px;
  border-top: 1px solid rgba(247, 247, 242, 0.06);
  display: flex;
  justify-content: flex-end;
}

/* ── Modal ──────────────────────────────────────────────────────────────── */

.fulfillment-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 24px;
}

.fulfillment-modal[hidden] { display: none; }

.fulfillment-modal-box {
  background: #111;
  border: 1px solid rgba(247, 247, 242, 0.1);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  border-radius: 2px;
}

.fulfillment-modal-title {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.fulfillment-modal-order {
  margin: 0 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.fulfillment-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.fulfillment-modal-status {
  margin: 12px 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--muted);
}

.fulfillment-modal-status.success { color: #6bcf7f; }
.fulfillment-modal-status.error   { color: rgba(220, 80, 80, 0.85); }

@media (max-width: 640px) {
  .fulfillment-row-body { grid-template-columns: 1fr; }
  .fulfillment-col { border-right: none; border-bottom: 1px solid rgba(247, 247, 242, 0.06); }
  .fulfillment-col:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Past Orders
   ═══════════════════════════════════════════════════════════════════════════ */

.po-row {
  border-bottom: 1px solid rgba(247, 247, 242, 0.06);
}

.po-row:first-child {
  border-top: 1px solid rgba(247, 247, 242, 0.06);
}

.po-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  user-select: none;
}

.po-row-head:hover .po-chevron {
  opacity: 1;
}

.po-row.is-open .po-chevron {
  transform: rotate(90deg);
}

.po-row-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.po-order-num {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
}

.po-customer {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.po-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.po-date,
.po-total {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.po-total {
  font-weight: 600;
  color: var(--fg);
}

.po-chevron {
  font-size: 1rem;
  color: var(--muted);
  opacity: 0.5;
  transition: transform 0.18s ease, opacity 0.18s ease;
  display: inline-block;
  line-height: 1;
}

/* Status badges */
.po-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.po-badge-pending   { background: rgba(247, 200, 80, 0.12); color: rgba(247, 200, 80, 0.85); }
.po-badge-shipped   { background: rgba(107, 207, 127, 0.12); color: #6bcf7f; }
.po-badge-cancelled { background: rgba(220, 80, 80, 0.10); color: rgba(220, 80, 80, 0.75); }
.po-badge-default   { background: rgba(247, 247, 242, 0.06); color: var(--muted); }

/* Expanded detail */
.po-row-detail {
  padding: 0 0 20px;
}

.po-detail-grid {
  display: grid;
  gap: 0;
  border: 1px solid rgba(247, 247, 242, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.po-detail-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.06);
}

.po-detail-row:last-child {
  border-bottom: none;
}

.po-detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 1px;
}

.po-detail-value {
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--fg);
}

.po-update-tracking-btn {
  font-size: 0.78rem;
}

/* 3-button modal actions row */
.fulfillment-modal-actions.three-up {
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .po-row-meta { gap: 8px; }
  .po-date { display: none; }
  .po-detail-row { grid-template-columns: 90px 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Newsletter Builder
   ═══════════════════════════════════════════════════════════════════════════ */

/* Subject row */
.nl-subject-row {
  margin-bottom: 28px;
}

.nl-field-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.nl-input {
  width: 100%;
  padding: 10px 13px;
  background: rgba(247, 247, 242, 0.04);
  border: 1px solid rgba(247, 247, 242, 0.1);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  border-radius: 2px;
  transition: border-color 150ms;
}

.nl-input:focus {
  outline: none;
  border-color: rgba(247, 247, 242, 0.3);
}

.nl-input-sm {
  width: auto;
  flex: 1;
  min-width: 0;
}

/* Two-column layout */
.nl-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 32px;
}

/* ── Block editor (left column) ── */
.nl-editor {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nl-blocks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  min-height: 60px;
}

.nl-empty-hint {
  margin: 0;
  padding: 24px;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px dashed rgba(247, 247, 242, 0.1);
  text-align: center;
}

/* Individual block card */
.nl-block {
  border: 1px solid rgba(247, 247, 242, 0.1);
  background: rgba(247, 247, 242, 0.02);
  border-radius: 2px;
  overflow: hidden;
}

.nl-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(247, 247, 242, 0.04);
  border-bottom: 1px solid rgba(247, 247, 242, 0.07);
}

.nl-block-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nl-block-controls {
  display: flex;
  gap: 4px;
}

.nl-btn-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(247, 247, 242, 0.12);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  border-radius: 2px;
  transition: border-color 120ms, color 120ms;
  line-height: 1;
}

.nl-btn-icon:hover:not(:disabled) {
  border-color: rgba(247, 247, 242, 0.35);
  color: var(--ink);
}

.nl-btn-icon:disabled {
  opacity: 0.25;
  cursor: default;
}

.nl-btn-delete:hover:not(:disabled) {
  border-color: #c05050;
  color: #c05050;
}

.nl-block-fields {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nl-block-input,
.nl-block-textarea,
.nl-block-select {
  width: 100%;
  padding: 8px 10px;
  background: rgba(247, 247, 242, 0.04);
  border: 1px solid rgba(247, 247, 242, 0.08);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  border-radius: 2px;
  transition: border-color 150ms;
  box-sizing: border-box;
}

.nl-block-input:focus,
.nl-block-textarea:focus,
.nl-block-select:focus {
  outline: none;
  border-color: rgba(247, 247, 242, 0.28);
}

.nl-block-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

.nl-block-input-lg {
  font-size: 1.05rem;
  font-weight: 600;
}

.nl-block-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 4px 0;
}

/* Add block bar */
.nl-add-bar {
  padding-top: 12px;
  border-top: 1px solid rgba(247, 247, 242, 0.07);
}

.nl-add-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.nl-add-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Preview (right column) ── */
.nl-preview-col {
  position: sticky;
  top: 24px;
}

.nl-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.nl-preview-header #nl-dark-toggle.active {
  background: rgba(247, 247, 242, 0.15);
}

.nl-preview-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nl-preview-frame {
  border: 1px solid rgba(247, 247, 242, 0.1);
  background: #050505;
  border-radius: 2px;
  overflow: hidden;
  height: 540px;
}

.nl-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── Send bar ── */
.nl-send-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(247, 247, 242, 0.08);
  flex-wrap: wrap;
}

.nl-test-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 260px;
}

#nl-status {
  margin-top: 12px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .nl-layout {
    grid-template-columns: 1fr;
  }

  .nl-preview-col {
    position: static;
  }

  .nl-preview-frame {
    height: 420px;
  }
}

/* ─── Access Room — Store Reviews panel ──────────────────────────────────── */

.ar-store-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ar-rev-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  background: rgba(247, 247, 242, 0.025);
  border: 1px solid rgba(247, 247, 242, 0.07);
}

.ar-rev-stars {
  display: flex;
  gap: 4px;
  align-items: center;
}

.ar-rev-star {
  font-size: 0.8rem;
  color: rgba(247, 247, 242, 0.18);
  line-height: 1;
}

.ar-rev-star.filled {
  color: rgba(247, 247, 242, 0.75);
}

.ar-rev-text {
  flex: 1;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.72;
  color: rgba(247, 247, 242, 0.7);
  font-style: italic;
}

.ar-rev-text::before { content: "\201C"; }
.ar-rev-text::after  { content: "\201D"; }

.ar-rev-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 247, 242, 0.06);
}

.ar-rev-author {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.45);
}

.ar-rev-product {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(247, 247, 242, 0.26);
}

@media (max-width: 900px) {
  .ar-store-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .ar-store-reviews-grid {
    grid-template-columns: 1fr;
  }

  .ar-rev-card {
    padding: 22px 18px;
  }
}

/* ── Admin: Stock panel ──────────────────────────────────────────────────── */
.admin-stock-row {
  padding: 20px 0;
  border-bottom: 1px solid rgba(247,247,242,0.07);
}
.admin-stock-row:last-child { border-bottom: none; }

.admin-stock-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.admin-stock-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(247,247,242,0.9);
}
.admin-stock-meta { display: flex; gap: 6px; align-items: center; }

.admin-stock-badge {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
}
.admin-stock-badge--soldout {
  background: rgba(220,80,60,0.15);
  color: rgb(220,100,80);
  border: 1px solid rgba(220,80,60,0.3);
}
.admin-stock-badge--unavailable {
  background: rgba(200,150,0,0.15);
  color: rgb(210,165,40);
  border: 1px solid rgba(200,150,0,0.3);
}

.admin-stock-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.admin-stock-qty-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(247,247,242,0.15);
  border-radius: 3px;
  overflow: hidden;
}
.admin-stock-qty-btn {
  width: 32px;
  height: 34px;
  background: rgba(247,247,242,0.04);
  border: none;
  color: rgba(247,247,242,0.7);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.admin-stock-qty-btn:hover { background: rgba(247,247,242,0.1); }
.admin-stock-qty-input {
  width: 70px;
  height: 34px;
  text-align: center;
  background: none;
  border: none;
  border-left: 1px solid rgba(247,247,242,0.15);
  border-right: 1px solid rgba(247,247,242,0.15);
  color: rgba(247,247,242,0.9);
  font-size: 1rem;
  font-weight: 500;
}
.admin-stock-qty-input:focus { outline: none; background: rgba(247,247,242,0.04); }
.admin-stock-qty-input::-webkit-inner-spin-button,
.admin-stock-qty-input::-webkit-outer-spin-button { opacity: 0; }

.admin-stock-qty-label {
  font-size: 0.78rem;
  color: rgba(247,247,242,0.35);
  white-space: nowrap;
}
.admin-stock-unavail-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: rgba(247,247,242,0.5);
  cursor: pointer;
  white-space: nowrap;
}
.admin-stock-unavail-label input[type="checkbox"] { cursor: pointer; accent-color: #fff; }
.admin-stock-save-btn { margin-left: auto; }

.admin-stock-row-status {
  margin: 10px 0 0;
  font-size: 0.8rem;
  min-height: 1.2em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UNLISTED PAGES — Admin list
   ═══════════════════════════════════════════════════════════════════════════ */

.admin-page-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(247, 247, 242, 0.07);
  background: rgba(255, 255, 255, 0.015);
  margin-bottom: 8px;
  transition: border-color 180ms ease, background 180ms ease;
}

@media (hover: hover) {
  .admin-page-row:hover {
    border-color: rgba(247, 247, 242, 0.14);
    background: rgba(255, 255, 255, 0.03);
  }
}

.admin-page-row-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.admin-page-row-slug {
  font-size: 0.78rem;
  font-family: monospace;
  letter-spacing: 0.04em;
  color: rgba(247, 247, 242, 0.55);
  flex-shrink: 0;
}

.admin-page-row-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.admin-page-row-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(184, 255, 183, 0.7);
  border: 1px solid rgba(184, 255, 183, 0.18);
  background: rgba(184, 255, 183, 0.06);
  flex-shrink: 0;
}

.admin-page-row-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE BUILDER — preview panel additions
   ═══════════════════════════════════════════════════════════════════════════ */

/* Constrain the hero title font size inside the narrow preview column */
.pb-preview-page .page-title {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
}

.pb-preview-site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 24px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.06);
  margin-bottom: 0;
}

.pb-preview-logo {
  height: 28px;
  width: auto;
  opacity: 0.75;
}

.pb-preview-content {
  padding: 0 32px 60px;
}

.pb-preview-page-header {
  padding-top: 48px;
}

.pb-preview-body {
  margin-top: 40px;
}

.pb-preview-body-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(247, 247, 242, 0.6);
  margin: 0 0 32px;
  white-space: pre-wrap;
}

/* Video placeholder block */
.pb-preview-video-wrap {
  margin-top: 32px;
}

.pb-preview-video-placeholder {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: rgba(247, 247, 242, 0.04);
  border: 1px solid rgba(247, 247, 242, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pb-preview-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(247, 247, 242, 0.08);
  border: 1px solid rgba(247, 247, 242, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pb-preview-play-btn svg {
  width: 18px;
  height: 18px;
  fill: rgba(247, 247, 242, 0.55);
  margin-left: 3px;
}

.pb-preview-video-hint {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.22);
  margin: 0;
}

/* Label above a video in both preview and public page */
.pb-preview-video-label,
.ulp-video-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.3);
  margin: 0 0 10px;
}

/* Public page: labels sit within the page margin, not full-bleed */
.ulp-video-label {
  padding-left: max(32px, calc((100vw - 1240px) / 2));
  margin-top: 56px;
}

/* Extra top spacing for second+ videos (no label case) */
.ulp-video-wrap--spaced {
  margin-top: 56px;
}

/* Preview: stack spacing */
.pb-preview-video-wrap + .pb-preview-video-wrap,
.pb-preview-video-label {
  margin-top: 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.about-body {
  padding-top: 72px;
  padding-bottom: 80px;
}

.about-section {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 64px;
  padding: 56px 0;
}

.about-section-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.28);
  padding-top: 7px; /* align with first line of lead text */
  flex-shrink: 0;
}

.about-section-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.about-p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(247, 247, 242, 0.62);
  margin: 0;
  max-width: 640px;
}

.about-divider {
  height: 1px;
  background: rgba(247, 247, 242, 0.07);
}

/* Q&A */
.about-qa-item {
  padding-top: 8px;
}

.about-qa-item + .about-qa-item {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(247, 247, 242, 0.06);
}

.about-qa-q {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

/* Tighten the gap at mid-sizes before full collapse */
@media (max-width: 860px) {
  .about-section {
    grid-template-columns: 120px 1fr;
    gap: 0 40px;
  }
}

@media (max-width: 720px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 12px 0;
    padding: 40px 0;
  }

  .about-section-label {
    padding-top: 0;
  }

  .about-body {
    padding-top: 48px;
  }
}

/* ── Migration section ────────────────────────────────────────────────────── */

.admin-migration-block {
  margin-bottom: 40px;
}

.admin-migration-drop {
  border: 2px dashed var(--line);
  border-radius: 4px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-top: 12px;
}
.admin-migration-drop:hover,
.admin-migration-drop.is-dragging {
  border-color: var(--muted);
  background: rgba(247, 247, 242, 0.04);
}
.admin-migration-drop-hint {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--ink);
}
.admin-migration-drop-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.admin-migration-browse-link {
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
}

.admin-migration-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}
.admin-migration-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.admin-migration-table td {
  padding: 7px 12px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.06);
  vertical-align: middle;
}
.mig-row-unmatched td {
  background: rgba(220, 80, 50, 0.08);
}
.mig-sq-name {
  color: var(--ink);
  max-width: 320px;
}

.admin-migration-stats-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}
.admin-migration-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-migration-stat-num {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.admin-migration-stat-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mig-stat-warn .admin-migration-stat-num {
  color: rgba(240, 120, 80, 0.9);
}

.admin-migration-actions {
  margin: 16px 0;
}

.admin-migration-bar {
  height: 4px;
  background: rgba(247, 247, 242, 0.12);
  border-radius: 2px;
  overflow: hidden;
  margin: 16px 0 8px;
}
.admin-migration-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--ink);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.admin-migration-progress-text {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.admin-migration-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.admin-migration-test-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.admin-migration-test-row .admin-search-input {
  flex: 1;
  max-width: 320px;
}

/* ── User Note Bar (Access Room) ─────────────────────────────────────────────── */

.ar-user-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 24px;
  border-top: 1px solid rgba(247, 247, 242, 0.08);
  border-bottom: 1px solid rgba(247, 247, 242, 0.08);
  background: rgba(247, 247, 242, 0.03);
}

.ar-user-note-from {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 247, 242, 0.35);
  flex-shrink: 0;
}

.ar-user-note-text {
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(247, 247, 242, 0.72);
}

@media (max-width: 600px) {
  .ar-user-note {
    flex-direction: column;
    gap: 4px;
    padding: 10px 20px;
    text-align: center;
  }
}

/* ── Note to Users Admin ─────────────────────────────────────────────────────── */

.unote-editor {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.unote-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.unote-input {
  width: 100%;
}

.unote-char-count {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(247, 247, 242, 0.3);
  text-align: right;
}

.unote-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(247, 247, 242, 0.09);
  background: rgba(255, 255, 255, 0.02);
}

.unote-toggle-label {
  font-size: 0.85rem;
  color: var(--ink);
}

/* Toggle switch */
.unote-toggle {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.unote-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.unote-toggle-track {
  width: 40px;
  height: 22px;
  background: rgba(247, 247, 242, 0.12);
  border-radius: 11px;
  position: relative;
  transition: background 0.2s;
}

.unote-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(247, 247, 242, 0.5);
  transition: transform 0.2s, background 0.2s;
}

.unote-toggle-input:checked + .unote-toggle-track {
  background: var(--ink);
}

.unote-toggle-input:checked + .unote-toggle-track .unote-toggle-thumb {
  transform: translateX(18px);
  background: var(--bg);
}

.unote-preview-wrap {
  margin-top: 32px;
  max-width: 760px;
}

.unote-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  border-top: 1px solid rgba(247, 247, 242, 0.08);
  border-bottom: 1px solid rgba(247, 247, 242, 0.08);
  background: rgba(247, 247, 242, 0.03);
  margin-top: 8px;
}

/* ── Email Testing ───────────────────────────────────────────────────────────── */

.etest-recipient-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(247, 247, 242, 0.09);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 24px;
}

.etest-recipient-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(247, 247, 242, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

.etest-email-input {
  flex: 1;
  max-width: 340px;
}

.etest-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid rgba(247, 247, 242, 0.09);
}

.etest-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s;
}

.etest-card + .etest-card {
  border-top: 1px solid rgba(247, 247, 242, 0.06);
}

.etest-card-info {
  flex: 1;
  min-width: 0;
}

.etest-card-name {
  margin: 0 0 3px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.etest-card-desc {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(247, 247, 242, 0.45);
  line-height: 1.5;
}

.etest-btn {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 8px 16px;
}

.etest-btn.sending {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .etest-recipient-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .etest-email-input {
    max-width: 100%;
    width: 100%;
  }
  .etest-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ── Apps Catalogue ──────────────────────────────────────────────────────────── */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px 24px;
  margin-top: 40px;
}

.app-card {
  display: flex;
  flex-direction: column;
}

.app-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-card-link:hover .app-card-image-wrap {
  opacity: 0.82;
}

.app-card-image-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--card, #0d0d0d);
  border-radius: 22px;
  overflow: hidden;
  transition: opacity 0.2s;
  border: 1px solid rgba(247, 247, 242, 0.07);
}

.app-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-card-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 20%, #0d1020 0%, #050505 70%);
}

.app-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.app-card-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.app-card-tagline {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(247, 247, 242, 0.5);
  line-height: 1.4;
}

.app-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

/* ── Platform Badges ────────────────────────────────────────────────────────── */

.app-platform-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(247, 247, 242, 0.18);
  color: rgba(247, 247, 242, 0.65);
  background: rgba(247, 247, 242, 0.04);
}

.app-platform-badge-lg {
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 5px;
}

.app-platform-ios,
.app-platform-android {
  border-color: rgba(247, 247, 242, 0.18);
  color: rgba(247, 247, 242, 0.65);
  background: rgba(247, 247, 242, 0.04);
}

/* ── App Detail Page ─────────────────────────────────────────────────────────── */

.app-detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

.app-detail-cover-wrap {
  position: sticky;
  top: 104px;
}

.app-detail-cover {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--card, #0d0d0d);
  border: 1px solid rgba(247, 247, 242, 0.08);
}

.app-detail-cover-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 20%, #0d1020 0%, #050505 70%);
}

.app-detail-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-detail-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.app-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-detail-price-wrap {
  margin-top: -8px;
}

.app-detail-download-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* App Store download buttons */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.app-store-btn-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-store-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.app-store-btn-android {
  background: rgba(61, 220, 132, 0.12);
  border-color: rgba(61, 220, 132, 0.35);
  color: rgba(61, 220, 132, 0.9);
}

.app-store-btn-android:hover {
  background: rgba(61, 220, 132, 0.2);
}

.app-detail-description {
  border-top: 1px solid rgba(247, 247, 242, 0.08);
  padding-top: 28px;
}

/* Extra media section */
.app-detail-media-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(247, 247, 242, 0.08);
}

.app-extra-video {
  margin-bottom: 32px;
}

.app-extra-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.app-extra-img {
  width: 100%;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(247, 247, 242, 0.07);
}

.app-block-image {
  margin: 20px 0;
}

.app-block-image img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* ── App Builder ─────────────────────────────────────────────────────────────── */

.app-block-item {
  background: rgba(247, 247, 242, 0.03);
  border: 1px solid rgba(247, 247, 242, 0.09);
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

.app-block-input {
  width: 100%;
  background: rgba(247, 247, 242, 0.04);
  border: 1px solid rgba(247, 247, 242, 0.1);
  color: var(--ink);
  padding: 8px 10px;
  font-size: 0.82rem;
  border-radius: 4px;
  font-family: inherit;
}

.app-block-input:focus {
  outline: none;
  border-color: rgba(247, 247, 242, 0.3);
}

textarea.app-block-textarea {
  resize: none;
  min-height: 80px;
  line-height: 1.55;
  overflow: hidden;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .app-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .app-detail-cover-wrap {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }

  .app-card-image-wrap {
    border-radius: 16px;
  }

  .app-detail-cover {
    border-radius: 20px;
  }

  .app-detail-download-btns {
    width: 100%;
  }

  .app-store-btn {
    width: 100%;
    justify-content: center;
  }
}