/* ==========================================================
   Kred4 Productions — shared styles
   ========================================================== */

/* Orbitron, self-hosted (SIL Open Font License, see assets/fonts/Orbitron-OFL.txt).
   Hosting it here means visitors' browsers don't contact Google to load it. */
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/orbitron-latin.woff2") format("woff2");
}

:root {
  --night: #0f0b15;      /* page background */
  --panel: #19121f;      /* raised surfaces */
  --panel-2: #221830;
  --line: #33264a;       /* borders */
  --text: #eee8f4;
  --muted: #a99cba;
  --gold: #d9ae52;
  --gold-bright: #f0cd7c;
  --logo-gold: #f2c04a;  /* warm gold, close to the KRED4 logo's yellow but a little softer */
  --purple: #7c4ddb;
  --purple-soft: #b89cff;

  /* Orbitron everywhere: 400 regular for reading, 700–900 bold for headings,
     italic (browser-slanted; Orbitron ships no true italic) for taglines and captions. */
  --font-display: "Orbitron", "Segoe UI", sans-serif;
  --font-body: "Orbitron", "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }

/* The hidden attribute always wins, even over components that set display */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Page background: soft glows of violet, midnight blue and a touch of gold,
   painted down the whole length of the page so they scroll past with the
   content (you don't see the same blobs on screen). Three layers repeat at
   different heights, so the pattern keeps changing as you scroll.
   On the home page it only starts after the spiral (main.js sets
   --bg-start) and fades in there, so the hero → spiral → next section
   blends stay pure dark. A fine film grain sits on top. */
body { position: relative; }
body::before,
body::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
}
body::before {
  top: var(--bg-start, 0px); z-index: -2;
  background:
    radial-gradient(34% 30% at 14% 28%, rgba(124, 77, 219, .28), transparent 70%) 0 0 / 100% 1900px repeat-y,
    radial-gradient(30% 26% at 86% 72%, rgba(124, 77, 219, .20), transparent 70%) 0 0 / 100% 1900px repeat-y,
    radial-gradient(36% 28% at 80% 22%, rgba(38, 74, 168, .24), transparent 72%) 0 0 / 100% 2700px repeat-y,
    radial-gradient(30% 24% at 24% 76%, rgba(70, 40, 150, .24), transparent 70%) 0 0 / 100% 2700px repeat-y,
    radial-gradient(26% 20% at 58% 48%, rgba(217, 174, 82, .09), transparent 70%) 0 0 / 100% 3300px repeat-y;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 700px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 700px);
}
body::after {
  /* Grain starts where the glows do, so it can't lighten the dark blends
     between the hero, the spiral and the next section */
  top: var(--bg-start, 0px); z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 700px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 700px);
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .95rem;
  line-height: 1.85;
  letter-spacing: .015em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--purple-soft); }
a:hover { color: var(--gold-bright); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--night);
  padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tab bar ---------- */

.tabs {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to bottom, rgba(15, 11, 21, .92), rgba(15, 11, 21, .72));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 77, 219, .28);
  transition: transform .35s ease;
}
/* main.js adds .is-hidden while scrolling down; scrolling up brings it back */
.tabs.is-hidden { transform: translateY(-100%); }
.tabs:focus-within { transform: none; }

.tabs ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: 100%; max-width: 640px; gap: clamp(8px, 4vw, 48px);
}
.tabs li:first-child { justify-self: end; }
.tabs li:last-child { justify-self: start; }

.tabs a {
  position: relative; display: inline-block;
  padding: 10px 6px;
  font-family: var(--font-display);
  font-weight: 700; font-size: .95rem; letter-spacing: .06em;
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.tabs a:hover { color: var(--text); }

/* Kredbic and S4 get identical boxes so the bar mirrors around the logo,
   whatever the length of each name. */
.tabs li:first-child a,
.tabs li:last-child a {
  width: 7.5rem;
  padding: 8px 6px;
  font-size: .85rem;
  text-align: center;
  color: var(--text);
  border-radius: 10px;
  border: 1px solid rgba(184, 156, 255, .6);
  background: rgba(124, 77, 219, .32);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  transition: color .2s, background-color .2s, border-color .2s, transform .2s;
}
.tabs li:first-child a:hover,
.tabs li:last-child a:hover {
  background: rgba(124, 77, 219, .5);
  border-color: var(--purple-soft);
  transform: translateY(-1px);
}
/* Current page: the whole box turns gold instead of using the underline */
.tabs li:first-child a[aria-current="page"],
.tabs li:last-child a[aria-current="page"] {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(217, 174, 82, .12);
  box-shadow: 0 0 18px rgba(217, 174, 82, .18);
}
.tabs li:first-child a::after,
.tabs li:last-child a::after { display: none; }

/* Home tab: a large logo badge; all three tabs share one centre line in the bar */
.tabs ul { height: 100%; }
.tabs a.home {
  display: block;
  padding: 0;
  border-radius: 16px;
}
.tabs a.home::after { display: none; }
.tab-logo {
  display: block;
  width: 62px; height: 62px; flex: none;
  border-radius: 13px;
  box-shadow:
    0 0 0 2px rgba(217, 174, 82, .75),
    0 10px 28px rgba(0, 0, 0, .55),
    0 0 34px rgba(124, 77, 219, .45);
  transition: transform .2s, box-shadow .2s;
}
.tabs a.home:hover .tab-logo {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2px var(--gold-bright),
    0 14px 32px rgba(0, 0, 0, .6),
    0 0 44px rgba(124, 77, 219, .6);
}
.tabs a.home[aria-current="page"] .tab-logo {
  box-shadow:
    0 0 0 2px var(--gold-bright),
    0 10px 28px rgba(0, 0, 0, .55),
    0 0 40px rgba(217, 174, 82, .35);
}
.tabs a.home:hover { color: var(--gold-bright); }

.tabs a[aria-current="page"] { color: var(--text); }
.tabs a.home[aria-current="page"] { color: var(--gold-bright); }
.tabs a[aria-current="page"]::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px;
  height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
}

