/* =========================================================
   DIGITAL FURRY — futuristic glossy storefront
   ========================================================= */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --bg: #05010f;
  --pink: #ff2bd6;
  --violet: #7b2bff;
  --cyan: #00f0ff;
  --lime: #00ffa3;
  --orange: #ff7a00;
  --text: #f4f1ff;
  --muted: #a69fc7;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --holo: linear-gradient(110deg, var(--pink), var(--violet) 30%, var(--cyan) 60%, var(--lime) 80%, var(--pink));
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font: 'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
::selection { background: var(--pink); color: #fff; }
.muted { color: var(--muted); }
.tiny { font-size: 0.8rem; }
[hidden] { display: none !important; }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.blob {
  position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%;
  filter: blur(90px); opacity: 0.55; mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}
.b1 { background: radial-gradient(circle, var(--pink), transparent 65%); top: -20vmax; left: -15vmax; }
.b2 { background: radial-gradient(circle, var(--violet), transparent 65%); top: 10vmax; right: -20vmax; animation-delay: -6s; }
.b3 { background: radial-gradient(circle, var(--cyan), transparent 65%); bottom: -25vmax; left: 20vmax; opacity: 0.35; animation-delay: -12s; }
.b4 { background: radial-gradient(circle, var(--orange), transparent 65%); top: 40vmax; left: -25vmax; opacity: 0.25; animation-delay: -3s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vmax, 6vmax) scale(1.15); }
  100% { transform: translate(-6vmax, 10vmax) scale(0.95); }
}
.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10vh; height: 60vh;
  perspective: 400px; opacity: 0.45;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 43, 214, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.45) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(62deg);
  transform-origin: bottom;
  animation: gridmove 3s linear infinite;
}
@keyframes gridmove { to { background-position: 0 60px, 0 0; } }
.noise {
  position: absolute; inset: 0; opacity: 0.07; pointer-events: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.16), transparent 60%);
  transform: translate(-50%, -50%); left: -500px; top: -500px; transition: opacity .3s;
}

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.025));
  border: 1px solid var(--stroke);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 20px 60px -20px rgba(0,0,0,.6);
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 14px; z-index: 50;
  margin: 14px auto 0; width: min(1320px, calc(100% - 28px));
  display: flex; align-items: center; gap: 18px;
  padding: 12px 16px 12px 20px; border-radius: 999px;
  background: rgba(10, 4, 30, 0.55); border: 1px solid var(--stroke);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 10px 40px -10px rgba(123, 43, 255, .5);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 30px; height: 30px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: conic-gradient(from var(--angle), var(--pink), var(--cyan), var(--lime), var(--violet), var(--pink));
  animation: spin 5s linear infinite; box-shadow: 0 0 20px var(--pink);
}
@keyframes spin { to { --angle: 360deg; } }
.logo-text {
  font-family: var(--font-display); font-weight: 900; letter-spacing: .12em; font-size: 1.05rem;
  background: var(--holo); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: holoshift 6s linear infinite;
}
.logo.small .logo-mark { width: 22px; height: 22px; }
.search {
  flex: 1; max-width: 520px; margin-left: auto; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--stroke);
  color: var(--muted); transition: border-color .25s, box-shadow .25s;
}
.search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0,240,255,.12), 0 0 30px rgba(0,240,255,.25); }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); }
.search input::placeholder { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn-glossy {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; letter-spacing: .02em;
  color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, var(--pink), var(--violet) 50%, var(--cyan));
  background-size: 200% auto;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 30px -5px rgba(255, 43, 214, .7), 0 0 50px -10px rgba(0, 240, 255, .7);
  transition: transform .25s cubic-bezier(.2,.9,.3,1.4), background-position .6s, box-shadow .3s;
}
.btn-glossy::before { /* gloss highlight */
  content: ''; position: absolute; inset: 1px 1px 50% 1px; border-radius: 999px 999px 40% 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,.55), rgba(255,255,255,0)); z-index: -1; opacity: .7;
}
.btn-glossy::after { /* shine sweep */
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg);
  animation: sweep 3.5s ease-in-out infinite;
}
@keyframes sweep { 0%, 60% { left: -80%; } 100% { left: 140%; } }
.btn-glossy:hover { transform: translateY(-3px) scale(1.03); background-position: right center; box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 16px 40px -5px rgba(255, 43, 214, .9), 0 0 70px -5px rgba(0, 240, 255, .9); }
.btn-glossy:active { transform: translateY(0) scale(.98); }
.btn-glossy.wide { width: 100%; }
.btn-glossy.big { padding: 19px 28px; font-size: 1.1rem; }
.btn-glossy span { transition: transform .25s; }
.btn-glossy:hover span { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid var(--stroke); font-weight: 600; transition: all .25s;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(0,240,255,.6); box-shadow: 0 0 24px rgba(0,240,255,.3); }
.pill { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; font-size: .75rem; background: var(--holo); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  width: min(1320px, calc(100% - 40px)); margin: 0 auto; min-height: calc(100vh - 90px);
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 30px; padding: 40px 0 20px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 99px; font-size: .85rem; font-weight: 600;
  background: rgba(0, 255, 163, .08); border: 1px solid rgba(0, 255, 163, .35); color: var(--lime);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }
