/* ==========================================================
   BLOADY CLIENT — Black / Crimson UI
   ========================================================== */
:root {
  --bg: #050505;
  --bg-2: #09090a;
  --card: #0d0d0f;
  --card-2: #121215;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f3f3f4;
  --dim: #8d8d95;
  --dim-2: #5d5d64;
  --red: #e3122f;
  --red-2: #ff2d4a;
  --red-soft: rgba(227, 18, 47, 0.1);
  --red-glow: rgba(227, 18, 47, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  --display: 'Unbounded', 'Manrope', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #070707; }
::-webkit-scrollbar-thumb { background: #1d1d20; border-radius: 10px; border: 2px solid #070707; }
::-webkit-scrollbar-thumb:hover { background: #2a2a2e; }

/* ---------- Background layers ---------- */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .9; }
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
.container { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px;
  padding: 14px max(24px, calc((100% - 1240px) / 2));
  background: rgba(5, 5, 5, .72); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.header.scrolled { border-bottom-color: var(--line); background: rgba(5, 5, 5, .88); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: .12em; font-size: 16px; }
.logo img { width: 34px; height: 34px; filter: drop-shadow(0 0 12px rgba(227, 18, 47, .45)); transition: transform .5s var(--ease); }
.brand:hover .logo img { transform: rotate(-12deg) scale(1.08); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { position: relative; padding: 8px 14px; border-radius: 10px; color: var(--dim); font-weight: 600; font-size: 14px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav a.active { color: var(--text); }
.nav a.active::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 14px; height: 2px; border-radius: 2px; background: var(--red); transform: translateX(-50%); box-shadow: 0 0 10px var(--red); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; transition: border-color .2s; max-width: 240px; }
.user-chip:hover { border-color: var(--line-2); }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .ava { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  font-weight: 700; font-size: 14px; letter-spacing: .01em; white-space: nowrap;
  background: var(--red); color: #fff; overflow: hidden; isolation: isolate;
  box-shadow: 0 10px 30px -10px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .2s;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-2); box-shadow: none; color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); }
.btn.dark { background: #fff; color: #050505; box-shadow: none; }
.btn.small { padding: 9px 16px; font-size: 13px; border-radius: 10px; }
.btn.xs { padding: 7px 12px; font-size: 12px; border-radius: 9px; }
.btn.wide { width: 100%; }
.btn.danger { background: transparent; border-color: rgba(227, 18, 47, .35); color: var(--red-2); box-shadow: none; }
.btn.danger:hover { background: var(--red-soft); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.btn svg { width: 16px; height: 16px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--dim); font-weight: 600; font-size: 13px; cursor: pointer; transition: color .2s; }
.link-btn:hover { color: var(--text); }
.text-link { color: var(--dim); font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; transition: color .2s, gap .2s; }
.text-link:hover { color: var(--text); gap: 12px; }

/* ---------- Typography helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); box-shadow: 0 0 12px var(--red); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
.h-xl { font-size: clamp(42px, 6.2vw, 86px); font-weight: 800; letter-spacing: -.035em; }
.h-lg { font-size: clamp(30px, 3.6vw, 50px); }
.h-md { font-size: 22px; }
.accent { color: var(--red); }
.outline-text { -webkit-text-stroke: 1.2px rgba(255, 255, 255, .55); color: transparent; }
.muted { color: var(--dim); }
.lead { color: var(--dim); font-size: 17px; max-width: 560px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: 40px max(24px, calc((100% - 1240px) / 2)) 80px; overflow: hidden; }
.hero-copy { position: relative; z-index: 3; }
.hero-copy .h-xl { margin: 22px 0 22px; }
.hero-copy .h-xl .line { display: block; overflow: hidden; }
.hero-copy .h-xl .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 34px 0 40px; }
.hero-meta { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { font-family: var(--display); font-size: 26px; font-weight: 700; }
.hero-meta small { color: var(--dim); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hero-meta .sep { width: 1px; background: var(--line-2); }

.hero-stage { position: relative; height: min(640px, 72vh); perspective: 1200px; z-index: 2; }
.stage-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .25s ease-out; }
.stage-glow { position: absolute; left: 50%; top: 55%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(227, 18, 47, .22), transparent 62%); filter: blur(20px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: translate(-50%, -50%) scale(1.08); } }
.ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); transform-style: preserve-3d; }
.ring.r1 { width: 520px; height: 520px; margin: -260px; transform: rotateX(74deg); animation: spin 22s linear infinite; border-color: rgba(227, 18, 47, .35); }
.ring.r2 { width: 420px; height: 420px; margin: -210px; transform: rotateX(74deg) rotateY(12deg); animation: spin 30s linear infinite reverse; border-style: dashed; }
.ring.r3 { width: 620px; height: 620px; margin: -310px; transform: rotateX(74deg); animation: spin 40s linear infinite; }
.ring.r1::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px 4px var(--red-glow); }
.ring.r3::after { content: ''; position: absolute; bottom: -3px; left: 30%; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
@keyframes spin { to { transform: rotateX(74deg) rotateZ(360deg); } }
.r2 { animation-name: spin2 !important; }
@keyframes spin2 { to { transform: rotateX(74deg) rotateY(12deg) rotateZ(-360deg); } }
.hero-canvas { position: absolute; inset: 4% 6% 10%; width: 88%; height: 86%; cursor: grab; transition: opacity .6s; z-index: 2; }
.hero-canvas.grabbing, canvas.grabbing { cursor: grabbing; }
.hero-canvas.fade { opacity: 0; }
.pedestal { position: absolute; left: 50%; bottom: 7%; width: 300px; height: 70px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(227, 18, 47, .35), rgba(227, 18, 47, .05) 55%, transparent 70%); filter: blur(6px); }
.pedestal::before { content: ''; position: absolute; inset: 22px 40px; border-radius: 50%; border: 1px solid rgba(255, 60, 80, .45); box-shadow: 0 0 30px rgba(227, 18, 47, .4), inset 0 0 20px rgba(227, 18, 47, .3); }
.hero-emblem { position: absolute; width: 140px; right: 2%; top: 4%; opacity: .9; transform: translateZ(80px) rotate(8deg); animation: float 7s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(227, 18, 47, .35)); z-index: 3; }
@keyframes float { 50% { transform: translateZ(80px) translateY(-14px) rotate(4deg); } }
.stage-card { position: absolute; z-index: 4; padding: 12px 16px; border-radius: 14px; background: rgba(14, 14, 16, .72); border: 1px solid var(--line-2); backdrop-filter: blur(12px); display: flex; align-items: center; gap: 12px; font-size: 13px; box-shadow: 0 20px 50px -20px #000; }
.stage-card b { display: block; font-size: 14px; }
.stage-card small { color: var(--dim); font-size: 12px; }
.stage-card.c1 { left: 0; bottom: 18%; transform: translateZ(120px); animation: float2 8s ease-in-out infinite; }
.stage-card.c2 { right: 0; bottom: 30%; transform: translateZ(60px); animation: float2 9s ease-in-out infinite reverse; }
@keyframes float2 { 50% { translate: 0 -10px; } }
.stage-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); color: var(--red-2); }
.stage-card .ic svg { width: 18px; height: 18px; }
.stage-label { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); text-align: center; z-index: 4; white-space: nowrap; }
.stage-label small { color: var(--dim); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.stage-label b { display: block; font-family: var(--display); font-size: 18px; }
.stage-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.stage-dots button { width: 18px; height: 3px; border-radius: 3px; border: 0; background: rgba(255, 255, 255, .15); cursor: pointer; padding: 0; transition: background .3s, width .3s; }
.stage-dots button.on { width: 32px; background: var(--red); }
.drag-hint { position: absolute; top: 2%; left: 4%; z-index: 4; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim-2); display: flex; align-items: center; gap: 8px; }
.drag-hint svg { width: 16px; height: 16px; }

.grid-floor { position: absolute; left: -10%; right: -10%; bottom: -30%; height: 60%; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 60px 60px; transform: perspective(600px) rotateX(62deg); transform-origin: top;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 65%);
  animation: gridmove 6s linear infinite; }
@keyframes gridmove { to { background-position: 0 60px, 0 0; } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 22px; height: 36px; border: 1.5px solid var(--line-2); border-radius: 12px; z-index: 3; }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--red); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: rgba(255, 255, 255, .012);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .06em; color: rgba(255, 255, 255, .22); display: flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee-track span::after { content: ''; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 54px; flex-wrap: wrap; }
.section-head h2 { margin: 16px 0 14px; }
.section-head p { margin: 0; color: var(--dim); max-width: 520px; }
.center-head { text-align: center; margin: 0 auto 60px; max-width: 680px; }
.center-head h2 { margin: 16px 0 14px; }
.center-head p { color: var(--dim); margin: 0; }

/* ---------- Advantages (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; perspective: 1400px; }
.feat { grid-column: span 2; }
.feat.big { grid-column: span 4; }
.feat.tall { grid-row: span 2; }
.card {
  position: relative; border-radius: var(--radius); background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
}
.tilt { transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .3s; will-change: transform; }
.tilt:hover { border-color: var(--line-2); }
.spot::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 18, 47, .12), transparent 45%); }
.spot:hover::before { opacity: 1; }
.feat { padding: 30px; min-height: 260px; display: flex; flex-direction: column; }
.feat .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); margin-bottom: auto; transform: translateZ(40px); }
.feat .icon svg { width: 24px; height: 24px; stroke: #fff; }
.feat:hover .icon { border-color: rgba(227, 18, 47, .5); box-shadow: 0 0 24px -6px var(--red-glow); }
.feat:hover .icon svg { stroke: var(--red-2); }
.feat h3 { font-size: 20px; margin: 28px 0 10px; transform: translateZ(30px); }
.feat p { margin: 0; color: var(--dim); font-size: 14.5px; transform: translateZ(20px); max-width: 420px; }
.feat .num { position: absolute; top: 26px; right: 28px; font-family: var(--display); font-size: 12px; color: var(--dim-2); letter-spacing: .1em; }
/* FPS visual */
.fps-visual { position: absolute; right: 26px; bottom: 26px; left: 50%; height: 140px; display: flex; align-items: flex-end; gap: 6px; transform: translateZ(25px); }
.fps-visual i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .03)); height: var(--h); animation: bar 2.6s ease-in-out infinite; animation-delay: var(--dl); transform-origin: bottom; }
.fps-visual i.hot { background: linear-gradient(180deg, var(--red), rgba(227, 18, 47, .1)); }
@keyframes bar { 50% { transform: scaleY(.82); } }
.fps-badge { position: absolute; right: 26px; top: 70px; text-align: right; transform: translateZ(40px); }
.fps-badge b { font-family: var(--display); font-size: 48px; line-height: 1; }
.fps-badge small { display: block; color: var(--dim); font-size: 12px; letter-spacing: .14em; }
.feat.big { min-height: 320px; }
.feat.big h3, .feat.big p { max-width: 46%; }
/* HUD visual */
.hud-visual { position: relative; margin: 26px 0 6px; height: 150px; border-radius: 14px; border: 1px solid var(--line); background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 22px); transform: translateZ(30px); overflow: hidden; }
.hud-el { position: absolute; padding: 6px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, .6); border: 1px solid var(--line-2); font-family: ui-monospace, monospace; animation: hudmove 7s ease-in-out infinite; }
.hud-el.a { left: 12px; top: 14px; }
.hud-el.b { right: 14px; top: 46px; border-color: rgba(227, 18, 47, .5); color: var(--red-2); animation-delay: -2s; }
.hud-el.c { left: 40%; bottom: 14px; animation-delay: -4s; }
@keyframes hudmove { 33% { translate: 10px 6px; } 66% { translate: -6px -4px; } }
/* Shield visual */
.shield-visual { position: absolute; right: -20px; bottom: -30px; width: 200px; height: 200px; opacity: .9; transform: translateZ(10px); }
.shield-visual svg { width: 100%; height: 100%; }
.pulse-ring { transform-origin: center; transform-box: fill-box; animation: pulse 3s ease-out infinite; }
@keyframes pulse { from { transform: scale(.7); opacity: .8; } to { transform: scale(1.3); opacity: 0; } }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .012); }
.stat { padding: 34px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--display); font-size: 40px; font-weight: 700; display: block; line-height: 1.1; }
.stat b em { font-style: normal; color: var(--red); }
.stat span { color: var(--dim); font-size: 13.5px; }