/* ---------- Top bar tools: currency + cart (added by shop.js) ---------- */
.bar-tools {
  position: absolute;
  right: clamp(10px, 2.5vw, 32px); top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px;
}
.cur-select {
  appearance: none; -webkit-appearance: none;
  height: 36px; padding: 0 30px 0 12px;
  font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: var(--text);
  background: rgba(124, 77, 219, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b89cff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center / 10px 7px;
  border: 1px solid rgba(184, 156, 255, .45);
  border-radius: 10px;
  cursor: pointer;
}
.cur-select:hover { border-color: var(--purple-soft); }
.cur-select option { background: var(--panel); color: var(--text); }
.cart-btn {
  position: relative;
  display: grid; place-items: center;
  width: 40px; height: 36px; padding: 0;
  color: var(--text);
  background: rgba(124, 77, 219, .18);
  border: 1px solid rgba(184, 156, 255, .45);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.cart-btn:hover { background: rgba(124, 77, 219, .4); border-color: var(--purple-soft); }
.cart-btn svg { width: 21px; height: 21px; }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center;
  font-size: .62rem; font-weight: 900; line-height: 1;
  color: #1b1206; background: var(--gold-bright);
  border-radius: 999px;
}
/* Top-left links (added by shop.js): inline on wide screens, a Menu button below that */
.bar-left {
  position: absolute; left: clamp(10px, 2.5vw, 32px); top: 50%;
  transform: translateY(-50%);
}
.tabs .bar-links { display: flex; align-items: center; gap: 10px; }
/* Same box as the currency picker and cart */
.tabs .bar-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  font: inherit; font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: var(--text); text-decoration: none;
  background: rgba(124, 77, 219, .18);
  border: 1px solid rgba(184, 156, 255, .45); border-radius: 10px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.tabs .bar-link:hover,
.bar-drop.is-open .drop-btn { background: rgba(124, 77, 219, .4); border-color: var(--purple-soft); color: var(--text); }
.tabs .bar-link[aria-current="page"] { color: var(--gold-bright); border-color: var(--gold); background: rgba(217, 174, 82, .12); }
.tabs .bar-link::after { display: none; }
.drop-btn svg { width: 10px; height: 7px; transition: transform .2s; }
.bar-drop { position: relative; }
.bar-drop.is-open .drop-btn svg { transform: rotate(180deg); }
.drop-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 250px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  white-space: nowrap;
}
.bar-drop.is-open .drop-menu { display: block; }
.tabs .drop-menu a {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 10px 12px; border-radius: 8px;
  font-size: .78rem; font-weight: 700; color: var(--text); text-decoration: none;
}
.tabs .drop-menu a:hover { background: rgba(124, 77, 219, .22); }
.tabs .drop-menu a::after { display: none; }
.drop-menu a span { color: var(--gold-bright); font-weight: 600; }
.drop-menu .from { color: var(--muted); }
.menu-btn {
  display: none; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  font: inherit; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  color: var(--text);
  background: rgba(124, 77, 219, .18);
  border: 1px solid rgba(184, 156, 255, .45); border-radius: 10px;
  cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn:hover { background: rgba(124, 77, 219, .4); }
/* Not enough room beside the centre tabs: fold the links into a Menu panel */
@media (max-width: 1239px) {
  .menu-btn { display: inline-flex; }
  .tabs .bar-links {
    display: none;
    position: absolute; top: calc(100% + 10px); left: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    min-width: 230px; padding: 6px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  }
  .tabs .bar-links.is-open { display: flex; }
  /* Plain rows inside the panel rather than boxes */
  .tabs .bar-links .bar-link {
    justify-content: space-between; height: auto; padding: 10px 12px;
    background: none; border-color: transparent;
  }
  .tabs .bar-links .bar-link:hover { background: rgba(124, 77, 219, .22); }
  /* Inside the panel the Order options are always listed */
  .tabs .bar-links .drop-btn { pointer-events: none; color: var(--muted); font-size: .68rem; padding-bottom: 2px; }
  .tabs .bar-links .drop-btn svg { display: none; }
  .tabs .bar-links .drop-menu {
    display: block; position: static; min-width: 0; padding: 0 0 4px;
    background: none; border: 0; box-shadow: none;
  }
}
@media (max-width: 640px) {
  .bar-left { left: 8px; }
  .menu-btn { width: 40px; height: 34px; padding: 0; justify-content: center; }
  .menu-btn span { display: none; }
}

/* Phones: the bar is full, so the currency picker lives in the cart panel */
@media (max-width: 640px) {
  .bar-tools .cur-select { display: none; }
  .bar-tools { right: 8px; }
  .cart-btn { width: 36px; height: 34px; }
}

/* Cart panel: slides in from the right */
.cart-drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100%;
  width: min(400px, 100%);
  padding: 0;
  color: var(--text);
  background: var(--panel);
  border: 0; border-left: 1px solid var(--line);
  display: none; flex-direction: column;
}
.cart-drawer[open] { display: flex; animation: cart-in .25s ease; }
@keyframes cart-in { from { transform: translateX(30px); opacity: 0; } }
.cart-drawer::backdrop { background: rgba(8, 5, 12, .6); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.cart-head h2 { margin: 0; font-size: 1.1rem; letter-spacing: .04em; }
.cart-close {
  width: 36px; height: 36px; padding: 0;
  font-size: 1.6rem; line-height: 1; color: var(--muted);
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.cart-close:hover { color: var(--text); border-color: var(--purple-soft); }
.cart-body { flex: 1; overflow-y: auto; padding: 20px; }
.cart-empty { margin: 0 0 18px; color: var(--muted); }
.cart-item {
  padding: 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel-2);
}
.cart-item-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cart-item h3 { margin: 0; font-size: .95rem; }
.cart-price { color: var(--gold-bright); font-size: 1.05rem; white-space: nowrap; }
.cart-lines { margin: 10px 0 0; padding: 0; list-style: none; font-size: .78rem; color: var(--muted); }
.cart-lines li { padding: 3px 0; overflow-wrap: anywhere; }
.cart-usd { margin: 10px 0 0; font-size: .72rem; color: var(--muted); font-style: italic; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cart-actions .btn { flex: 1 1 auto; justify-content: center; }
.cart-cur {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-top: 1px solid var(--line);
  font-size: .82rem;
}
.order-summary .cart-add { margin-top: 10px; }
.cart-fine { margin: 0; padding: 0 20px 18px; font-size: .7rem; color: var(--muted); font-style: italic; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 clamp(48px, 8vh, 96px);
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--night) 2%, rgba(15, 11, 21, .78) 32%, rgba(15, 11, 21, .15) 70%, rgba(15, 11, 21, .45) 100%),
    radial-gradient(ellipse at 15% 100%, rgba(124, 77, 219, .35), transparent 60%);
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.3rem, 15vw, 11.5rem);
  line-height: .9;
  letter-spacing: .02em;
  color: var(--gold);
  background: linear-gradient(175deg, var(--gold-bright) 10%, var(--gold) 55%, #a87b2c 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .55));
}
.wordmark-sub {
  display: block;
  margin-top: .55em;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(.95rem, 2.2vw, 1.5rem);
  letter-spacing: .3em;
  color: var(--purple-soft);
}

.hero-lede {
  max-width: 40ch;
  margin: 1.4rem 0 2rem;
  font-style: italic;
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  color: var(--text);
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 11vw, 8rem);
  line-height: .95;
  letter-spacing: .02em;
  color: var(--text);
  text-shadow: 0 6px 30px rgba(0, 0, 0, .5);
}

/* ---------- Home hero: cinematic title card ---------- */

/* Much lighter darkening so the scene shows: a thin band at the bottom
   (to blend into the next section), a soft top edge for the tab bar,
   and a gentle vignette */
/* Blend the bottom of the photo into the spiral section below. Kept short
   so the boat and the water under it stay clear. */
.hero-cine::before {
  background: linear-gradient(to top, var(--night) 0%, rgba(15, 11, 21, .6) 5%, rgba(15, 11, 21, .2) 11%, transparent 16%);
}
/* Full width, starting below the tab bar. The height is the image's 16:9
   shape, but never taller than the screen, so on screens wider than 16:9
   (e.g. fullscreen) a thin strip is trimmed off the top and bottom. */
.hero-cine {
  overflow: clip;
  min-height: 0;
  height: min(56.25vw, calc(100vh - var(--nav-h)));
  height: min(56.25vw, calc(100svh - var(--nav-h)));
  margin-top: var(--nav-h);
  padding-top: 0;
}
/* Split any trim between top and bottom, leaning slightly to the top so
   there's always water showing under the boat */
.hero-cine .hero-media { object-position: center 58%; }

/* Everything sits along the bottom: KRED4 bottom left, the panel beside it
   on the right, leaving the top of the photo clear */
.hero-cine { padding-bottom: clamp(28px, 5vh, 56px); }
/* KRED4 Productions sits near the screen's left edge (not the centred page
   column), with a little room to breathe */
.hero-inner {
  width: 100%;
  padding: 0 clamp(20px, 4.5vw, 72px);
}