.hero h1 {
  font-family: var(--font-display); font-weight: 900; line-height: 1.02; letter-spacing: -0.01em;
  font-size: clamp(2.2rem, 5.4vw, 5rem); margin: 22px 0;
}
.chrome {
  background: linear-gradient(180deg, #fff 0%, #e8e2ff 40%, #8f86b8 52%, #fff 70%, #cfc7ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 20px rgba(123, 43, 255, .45));
}
.holo-text {
  background: var(--holo); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: holoshift 5s linear infinite; filter: drop-shadow(0 0 24px rgba(255, 43, 214, .55));
}
@keyframes holoshift { to { background-position: 200% center; } }
.lead { font-size: 1.15rem; line-height: 1.65; color: #cfc8ee; max-width: 560px; }
.lead strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; }
.trust span { margin-right: 4px; }

.hero-3d { position: relative; height: min(640px, 75vh); }
#scene3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .8s; }
.hero-3d.ready .hero-fallback { opacity: 0; }
.orb {
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #fff 0 4%, transparent 18%), conic-gradient(from var(--angle), var(--pink), var(--violet), var(--cyan), var(--lime), var(--pink));
  animation: spin 8s linear infinite; filter: blur(.5px) saturate(1.3);
  box-shadow: 0 0 120px rgba(255, 43, 214, .6), inset -30px -40px 80px rgba(0,0,0,.45);
}
.float-chip {
  position: absolute; padding: 10px 16px; border-radius: 14px; font-weight: 600; font-size: .9rem;
  background: rgba(20, 8, 50, .55); border: 1px solid var(--stroke); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 30px -8px rgba(0,0,0,.6);
  animation: bob 6s ease-in-out infinite; pointer-events: none;
}
.c1 { top: 14%; left: 2%; }
.c2 { top: 30%; right: 0; animation-delay: -2s; }
.c3 { bottom: 14%; left: 12%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-16px) rotate(-2deg); } }

