/* ═══════════════════════════════════════════════════════════════
   VISUAL FIDELITY — design system
   Synthwave × arcade cabinet. Colors are pulled from the logo.
   Change the palette in :root and the whole site follows.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #08030f;
  --bg-2: #10061f;
  --panel: rgba(22, 9, 44, .78);
  --panel-2: rgba(36, 14, 68, .88);
  --line: rgba(255, 64, 170, .32);
  --line-soft: rgba(255, 255, 255, .09);
  --text: #f7edff;
  --muted: #b6a6d9;

  /* logo palette */
  --orange: #ffa23a;
  --coral: #ff5e62;
  --pink: #ff2d95;
  --magenta: #c02bd6;
  --violet: #7b3cff;
  --blue: #3b46e8;
  --cyan: #2be4ff;       /* arcade accent, used sparingly */
  --ok: #3dffa8;
  --bad: #ff4d6d;

  --grad: linear-gradient(100deg, var(--orange) 0%, var(--pink) 48%, var(--violet) 100%);
  --font-d: 'Orbitron', system-ui, sans-serif;
  --font-b: 'Rajdhani', system-ui, sans-serif;
  --font-p: 'Rajdhani', system-ui, sans-serif;
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  color: var(--text); font: 500 18px/1.55 var(--font-b);
  background:
    radial-gradient(1100px 600px at 85% -8%, rgba(123, 60, 255, .26), transparent 60%),
    radial-gradient(900px 520px at -5% 18%, rgba(255, 45, 149, .17), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--pink); color: #fff; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ── type ── */
h1, h2, h3, h4 { font-family: var(--font-d); margin: 0; line-height: 1.1; letter-spacing: .02em; }
.eyebrow { font: 700 15px/1.6 var(--font-b); color: var(--orange); letter-spacing: .12em; text-transform: uppercase; }
.h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 900; font-style: italic; text-transform: uppercase; margin: 10px 0 14px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 20px; max-width: 60ch; }
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em; cursor: pointer; border: 0;
  padding: 15px 26px; color: #fff; font: 800 13px/1 var(--font-d); letter-spacing: .15em; text-transform: uppercase;
  transform: skewX(-10deg); transition: transform .18s, box-shadow .18s, background .18s, color .18s, opacity .18s;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35); white-space: nowrap;
}
.btn > * { display: inline-block; transform: skewX(10deg); }
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; }
.btn:hover { transform: skewX(-10deg) translateY(-2px); }
.btn:active { transform: skewX(-10deg) translateY(1px); }
.btn-primary { background: var(--grad); box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 8px 30px -6px rgba(255, 45, 149, .65); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .3) inset, 0 12px 38px -4px rgba(255, 45, 149, .9); }
.btn-ghost { background: rgba(255, 45, 149, .06); box-shadow: 0 0 0 2px var(--pink) inset, 0 0 22px -6px var(--pink); }
.btn-ghost:hover { background: var(--pink); }
.btn-cyan { background: rgba(43, 228, 255, .07); box-shadow: 0 0 0 2px var(--cyan) inset; color: var(--cyan); text-shadow: none; }
.btn-cyan:hover { background: var(--cyan); color: #06121a; }
.btn-danger { background: rgba(255, 77, 109, .1); box-shadow: 0 0 0 2px var(--bad) inset; color: var(--bad); text-shadow: none; }
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 11px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; filter: saturate(.5); }
.btn-block { width: 100%; }