/* Outlined wordmark: the scene shows through the letters */
.wordmark-outline { margin: 0; line-height: 1; }
/* KRED4: plain Orbitron, solid gold, with a small drop shadow so it reads over the photo */
.wm-text {
  display: block;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.8rem, 13vw, 8.5rem); line-height: .9; letter-spacing: .02em;
  color: var(--logo-gold);
  text-shadow: 0 3px 6px rgba(0, 0, 0, .55), 0 6px 22px rgba(0, 0, 0, .5);
}
.wm-main {
  display: block;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(4rem, 16vw, 12.5rem); line-height: .85; letter-spacing: .03em;
  color: rgba(240, 205, 124, .06);
  -webkit-text-stroke: clamp(1.5px, .22vw, 3px) var(--gold-bright);
  filter: drop-shadow(0 6px 26px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px rgba(217, 174, 82, .3));
}
.wm-sub {
  display: block; margin-top: .7em;
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(.95rem, 1.9vw, 1.4rem); letter-spacing: .42em;
  /* Line the P up under the K's stem: shift by the K's side bearing (≈ 0.05 of KRED4's size) */
  padding-left: calc(clamp(2.8rem, 13vw, 8.5rem) * .052);
  color: var(--logo-gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, .75), 0 3px 14px rgba(0, 0, 0, .7);
}

/* Frosted glass panel for the tagline and buttons */
.hero-panel {
  max-width: 430px;
  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(15, 11, 21, .38);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.hero-panel-lede { margin: 0 0 18px; font-size: .95rem; line-height: 1.6; color: var(--text); }

@media (max-width: 700px) {
  .hero-panel { max-width: none; width: 100%; padding: 18px; }
}

/* ---------- Buttons ---------- */

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: .85rem; letter-spacing: .05em;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-gold { background: var(--gold); color: #1b1206; }
.btn-gold:hover { background: var(--gold-bright); color: #1b1206; }
.btn-ghost { background: rgba(15, 11, 21, .45); color: var(--text); border-color: rgba(238, 232, 244, .35); }
.btn-ghost:hover { border-color: var(--purple-soft); color: var(--text); background: rgba(124, 77, 219, .2); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: #8f62ec; color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }

.is-pending { opacity: .55; cursor: not-allowed; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 10vw, 120px) 0; }
.section + .section { padding-top: 0; }

.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 {
  margin: 0 0 .4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: .01em;
}
.section-head p { margin: 0; color: var(--muted); max-width: 60ch; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.gallery button {
  position: relative; padding: 0; border: 0; margin: 0;
  background: var(--panel); border-radius: 10px; overflow: hidden;
  cursor: zoom-in; aspect-ratio: 16 / 9;
  grid-column: span 3;
}
.gallery button:first-child,
.gallery button:last-child { grid-column: span 6; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 18px 14px;
  text-align: left;
  font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: .95rem; letter-spacing: .04em;
  color: var(--text);
  background: linear-gradient(to top, rgba(15, 11, 21, .85), transparent);
}
.gallery button:focus-visible { outline-offset: 4px; }

@media (max-width: 640px) {
  .gallery button, .gallery button:first-child { grid-column: span 6; }
}

/* Lightbox */
.lightbox {
  padding: 0; border: 0; background: transparent;
  max-width: min(96vw, 1800px); max-height: 92vh;
}
.lightbox::backdrop { background: rgba(8, 5, 12, .92); }
.lightbox img { max-height: 86vh; width: auto; border-radius: 8px; }
.lightbox p { margin: 10px 0 0; color: var(--muted); text-align: center; }
.lightbox-close {
  position: fixed; top: 16px; right: 16px;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Blender vs final slider ---------- */

.compare {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.compare img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(217, 174, 82, .6);
  pointer-events: none;
}
.compare-knob {
  position: absolute; top: 50%; left: 50%;
  width: 48px; height: 48px; margin: -24px 0 0 -24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold); color: #1b1206;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .5), 0 0 0 4px rgba(124, 77, 219, .45);
}
.compare-knob svg { width: 24px; height: 24px; }

.compare-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%; margin: 0;
  opacity: 0;
  pointer-events: none; /* mouse/touch handled in main.js; this input is for keyboard */
  -webkit-appearance: none; appearance: none;
}
.compare { cursor: ew-resize; }
.compare:has(.compare-range:focus-visible) .compare-knob {
  outline: 3px solid var(--text); outline-offset: 3px;
}

.compare-label {
  position: absolute; top: 14px;
  padding: 6px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; font-style: italic; letter-spacing: .06em;
  background: rgba(15, 11, 21, .72); color: var(--text);
  border: 1px solid rgba(238, 232, 244, .18);
  pointer-events: none;
}
.compare-label-left { left: 14px; }
.compare-label-right { right: 14px; color: var(--gold-bright); }

@media (max-width: 480px) {
  .compare { aspect-ratio: 4 / 3; }
  .compare-knob { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .compare-label { top: 10px; font-size: .68rem; padding: 5px 10px; }
  .compare-label-left { left: 10px; }
  .compare-label-right { right: 10px; }
}

/* ---------- Spiral of thumbnails (home page) ---------- */

.spiral-section { position: relative; }           /* height set by spiral.js */
.spiral-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  /* Soft top/bottom edges; spiral.js grows them while the spiral comes in
     under the front page and while it leaves into the next section */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-top, 6vh), #000 calc(100% - var(--fade-bottom, 6vh)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-top, 6vh), #000 calc(100% - var(--fade-bottom, 6vh)), transparent 100%);
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(124, 77, 219, .18), transparent 70%),
    var(--night);
}
/* Blend into the hero above and the section below: the spiral rises out of the dark */
.spiral-sticky::before,
.spiral-sticky::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none;
}
.spiral-sticky::before {
  top: 0; height: 12%;
  background: linear-gradient(to bottom, var(--night) 0%, rgba(15, 11, 21, .6) 40%, transparent 100%);
}
.spiral-sticky::after {
  bottom: 0; height: 10%;
  background: linear-gradient(to top, var(--night), transparent);
}

/* Particle canvases (atmosphere.js) */
.atmo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.spiral-head {
  position: absolute; left: 0; right: 0; top: clamp(28px, 6vh, 64px);
  z-index: 2; pointer-events: none;
}
.spiral-head h2 {
  margin: 0 0 .4rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.7rem); line-height: 1.15;
}
.spiral-head p { margin: 0; max-width: 46ch; color: var(--muted); font-size: .85rem; }

/* Spiral centre = screen centre, so the front card sits dead in the middle */
.spiral-stage { position: absolute; inset: 0; perspective: 1400px; perspective-origin: 50% 50%; }
.spiral {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
}
/* The energy beam: a canvas at the spiral's centre (size set by atmosphere.js).
   It lives in the 3D space, so cards in front pass over it and cards behind pass behind it. */
.beam { position: absolute; pointer-events: none; }

/* Each card is a thick 3D slab (built in spiral.js): front face, back face
   and four holographic edges. spiral.js sets per card:
   --o (fade), --h (holographic colour shift, follows the card's angle),
   --lit-l / --lit-r (how strongly the beam lights each side). */
.spiral-card {
  --holo: linear-gradient(90deg, #b89cff, #7fe0ff, #f6d38a, #ff9bd6, #b89cff, #7fe0ff, #f6d38a);
  position: absolute; left: 0; top: 0;
  width: var(--card-w); height: var(--card-h);
  padding: 0; margin: 0; border: 0;
  background: none;
  cursor: pointer;
  transform-style: preserve-3d;
  /* No will-change here on purpose: it makes the browser draw the card once at a
     small size and stretch it as it comes forward, which blurs the image. */
}
.card-front img { image-rendering: auto; }
.card-face {
  position: absolute; inset: 0;
  border-radius: var(--card-r, 10px);   /* matches the curved corner strips built in spiral.js */
  overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  opacity: var(--o, 1);
}
.card-front {
  transform: translateZ(calc(var(--card-t) / 2));
  /* No shadow or dark backing: in 3D they peeked out round the rounded corners as a dark sliver */
  background: transparent;
}
.card-front img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
.card-back {
  transform: rotateY(180deg) translateZ(calc(var(--card-t) / 2));
  background: #150f1c;
  box-shadow: inset 0 0 0 1.5px rgba(184, 156, 255, .55);
}
.card-back img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Depth: cards further back are blurred, dimmed and desaturated into the haze.
   spiral.js sets --blur / --dim / --sat on each card in small steps. */
.card-face {
  filter: blur(var(--blur, 0px)) brightness(var(--dim, 1)) saturate(var(--sat, 1));
}

/* Holographic foil sheen that slides across as the card turns */
.card-sheen {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 34%,
    rgba(184, 156, 255, .18) 43%, rgba(127, 224, 255, .15) 50%, rgba(246, 211, 138, .18) 57%, transparent 66%);
  background-size: 300% 100%;
  background-position: calc(var(--h, 0) * 300%) 0;
  mix-blend-mode: screen;
}
/* Beam light catching the side of the face nearest the beam */
.card-front::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 226, 170, calc(var(--lit-l, 0) * .5)) 0%, transparent 16%,
    transparent 84%, rgba(255, 226, 170, calc(var(--lit-r, 0) * .5)) 100%);
  mix-blend-mode: screen;
}
/* Holographic rim around the face */
.card-front::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--holo);
  background-size: 400% 100%;
  background-position: calc(var(--h, 0) * 100%) 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .9;
}