/* ---------- Shop layout ---------- */
.shop {
  width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 60px;
  display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start;
}
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 6px; letter-spacing: .02em; }
.section-title.center { text-align: center; }
.sort { display: flex; align-items: center; gap: 10px; }
.sort select {
  appearance: none; padding: 10px 38px 10px 16px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.06) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%2300f0ff' stroke-width='2' fill='none'/></svg>") no-repeat right 14px center;
  border: 1px solid var(--stroke);
}
.sort select option { background: #140833; }

/* ---------- Sidebar (right) ---------- */
.sidebar { position: sticky; top: 100px; }
.sidebar-inner { border-radius: var(--radius); padding: 20px 14px; max-height: calc(100vh - 120px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.sidebar-title { font-family: var(--font-display); font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin: 0 8px 14px; }
.cat-list { display: flex; flex-direction: column; gap: 4px; }
.cat {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 14px; border: 1px solid transparent; background: transparent; cursor: pointer;
  color: #ddd7f7; font-weight: 500; transition: all .25s;
}
.cat .ci {
  width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem;
  background: rgba(255,255,255,.06); border: 1px solid var(--stroke); transition: all .25s;
}
.cat .cn { flex: 1; }
.cat .cc { font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.07); color: var(--muted); }
.cat:hover { background: rgba(255,255,255,.06); transform: translateX(-4px); }
.cat:hover .ci { transform: rotate(-8deg) scale(1.1); }
.cat.active { background: linear-gradient(120deg, rgba(255,43,214,.25), rgba(0,240,255,.15)); border-color: rgba(255,43,214,.5); color: #fff; box-shadow: 0 0 30px -8px rgba(255,43,214,.7); }
.cat.active .ci { background: var(--holo); background-size: 200%; border-color: transparent; box-shadow: 0 0 16px rgba(255,43,214,.7); }
.cat.active .cc { background: #fff; color: #1a0840; }
.cat.empty-cat { opacity: .55; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; perspective: 1200px; }
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius); cursor: pointer; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .15s ease-out, box-shadow .3s;
  animation: cardIn .7s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(.94) rotateX(12deg); } }
.card::before { /* holographic animated border */
  content: ''; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--angle), var(--pink), var(--violet), var(--cyan), var(--lime), var(--orange), var(--pink));
  animation: spin 6s linear infinite; opacity: .45; transition: opacity .3s;
}
.card:hover::before { opacity: 1; filter: blur(.5px); }
.card::after { /* outer glow */
  content: ''; position: absolute; inset: 10%; border-radius: inherit; z-index: -2;
  background: linear-gradient(120deg, var(--c1), var(--c2)); filter: blur(40px); opacity: 0; transition: opacity .4s;
}
.card:hover::after { opacity: .7; }
.card-inner {
  position: relative; height: 100%; border-radius: inherit; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(30, 12, 70, .92), rgba(10, 4, 28, .96));
  transform-style: preserve-3d;
}
.cover {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.55), transparent 35%),
    radial-gradient(circle at 85% 90%, rgba(0,0,0,.35), transparent 50%),
    linear-gradient(135deg, var(--c1), var(--c2));
  transform-style: preserve-3d;
}
.cover::before { /* glossy top reflection */
  content: ''; position: absolute; inset: 0 0 55% 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.35), rgba(255,255,255,0)); pointer-events: none;
}
.cover .rings { position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 0 0 30px rgba(255,255,255,.04), 0 0 0 70px rgba(255,255,255,.03); animation: spin 20s linear infinite; }
.cover .icon {
  font-size: 4.6rem; transform: translateZ(60px); filter: drop-shadow(0 18px 18px rgba(0,0,0,.45)) drop-shadow(0 0 30px rgba(255,255,255,.5));
  transition: transform .4s cubic-bezier(.2,.9,.3,1.4); animation: floaty 5s ease-in-out infinite;
}
.card:hover .cover .icon { transform: translateZ(90px) scale(1.15) rotate(-6deg); }
@keyframes floaty { 50% { translate: 0 -8px; } }
.glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: 0; transition: opacity .3s; z-index: 3;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.75), transparent 45%);
}
.card:hover .glare { opacity: 1; }
.holo-sheen {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s; mix-blend-mode: color-dodge;
  background: linear-gradient(115deg, transparent 20%, rgba(255,43,214,.35) 35%, rgba(0,240,255,.35) 50%, rgba(0,255,163,.3) 65%, transparent 80%);
  background-size: 250% 250%; background-position: var(--mx) var(--my);
}
.card:hover .holo-sheen { opacity: .8; }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 4; padding: 6px 12px; border-radius: 99px; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.format-tag { position: absolute; bottom: 12px; right: 12px; z-index: 4; padding: 5px 10px; border-radius: 10px; font-size: .72rem; font-weight: 700; background: rgba(5,1,15,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; transform: translateZ(30px); }
.card-cat { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.card-title { font-size: 1.12rem; font-weight: 700; margin: 0; line-height: 1.3; }
.card-short { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.5; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.price { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; background: linear-gradient(90deg, #fff, #c7f9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price s { font-family: var(--font); font-size: .85rem; font-weight: 500; color: var(--muted); -webkit-text-fill-color: var(--muted); margin-left: 8px; }
.buy-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 8px 20px -4px var(--c1);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.6);
}
.card:hover .buy-btn { transform: scale(1.15) rotate(90deg); }

.empty { text-align: center; padding: 80px 20px; border-radius: var(--radius); border: 1px dashed var(--stroke); }
.empty-icon { font-size: 4rem; animation: bob 4s ease-in-out infinite; }

/* ---------- How ---------- */
.how { width: min(1100px, calc(100% - 40px)); margin: 40px auto 80px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.step { border-radius: var(--radius); padding: 28px; transition: transform .3s; }
.step:hover { transform: translateY(-6px); }
.step-num { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; background: var(--holo); background-size: 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: holoshift 6s linear infinite; }
.step h3 { margin: 8px 0; font-size: 1.25rem; }
.step p { color: var(--muted); margin: 0; line-height: 1.6; }

.footer { text-align: center; padding: 40px 20px 60px; border-top: 1px solid var(--stroke); display: grid; justify-items: center; gap: 10px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 0, 12, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 28px; padding: 28px;
  background: linear-gradient(150deg, rgba(40, 14, 90, .85), rgba(8, 3, 25, .92));
  animation: pop .5s cubic-bezier(.2,.9,.3,1.25);
}
.modal-card.narrow { width: min(560px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.92) rotateX(10deg); } }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid var(--stroke); transition: all .25s;
}
.modal-close:hover { background: var(--pink); transform: rotate(90deg); box-shadow: 0 0 20px var(--pink); }
.modal-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; }
.m-cover {
  position: relative; border-radius: 22px; min-height: 340px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.6), transparent 35%), linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 30px 60px -20px var(--c1);
}
.m-cover::before { content: ''; position: absolute; inset: 0 0 55% 0; background: linear-gradient(to bottom, rgba(255,255,255,.35), transparent); }
.m-icon { font-size: 8rem; filter: drop-shadow(0 25px 25px rgba(0,0,0,.45)); animation: floaty 4s ease-in-out infinite; }
.shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 45%, transparent 60%); background-size: 250% 100%; animation: shine 3.5s ease-in-out infinite; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.m-cat { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.m-info h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 8px 0 10px; line-height: 1.15; }
.m-info > p { line-height: 1.65; }
.m-features { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-features li { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.m-features li::before { content: '✦'; color: var(--lime); text-shadow: 0 0 10px var(--lime); }
.m-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.m-meta span { padding: 6px 12px; border-radius: 10px; font-size: .8rem; background: rgba(255,255,255,.06); border: 1px solid var(--stroke); }
.m-price { margin: 20px 0 16px; }
.m-price span { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; }
.m-price s { margin-left: 12px; color: var(--muted); }
.pay-zone { border-radius: 18px; padding: 16px; background: rgba(255,255,255,.95); }
.pay-zone .btn-glossy { margin-bottom: 4px; }
.pay-note { margin: 8px 0 0; font-size: .78rem; color: #4b4566; text-align: center; }
.pay-error { margin: 10px 0 0; padding: 10px; border-radius: 10px; font-size: .85rem; text-align: center; background: #ffe3ef; color: #b0003a; }
.pay-zone.demo { background: rgba(255,255,255,.06); border: 1px solid var(--stroke); }
.pay-zone.demo .pay-note { color: var(--muted); }

/* Success */
.modal-success { text-align: center; padding: 20px 10px; max-width: 560px; margin: 0 auto; }
.modal-success h2 { font-family: var(--font-display); font-size: 2.2rem; margin: 10px 0; }
.success-ring { width: 110px; height: 110px; margin: 0 auto; filter: drop-shadow(0 0 30px rgba(0,255,163,.8)); }
.success-ring svg { width: 100%; height: 100%; }
.success-ring circle { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .8s ease-out forwards; }
.success-ring path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .5s .6s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dl-card { display: flex; align-items: center; gap: 16px; text-align: left; padding: 16px; border-radius: 18px; margin: 20px 0; }
.dl-card strong { display: block; }
.dl-icon { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 2px 0 rgba(255,255,255,.4); }
.modal-success code { color: var(--cyan); word-break: break-all; }

/* Purchases */
.purchase-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.purchase { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--stroke); }
.purchase .dl-icon { width: 46px; height: 46px; font-size: 1.4rem; }
.purchase div { flex: 1; min-width: 0; }
.purchase strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.purchase .btn-ghost { padding: 9px 14px; font-size: .85rem; }
.purchase.expired { opacity: .5; }

/* Confetti + toast */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 200; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; padding: 14px 22px; border-radius: 14px;
  background: rgba(20, 8, 50, .9); border: 1px solid var(--pink); box-shadow: 0 0 30px rgba(255,43,214,.5); animation: pop .4s;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta, .trust { justify-content: center; }
  .hero-3d { height: 420px; order: -1; }
  .shop { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 84px; z-index: 20; order: -1; }
  .sidebar-inner { padding: 10px; max-height: none; overflow: visible; border-radius: 18px; }
  .sidebar-title { display: none; }
  .cat-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .cat { width: auto; white-space: nowrap; padding: 8px 12px; }
  .cat .ci { width: 28px; height: 28px; font-size: .9rem; }
  .cat:hover { transform: none; }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; border-radius: 24px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  #openPurchases { margin-left: auto; }
  .modal-body { grid-template-columns: 1fr; }
  .m-cover { min-height: 220px; }
  .m-icon { font-size: 5.5rem; }
  .steps { grid-template-columns: 1fr; }
  .shop-head { flex-direction: column; align-items: flex-start; }
  .float-chip { display: none; }
  .sidebar { top: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
.nowrap { white-space: nowrap; }

/* ---------- 3D book covers ---------- */
.cover .book {
  position: absolute; z-index: 1; top: 8%; left: 50%; translate: -50% 0; height: 84%; width: auto; aspect-ratio: 210 / 297; object-fit: cover;
  border-radius: 3px 8px 8px 3px;
  transform: translateZ(50px) rotateY(-20deg) rotateX(4deg);
  box-shadow: -2px 0 0 rgba(255,255,255,.35), 6px 0 0 #1a0a3a, 8px 2px 0 rgba(255,255,255,.25), 22px 24px 40px rgba(0,0,0,.6), 0 0 40px rgba(255,43,214,.35);
  transition: transform .45s cubic-bezier(.2,.9,.3,1.3);
}
.card:hover .cover .book { transform: translateZ(80px) rotateY(-6deg) rotateX(2deg) scale(1.04); }
.m-book {
  position: relative; z-index: 1; height: 86%; max-height: 420px; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 4px 10px 10px 4px;
  transform: perspective(900px) rotateY(-16deg); animation: floaty 5s ease-in-out infinite;
  box-shadow: -2px 0 0 rgba(255,255,255,.4), 8px 0 0 #1a0a3a, 28px 30px 50px rgba(0,0,0,.6), 0 0 60px rgba(0,240,255,.35);
}

/* ---------- Consentement : renonciation au droit de rétractation ---------- */
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #f3efff; border: 2px solid #d9d0ff; cursor: pointer; color: #2b2540; font-size: .82rem; line-height: 1.45; transition: border-color .2s, background .2s, box-shadow .2s; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .tick { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #8b7fd0; background: #fff; display: grid; place-items: center; transition: all .2s; }
.consent input:checked + .tick { background: linear-gradient(135deg, var(--pink), var(--cyan)); border-color: transparent; }
.consent input:checked + .tick::after { content: '✓'; color: #fff; font-weight: 900; font-size: .85rem; }
.consent input:focus-visible + .tick { box-shadow: 0 0 0 3px rgba(0,240,255,.5); }
.consent.ok { border-color: #00c98a; background: #eafff6; }
.consent.need { border-color: #ff2b5e; background: #ffeef3; box-shadow: 0 0 0 4px rgba(255,43,94,.15); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.pay-buttons { transition: opacity .25s, filter .25s; }
.pay-buttons.locked, .pay-zone .btn-glossy.locked { opacity: .45; filter: grayscale(.6); }
.pay-zone.demo .consent { background: rgba(255,255,255,.06); border-color: var(--stroke); color: #d8d2f5; }
.pay-zone.demo .consent.ok { border-color: var(--lime); }