/* ---------- Cosmetics ---------- */
.cos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; perspective: 1400px; }
.cos-card { display: flex; flex-direction: column; cursor: pointer; }
.cos-media { position: relative; aspect-ratio: 1 / .92; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(60% 55% at 50% 62%, rgba(227, 18, 47, .13), transparent 70%), radial-gradient(100% 70% at 50% 0%, rgba(255, 255, 255, .04), transparent 60%); }
.cos-media::after { content: ''; position: absolute; left: 50%; bottom: 12%; width: 58%; height: 16px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .8), transparent 70%); z-index: 0; transition: width .5s var(--ease), opacity .5s; }
.cos-media img { position: relative; z-index: 1; width: 78%; height: 78%; object-fit: contain; transform: translateZ(50px); transition: transform .6s var(--ease), filter .6s; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
.cos-card:hover .cos-media img { transform: translateZ(70px) translateY(-10px) scale(1.06) rotate(-2deg); filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .6)) drop-shadow(0 0 30px rgba(227, 18, 47, .18)); }
.cos-card:hover .cos-media::after { width: 44%; opacity: .7; }
.cos-tags { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; z-index: 2; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: rgba(0, 0, 0, .55); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }
.tag.red { border-color: rgba(227, 18, 47, .45); color: var(--red-2); }
.tag.owned { background: #fff; color: #000; border-color: #fff; }
.rarity { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.rarity::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.rarity.legendary { color: var(--red-2); }
.rarity.epic { color: #f3f3f4; }
.rarity.rare { color: #a5a5ad; }
.rarity.common { color: #6c6c74; }
.cos-body { padding: 18px 20px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cos-body h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.cos-body p { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.5; flex: 1; }
.cos-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }
.price { font-family: var(--display); font-weight: 700; font-size: 18px; }
.view3d { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(0, 0, 0, .6); border: 1px solid var(--line-2); opacity: 0; transform: translateY(6px); transition: .3s var(--ease); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.cos-card:hover .view3d { opacity: 1; transform: none; }

/* Shop toolbar */
.toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--dim); cursor: pointer; font-size: 13px; font-weight: 600; transition: .2s; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { background: #fff; color: #050505; border-color: #fff; }
.chip i { font-style: normal; opacity: .5; margin-left: 4px; }
.search { position: relative; }
.search input { width: 260px; padding: 11px 14px 11px 40px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); stroke: var(--dim); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; perspective: 1400px; }
.plan { padding: 34px 30px 30px; display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(227, 18, 47, .45); background: radial-gradient(120% 60% at 50% 0%, rgba(227, 18, 47, .12), transparent 60%), linear-gradient(180deg, var(--card-2), var(--card)); box-shadow: 0 30px 80px -40px rgba(227, 18, 47, .5); }
.plan.featured::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--red) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rotateBorder 5s linear infinite; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rotateBorder { to { --ang: 360deg; } }
.plan-top { display: flex; justify-content: space-between; align-items: center; }
.plan-name { font-family: var(--display); font-size: 13px; letter-spacing: .2em; color: var(--dim); }
.popular { padding: 5px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; background: var(--red); color: #fff; }
.plan-price { margin: 26px 0 4px; display: flex; align-items: baseline; gap: 10px; }
.plan-price b { font-family: var(--display); font-size: 46px; font-weight: 800; letter-spacing: -.03em; }
.plan-price small { color: var(--dim); }
.plan-desc { color: var(--dim); font-size: 14px; margin: 8px 0 24px; min-height: 44px; }
.plan ul { list-style: none; padding: 24px 0 0; margin: 0 0 30px; border-top: 1px solid var(--line); display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.plan li svg { width: 18px; height: 18px; flex: none; stroke: var(--red-2); }
.pay-note { text-align: center; color: var(--dim-2); font-size: 13px; margin-top: 30px; }

/* ---------- Steps / How ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 30px; }
.step .n { font-family: var(--display); font-size: 64px; font-weight: 800; line-height: 1; -webkit-text-stroke: 1px rgba(255, 255, 255, .18); color: transparent; transition: .4s; }
.step:hover .n { -webkit-text-stroke-color: var(--red); }
.step h3 { font-size: 18px; margin: 24px 0 10px; }
.step p { margin: 0; color: var(--dim); font-size: 14px; }

/* ---------- Server monitor ---------- */
.servers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.srv { padding: 20px 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.srv-mark { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); font-family: var(--display); font-size: 10px; font-weight: 800; letter-spacing: .02em; background: rgba(255, 255, 255, .02); }
.srv h4 { margin: 0; font-size: 15px; }
.srv small { color: var(--dim); font-size: 12.5px; display: block; }
.srv-host { font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--dim-2); cursor: pointer; }
.srv-host:hover { color: var(--text); }
.srv-stat { text-align: right; font-size: 12.5px; }
.srv-stat b { display: block; font-family: var(--display); font-size: 16px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3a3a40; margin-right: 6px; vertical-align: middle; }
.dot.on { background: #fff; box-shadow: 0 0 10px #fff; animation: blink 2s infinite; }
.dot.red { background: var(--red); box-shadow: 0 0 10px var(--red); }
@keyframes blink { 50% { opacity: .4; } }
.srv-bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.srv-bar i { display: block; height: 100%; background: linear-gradient(90deg, rgba(255, 255, 255, .4), #fff); width: var(--w); transition: width 1s var(--ease); }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .3s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--dim); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--red-2); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--dim); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 80px 60px; text-align: center; overflow: hidden; }
.cta::before { content: ''; position: absolute; left: 50%; top: 100%; width: 900px; height: 500px; transform: translate(-50%, -55%); background: radial-gradient(ellipse, rgba(227, 18, 47, .22), transparent 60%); z-index: -1; }
.cta h2 { margin: 18px 0 16px; }
.cta p { color: var(--dim); max-width: 520px; margin: 0 auto 32px; }
.cta-emblem { width: 90px; margin: 0 auto; filter: drop-shadow(0 10px 30px rgba(227, 18, 47, .5)); animation: spinY 9s linear infinite; }
@keyframes spinY { to { transform: rotateY(360deg); } }

/* ---------- Page hero ---------- */
.page-hero { padding: 90px 0 50px; position: relative; }
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); margin: 18px 0 16px; letter-spacing: -.03em; }
.page-hero p { color: var(--dim); max-width: 620px; margin: 0; font-size: 16px; }

/* ---------- Forms ---------- */
label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: #c9c9cf; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px; background: #0a0a0b; border: 1px solid var(--line-2);
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s; font-size: 14px; color: var(--text);
}
input::placeholder, textarea::placeholder { color: #4d4d54; }
input:focus, select:focus, textarea:focus { border-color: rgba(227, 18, 47, .6); box-shadow: 0 0 0 4px rgba(227, 18, 47, .1); background: #0c0c0d; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238d8d95' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
input[type='file'] { padding: 10px; font-size: 13px; cursor: pointer; }
input[type='file']::file-selector-button { margin-right: 12px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #151517; color: #fff; cursor: pointer; font-weight: 600; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- Auth ---------- */
.auth-page { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 70px); }
.auth-art { position: relative; padding: 80px max(40px, calc((100vw - 1240px) / 2)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; border-right: 1px solid var(--line); }
.auth-art h1 { font-size: clamp(36px, 4.4vw, 60px); margin: 20px 0 16px; }
.auth-art p { color: var(--dim); max-width: 420px; }
.auth-art .art-emblem { position: absolute; right: -60px; bottom: -40px; width: 420px; opacity: .14; transform: rotate(-12deg); }
.auth-showcase { display: flex; gap: 12px; margin-top: 40px; }
.auth-showcase img { width: 86px; height: 86px; object-fit: contain; padding: 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); animation: float2 6s ease-in-out infinite; }
.auth-showcase img:nth-child(2) { animation-delay: -2s; }
.auth-showcase img:nth-child(3) { animation-delay: -4s; }
.auth-box { display: flex; flex-direction: column; justify-content: center; padding: 60px; max-width: 520px; width: 100%; margin: 0 auto; }
.tabs { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); margin-bottom: 30px; align-self: flex-start; }
.tabs a, .tabs button { padding: 9px 18px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--dim); background: none; border: 0; cursor: pointer; transition: .2s; }
.tabs a.active, .tabs button.active { background: #fff; color: #050505; }
.auth-box h2 { font-size: 30px; margin-bottom: 8px; }
.auth-box form { display: grid; gap: 16px; margin-top: 28px; }
.form-note { color: var(--dim-2); font-size: 12.5px; margin-top: 18px; display: flex; gap: 8px; align-items: center; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 12px; font-weight: 700; padding: 6px; }

/* ---------- Account ---------- */
.acc-banner { position: relative; margin-top: 40px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); min-height: 240px;
  background: radial-gradient(70% 120% at 85% 120%, rgba(227, 18, 47, .25), transparent 60%), linear-gradient(135deg, #0f0f11, #070708); }
.acc-banner::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.acc-banner-items { position: absolute; right: 30px; bottom: -10px; display: flex; align-items: flex-end; gap: 0; pointer-events: none; }
.acc-banner-items img { width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .7)); animation: float2 7s ease-in-out infinite; margin-left: -30px; }
.acc-banner-items img:nth-child(2) { width: 210px; height: 210px; animation-delay: -2.5s; z-index: 2; }
.acc-banner-items img:nth-child(3) { animation-delay: -5s; }
.acc-id { position: relative; display: flex; align-items: center; gap: 24px; padding: 40px; z-index: 2; }
.acc-avatar { position: relative; width: 112px; height: 112px; border-radius: 26px; padding: 3px; background: linear-gradient(140deg, var(--red), #2a0008 60%, #111); flex: none; }
.acc-avatar img, .acc-avatar .ava-fallback { width: 100%; height: 100%; border-radius: 23px; object-fit: cover; background: #0b0b0c; image-rendering: pixelated; }
.ava-fallback { display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 38px; }
.acc-avatar .online { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid #0b0b0c; }
.acc-id h1 { font-size: clamp(28px, 3.4vw, 42px); }
.acc-badges { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; width: max-content; max-width: 100%; }
.badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: max-content; min-width: 0; max-width: none;
  height: auto; min-height: 0; aspect-ratio: auto;
  flex: 0 0 auto; padding: 9px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; box-sizing: border-box;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35);
}
.badge.plus { border-color: rgba(227, 18, 47, .5); color: #fff; background: linear-gradient(90deg, rgba(227, 18, 47, .3), rgba(227, 18, 47, .08)); }
.badge.admin { background: #fff; color: #000; border: 1px solid #fff; }
.badge svg { width: 13px; height: 13px; flex: none; }
.acc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.tile { padding: 22px; }
.tile small { color: var(--dim); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tile small svg { width: 14px; height: 14px; stroke: var(--dim); }
.tile b { display: block; font-family: var(--display); font-size: 22px; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .sub { color: var(--dim-2); font-size: 12px; margin-top: 4px; }
.tile.hl { border-color: rgba(227, 18, 47, .35); background: radial-gradient(100% 100% at 100% 0%, rgba(227, 18, 47, .14), transparent 60%), var(--card); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px !important; }
.acc-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-bottom: 100px; }
.panel { padding: 28px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.panel-head h2 { font-size: 20px; margin-top: 10px; }
.panel-head p { margin: 6px 0 0; color: var(--dim); font-size: 13.5px; }
.wardrobe { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.w-item { position: relative; border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(70% 60% at 50% 65%, rgba(227, 18, 47, .1), transparent 70%), #0a0a0b; padding: 12px; text-align: center; transition: .3s var(--ease); cursor: pointer; }
.w-item:hover { border-color: var(--line-2); transform: translateY(-3px); }
.w-item.equipped { border-color: rgba(227, 18, 47, .6); box-shadow: 0 0 0 1px rgba(227, 18, 47, .3), 0 20px 40px -20px rgba(227, 18, 47, .5); }
.w-item img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .6)); transition: transform .4s var(--ease); }
.w-item:hover img { transform: scale(1.06) translateY(-4px); }
.w-item b { display: block; font-size: 12.5px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-item small { color: var(--dim); font-size: 11px; }
.w-item .eq { position: absolute; top: 8px; right: 8px; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; padding: 3px 7px; border-radius: 6px; background: var(--red); color: #fff; }
.empty { padding: 40px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--dim); }
.empty img { width: 110px; margin: 0 auto 12px; opacity: .5; filter: grayscale(1); }
.preview-3d { position: relative; aspect-ratio: 1 / .8; border-radius: 16px; background: radial-gradient(60% 50% at 50% 70%, rgba(227, 18, 47, .18), transparent 70%), #08080a; border: 1px solid var(--line); overflow: hidden; margin-bottom: 16px; }
.preview-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.preview-3d .p-label { position: absolute; left: 16px; bottom: 14px; z-index: 2; }
.preview-3d .p-label b { display: block; font-family: var(--display); font-size: 15px; }
.preview-3d .p-label small { color: var(--dim); font-size: 12px; }
.preview-3d .p-hint { position: absolute; right: 14px; top: 12px; font-size: 10.5px; letter-spacing: .14em; color: var(--dim-2); text-transform: uppercase; }
.key-form { display: flex; gap: 10px; }
.key-form input { font-family: ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.info-list { display: grid; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--dim); }
.info-row b { font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.side-stack { display: grid; gap: 18px; align-content: start; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick a, .quick button { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #0a0a0b; font-weight: 600; font-size: 13px; cursor: pointer; transition: .2s; text-align: left; }
.quick a:hover, .quick button:hover { border-color: var(--line-2); background: #0f0f11; }
.quick svg { width: 16px; height: 16px; stroke: var(--dim); flex: none; }
.quick .danger { color: var(--red-2); }
.quick .danger svg { stroke: var(--red-2); }
.progress { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #7a0718, var(--red)); }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 40px 0 100px; }
.admin-side { position: sticky; top: 90px; align-self: start; padding: 18px; display: grid; gap: 4px; }
.admin-side .who { display: flex; gap: 12px; align-items: center; padding: 6px 8px 18px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.admin-side .who img { width: 36px; }
.admin-side .who b { display: block; font-size: 14px; }
.admin-side .who small { color: var(--dim); font-size: 11.5px; }
.admin-side button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; border: 0; background: none; color: var(--dim); cursor: pointer; font-weight: 600; font-size: 14px; text-align: left; transition: .2s; }
.admin-side button svg { width: 17px; height: 17px; stroke: currentColor; }
.admin-side button:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.admin-side button.on { background: rgba(227, 18, 47, .1); color: #fff; box-shadow: inset 2px 0 0 var(--red); }
.admin-side button .cnt { margin-left: auto; font-size: 11px; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .06); }
.admin-main { min-width: 0; display: grid; gap: 18px; align-content: start; }
.admin-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.admin-title h1 { font-size: 34px; margin-top: 12px; }
.admin-title p { color: var(--dim); margin: 8px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 22px; }
.kpi small { color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kpi b { display: block; font-family: var(--display); font-size: 32px; margin-top: 8px; }
.kpi .trend { font-size: 12px; color: var(--dim); }
.kpi .trend em { font-style: normal; color: #fff; }
.kpi svg.spark { width: 100%; height: 40px; margin-top: 10px; }
.admin-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.a-list { display: grid; gap: 8px; }
.a-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; border: 1px solid var(--line); background: #0a0a0b; transition: border-color .2s; }
.a-row:hover { border-color: var(--line-2); }
.a-thumb { width: 64px; height: 64px; border-radius: 11px; object-fit: contain; background: radial-gradient(circle at 50% 65%, rgba(227, 18, 47, .15), transparent 70%), #060607; padding: 4px; }
.a-meta b { display: block; font-size: 14px; }
.a-meta span { color: var(--dim); font-size: 12.5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.a-ctrls { display: flex; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--dim); cursor: pointer; transition: .2s; }
.icon-btn:hover { color: #fff; border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.icon-btn.del:hover { color: var(--red-2); border-color: rgba(227, 18, 47, .4); background: var(--red-soft); }
.icon-btn svg { width: 15px; height: 15px; stroke: currentColor; }
.img-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.img-picker button { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: #0a0a0b; padding: 4px; cursor: pointer; transition: .2s; }
.img-picker button:hover { border-color: var(--line-2); }
.img-picker button.on { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 18, 47, .15); }
.img-picker img { width: 100%; height: 100%; object-fit: contain; }
.live-preview { max-width: 300px; margin: 0 auto; pointer-events: none; }
.key-out { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 12px; border: 1px dashed rgba(227, 18, 47, .45); background: rgba(227, 18, 47, .05); font-family: ui-monospace, monospace; font-size: 15px; letter-spacing: .05em; margin-top: 16px; }
.key-out span { flex: 1; overflow-wrap: anywhere; }
.key-hist { display: grid; gap: 6px; margin-top: 16px; max-height: 320px; overflow: auto; }
.key-hist div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #0a0a0b; border: 1px solid var(--line); font-size: 12.5px; }
.key-hist code { font-family: ui-monospace, monospace; color: #ddd; }
.key-hist small { color: var(--dim); }
.table-wrap { overflow: auto; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 14px 16px; background: #0a0a0b; border-bottom: 1px solid var(--line); }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
.u-cell { display: flex; align-items: center; gap: 10px; }
.u-cell .ava { width: 30px; height: 30px; border-radius: 8px; }
.role { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-2); }
.role.admin { background: #fff; color: #000; border-color: #fff; }
.activity { display: grid; gap: 2px; }
.activity div { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.activity div:last-child { border-bottom: 0; }
.activity time { margin-left: auto; color: var(--dim-2); font-size: 12px; white-space: nowrap; }

/* ---------- Download ---------- */
.dl-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; overflow: hidden; margin-bottom: 30px; }
.dl-info { padding: 46px; }
.dl-info h2 { font-size: 32px; margin: 16px 0 12px; }
.dl-info p { color: var(--dim); }
.dl-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0 30px; }
.dl-specs div { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #0a0a0b; }
.dl-specs small { display: block; color: var(--dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.dl-specs b { font-size: 14px; }
.dl-visual { position: relative; border-left: 1px solid var(--line); background: radial-gradient(60% 60% at 50% 55%, rgba(227, 18, 47, .2), transparent 70%); display: grid; place-items: center; min-height: 380px; perspective: 900px; }
.dl-visual img { width: 60%; animation: spinY 10s linear infinite; filter: drop-shadow(0 20px 40px rgba(227, 18, 47, .4)); }
.req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 100px; }

/* ---------- Modal / Toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .72); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: min(920px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 22px; background: #0b0b0c; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -20px #000; animation: pop .4s var(--ease); position: relative; }
.modal.small { width: min(440px, 100%); padding: 30px; }
@keyframes pop { from { transform: translateY(20px) scale(.97); opacity: 0; } }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 5; }
.item-modal { display: grid; grid-template-columns: 1.1fr 1fr; }
.item-modal .stage { position: relative; min-height: 460px; background: radial-gradient(60% 50% at 50% 65%, rgba(227, 18, 47, .2), transparent 70%), #070708; border-right: 1px solid var(--line); }
.item-modal .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.item-modal .stage img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; }
.item-modal .stage .pedestal { bottom: 8%; width: 260px; }
.item-modal .info { padding: 40px 34px; display: flex; flex-direction: column; gap: 14px; }
.item-modal .info h2 { font-size: 28px; }
.item-modal .info p { color: var(--dim); margin: 0; }
.modal.small h3 { font-size: 20px; margin-bottom: 10px; }
.modal.small p { color: var(--dim); margin: 0 0 24px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 380px; padding: 14px 18px; border-radius: 14px; background: rgba(16, 16, 18, .92); backdrop-filter: blur(12px); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -10px #000; font-size: 14px; animation: toastIn .45s var(--ease); }
.toast.out { animation: toastOut .35s ease forwards; }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; box-shadow: 0 0 10px #fff; }
.toast.error i { background: var(--red); box-shadow: 0 0 10px var(--red); }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } }
@keyframes toastOut { to { transform: translateX(30px); opacity: 0; } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: auto; padding: 60px 0 30px; position: relative; z-index: 2; background: rgba(5, 5, 5, .7); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot p { color: var(--dim); font-size: 13.5px; max-width: 300px; }
.foot h5 { margin: 0 0 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim-2); }
.foot a { display: block; color: var(--dim); font-size: 14px; padding: 4px 0; transition: color .2s; }
.foot a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim-2); font-size: 12.5px; flex-wrap: wrap; }
.foot-word { font-family: var(--display); font-weight: 800; font-size: clamp(60px, 15vw, 220px); letter-spacing: -.04em; line-height: .8; text-align: center; margin-top: 40px; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .06); user-select: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero-stage { height: 520px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feat, .feat.big { grid-column: span 2; }
  .feat.tall { grid-row: auto; }
  .plans, .steps, .servers { grid-template-columns: 1fr; }
  .stats, .acc-tiles, .kpis { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .acc-layout, .admin-grid, .item-modal, .dl-card { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; grid-auto-flow: column; overflow-x: auto; }
  .admin-side .who { display: none; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .acc-banner-items { opacity: .35; }
  .foot { grid-template-columns: 1fr 1fr; }
  .req { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 14px 20px 20px; background: rgba(5, 5, 5, .97); border-bottom: 1px solid var(--line); margin: 0; }
  .nav.open { display: flex; }
  .burger { display: block; }
  .header-actions .btn, .user-chip span { display: none; }
  .header-actions { margin-left: 0; }
  .user-chip { padding: 4px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .search input { width: 100%; }
  .search { width: 100%; }
  .section { padding: 80px 0; }
  .cta { padding: 60px 24px; }
  .dl-specs { grid-template-columns: 1fr; }
  .acc-id { flex-direction: column; align-items: flex-start; padding: 28px; }
  .img-picker { grid-template-columns: repeat(4, 1fr); }
  .feat.big h3, .feat.big p { max-width: none; }
  .fps-visual { position: relative; left: auto; right: auto; bottom: auto; height: 90px; margin-top: 24px; order: 3; }
  .fps-badge { top: 26px; right: 70px; }
  .fps-badge b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.acc-id > div:not(.acc-avatar),
.acc-badges {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.acc-badges .badge.admin {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  flex: 0 0 auto !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: max-content !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  background: #fff !important;
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid #fff !important;
}