/* The slab's sides: stacked copies of the card's rounded outline (spiral.js
   spreads them through the thickness). The conic gradient runs the holographic
   colours continuously round the whole outline, corners included. */
.spiral-card {
  --side-conic: conic-gradient(from 210deg at 50% 50%,
    #b89cff, #7fe0ff, #f6d38a, #ff9bd6, #b89cff, #7fe0ff, #f6d38a, #ff9bd6, #b89cff);
}
.card-layer {
  position: absolute; inset: 0;
  border-radius: var(--card-r, 10px);
  background: var(--side-conic);
  opacity: var(--oe, 1);
  pointer-events: none;
}

/* Solid side panels on the straight edges. Each one paints the same card-sized
   holographic pattern, shifted so it shows exactly the colours of the part of
   the outline it covers, so the panels match the layers in the corners. */
.card-side {
  position: absolute;
  background-image: var(--side-conic);
  background-size: var(--card-w) var(--card-h);
  background-repeat: no-repeat;
  opacity: var(--oe, 1);
  filter: brightness(.95);
  pointer-events: none;
}
/* Solid strips round the rounded corners (positioned and coloured by spiral.js) */
.card-corner {
  position: absolute; left: 0; top: 0;
  opacity: var(--oe, 1);
  filter: brightness(.95);
  pointer-events: none;
}
.side-t, .side-b { left: var(--card-r); right: var(--card-r); height: var(--card-t); }
.side-l, .side-r { top: var(--card-r); bottom: var(--card-r); width: var(--card-t); }
.side-t {
  top: calc(var(--card-t) / -2); transform: rotateX(90deg);
  background-position: calc(-1 * var(--card-r)) 0;
}
.side-b {
  top: calc(100% - var(--card-t) / 2); transform: rotateX(-90deg);
  background-position: calc(-1 * var(--card-r)) calc(var(--card-t) - var(--card-h));
}
.side-l {
  left: calc(var(--card-t) / -2); transform: rotateY(-90deg);
  background-position: 0 calc(-1 * var(--card-r));
}
.side-r {
  left: calc(100% - var(--card-t) / 2); transform: rotateY(90deg);
  background-position: calc(var(--card-t) - var(--card-w)) calc(-1 * var(--card-r));
}

.spiral-card-title {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 26px 16px 12px;
  text-align: left;
  font-size: .78rem; font-weight: 600; font-style: italic; letter-spacing: .04em;
  color: var(--text);
  background: linear-gradient(to top, rgba(15, 11, 21, .88), transparent);
}
.spiral-card:focus-visible { outline: none; }
.spiral-card:focus-visible .card-front { outline: 2px solid var(--text); outline-offset: 4px; }

.spiral-count {
  position: absolute; right: var(--gutter); bottom: clamp(20px, 4vh, 40px); margin: 0;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .1em;
  color: var(--muted);
}
.spiral-count span:first-child { color: var(--gold-bright); font-size: 1.3rem; }

/* Detail view: the chosen thumbnail in the middle of the screen */
.spiral-detail {
  --dw: min(70vw, 960px, calc((100vh - 300px) * 16 / 9));
  --dtop: max(24px, calc((100vh - var(--dw) * .5625 - 230px) / 2));
  position: fixed; inset: 0; z-index: 80;
}
.detail-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 5, 12, .88);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .45s ease;
}
.detail-img {
  position: fixed;
  left: calc(50% - var(--dw) / 2); top: var(--dtop);
  width: var(--dw); aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 60px rgba(217, 174, 82, .25), 0 30px 80px rgba(0, 0, 0, .6);
  transition: transform .52s cubic-bezier(.2, .8, .2, 1);
}
.detail-info {
  position: fixed;
  left: calc(50% - var(--dw) / 2); width: var(--dw);
  top: calc(var(--dtop) + var(--dw) * .5625 + 24px);
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s ease .18s, transform .35s ease .18s;
}
.spiral-detail.is-open .detail-backdrop,
.spiral-detail.is-open .detail-info { opacity: 1; transform: none; }
.detail-for { margin: 0; font-size: .78rem; font-style: italic; color: var(--muted); }
.detail-for strong { color: var(--gold-bright); font-style: normal; }
.detail-info h3 {
  margin: .3rem 0 .5rem;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 3vw, 2.1rem); line-height: 1.15;
}
.detail-info p#detail-desc { margin: 0 0 18px; max-width: 70ch; color: #d6cde2; font-size: .86rem; }
.spiral-detail .lightbox-close { z-index: 2; }

@media (max-width: 700px) {
  .spiral-detail { --dw: 92vw; --dtop: max(70px, calc((100vh - var(--dw) * .5625 - 260px) / 2)); }
  .spiral { top: 54%; }
  .spiral-stage { perspective-origin: 50% 54%; }
}

/* ---------- Commission ---------- */

.commission {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  /* Background logo (kred4NEWbg) sits faintly under the glows */
  background:
    radial-gradient(ellipse at 100% 0%, rgba(124, 77, 219, .28), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(217, 174, 82, .12), transparent 50%),
    linear-gradient(rgba(25, 18, 31, .05), rgba(25, 18, 31, .5)),
    url("../img/kred4-bg-1600.jpg") center / cover no-repeat,
    var(--panel);
}
.commission .section-head { margin-bottom: 32px; }

.offers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 40px; margin-bottom: 40px;
}
.offers h3 {
  margin: 0 0 .3rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.3;
  color: var(--gold);
}
.offers p { margin: 0; color: var(--muted); }

.steps {
  list-style: none; padding: 0; margin: 0 0 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 16px;
  border-top: 2px solid var(--line);
  color: var(--muted);
}
.steps li::before {
  content: "Step " counter(step);
  display: block; margin-bottom: 4px;
  font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: .9rem; letter-spacing: .06em;
  color: var(--purple-soft);
}
.steps strong { color: var(--text); font-weight: 700; }

/* ---------- Channel cards (home) ---------- */

.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.channel-card {
  position: relative; display: block; overflow: hidden;
  border-radius: 16px; min-height: 340px;
  text-decoration: none; color: var(--text);
  isolation: isolate;
  border: 1px solid var(--line);
}
.channel-card > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.channel-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(15, 11, 21, .95) 15%, rgba(15, 11, 21, .2) 75%);
}
.channel-card:hover > img { transform: scale(1.04); }
.card-avatar {
  display: block;
  width: 72px; height: 72px; margin-bottom: 14px;
  border-radius: 50%;
  border: 3px solid var(--night);
  box-shadow: 0 0 0 2px var(--gold), 0 6px 20px rgba(0, 0, 0, .5);
}
.channel-card:hover { color: var(--text); border-color: var(--gold); }
.channel-card .inner { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.channel-card h3 {
  margin: 0;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1; letter-spacing: .02em;
}
.channel-card p { margin: .5rem 0 0; color: var(--muted); font-style: italic; }
.channel-card .go { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .85rem; letter-spacing: .05em; color: var(--gold); }
/* Cards hold their own buttons now, so the hover lift comes from inside */
.channel-card:has(a:hover) { border-color: var(--gold); }
.channel-card:has(a:hover) > img { transform: scale(1.04); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 18px; }
.card-actions .go { margin-top: 0; text-decoration: none; }
.card-actions .go:hover { color: var(--gold-bright); text-decoration: underline; }

/* Custom base price list above the designer cards */
.base-prices {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px;
}
@media (max-width: 480px) {
  .base-prices li { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; }
}
.base-prices li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(25, 18, 31, .7);
  font-size: .85rem; font-weight: 700;
}
.base-prices em { display: block; font-style: italic; font-weight: 400; font-size: .72rem; color: var(--muted); }
.base-prices strong { color: var(--gold-bright); font-size: 1.15rem; white-space: nowrap; }
#channels, #process { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ---------- Creator pages: channel header ---------- */