/* ── staff strip + header ── */
.staffbar { background: linear-gradient(90deg, #2b0a55, #5d1070 60%, #2b0a55); border-bottom: 1px solid var(--line); position: relative; z-index: 60; }
.staffbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; font: 700 14px/1.4 var(--font-b); letter-spacing: .06em; color: var(--muted); }
.staffbar a { color: #fff; background: var(--pink); padding: 7px 11px; box-shadow: 0 0 18px -2px var(--pink); }
.staffbar a:hover { background: var(--orange); color: #1b0630; }
.announce { background: var(--grad); color: #1b0630; text-align: center; font: 700 15px var(--font-d); letter-spacing: .08em; padding: 9px 16px; }

.site-header { position: sticky; top: 0; z-index: 70; background: rgba(8, 3, 15, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 22px; height: var(--nav-h); }
.brand img { height: 50px; width: auto; filter: drop-shadow(0 0 12px rgba(255, 45, 149, .5)); transition: transform .2s; }
.brand:hover img { transform: scale(1.05) rotate(-1deg); }
.nav-links { display: flex; gap: 4px; margin-left: 10px; }
.nav-links a { position: relative; padding: 10px 14px; font: 700 12px var(--font-d); letter-spacing: .17em; text-transform: uppercase; color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px; height: 2px; background: var(--grad); box-shadow: 0 0 12px var(--pink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: #fff; width: 46px; height: 42px; cursor: pointer; font: 700 18px var(--font-d); }

.usermenu { position: relative; }
.usermenu > button { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); color: #fff; padding: 6px 14px 6px 6px; cursor: pointer; font: 700 15px var(--font-b); }
.usermenu img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--pink); }
.usermenu .drop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 40px -10px var(--pink); display: none; padding: 6px; }
.usermenu.open .drop { display: block; }
.drop a, .drop button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: 700 13px var(--font-d); letter-spacing: .1em; text-transform: uppercase; padding: 12px 14px; cursor: pointer; }
.drop a:hover, .drop button:hover { background: rgba(255, 45, 149, .18); }
.drop .staff-link { color: var(--orange); }

/* ── ticker ── */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: rgba(0, 0, 0, .4); padding: 13px 0; }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker span { font: 700 13px var(--font-d); letter-spacing: .34em; text-transform: uppercase; color: var(--muted); padding-right: 46px; }
.ticker span b { color: var(--pink); font-weight: 900; padding-right: 46px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── hero ── */
.hero { position: relative; isolation: isolate; min-height: min(860px, calc(100vh - var(--nav-h))); display: grid; place-items: center; overflow: hidden; text-align: center; }
.hero-sky { position: absolute; inset: 0; z-index: -5; background: linear-gradient(180deg, #06010d 0%, #19053a 34%, #55105f 58%, #b8185f 76%, #ff7a3c 100%); }
.stars { position: absolute; inset: 0 0 45% 0; z-index: -4; opacity: .9;
  background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 90px 74px, #ffe, transparent),
    radial-gradient(1.5px 1.5px at 164px 20px, #fcf, transparent), radial-gradient(1px 1px at 130px 100px, #fff, transparent);
  background-size: 210px 130px; animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }
.sun { position: absolute; z-index: -3; width: min(46vw, 440px); aspect-ratio: 1; left: 50%; bottom: 26%; transform: translateX(-50%); filter: drop-shadow(0 0 60px rgba(255, 45, 149, .65)); }
.hero-slides { position: absolute; inset: 0; z-index: -3; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.07); transition: opacity 1.6s ease, transform 10s ease-out; }
.hero-slide.on { opacity: 1; transform: scale(1); }
.hero-tint { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(8, 3, 15, .6), rgba(40, 8, 72, .35) 45%, rgba(8, 3, 15, .92)); display: none; }
.hero.has-slides .hero-tint { display: block; }
.hero.has-slides .sun, .hero.has-slides .stars, .hero.has-slides .hero-sky { display: none; }
.grid-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: -1; perspective: 320px; overflow: hidden; background: linear-gradient(#1c0733, #08030f);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); }
.grid-floor::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--pink); box-shadow: 0 0 30px 6px var(--pink); z-index: 2; }
.grid-plane { position: absolute; left: -60%; width: 220%; top: 0; height: 240%; transform-origin: 50% 0; transform: rotateX(72deg);
  background-image: linear-gradient(rgba(255, 45, 149, .95) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 45, 149, .95) 2px, transparent 2px);
  background-size: 70px 70px; animation: gridmove 1.5s linear infinite; }
@keyframes gridmove { to { background-position: 0 70px; } }
.hero-inner { position: relative; padding: 56px 0 150px; }
.hero-tag { display: inline-block; font: 700 15px/1.7 var(--font-b); letter-spacing: .1em; color: var(--cyan); border: 1px solid rgba(43, 228, 255, .5); padding: 9px 14px; background: rgba(0, 0, 0, .4); }
.hero-tag i { display: inline-block; width: 8px; height: 8px; background: var(--ok); margin-right: 10px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-logo { width: min(600px, 88vw); margin: 22px auto 6px; filter: drop-shadow(0 0 34px rgba(255, 45, 149, .5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-9px); } }
.hero h1 { font-size: clamp(20px, 3.2vw, 32px); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.hero p.lead { margin: 18px auto 0; color: #e0d2ff; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 34px; }
.caption { position: absolute; right: 20px; bottom: 14px; font: 700 12px var(--font-b); color: rgba(255, 255, 255, .6); z-index: 3; }

.hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 780px; margin: 46px auto 0; }
.hud > div { background: rgba(8, 3, 15, .65); border: 1px solid var(--line); padding: 16px 10px 14px; backdrop-filter: blur(6px); box-shadow: 0 0 30px -12px var(--pink); }
.hud b { display: block; font: 700 33px/1.2 var(--font-b); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(255, 45, 149, .6)); }
.hud small { display: block; margin-top: 10px; font: 700 12px/1.6 var(--font-b); color: var(--muted); letter-spacing: .08em; }

/* ── cards & feature grid ── */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line); padding: 28px 24px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: transform .25s, background .25s, border-color .25s;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); opacity: .85; }
.card:hover { transform: translateY(-5px); background: var(--panel-2); border-color: var(--pink); }
.card .ico { width: 54px; height: 54px; margin-bottom: 18px; color: var(--pink); filter: drop-shadow(0 0 10px var(--pink)); }
.card h3 { font-size: 17px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── steps (insert coin) ── */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { position: relative; border: 1px dashed var(--line); padding: 26px 22px 22px; background: rgba(0, 0, 0, .25); }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: -13px; left: 18px; background: var(--bg); padding: 4px 10px; font: 700 16px var(--font-b); color: var(--orange); border: 1px solid var(--orange); }
.step h4 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

/* ── lab teaser / banner ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.crt { position: relative; border: 2px solid var(--pink); padding: 10px; background: #000; box-shadow: 0 0 0 6px rgba(255, 45, 149, .12), 0 0 70px -10px var(--pink); border-radius: 14px; }
.crt canvas { width: 100%; aspect-ratio: 16 / 10; display: block; border-radius: 6px; background: #12041f; }
.crt::after { content: "LIVE GLSL"; position: absolute; top: 20px; left: 22px; font: 700 12px var(--font-b); color: #fff; background: rgba(0, 0, 0, .55); padding: 6px 8px; }
.cta-band { text-align: center; border: 1px solid var(--line); padding: clamp(40px, 6vw, 70px) 24px; background: linear-gradient(135deg, rgba(255, 162, 58, .1), rgba(255, 45, 149, .12) 50%, rgba(123, 60, 255, .16)); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--grad); }

/* ── page header (inner pages) ── */
.page-hero { padding: clamp(48px, 7vw, 84px) 0 18px; position: relative; text-align: center; }
.page-hero::after { content: ""; display: block; width: 220px; height: 4px; margin: 28px auto 0; background: var(--grad); box-shadow: 0 0 24px var(--pink); transform: skewX(-30deg); }