.channel { padding-top: var(--nav-h); }

.channel-banner {
  position: relative;
  /* YouTube banner shape (2560×423), but never shorter than 150px on phones.
     Height-only so it can't push the page wider than the screen. */
  width: 100%;
  height: clamp(150px, calc(100vw * 423 / 2560), 440px);
  overflow: hidden;
  background: var(--panel);
}
.channel-banner img { width: 100%; height: 100%; object-fit: cover; }
.channel-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(15, 11, 21, .65));
  pointer-events: none;
}

.channel-info {
  display: flex; align-items: flex-end; gap: clamp(18px, 3vw, 32px);
  position: relative;
}
.channel-avatar {
  flex: none;
  width: 160px; height: 160px;
  margin-top: -64px;
  border-radius: 50%;
  border: 5px solid var(--night);
  box-shadow: 0 0 0 2px var(--gold), 0 10px 30px rgba(0, 0, 0, .5), 0 0 40px rgba(124, 77, 219, .35);
  position: relative; z-index: 1;
  background: var(--panel);
}
.channel-text { padding-top: 22px; min-width: 0; }
.channel .page-title {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  text-shadow: none;
}
.channel .creator-intro { margin: .7rem 0 1.4rem; }

@media (max-width: 700px) {
  .channel-info { flex-direction: column; align-items: flex-start; gap: 0; }
  .channel-avatar { width: 112px; height: 112px; margin-top: -56px; border-width: 4px; }
  .channel-text { padding-top: 14px; }
}

/* ---------- Creator pages: Patreon private bases ---------- */

.patreon {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 18px;
  border: 1px solid rgba(217, 174, 82, .4);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(217, 174, 82, .14), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(124, 77, 219, .3), transparent 60%),
    var(--panel);
}
.patreon h2 {
  margin: 0 0 .8rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.15;
}
.patreon p { margin: 0 0 1rem; color: var(--muted); max-width: 52ch; }
.patreon .actions { margin-top: 1.6rem; }

.patreon-locked {
  position: relative; aspect-ratio: 16 / 10;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.patreon-locked img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(9px) brightness(.55) saturate(1.2);
  transform: scale(1.12);
}
.lock {
  position: relative;
  display: grid; justify-items: center; gap: 10px;
  font-weight: 700; font-style: italic; letter-spacing: .08em; font-size: .85rem;
  color: var(--gold-bright);
}
.lock svg {
  width: 64px; height: 64px; padding: 14px;
  border-radius: 50%;
  background: rgba(15, 11, 21, .7);
  box-shadow: 0 0 0 2px var(--gold), 0 0 30px rgba(217, 174, 82, .35);
  color: var(--gold);
}

@media (max-width: 860px) {
  .patreon { grid-template-columns: 1fr; }
}

/* ---------- Creator pages ---------- */

.creator-intro { max-width: 44ch; margin: 1.2rem 0 2rem; font-style: italic; font-size: clamp(.95rem, 1.5vw, 1.15rem); }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.video {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty {
  position: absolute; inset: 0; isolation: isolate;
  display: grid; place-content: center; gap: 14px; text-align: center; padding: 24px;
  color: var(--text);
}
.video-empty::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(15, 11, 21, .72);
}
.video-poster {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.video-empty p { margin: 0; }

/* A real video thumbnail: show it clearly, button pinned to the bottom */
.video-thumb { place-content: end start; padding: 0 0 18px 18px; }
.video-thumb::before { background: linear-gradient(to top, rgba(15, 11, 21, .75), transparent 45%); }
.video-empty .btn { justify-self: center; }

.socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.socials a {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel);
  color: var(--text); text-decoration: none; font-weight: 600;
  transition: border-color .2s, background-color .2s;
}
.socials a:hover { border-color: var(--purple); background: var(--panel-2); color: var(--text); }
.socials a.is-pending:hover { border-color: var(--line); background: var(--panel); }
.socials svg { width: 22px; height: 22px; flex: none; color: var(--gold); }
.socials .handle { margin-left: auto; color: var(--muted); font-weight: 400; font-style: italic; font-size: .8rem; }

/* Emails: selectable text (one click selects the whole address) + Copy button */
.email-text {
  user-select: all; -webkit-user-select: all;
  cursor: text;
  color: var(--text);
  overflow-wrap: anywhere;
}
.copy-btn {
  flex: none;
  padding: 5px 12px;
  font: inherit; font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  color: var(--gold-bright);
  background: rgba(217, 174, 82, .1);
  border: 1px solid rgba(217, 174, 82, .45);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.copy-btn:hover { background: rgba(217, 174, 82, .22); border-color: var(--gold); }
.copy-btn.is-copied { color: #1b1206; background: var(--gold); border-color: var(--gold); }

.social-static {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel);
  color: var(--text); font-weight: 600;
}
.social-static svg { width: 22px; height: 22px; flex: none; color: var(--gold); }
.social-static .email-text { margin-left: auto; font-weight: 500; font-size: .8rem; color: var(--muted); min-width: 0; }
.email-row { grid-column: span 2; }
@media (max-width: 700px) { .email-row { grid-column: auto; } }
@media (max-width: 480px) {
  /* Address gets its own line under "Email", Copy stays top-right */
  .email-row .social-static { flex-wrap: wrap; row-gap: 6px; }
  .email-row .copy-btn { margin-left: auto; }
  .email-row .email-text { order: 3; flex-basis: 100%; margin-left: 36px; font-size: .78rem; overflow-wrap: normal; }
}

.email-copy { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }

.price-tag { color: var(--gold-bright); white-space: nowrap; }

/* ---------- Video editing ---------- */
.edit-shot {
  margin: 0 auto;
  max-width: 960px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #1e1e1e;
}
.edit-shot img { display: block; width: 100%; height: auto; }
.edit-contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 16px;
  margin: 24px auto 0;
  text-align: center;
}
.edit-contact p { margin: 0; color: var(--text); }
.edit-contact .email-text { color: var(--gold-bright); font-weight: 700; text-decoration: none; }
.edit-contact .email-text:hover { text-decoration: underline; }
.legal-contacts .email-text { color: var(--gold-bright); font-weight: 600; }

.socials-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.socials-grid .handle { white-space: nowrap; }

.buy-note {
  margin: 18px 0 0;
  font-size: .78rem; font-style: italic; color: var(--muted);
  max-width: 60ch;
}
.buy-note a { color: var(--purple-soft); }

.socials-title, .side-title {
  margin: 0 0 16px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.2;
}

/* ---------- Order page ---------- */

.order { padding: calc(var(--nav-h) + clamp(36px, 6vw, 72px)) 0 clamp(64px, 10vw, 112px); }
.order .page-title { font-size: clamp(2rem, 6vw, 3.4rem); text-shadow: none; }
.order-intro { max-width: 60ch; margin: .8rem 0 2.4rem; color: var(--muted); font-style: italic; }

.order-grid {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: clamp(24px, 4vw, 48px); align-items: start;
}
.order-grid[hidden] { display: none; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }

.field { margin: 0 0 30px; padding: 0; border: 0; min-width: 0; }
.field legend, .field > label:not(.choice), .field-pair label {
  display: block; margin: 0 0 12px; padding: 0;
  font-weight: 700; font-size: .95rem; color: var(--text);
}
.optional {
  margin-left: 8px; font-weight: 400; font-style: italic; font-size: .75rem; color: var(--muted);
}
.hint { margin: 8px 0 0; font-size: .75rem; font-style: italic; color: var(--muted); }

.field input[type="text"], .field input[type="email"], .field input[type="password"], .field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit; font-size: .88rem; letter-spacing: .02em;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #6f6380; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--purple-soft);
  box-shadow: 0 0 0 3px rgba(124, 77, 219, .3);
}
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field-pair .hint { grid-column: 1 / -1; margin-top: -4px; }
@media (max-width: 560px) { .field-pair { grid-template-columns: 1fr; } }

/* Selectable cards (radio / checkbox) */
.choice-row { display: grid; gap: 12px; }
.choice-row-2 { grid-template-columns: repeat(2, 1fr); }
.choice-row-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .choice-row-3 { grid-template-columns: 1fr; } }

.choice {
  position: relative;
  display: grid; gap: 4px; align-content: start;
  padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice:hover { border-color: rgba(184, 156, 255, .55); }
.choice input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.choice:has(input:checked) {
  border-color: var(--gold);
  background: linear-gradient(rgba(217, 174, 82, .1), rgba(217, 174, 82, .04)), var(--panel);
  box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(217, 174, 82, .15);
}
.choice:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
.choice-title { font-weight: 700; font-size: .92rem; color: var(--text); }
.choice-sub { font-size: .75rem; font-style: italic; color: var(--muted); }
.choice-price {
  margin-top: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--gold);
}
.choice-wide { grid-template-columns: 1fr auto; column-gap: 20px; }
.choice-wide .choice-title, .choice-wide .choice-sub { grid-column: 1; }
.choice-wide .choice-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; }
.choice-wide:has(input:checked)::after {
  content: "Added"; position: absolute; top: 10px; right: 14px;
  font-size: .65rem; font-weight: 700; letter-spacing: .08em; color: var(--gold-bright);
}