/* ── shop ── */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0 36px; }
.pill { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 10px 18px; font: 700 12px var(--font-d); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transform: skewX(-10deg); transition: .15s; }
.pill:hover { color: #fff; border-color: var(--pink); }
.pill.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 24px -6px var(--pink); }
.pill em { font-style: normal; opacity: .65; margin-left: 6px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.pcard { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s; position: relative; }
.pcard:hover { transform: translateY(-6px); border-color: var(--pink); box-shadow: 0 24px 60px -24px rgba(255, 45, 149, .6); }
.pcard.featured::before { content: "★ FEATURED"; position: absolute; z-index: 3; top: 12px; left: 12px; font: 700 12px var(--font-b); background: var(--orange); color: #1b0630; padding: 7px 9px; }
.art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #12041f; cursor: pointer; }
.art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pcard:hover .art img { transform: scale(1.06); }
.art.gen { background: linear-gradient(170deg, hsl(var(--h) 85% 14%), hsl(calc(var(--h) + 38) 90% 36%) 70%, hsl(calc(var(--h) + 70) 95% 55%)); }
.art.gen::before { content: ""; position: absolute; left: 50%; bottom: 20%; width: 46%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(#ffb23e, #ff2d95 60%, #8a2be2); -webkit-mask-image: linear-gradient(#000 0 52%, transparent 52% 58%, #000 58% 66%, transparent 66% 73%, #000 73% 82%, transparent 82% 89%, #000 89%); mask-image: linear-gradient(#000 0 52%, transparent 52% 58%, #000 58% 66%, transparent 66% 73%, #000 73% 82%, transparent 82% 89%, #000 89%); }
.art.gen::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px) 0 0 / 100% 14px, linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px) 0 0 / 28px 100%; opacity: .25; transform-origin: top; transform: perspective(160px) rotateX(55deg); }
.art .count { position: absolute; right: 10px; bottom: 10px; z-index: 2; font: 700 12px var(--font-b); background: rgba(0, 0, 0, .7); padding: 7px 9px; color: #fff; border: 1px solid var(--line); }
.pbody { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pmeta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cat { font: 700 12px var(--font-b); color: var(--cyan); letter-spacing: .08em; text-transform: uppercase; }
.sample { font: 700 12px var(--font-b); color: var(--orange); border: 1px dashed var(--orange); padding: 4px 6px; }
.pbody h3 { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.pbody p { margin: 0; color: var(--muted); font-size: 17px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font: 700 11px var(--font-d); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-soft); padding: 4px 8px; }
.pfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.price { font: 700 26px var(--font-b); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price small { display: block; font: 600 12px var(--font-b); color: var(--muted); -webkit-text-fill-color: var(--muted); margin-top: 6px; letter-spacing: .06em; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; font: 700 18px/2 var(--font-b); }

/* ── lightbox ── */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 1, 9, .94); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: min(1200px, 92vw); border: 2px solid var(--pink); box-shadow: 0 0 80px -10px var(--pink); }
.lb-btn { position: absolute; background: rgba(0, 0, 0, .6); border: 1px solid var(--line); color: #fff; width: 54px; height: 54px; font: 700 22px var(--font-d); cursor: pointer; }
.lb-btn:hover { background: var(--pink); }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 18px; top: 50%; } .lb-next { right: 18px; top: 50%; }
.lb-count { position: absolute; bottom: 20px; font: 700 15px var(--font-b); color: var(--muted); }

/* ── panels, forms ── */
.panel { background: var(--panel); border: 1px solid var(--line); padding: 28px; position: relative; }
.panel h3 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.input, .select, textarea.input {
  width: 100%; background: rgba(0, 0, 0, .45); color: var(--text); border: 1px solid var(--line); padding: 13px 14px; font: 600 17px var(--font-b); outline: none; border-radius: 0;
}
.input:focus, .select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(43, 228, 255, .15); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--pink) 50%), linear-gradient(135deg, var(--pink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
.select option { background: #14062a; }
label.fld { display: block; font: 700 11px var(--font-d); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 7px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { font-size: 15px; color: var(--muted); }
.msg { padding: 12px 14px; border-left: 3px solid var(--pink); background: rgba(255, 45, 149, .1); font-weight: 600; }
.msg.ok { border-color: var(--ok); background: rgba(61, 255, 168, .08); }
.msg.err { border-color: var(--bad); background: rgba(255, 77, 109, .1); }

/* ── account ── */
.profile { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.profile img { width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--pink); box-shadow: 0 0 34px -4px var(--pink); }
.profile h2 { font-size: 28px; font-weight: 900; }
.badge { display: inline-block; font: 700 12px var(--font-b); padding: 6px 8px; border: 1px solid currentColor; margin: 8px 8px 0 0; }
.badge.staff { color: var(--orange); } .badge.ok { color: var(--ok); } .badge.warn { color: var(--bad); }
.coin-box { text-align: center; padding: 70px 24px; }
.coin-box .insert { font: 700 21px/1.8 var(--font-b); color: var(--orange); animation: blink 1.1s steps(2) infinite; margin-bottom: 26px; }

/* ── shader lab ── */
.lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; }
.lab-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.lab-bar .select { width: auto; min-width: 200px; flex: 1; }
.code { width: 100%; height: 560px; resize: vertical; background: #05010b; color: #ffd9f0; border: 1px solid var(--line); padding: 16px; font: 500 14px/1.6 ui-monospace, 'Cascadia Code', Consolas, monospace; tab-size: 2; outline: none; white-space: pre; overflow: auto; }
.code:focus { border-color: var(--cyan); }
.lab-view .crt canvas { aspect-ratio: 4 / 3; }
.errbox { margin-top: 14px; min-height: 52px; padding: 12px 14px; font: 500 13px/1.6 ui-monospace, Consolas, monospace; border-left: 3px solid var(--ok); background: rgba(61, 255, 168, .07); color: var(--ok); white-space: pre-wrap; }
.errbox.bad { border-color: var(--bad); background: rgba(255, 77, 109, .09); color: #ff9db0; }
.lab-stats { display: flex; gap: 18px; font: 700 12px var(--font-b); color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.level { border: 1px solid var(--line); background: var(--panel); padding: 24px; position: relative; }
.level .lv { font: 700 15px var(--font-b); color: var(--orange); }
.level h4 { margin: 12px 0 8px; font-size: 18px; text-transform: uppercase; letter-spacing: .06em; }
.level ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.level li::marker { color: var(--pink); }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--line); background: rgba(0, 0, 0, .45); padding: 44px 0 30px; position: relative; margin-top: 40px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--grad); box-shadow: 0 0 20px var(--pink); }
.foot { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; align-items: flex-start; }
.foot img { height: 56px; margin-bottom: 12px; }
.foot p { margin: 0; color: var(--muted); max-width: 34ch; }
.foot nav { display: flex; flex-direction: column; gap: 10px; }
.foot nav b { font: 700 14px var(--font-b); color: var(--orange); margin-bottom: 4px; }
.foot nav a { color: var(--muted); font-weight: 600; }
.foot nav a:hover { color: var(--pink); }
.legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line-soft); font: 700 12px/1.8 var(--font-b); color: rgba(182, 166, 217, .6); }

/* ── toast ── */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.toast { background: var(--bg-2); border: 1px solid var(--pink); border-left-width: 5px; padding: 14px 16px; font-weight: 700; box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 30px -8px var(--pink); animation: toastin .3s ease; }
.toast.ok { border-color: var(--ok); } .toast.err { border-color: var(--bad); }
@keyframes toastin { from { opacity: 0; transform: translateX(30px); } }

/* ── responsive ── */
@media (max-width: 900px) {
  .split, .lab { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: var(--nav-h); background: var(--bg-2); border-bottom: 1px solid var(--line); flex-direction: column; margin: 0; padding: 8px 20px 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a.active::after { left: 0; right: auto; width: 46px; }
  .nav-right .btn { padding: 12px 14px; font-size: 10px; }
  .code { height: 420px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hud { grid-template-columns: 1fr; }
  .hud b { font-size: 18px; }
  .hero-actions .btn { width: 100%; }
  .staffbar .wrap span { display: none; }
  .usermenu .uname { display: none; }
  .brand img { height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ═════════ v2 additions ═════════ */
/* The logo PNG has transparent margins; crop to the artwork so it renders at a useful size. */
.brand img, .hero-logo, .foot img, .adm-side .logo img, .vfl-logo { aspect-ratio: 512 / 224; object-fit: cover; height: auto; }
.brand img { width: 156px; }
.foot img { width: 190px; margin-bottom: 14px; }
.hero-logo { width: min(520px, 84vw); margin: 16px auto 4px; }
.hero-inner { padding: 40px 0 130px; }
.hero p.lead { margin-top: 12px; }
.hero-actions { margin-top: 26px; }
.hud { margin-top: 34px; }
.nav { gap: 14px; }
.nav-links { margin-left: 4px; gap: 0; }
.nav-links a { padding: 10px 11px; letter-spacing: .12em; font-size: 11px; }
.nav-links a.active::after { left: 11px; right: 11px; }
@media (max-width: 900px) { .brand img { width: 128px; } .nav-links a { padding: 14px 0; font-size: 13px; } }
@media (max-width: 560px) { .brand img { width: 116px; } }

.price-card { position: relative; background: var(--panel-2); border: 2px solid var(--pink); padding: 34px 30px 30px; box-shadow: 0 0 60px -14px var(--pink); text-align: center; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.price-card .big { font: 900 clamp(34px, 5vw, 52px)/1.2 var(--font-d); margin: 18px 0 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(255, 45, 149, .55)); }
.price-card .per { font: 700 13px var(--font-d); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.price-card p { color: var(--muted); margin: 0 0 8px; }
.price-card .buy { margin-top: 22px; display: flex; justify-content: center; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 19px; }
.checks li::before { content: "✔"; flex: none; color: var(--ok); text-shadow: 0 0 10px var(--ok); font-weight: 700; }
.shader-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 12px; }
.counter { font: 700 15px var(--font-b); color: var(--orange); }
.counter.good { color: var(--ok); }
.chip-s { display: inline-block; font: 700 12px/1 var(--font-b); padding: 6px 7px; border: 1px solid currentColor; color: var(--muted); }
.chip-s.ok { color: var(--ok); } .chip-s.warn { color: var(--orange); } .chip-s.bad { color: var(--bad); } .chip-s.cyan { color: var(--cyan); }
.order { border: 1px solid var(--line); background: rgba(0, 0, 0, .3); padding: 18px 20px; margin-bottom: 14px; }
.order h4 { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.order .tags { margin-top: 12px; }

/* product screenshot with numbered hot-spots */
.shot { position: relative; border: 2px solid var(--pink); border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 0 0 6px rgba(255, 45, 149, .12), 0 30px 90px -20px rgba(255, 45, 149, .55); cursor: zoom-in; }
.shot > img { width: 100%; height: auto; display: block; }
.shot-cap { text-align: center; font: 700 12px/1.9 var(--font-b); color: var(--muted); letter-spacing: .08em; margin: 16px 0 0; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; font: 700 15px var(--font-b); box-shadow: 0 0 0 4px rgba(255, 45, 149, .3), 0 0 22px var(--pink); animation: pinpulse 2.2s ease-in-out infinite; pointer-events: none; }
@keyframes pinpulse { 50% { box-shadow: 0 0 0 10px rgba(255, 45, 149, 0), 0 0 30px var(--pink); } }
.inside { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.inside li { display: flex; gap: 16px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); padding: 20px; }
.inside .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); font: 700 16px var(--font-b); box-shadow: 0 0 18px var(--pink); }
.inside h4 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.inside p { margin: 0; color: var(--muted); font-size: 17px; }
.shot-sm { cursor: pointer; display: block; }
@media (max-width: 700px) { .pin { width: 22px; height: 22px; font-size: 8px; } }

/* ═══ Calm pass: a normal, clean modern look (overrides everything above) ═══ */
:root { --bg: #0b0814; --bg-2: #13101f; --panel: #15111f; --panel-2: #1b1628; --line: rgba(255, 255, 255, .12); --line-soft: rgba(255, 255, 255, .07); --muted: #a9a3bd; --text: #f3f0fa; }
body { background: var(--bg); background-attachment: scroll; font-size: 17px; }
.eyebrow { font: 700 12px/1.5 var(--font-b); letter-spacing: .14em; color: var(--orange); }
.h2 { font-style: normal; font-weight: 800; text-transform: none; letter-spacing: -.01em; font-size: clamp(28px, 3.8vw, 40px); }
.grad-text { background: none; color: var(--pink); -webkit-text-fill-color: currentColor; }
.lead { font-size: 19px; }

.btn { transform: none !important; border-radius: 8px; padding: 14px 24px; font: 700 14px/1 var(--font-b); letter-spacing: .03em; text-transform: none; text-shadow: none; box-shadow: none; }
.btn > * { transform: none; }
.btn:hover { transform: translateY(-1px) !important; }
.btn-primary { background: linear-gradient(100deg, #ff8a3d, #ff2d95); box-shadow: none; }
.btn-primary:hover { box-shadow: 0 6px 20px -8px rgba(255, 45, 149, .7); }
.btn-ghost, .btn-cyan { background: transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28) inset; color: #fff; }
.btn-ghost:hover, .btn-cyan:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn-danger { box-shadow: 0 0 0 1px var(--bad) inset; }
.btn-sm { padding: 9px 15px; font-size: 13px; }

.staffbar { background: #1c1230; }
.staffbar a { box-shadow: none; border-radius: 6px; }
.announce { font: 700 15px var(--font-b); letter-spacing: .02em; }
.site-header { background: rgba(11, 8, 20, .88); }
.brand img { filter: none; }
.brand:hover img { transform: none; }
.nav-links a { font: 700 15px var(--font-b); letter-spacing: .02em; text-transform: none; }
.nav-links a.active::after { box-shadow: none; height: 2px; }
.usermenu img { border-color: var(--line); }
.usermenu .drop { box-shadow: 0 16px 40px rgba(0, 0, 0, .5); border-radius: 8px; }
.drop a, .drop button { font: 700 14px var(--font-b); letter-spacing: .02em; text-transform: none; }

/* hero: plain dark, no sunset / grid / floating logo */
.hero { min-height: 0; background: radial-gradient(900px 420px at 50% 0, rgba(123, 60, 255, .22), transparent 70%), var(--bg); }
.hero-sky, .stars, .sun, .grid-floor { display: none !important; }
.hero-inner { padding: clamp(60px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); }
.hero-logo { filter: none; animation: none; width: min(420px, 80vw); }
.hero h1 { font: 800 clamp(30px, 4.6vw, 48px)/1.15 var(--font-d); letter-spacing: -.01em; text-transform: none; margin-top: 8px; }
.hero p.lead { text-shadow: none; color: var(--muted); max-width: 62ch; }
.hero.has-slides p.lead { color: #e8e2f5; }

.card { clip-path: none; border-radius: 12px; padding: 26px 24px; }
.card::before { display: none; }
.card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .25); background: var(--panel-2); }
.card .ico { filter: none; color: var(--pink); }
.card h3 { font: 700 18px var(--font-b); letter-spacing: 0; text-transform: none; }
.steps .step { border-style: solid; border-radius: 12px; background: var(--panel); }
.step::before { border-radius: 6px; color: var(--pink); border-color: rgba(255, 45, 149, .5); }
.step h4 { font: 700 18px var(--font-b); letter-spacing: 0; text-transform: none; }

.crt, .shot { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); }
.crt::after { display: none; }
.cta-band { border-radius: 14px; background: var(--panel); }
.cta-band::after { display: none; }
.page-hero::after { display: none; }
.pill { transform: none; border-radius: 999px; font: 700 14px var(--font-b); letter-spacing: .02em; text-transform: none; }
.pill.on { background: var(--pink); box-shadow: none; }
.pin { animation: none; box-shadow: 0 0 0 3px rgba(255, 45, 149, .3); }
.checks li::before { text-shadow: none; }
.price-card { border-radius: 14px; box-shadow: none; }
.price-card .big { background: none; color: #fff; -webkit-text-fill-color: currentColor; filter: none; font-weight: 800; }
.inside li { border-radius: 10px; }
.inside h4 { font: 700 17px var(--font-b); letter-spacing: 0; text-transform: none; }
.inside .n { box-shadow: none; }

/* staff page */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.scard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px 20px 24px; text-align: center; }
.scard img { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; border: 2px solid var(--line); background: #1b1628; }
.scard h3 { font: 700 20px var(--font-b); margin-bottom: 6px; }
.scard .role { display: inline-block; font: 700 13px var(--font-b); letter-spacing: .04em; color: var(--pink); border: 1px solid rgba(255, 45, 149, .45); border-radius: 999px; padding: 3px 12px; margin-bottom: 8px; }
.scard .handle { color: var(--muted); font-size: 15px; }
.scard p { margin: 12px 0 0; color: var(--muted); font-size: 16px; }

/* role tags */
.vtag { display: inline-block; vertical-align: middle; font: 700 12px/1 var(--font-b); letter-spacing: .05em; text-transform: uppercase; padding: 4px 8px; border-radius: 5px; margin-left: 8px; border: 1px solid currentColor; }
.vtag-administrator { color: #ff5c9d; background: rgba(255, 45, 149, .14); }
.vtag-staff { color: #4fd8ff; background: rgba(43, 228, 255, .12); }
.vtag-customer { color: #ffb45e; background: rgba(255, 162, 58, .12); }
.profile h2 .vtag { font-size: 13px; }

/* reviews */
.rv-summary { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 20px 0 0; color: var(--muted); }
.rv-summary b { font: 800 34px var(--font-d); color: #fff; }
.stars { color: #ffb45e; letter-spacing: 2px; font-size: 20px; white-space: nowrap; }
.stars .off { color: rgba(255, 255, 255, .18); }
.rv-form { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 28px; }
.rv-form h3 { font: 700 20px var(--font-b); margin-bottom: 12px; }
.starpick { display: inline-flex; gap: 4px; margin-bottom: 12px; }
.starpick button { background: none; border: 0; cursor: pointer; font-size: 30px; line-height: 1; color: rgba(255, 255, 255, .22); padding: 0 2px; }
.starpick button.on { color: #ffb45e; }
.rv-form textarea { min-height: 110px; resize: vertical; }
.rv-list { display: grid; gap: 16px; }
.rv { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.rv-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rv-head img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #1b1628; }
.rv-head .nm { font: 700 18px var(--font-b); }
.rv-head .dt { color: var(--muted); font-size: 14px; display: block; }
.rv-head .stars { margin-left: auto; }
.rv-body { margin: 12px 0 0; white-space: pre-wrap; word-break: break-word; }
.rv-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rv-reply { margin: 14px 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--cyan); background: rgba(255, 255, 255, .03); border-radius: 0 8px 8px 0; }
.rv-reply .rv-head img { width: 32px; height: 32px; }
.rv-reply .rv-head .nm { font-size: 16px; }
.rv-note { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 28px; color: var(--muted); }

/* music player (bottom right) */
.vfp { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: min(320px, calc(100vw - 24px)); background: rgba(21, 17, 31, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .8); color: var(--text); }
.vfp::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 2px; background: var(--grad); border-radius: 2px; opacity: .9; }
.vfp-body { display: flex; gap: 12px; padding: 13px 13px 11px; }
.vfp-cover { position: relative; flex: none; width: 68px; height: 68px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #3a1470, #ff2d95 70%, #ffa23a); box-shadow: 0 8px 24px -8px rgba(255, 45, 149, .6); }
.vfp-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vfp-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.vfp-ph svg { width: 28px; height: 28px; fill: rgba(255, 255, 255, .85); }
.vfp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vfp-info { min-width: 0; }
.vfp-label { display: flex; align-items: center; gap: 8px; font: 700 10px/1 var(--font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.vfp-artist { margin-top: 5px; font: 800 15px/1.2 var(--font-b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vfp-title { margin-top: 1px; font: 500 13px/1.3 var(--font-b); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vfp-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.vfp-eq i { width: 3px; height: 3px; background: var(--pink); border-radius: 1px; }
.vfp.playing .vfp-eq i { animation: vfpeq .9s ease-in-out infinite; }
.vfp.playing .vfp-eq i:nth-child(2) { animation-delay: -.3s; } .vfp.playing .vfp-eq i:nth-child(3) { animation-delay: -.6s; } .vfp.playing .vfp-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes vfpeq { 0%, 100% { height: 3px; } 50% { height: 11px; } }
.vfp-bar { position: relative; height: 4px; margin-top: 8px; background: rgba(255, 255, 255, .14); border-radius: 3px; cursor: pointer; }
.vfp-bar::after { content: ""; position: absolute; inset: -8px 0; }
.vfp-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--grad); border-radius: 3px; }
.vfp-times { display: flex; justify-content: space-between; margin-top: 3px; font: 500 11px var(--font-b); color: var(--muted); }
.vfp-ctrl { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.vfp-b { display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: none; color: #fff; border-radius: 50%; cursor: pointer; transition: background .15s, transform .15s; }
.vfp-b:hover { background: rgba(255, 255, 255, .12); }
.vfp-b svg { width: 17px; height: 17px; fill: currentColor; }
.vfp-play { width: 36px; height: 36px; background: linear-gradient(100deg, #ff8a3d, #ff2d95); }
.vfp-play:hover { background: linear-gradient(100deg, #ff8a3d, #ff2d95); transform: scale(1.06); }
.vfp-play svg { width: 18px; height: 18px; }
.vfp-volb { margin-left: auto; width: 26px; height: 26px; color: var(--muted); }
.vfp-volb svg { width: 15px; height: 15px; }
.vfp-vol { -webkit-appearance: none; appearance: none; width: 52px; height: 4px; background: rgba(255, 255, 255, .18); border-radius: 2px; outline-offset: 4px; cursor: pointer; }
.vfp-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.vfp-vol::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.vfp-x { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 50%; cursor: pointer; }
.vfp-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.vfp-x svg { width: 14px; height: 14px; fill: currentColor; }
.vfp-mini { display: none; position: relative; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: linear-gradient(135deg, #3a1470, #ff2d95 70%, #ffa23a); }
.vfp-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vfp-mini .vfp-eq { position: absolute; right: 6px; bottom: 6px; padding: 3px 4px; background: rgba(0, 0, 0, .55); border-radius: 4px; box-sizing: content-box; }
.vfp-mini .vfp-eq i { background: #fff; }
.vfp.playing .vfp-mini .vfp-eq i { animation: vfpeq .9s ease-in-out infinite; }
.vfp.min { width: auto; background: none; border: 0; box-shadow: 0 10px 30px -8px rgba(255, 45, 149, .6); border-radius: 14px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.vfp.min::before { display: none; }
.vfp.min .vfp-body, .vfp.min .vfp-x { display: none; }
.vfp.min .vfp-mini { display: block; }
@media (max-width: 520px) {
  .vfp { right: 12px; bottom: 12px; }
  .vfp-body { padding: 12px 11px 10px; gap: 10px; }
  .vfp-cover { width: 56px; height: 56px; }
  .vfp-vol { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vfp.playing .vfp-eq i { animation: none; height: 8px; } }

/* ───── custom cursor (js/cursor.js) ───── */
html.vfc-on, html.vfc-on * { cursor: none !important; }
html.vfc-on.vfc-text input, html.vfc-on.vfc-text textarea, html.vfc-on.vfc-text [contenteditable="true"] { cursor: text !important; }
.vfc-dot, .vfc-ring { position: fixed; top: 0; left: 0; z-index: 100000; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
html.vfc-show .vfc-dot, html.vfc-show .vfc-ring { opacity: 1; }
html.vfc-text .vfc-dot, html.vfc-text .vfc-ring { opacity: 0; }
.vfc-dot::before { content: ""; position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange), 0 0 18px rgba(255, 45, 149, .6); }
.vfc-ring::before { content: ""; position: absolute; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; border: 1.5px solid var(--pink); box-shadow: 0 0 12px rgba(255, 45, 149, .45), inset 0 0 8px rgba(255, 45, 149, .2); transition: transform .18s ease, border-color .18s, background .18s; }
.vfc-ring.hover::before { transform: scale(1.5); border-color: var(--cyan); background: rgba(43, 228, 255, .08); box-shadow: 0 0 14px rgba(43, 228, 255, .5); }
.vfc-ring.down::before { transform: scale(.7); }
.vfc-ring.hover.down::before { transform: scale(1.2); }
@media (prefers-reduced-motion: reduce) { .vfc-ring::before { transition: none; } }

/* ═══ Centered navigation ═══ */
.nav { justify-content: center; gap: 18px; }
.nav-links { margin-left: 0; justify-content: center; }
.nav-right { margin-left: 0; }
@media (max-width: 900px) {
  .nav { justify-content: center; }
  .nav-links { align-items: center; text-align: center; }
  .nav-links a.active::after { left: 50%; transform: translateX(-50%); }
}

/* user menu: level + XP bar */
.drop-level { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.drop-level b { font: 700 15px var(--font-b); margin-right: 8px; }
.drop-level span { color: var(--muted); font-size: 14px; }
.xpbar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 7px; }
.xpbar i { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, #ff8a3d, var(--accent, #ff2d95)); }
.xpbar.big { height: 10px; }
.lvl { display: inline-block; vertical-align: middle; margin-left: 8px; font: 700 12px/1 var(--font-b); padding: 4px 7px; border-radius: 5px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font: 700 14px var(--font-b); }
.linkbtn:hover { color: #fff; }

/* ═══ Members directory ═══ */
.mtools { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 18px; }
.mtools-search { width: min(460px, 100%); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.mcard { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: center; transition: transform .15s, border-color .15s; }
.mcard:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .25); }
.mc-top { height: 78px; background: linear-gradient(120deg, #3a1758, #1d1233) center / cover no-repeat; }
.mc-av { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: -40px auto 0; border: 3px solid var(--panel); background: #1b1628; position: relative; }
.mc-body { padding: 10px 16px 18px; }
.mc-body h3 { font: 700 19px var(--font-b); }
.mc-body h3 .vtag { font-size: 11px; }
.mc-rank { color: var(--pink); font-size: 15px; font-weight: 700; margin-top: 2px; }
.mc-stats { display: flex; justify-content: center; gap: 18px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.mc-stats span { display: flex; flex-direction: column; }
.mc-stats b { color: #fff; font-size: 18px; }

/* ═══ Profile page ═══ */
#pf { --accent: #ff2d95; }
.pf-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pf-cover { position: relative; height: clamp(150px, 26vw, 280px); background: center / cover no-repeat; }
.pf-cover.empty-cover { background: radial-gradient(600px 220px at 70% 0, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), linear-gradient(120deg, #2a1245, #140d22); }
.pf-imgbtn { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 8px 12px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font: 700 14px var(--font-b); backdrop-filter: blur(6px); }
.pf-imgbtn svg { width: 18px; height: 18px; }
.pf-imgbtn:hover { background: rgba(0, 0, 0, .75); }
.pf-head { display: flex; align-items: flex-end; gap: 20px; padding: 0 26px; flex-wrap: wrap; }
.pf-avatar { position: relative; margin-top: -66px; flex: none; }
.pf-avatar img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 5px solid var(--panel); background: #1b1628; }
.pf-avatar .pf-imgbtn { right: 0; bottom: 6px; padding: 7px; border-radius: 50%; }
.pf-avatar .pf-imgbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pf-id { flex: 1 1 260px; padding-top: 12px; }
.pf-id h1 { font: 800 clamp(24px, 3.2vw, 32px) var(--font-b); }
.pf-sub { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--muted); margin-top: 4px; }
.pf-rank { color: var(--accent); font-weight: 700; }
.pf-actions { display: flex; gap: 10px; align-items: center; padding-bottom: 6px; }
.pf-stats { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 22px; border-top: 1px solid var(--line-soft); }
.pf-stats > div { padding: 16px 10px; text-align: center; border-right: 1px solid var(--line-soft); }
.pf-stats > div:last-child { border-right: 0; }
.pf-stats b { display: block; font: 700 20px var(--font-b); }
.pf-stats span { color: var(--muted); font-size: 14px; }
.pf-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.pf-side, .pf-main { display: grid; gap: 20px; min-width: 0; }
.pf-box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.pf-box h3 { font: 700 17px var(--font-b); letter-spacing: 0; text-transform: none; margin-bottom: 12px; }
.pf-bio { margin: 0; white-space: pre-wrap; word-break: break-word; }
.pf-facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: 16px; }
.pf-facts li { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pf-facts svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.pf-facts a { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ach { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 10px; background: rgba(255, 255, 255, .03); text-align: center; opacity: .35; filter: grayscale(1); }
.ach.on { opacity: 1; filter: none; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ach svg { width: 24px; height: 24px; color: var(--accent); }
.ach span { font-size: 11px; line-height: 1.2; color: var(--muted); }
.pf-visitors, .ac-visitors { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pf-visitors li, .ac-visitors li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pf-visitors a, .ac-visitors a { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; }
.pf-visitors img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.pf-visitors time, .ac-visitors time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.pf-level { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pf-lv-num { width: 86px; height: 86px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 3px solid var(--accent); }
.pf-lv-num small { font: 700 10px var(--font-b); letter-spacing: .14em; color: var(--muted); }
.pf-lv-num b { font: 800 30px/1 var(--font-b); }
.pf-lv-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pf-lv-top b { font-size: 19px; }
.wall-compose { display: grid; gap: 10px; margin-bottom: 18px; }
.wall-compose textarea { resize: vertical; min-height: 80px; }
.wall { display: grid; gap: 14px; }
.wp { border: 1px solid var(--line-soft); border-radius: 10px; padding: 16px 18px; background: rgba(255, 255, 255, .02); }
.wp-head { display: flex; align-items: center; gap: 11px; }
.wp-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.wp-head .nm { font: 700 17px var(--font-b); }
.wp-head .dt { display: block; color: var(--muted); font-size: 13px; }
.wp-head .vtag { font-size: 10px; }
.wp-text { margin: 10px 0 0; white-space: pre-wrap; word-break: break-word; }
.wp-actions { display: flex; gap: 16px; margin-top: 10px; }
.wp-replies { display: grid; gap: 10px; margin-top: 4px; }
.wp-replies:empty { display: none; }
.wp-reply { margin: 8px 0 0 22px; padding: 10px 14px; border-left: 3px solid var(--accent); background: rgba(255, 255, 255, .03); border-radius: 0 8px 8px 0; }
.wp-reply .wp-head img { width: 30px; height: 30px; }
.wp-reply .linkbtn { margin-top: 6px; }
.wp-replyform { display: flex; gap: 8px; margin: 10px 0 0 22px; }
.wp-replyform .input { flex: 1; }

/* ═══ My Library: account hub ═══ */
.ac-head { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ac-cover { height: 120px; background: linear-gradient(120deg, #2a1245, #140d22) center / cover no-repeat; }
.ac-row { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 0 24px 22px; }
.ac-av { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin-top: -46px; border: 4px solid var(--panel); background: #1b1628; }
.ac-row h2 { font: 800 26px var(--font-b); }
.ac-lv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px; }
.ac-lv .xpbar { width: 160px; margin: 0; }
.ac-lv span:not(.note) { color: var(--pink); font-weight: 700; }
.ac-tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 24px 0 6px; border-bottom: 1px solid var(--line); }
.ac-tabs button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 12px 16px; font: 700 16px var(--font-b); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ac-tabs button:hover { color: #fff; }
.ac-tabs button.on { color: #fff; border-bottom-color: var(--pink); }
.ac-pane { padding-top: 20px; }
.ac-panel { border-radius: 12px; }
.ac-panel h3 { font: 700 18px var(--font-b); letter-spacing: 0; text-transform: none; }
.ac-edit { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.ac-imgfield + .ac-imgfield { margin-top: 22px; }
.ac-prev { border: 1px dashed var(--line); background: #1b1628 center / cover no-repeat; }
.ac-prev-avatar { width: 110px; height: 110px; border-radius: 50%; }
.ac-prev-banner { width: 100%; aspect-ratio: 15 / 4; border-radius: 10px; }
.ac-field { margin-bottom: 16px; }
.ac-field textarea { resize: vertical; }
.ac-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ac-color { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.ac-check { display: flex; align-items: center; gap: 10px; margin: 8px 0; cursor: pointer; }
.ac-check input { width: 18px; height: 18px; accent-color: var(--pink); }
.ac-visitors li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.ac-visitors li:last-child { border-bottom: 0; }
.ac-visitors img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.ach-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ach-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; opacity: .45; }
.ach-row.on { opacity: 1; border-color: rgba(255, 45, 149, .35); }
.ach-row > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.ach-row .note { font-size: 14px; }
.ach-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 45, 149, .12); color: var(--pink); flex: none; }
.ach-ico svg { width: 22px; height: 22px; }
.ac-xp { padding-left: 18px; margin: 0; display: grid; gap: 6px; }
.ac-xp b { color: var(--pink); }

@media (max-width: 900px) {
  .pf-grid, .ac-edit { grid-template-columns: 1fr; }
  .pf-stats { grid-template-columns: repeat(3, 1fr); }
  .pf-stats > div:nth-child(3) { border-right: 0; }
  .pf-stats > div:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 560px) {
  .pf-head { justify-content: center; text-align: center; padding: 0 16px; }
  .pf-sub, .pf-actions { justify-content: center; }
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
  .pf-stats > div { border-right: 0; }
  .ac-2col { grid-template-columns: 1fr; }
  .ach-grid { grid-template-columns: repeat(3, 1fr); }
  .ac-row { justify-content: center; text-align: center; }
  .ac-lv { justify-content: center; }
}
.pf-grid { grid-template-columns: 330px minmax(0, 1fr); }
.pf-side > *, .pf-main > * { min-width: 0; }
.ach-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ach span { overflow-wrap: anywhere; }
@media (max-width: 900px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pf-cover > .pf-imgbtn { top: 12px; bottom: auto; } }

/* ═══ My products (owner-only box on profile) ═══ */
.pf-products { border-color: rgba(255, 45, 149, .35); scroll-margin-top: calc(var(--nav-h) + 16px); }
.pf-products h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pp-private { font: 700 11px var(--font-b); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.pp-list { display: grid; gap: 10px; }
.pp-item { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.pp-thumb { width: 54px; height: 54px; border-radius: 8px; background: linear-gradient(120deg, #3a1758, #1d1233) center / cover no-repeat; grid-row: span 2; }
.pp-info { display: flex; flex-direction: column; min-width: 0; }
.pp-info b { font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.pp-info .note { font-size: 13px; }
.pp-item .btn, .pp-soon { justify-self: start; }
.pp-item .btn svg { width: 16px; height: 16px; fill: none; }
.pp-soon { font-size: 13px; }
.pp-note { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--orange); background: rgba(255, 162, 58, .08); border-radius: 0 8px 8px 0; font-size: 15px; line-height: 1.45; }
.pp-note b { color: #fff; }
.pp-note a { color: var(--orange); font-weight: 700; white-space: nowrap; }
.pp-sub { font: 700 15px var(--font-b); margin: 18px 0 8px; }
.pp-pending { display: grid; gap: 8px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 8px; }
.pp-redeem { display: flex; gap: 8px; }
.pp-redeem .input { flex: 1; min-width: 0; }

/* XP guide under the level card */
.pf-level { flex-wrap: wrap; }
.pf-xpguide { flex-basis: 100%; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.pf-xpguide summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.pf-xpguide summary:hover { color: #fff; }
.pf-xpguide ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.pf-xpguide b { color: var(--accent); }

/* Edit profile window */
.pf-modal { position: fixed; inset: 0; z-index: 200; background: rgba(5, 3, 10, .75); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.pf-modal-card { width: min(980px, 100%); background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.pf-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pf-modal-head h2 { font: 800 24px var(--font-b); }
.pf-modal-head .linkbtn { font-size: 22px; }
.pf-modal .ac-edit { grid-template-columns: 300px minmax(0, 1fr); gap: 26px; }
@media (max-width: 760px) { .pf-modal .ac-edit { grid-template-columns: 1fr; } .pf-modal { place-items: start center; } }