.creator-choice { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
.creator-choice img { grid-row: 1; width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 2px var(--line); }
.creator-choice:has(input:checked) img { box-shadow: 0 0 0 2px var(--gold); }
.creator-choice .choice-title { font-size: 1.05rem; }

.checks { display: grid; gap: 14px; }
.check {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  font-size: .8rem; line-height: 1.6; color: #d6cde2; cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }

/* Summary */
.order-summary {
  position: sticky; top: 24px;
  padding: 24px;
  border: 1px solid rgba(217, 174, 82, .4); border-radius: 18px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(124, 77, 219, .28), transparent 60%),
    var(--panel);
}
.order-summary h2 {
  margin: 0 0 16px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
}
.summary-lines { margin: 0; display: grid; gap: 10px; }
.summary-lines div { display: flex; justify-content: space-between; gap: 16px; font-size: .8rem; }
.summary-lines dt { color: var(--muted); }
.summary-lines dd { margin: 0; text-align: right; color: var(--text); }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 18px 0 20px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.summary-total span { font-weight: 700; }
.summary-total strong {
  font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; color: var(--gold-bright);
}
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.summary-note { margin: 14px 0 0; font-size: .72rem; font-style: italic; color: var(--muted); line-height: 1.6; }
.form-error {
  margin: 0 0 14px; padding: 10px 14px;
  border-radius: 10px; border: 1px solid rgba(255, 120, 120, .5);
  background: rgba(255, 90, 90, .1); color: #ffc2c2; font-size: .78rem;
}

/* Done */
.order-done {
  max-width: 720px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid rgba(217, 174, 82, .45); border-radius: 18px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(217, 174, 82, .14), transparent 55%),
    var(--panel);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.order-done:focus { outline: none; }
.order-done h2 {
  margin: 0 0 12px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--gold-bright);
}
.order-done p { color: #d6cde2; max-width: 60ch; }
.done-ref strong { color: var(--text); letter-spacing: .06em; }
.order-done .actions { margin: 24px 0 8px; }

/* ---------- Thumbnail wall (home page) ---------- */

.wall-section { overflow: hidden; }
.wall-stage {
  position: relative;
  perspective: 1500px;
  padding: 30px 0 20px;
  margin-bottom: -30px;
  /* Fade out at all four edges so the wall seems to stretch on */
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent),
    linear-gradient(transparent, #000 12%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent),
    linear-gradient(transparent, #000 12%, #000 86%, transparent);
  mask-composite: intersect;
}
/* A tilted plane, like a wall of screens running off into the distance */
.wall-plane {
  display: grid; gap: 16px;
  transform: rotateX(14deg) rotateZ(-4deg) scale(1.12);
  transform-origin: 50% 50%;
}
.wall-row { overflow: visible; }
.wall-track {
  display: flex; width: max-content;
  animation: conveyor var(--dur, 60s) linear infinite;
}
.wall-row.is-reverse .wall-track { animation-direction: reverse; }
.wall-row:hover .wall-track,
.wall-row:has(:focus-visible) .wall-track { animation-play-state: paused; }
.wall-set { display: flex; gap: 16px; padding-right: 16px; }

.wall-thumb {
  flex: none;
  width: clamp(220px, 23vw, 330px); aspect-ratio: 16 / 9;
  padding: 0; margin: 0;
  border: 1px solid rgba(184, 156, 255, .25);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .35s;
}
.wall-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wall-thumb:hover, .wall-thumb:focus-visible {
  transform: translateY(-6px) scale(1.07);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 20px 44px rgba(0, 0, 0, .6), 0 0 34px rgba(217, 174, 82, .25);
  position: relative; z-index: 2;
  outline: none;
}

/* Full-size viewer */
.wall-viewer {
  padding: 0; border: 0; background: transparent;
  max-width: min(94vw, 1600px); max-height: 94vh;
  overflow: visible;
}
.wall-viewer::backdrop { background: rgba(8, 5, 12, .92); backdrop-filter: blur(6px); }
.wall-viewer img {
  display: block;
  max-width: min(94vw, 1600px); max-height: calc(94vh - 70px); width: auto; height: auto;
  border-radius: 12px;
  border: 1px solid rgba(217, 174, 82, .5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.wall-viewer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 14px;
}
.wall-viewer-bar p { margin: 0; text-align: center; font-size: .82rem; color: var(--muted); }
.wall-viewer-name { color: var(--text); font-weight: 700; margin-right: 10px; }
.wall-viewer-count { font-style: italic; }
.wall-nav {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-size: 1.2rem; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.wall-nav:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 700px) {
  .wall-plane { transform: rotateX(10deg) rotateZ(-3deg) scale(1.08); gap: 12px; }
  .wall-set { gap: 12px; padding-right: 12px; }
  .wall-thumb { width: 58vw; }
}
@media (prefers-reduced-motion: reduce) {
  .wall-row { overflow-x: auto; }
  .wall-track { animation: none; }
  .wall-set[aria-hidden="true"] { display: none; }
}

/* ---------- Client reviews conveyor (home page) ---------- */

.reviews-rows {
  display: grid; gap: 18px;
  /* Cards fade in and out at the left and right edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.reviews-row { overflow: hidden; }
.reviews-track {
  display: flex; width: max-content;
  animation: conveyor var(--dur, 60s) linear infinite;
}
.reviews-row.is-reverse .reviews-track { animation-direction: reverse; }
/* Pause a row while it's being read */
.reviews-row:hover .reviews-track,
.reviews-row:focus-within .reviews-track { animation-play-state: paused; }
.reviews-set { display: flex; gap: 18px; padding-right: 18px; }
@keyframes conveyor { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Every card is the same height (so both rows match); reviews.js widens each
   card until its review fits, so longer reviews make wider cards */
.reviews-rows { --review-h: 132px; }
.review {
  flex: none;
  height: var(--review-h);
  margin: 0;
  padding: 18px 22px;
  display: flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(124, 77, 219, .16), transparent 60%),
    var(--panel);
}
.review blockquote {
  margin: 0; width: 100%;
  max-height: 100%; overflow: hidden;
  font-size: .78rem; line-height: 1.7; color: #ddd4e8;
}
.review.is-tall { height: auto; min-height: var(--review-h); }
.review.is-tall blockquote { max-height: none; }
.q-mark {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.25em; line-height: 0; color: var(--gold);
  margin: 0 .12em;
}
@media (max-width: 700px) {
  .reviews-rows { --review-h: 150px; }
  .review blockquote { font-size: .7rem; line-height: 1.65; }
}

/* Reduced motion: no conveyor, rows scroll sideways instead (copies hidden) */
@media (prefers-reduced-motion: reduce) {
  .reviews-row { overflow-x: auto; padding-bottom: 6px; }
  .reviews-track { animation: none; }
  .reviews-set[aria-hidden="true"] { display: none; }
}

/* ---------- Bullseye Building (home page) ---------- */

/* The Bullseye logo is the panel's background, darkened into the site's
   dark tones, with the text over the left side */
.bullseye {
  --bull-red: #ff2a2a;
  position: relative;
  min-height: clamp(320px, 34vw, 420px);
  display: flex; align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 18px;
  border: 1px solid rgba(255, 42, 42, .3);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(19, 13, 25, .96) 0%, rgba(19, 13, 25, .86) 42%, rgba(19, 13, 25, .62) 75%, rgba(19, 13, 25, .7) 100%),
    url("../img/bullseye-800.jpg") right -6% center / auto 135% no-repeat,
    #0b0709;
}
.bullseye::after {
  /* Soft red glow over the logo, picking up its colours */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 40% 65% at 82% 50%, rgba(255, 42, 42, .1), rgba(255, 42, 42, .03) 55%, transparent 75%);
  mix-blend-mode: screen;
  animation: bull-pulse 5.5s ease-in-out infinite;
}
/* A slow, gentle breathing pulse on the glow */
@keyframes bull-pulse {
  0%, 100% { opacity: .45; transform: scale(.97); }
  50% { opacity: 1; transform: scale(1.03); }
}
.bullseye-text { position: relative; z-index: 1; }
.bullseye-text h2 {
  margin: 0 0 .6rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.15;
}
.bullseye-text p { margin: 0 0 1rem; color: var(--muted); max-width: 56ch; }
.bullseye-text .bullseye-lede { color: var(--text); font-size: 1.02rem; font-weight: 600; }
.bullseye-text .actions { margin-top: 1.6rem; }
/* Discord's brand blue */
.btn-bullseye { background: #5865f2; color: #fff; }
.btn-bullseye:hover { background: #4752c4; color: #fff; }
.btn-bullseye svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  /* On phones the logo sits behind the text, more darkened so it stays readable */
  .bullseye {
    background:
      linear-gradient(rgba(19, 13, 25, .84), rgba(19, 13, 25, .9)),
      url("../img/bullseye-800.jpg") center / cover no-repeat,
      #0b0709;
  }
  .bullseye::after { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255, 42, 42, .08), transparent 75%); }
}

/* ---------- Legal pages (Terms, Privacy) ---------- */

.legal { padding: calc(var(--nav-h) + clamp(40px, 7vw, 80px)) 0 clamp(64px, 10vw, 112px); }
.legal-body { max-width: 820px; }
.legal .page-title { font-size: clamp(2rem, 6vw, 3.4rem); text-shadow: none; }
.legal-date { margin: .8rem 0 2.2rem; color: var(--muted); font-style: italic; font-size: .82rem; }
.legal h2 {
  margin: 2.6rem 0 .8rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; line-height: 1.4; letter-spacing: .02em;
  color: var(--gold);
}
.legal p, .legal li { color: #d6cde2; font-size: .88rem; max-width: 72ch; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: .6rem; }
.legal strong { color: var(--text); }
.legal-contacts a { color: var(--gold-bright); font-weight: 600; }
.legal h2[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

.legal-summary {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(217, 174, 82, .4);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(124, 77, 219, .25), transparent 60%),
    var(--panel);
}
.legal-summary h2 { margin-top: 0; }
.legal-summary p { margin: 0; font-style: italic; color: var(--muted); }

.footer nav a[aria-current="page"] { color: var(--gold); }

/* ---------- Profile button (added by auth.js, before the cart) ---------- */
/* ".tabs .profile-btn" so the bar's general link styles (padding, underline) don't apply */
.tabs .profile-btn {
  position: relative;
  display: grid; place-items: center;
  width: 40px; height: 36px; padding: 0;
  font-size: 0; line-height: 0; letter-spacing: 0;
  color: var(--text); text-decoration: none;
  background: rgba(124, 77, 219, .18);
  border: 1px solid rgba(184, 156, 255, .45);
  border-radius: 10px;
  transition: background-color .2s, border-color .2s;
}
.tabs .profile-btn:hover { background: rgba(124, 77, 219, .4); border-color: var(--purple-soft); color: var(--text); }
.tabs .profile-btn svg { display: block; width: 21px; height: 21px; }
.tabs .profile-btn .cart-badge { font-size: .62rem; line-height: 1; }
.tabs .profile-btn::after { display: none; }
.tabs .profile-btn.is-signed-in { border-color: var(--gold); color: var(--gold-bright); }
/* On the account / sign-in page: gold, like the S4 and Kredbic tabs on their pages */
.tabs .profile-btn[aria-current="page"] {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(217, 174, 82, .12);
  box-shadow: 0 0 18px rgba(217, 174, 82, .18);
}
@media (max-width: 640px) {
  .tabs .profile-btn { width: 36px; height: 34px; }
  .bar-tools { gap: 6px; }
}
/* Very small phones (e.g. 320px wide): squeeze the bar a little more */
@media (max-width: 359px) {
  .tabs li:first-child a,
  .tabs li:last-child a { width: 3.6rem !important; font-size: .56rem !important; }
  .tab-logo { width: 40px !important; height: 40px !important; }
  .bar-tools { gap: 4px; }
  .tabs .profile-btn, .cart-btn { width: 32px !important; height: 32px !important; }
  .menu-btn { width: 34px !important; }
}

/* ---------- Account + admin pages ---------- */
.account .page-title { margin-bottom: .3rem; }
.acct-loading { color: var(--muted); font-style: italic; }
.acct-sub { margin: 0 0 1rem; color: var(--muted); font-size: .86rem; }
.acct-card {
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel);
}
.acct-card .page-title { font-size: clamp(1.8rem, 5vw, 2.4rem); }
/* The sign-in / create-account card sits in the middle of the screen */
.account:has(#acct-auth:not([hidden])),
.account:has(#acct-reset:not([hidden])) {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  box-sizing: border-box;
  /* Even space above (below the bar) and below, so it sits in the true middle */
  padding: calc(var(--nav-h) + 24px) 0 calc(var(--nav-h) + 24px);
}
.account:has(#acct-auth:not([hidden])) > .wrap,
.account:has(#acct-reset:not([hidden])) > .wrap { width: 100%; }
.acct-card .acct-tabs { margin-left: auto; margin-right: auto; }
.acct-card > .page-title, .acct-card > .acct-sub { text-align: center; }
.acct-tabs { display: flex; gap: 6px; margin: 0 0 18px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(15, 11, 21, .5); width: fit-content; max-width: 100%; }
.acct-tab {
  position: relative;
  padding: 9px 16px;
  font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  color: var(--muted); background: none; border: 0; border-radius: 9px; cursor: pointer;
}
.acct-tab:hover { color: var(--text); }
.acct-tab[aria-selected="true"] { color: #1b1206; background: var(--gold); }
.tab-dot {
  display: inline-block; width: 8px; height: 8px; margin-left: 8px; vertical-align: middle;
  border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 2px var(--panel);
}
.acct-tab[aria-selected="true"] .tab-dot { background: #1b1206; }
.acct-form .field { margin-bottom: 16px; }
.acct-form .btn-block { margin-top: 6px; }
.acct-note {
  margin: 0 0 14px; padding: 12px 14px;
  border: 1px solid rgba(217, 174, 82, .45); border-radius: 10px;
  background: rgba(217, 174, 82, .08); color: var(--text); font-size: .84rem;
}
.link-btn {
  display: block; margin: 14px auto 0; padding: 4px;
  font: inherit; font-size: .78rem; color: var(--purple-soft);
  background: none; border: 0; cursor: pointer; text-decoration: underline;
}
.link-btn:hover { color: var(--gold-bright); }
.acct-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.acct-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .acct-grid { grid-template-columns: 1fr; } }
.acct-panel {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel);
  min-width: 0;
}
.acct-panel h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.legal .acct-panel h2 { margin-top: 0; }

/* Orders */
.order-row { padding: 14px 0; border-top: 1px solid var(--line); }
.order-row:first-of-type { border-top: 0; padding-top: 4px; }
.order-row-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.order-row-top strong { font-size: .88rem; overflow-wrap: anywhere; }
.order-price { color: var(--gold-bright); font-weight: 700; white-space: nowrap; }
.order-meta { margin: 4px 0 8px !important; font-size: .74rem !important; color: var(--muted) !important; }
.order-status {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  color: var(--text); background: rgba(124, 77, 219, .25); border: 1px solid rgba(184, 156, 255, .4);
}
.order-status.status-paid, .order-status.status-delivered { background: rgba(80, 180, 120, .18); border-color: rgba(110, 210, 150, .5); }
.order-status.status-cancelled { background: rgba(200, 80, 80, .15); border-color: rgba(230, 110, 110, .45); }
.order-status-edit { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); }
.order-status-edit select {
  font: inherit; font-size: .78rem; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px;
}
.order-details { margin-top: 8px; font-size: .78rem; }
.order-details summary { cursor: pointer; color: var(--purple-soft); }
.order-details pre {
  margin: 8px 0 0; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere;
  font: inherit; font-size: .76rem; color: #d6cde2;
  background: rgba(15, 11, 21, .6); border-radius: 8px;
}

/* No chat yet (no orders): the orders panel takes the full width */
.acct-grid:has(#chats-panel[hidden]) { grid-template-columns: 1fr; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat-list {
  height: min(52vh, 460px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(15, 11, 21, .55);
}
.chat-empty { margin: auto; max-width: 34ch; text-align: center; color: var(--muted); font-size: .82rem; font-style: italic; }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 85%; }
.chat-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.chat-bubble {
  padding: 10px 14px; border-radius: 14px 14px 14px 4px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-size: .84rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere;
}
.chat-msg.is-mine .chat-bubble {
  border-radius: 14px 14px 4px 14px;
  background: rgba(124, 77, 219, .32); border-color: rgba(184, 156, 255, .45);
}
.chat-meta { margin-top: 3px; font-size: .66rem; color: var(--muted); }
.chat-form { display: flex; gap: 10px; align-items: flex-end; }
.chat-input {
  flex: 1; min-width: 0; resize: vertical; min-height: 46px; max-height: 200px;
  padding: 10px 12px;
  font: inherit; font-size: .84rem; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
}
.chat-input:focus { outline: 2px solid var(--purple-soft); outline-offset: 1px; }
.chat-send { flex: none; }
.chat-error { margin: 0; color: #f0a0a0; font-size: .78rem; }

/* Admin */
.adm-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .adm-layout { grid-template-columns: 1fr; } }
.thread-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 70vh; overflow-y: auto; }
.thread-item {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; text-align: left;
  font: inherit; font-size: .78rem; color: var(--text);
  background: rgba(15, 11, 21, .5); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.thread-item:hover { border-color: rgba(184, 156, 255, .5); }
.thread-item.is-active { border-color: var(--gold); background: rgba(217, 174, 82, .1); }
.thread-item.is-unread .thread-name { font-weight: 800; color: var(--gold-bright); }
.thread-item.is-unread::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-bright); flex: none; }
.thread-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-time { margin-left: auto; color: var(--muted); font-size: .7rem; white-space: nowrap; }
.adm-sub { margin: 22px 0 6px; font-size: .95rem; color: var(--gold); }

/* ---------- Skip-the-spiral arrow (added by main.js) ---------- */
.skip-spiral {
  position: fixed; z-index: 40;
  left: clamp(14px, 2.5vw, 32px); bottom: clamp(16px, 3vh, 32px);
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px 0 18px;
  font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  color: var(--text);
  background: rgba(34, 24, 48, .85);
  border: 1px solid rgba(184, 156, 255, .5); border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility 0s .3s, background-color .2s, border-color .2s;
}
.skip-spiral.is-on {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .3s, transform .3s, visibility 0s, background-color .2s, border-color .2s;
}
.skip-spiral:hover { background: rgba(124, 77, 219, .5); border-color: var(--purple-soft); }
.skip-spiral svg { width: 18px; height: 18px; animation: skip-bob 1.8s ease-in-out infinite; }
@keyframes skip-bob { 50% { transform: translateY(3px); } }

/* ---------- FAQ ---------- */
.faq-list .faq-group { margin: 2.4rem 0 .9rem; color: var(--gold); }
.faq-list .faq-group:first-child { margin-top: 0; }
.faq {
  margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel);
}
.faq[open] { border-color: rgba(184, 156, 255, .45); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 18px;
  font-weight: 700; font-size: .9rem; line-height: 1.4;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-size: 1.3rem; line-height: 1; color: var(--purple-soft);
  transition: transform .2s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-bright); }
.faq > div { padding: 0 18px 4px; }
.faq > div p { margin: 0 0 14px; }
.faq a { color: var(--gold-bright); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
.contact-card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel);
}
.contact-card h2 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--gold); }
.contact-card p { margin: 0 0 1rem; color: var(--muted); font-size: .86rem; }
.contact-card .email-text { color: var(--gold-bright); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-card .email-text:hover { text-decoration: underline; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .86rem; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  color: var(--muted); font-size: .95rem;
}
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer-mark {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; letter-spacing: .06em; color: var(--gold);
}
.footer-logo { width: 56px; height: 56px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(217, 174, 82, .3); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.footer {
  font-size: .8rem;
  background:
    linear-gradient(var(--night), rgba(15, 11, 21, .82) 40%, rgba(15, 11, 21, .9)),
    url("../img/kred4-bg-1600.jpg") center 40% / cover no-repeat;
  padding: 56px 0 64px;
}
.lightbox p { font-style: italic; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--gold); }

/* ---------- Page-load reveal (hero only) ---------- */

/* Movement only, never opacity: if animations are paused or throttled,
   the hero text still shows. */
@keyframes rise { from { transform: translateY(22px); } to { transform: none; } }
.hero .reveal { animation: rise .9s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero .reveal:nth-child(2) { animation-delay: .12s; }
.hero .reveal:nth-child(3) { animation-delay: .24s; }

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  .tabs a { font-size: .78rem; padding: 10px 2px; letter-spacing: .04em; }
  .tabs li:first-child a,
  .tabs li:last-child a { width: 4.3rem; padding: 6px 2px; font-size: .64rem; letter-spacing: .02em; }
  .tabs ul { gap: 6px; }
  :root { --nav-h: 62px; }
  .tab-logo { width: 44px; height: 44px; border-radius: 10px; }
  .btn { width: 100%; }
  .hero { min-height: 88vh; }
  .hero-cine { min-height: 0; }
}
