:root {
  --bg: #050505;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: #888888;
  --accent: #ffffff;
  --glow: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; min-height: 100%; cursor: auto; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

/* Custom cursor */
/* Исправление зависания курсора */
.cursor-dot, .cursor-ring {
  pointer-events: none !important;
}
.cursor-dot.cursor-visible,
.cursor-ring.cursor-visible {
  opacity: 1;
  visibility: visible;
}
html.cursor-loading .cursor-dot,
html.cursor-loading .cursor-ring,
html.cursor-loading .trail-particle {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Нативный курсор остаётся видимым; кастомный квадратный курсор убран, остаётся только шлейф */
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-ring.hover { width: 48px; height: 48px; border-color: #fff; }

/* osu trail particles */
.trail-particle {
  position: fixed;
  pointer-events: none;
  z-index: 2147483646;
  background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0));
  width: 25px; 
  height: 3px;
  border-radius: 50%;
  transform-origin: left center;
  animation: trailFade 0.6s ease-out forwards;
}

@keyframes trailFade {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.1); }
}

/* Nav */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5,5,5,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { padding: 14px 48px; background: rgba(5,5,5,0.95); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-brand img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,255,255,0.1);
}
.btn-primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.btn-primary:hover {
  background: transparent;
  color: #fff;
}

.lang-switch {
  position: relative;
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 4px;
  border: 1px solid var(--border);
  isolation: isolate;
}
.lang-switch-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(255,255,255,0.08);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), width 0.38s cubic-bezier(0.16, 1, 0.3, 1), height 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}
.lang-switch button {
  position: relative;
  z-index: 1;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.28s ease, transform 0.2s ease;
}
.lang-switch button:hover {
  color: #fff;
}
.lang-switch button.active {
  background: transparent;
  color: #000;
}
.lang-switch button:active {
  transform: scale(0.96);
}

body.lang-switching [data-i18n],
body.lang-switching [data-i18n-placeholder] {
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}
.lang-fade-out {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(3px);
}
.lang-fade-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.admin-user-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}
.user-banned-row {
  opacity: 0.72;
}
.user-banned-row td {
  color: #888;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: -30%;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 15%, transparent 72%);
  animation: heroGridDrift 40s linear infinite;
}

@keyframes heroGridDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(28px, 28px); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  transition: transform 0.5s ease-out;
}
.hero-orb--1 {
  width: 420px; height: 420px;
  top: 15%; left: 20%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  animation: orbFloat1 14s ease-in-out infinite;
}
.hero-orb--2 {
  width: 360px; height: 360px;
  bottom: 10%; right: 15%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: orbFloat2 16s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, -16px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 12px); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 25%, var(--bg) 88%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
}

.hero-logo-wrap {
  position: relative;
  margin-bottom: 32px;
}

.hero-logo-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
  animation: heroRingPulse 5s ease-in-out infinite;
}
.hero-logo-ring::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.2), transparent 35%);
  animation: heroRingSpin 10s linear infinite;
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

@keyframes heroRingPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes heroRingSpin { to { transform: rotate(360deg); } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease-out 0.1s both;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-title-line {
  display: block;
  animation: fadeUp 0.9s ease-out both;
}
.hero-title-line:first-child { animation-delay: 0.15s; }
.hero-title-accent {
  color: #999;
  animation-delay: 0.25s;
}

.hero-sub {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  animation: fadeUp 0.9s ease-out 0.35s both;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  animation: fadeUp 0.9s ease-out 0.45s both;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: fadeUp 1s ease-out 0.8s both;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.4));
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: #fff;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -50%; }
  100% { top: 150%; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero-scroll { display: none; }
}

/* Stats */
.stats {
  display: flex;
  gap: 64px;
  justify-content: center;
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(180deg, #fff, #666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

/* Sections */
.section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  flex: 1 0 auto;
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 64px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 14px; }

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.product-card:hover::before { transform: translateX(100%); }
.product-card:hover {
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-6px);
}
.product-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.product-price { font-size: 36px; font-weight: 800; margin: 16px 0; }
.product-price span { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.product-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }

/* Profile */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.info-card .value { font-size: 20px; font-weight: 600; }
.role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.role-admin { border-color: #fff; }
.role-member { border-color: #aaa; }
.role-tester { border-color: #888; }
.role-coder { border-color: #ccc; }
.role-beta { border-color: #666; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}
.form-input:focus { border-color: rgba(255,255,255,0.3); }

/* Auth modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}
.modal-overlay.open { display: flex; opacity: 1; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal h2 { font-size: 24px; margin-bottom: 24px; text-align: center; }
.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.modal-tabs button {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.modal-tabs button.active { background: #fff; color: #000; border-color: #fff; }

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.admin-table th { color: var(--text-muted); font-weight: 500; font-size: 12px; text-transform: uppercase; }

/* Footer */
.footer {
  padding: 48px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}

.page-header {
  padding: 140px 48px 60px;
  text-align: center;
  flex-shrink: 0;
  width: 100%;
}
.page-header h1 { font-size: 42px; font-weight: 800; }
.page-header p { color: var(--text-muted); margin-top: 12px; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .navbar { padding: 16px 20px; }
  .nav-links { display: none; }
  .section { padding: 60px 20px; }
  .stats { flex-direction: column; gap: 32px; }
  .profile-grid { grid-template-columns: 1fr; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* Logo */
.brand-logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.hero-logo-svg {
  width: 120px;
  height: 120px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 48px rgba(255,255,255,0.2));
  animation: logoReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-logo-svg .w-outer {
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: logoDraw 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.hero-logo-svg .logo-frame,
.hero-logo-svg .w-inner,
.hero-logo-svg .w-mark {
  opacity: 0;
  animation: logoFadeIn 0.5s ease 0.75s forwards;
}
@keyframes logoReveal {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes logoDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes logoFadeIn {
  to { opacity: 1; }
}
.hero-logo-svg .w-inner { animation-name: logoFadeInInner; }
@keyframes logoFadeInInner {
  to { opacity: 0.2; }
}
.hero-logo-svg .logo-frame path { animation: logoFadeInFrame; }
@keyframes logoFadeInFrame {
  to { opacity: 0.35; }
}
.hero-logo-svg .w-mark { animation-name: logoFadeInMark; }
@keyframes logoFadeInMark {
  to { opacity: 0.5; }
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #030303;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.preloader-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  width: 80px;
  height: 80px;
}
.preloader-logo .w-outer {
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: preloaderDraw 1.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes preloaderDraw {
  0% { stroke-dashoffset: 480; opacity: 0.3; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -480; opacity: 0.3; }
}
.preloader-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 9px;
  text-transform: uppercase;
  color: #444;
}
.preloader-bar {
  width: 140px;
  height: 1px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.25s linear;
}

/* Payment modal */
.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.pay-method-btn {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-size: 14px;
}
.pay-method-btn:hover, .pay-method-btn.active {
  border-color: #fff;
  background: rgba(255,255,255,0.05);
}
.requisites-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  font-size: 14px;
}
.requisites-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.requisites-row:last-child { border-bottom: none; }
.requisites-label { color: var(--text-muted); }
.requisites-value { font-weight: 600; text-align: right; word-break: break-all; }
.requisites-comment {
  margin-top: 16px;
  padding: 14px;
  background: #0a0a0a;
  border-radius: 8px;
  text-align: center;
  font-family: monospace;
  font-size: 16px;
  letter-spacing: 2px;
  border: 1px dashed rgba(255,255,255,0.2);
}
.copy-btn {
  margin-top: 12px;
  width: 100%;
}

/* UI modals & toasts */
.ui-overlay { z-index: 100001; }
.ui-modal { max-width: 440px; }
.ui-title { font-size: 20px; margin-bottom: 12px; text-align: center; }
.ui-message { color: var(--text-muted); font-size: 14px; text-align: center; margin-bottom: 20px; line-height: 1.5; white-space: pre-line; }
.ui-textarea { resize: vertical; min-height: 100px; font-family: monospace; font-size: 13px; margin-bottom: 16px; }
.ui-actions { display: flex; gap: 10px; margin-top: 8px; }
.ui-actions .btn { flex: 1; justify-content: center; }

.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100002;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-color: rgba(255,255,255,0.25); }
.toast-error { border-color: rgba(255,100,100,0.4); }

/* Admin panels */
.admin-panel {
  max-width: 1000px;
  margin: 0 auto 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.admin-panel-body:not(.collapsed) {
  z-index: 2;
}
.admin-panel-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.admin-panel-toggle:hover { background: rgba(255,255,255,0.03); }
.admin-panel-toggle .badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 8px;
}
.admin-panel-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
}
.admin-panel-body.collapsed { display: none; }

.keys-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  align-items: center;
}
.keys-tabs { display: flex; gap: 6px; }
.keys-tab {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}
.keys-tab.active { background: #fff; color: #000; border-color: #fff; }
.keys-search { flex: 1; min-width: 180px; }

.keys-table-wrap {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.keys-table-wrap .admin-table { font-size: 12px; }
.keys-table-wrap .admin-table td, .keys-table-wrap .admin-table th { padding: 8px 12px; }
.key-mono { font-family: monospace; font-size: 11px; word-break: break-all; }
.key-row { cursor: pointer; transition: background 0.2s; }
.key-row:hover { background: rgba(255,255,255,0.04); }

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.status-active { border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.status-used { border: 1px solid rgba(255,255,255,0.15); color: #888; }

.key-detail-grid {
  display: grid;
  gap: 10px;
  text-align: left;
  font-size: 13px;
}
.key-detail-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.key-detail-row span:first-child { color: var(--text-muted); }

.order-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

/* Orders panel (profile) */
.orders-panel {
  max-width: 560px;
  margin: 48px auto 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.orders-panel-head h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}
.orders-panel-desc {
  color: #666;
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.5;
}
.orders-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 16px;
}
.orders-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.orders-filter {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: 0.25s;
}
.orders-filter.active,
.orders-filter:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.orders-archive-toggle {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}
.orders-archive-count {
  display: inline-flex;
  min-width: 18px;
  justify-content: center;
  padding: 1px 6px;
  margin-left: 4px;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 11px;
}
.orders-list { display: flex; flex-direction: column; gap: 8px; }
.orders-empty {
  text-align: center;
  color: #666;
  font-size: 13px;
  padding: 20px 0;
}
.orders-archive {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.orders-archive-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.orders-archive-close {
  border: none;
  background: transparent;
  color: #888;
  font-size: 12px;
  cursor: pointer;
}
.order-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.order-item.open {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.order-item-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.order-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.order-item-id {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}
.order-item-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-item-price {
  font-size: 13px;
  color: #aaa;
  margin-left: auto;
  flex-shrink: 0;
}
.order-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.order-chevron {
  color: #666;
  font-size: 18px;
  transition: transform 0.25s;
  line-height: 1;
}
.order-item.open .order-chevron { transform: rotate(90deg); }
.order-item-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--border);
}
.order-detail-block { padding-top: 14px; }
.order-detail-hint {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 12px;
}
.order-detail-email,
.order-detail-date {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}
.order-detail-done {
  font-size: 13px;
  color: #aaa;
  margin-top: 10px;
}
.order-inline-timer { margin-top: 8px; }
.order-open-link {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}
.requisites-compact { margin-top: 0; font-size: 13px; }
.order-timer-mini {
  display: inline-block;
  margin-left: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.status-badge.status-pending { border-color: rgba(255,200,100,0.35); color: #dcb87a; }
.status-badge.status-checking { border-color: rgba(100,180,255,0.35); color: #8ec5ff; }
.status-rejected { border-color: rgba(255,100,100,0.35); color: #ff9a9a; }
.status-badge.status-wait { border-color: rgba(255,255,255,0.25); color: #ddd; }
.order-card.order-activated {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.06);
}
.order-card.activation-burst {
  animation: orderActivateBurst 0.9s ease;
}
.order-key {
  margin-top: 12px;
  padding: 12px 14px;
  background: #0a0a0a;
  border-radius: 8px;
  font-family: monospace;
  letter-spacing: 1px;
  word-break: break-all;
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}
.order-key.key-reveal {
  animation: keyReveal 0.7s ease;
}
.btn-activate-key.activating {
  pointer-events: none;
  opacity: 0.85;
  animation: keyActivatePulse 0.9s ease infinite;
}
.activation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.activation-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.activation-popup {
  text-align: center;
  padding: 36px 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0d0d0d;
  transform: scale(0.92);
  transition: transform 0.35s ease;
}
.activation-overlay.show .activation-popup {
  transform: scale(1);
}
.activation-popup-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  animation: activationCheck 0.6s ease 0.2s both;
}
.activation-popup-key {
  margin-top: 12px;
  font-family: monospace;
  letter-spacing: 1px;
  color: #fff;
  word-break: break-all;
}
@keyframes keyActivatePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25); }
  50% { box-shadow: 0 0 20px 4px rgba(255, 255, 255, 0.12); }
}
@keyframes keyReveal {
  from { opacity: 0; transform: translateY(8px) scale(0.96); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes orderActivateBurst {
  0% { transform: scale(1); }
  40% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
@keyframes activationCheck {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.pay-warning-box {
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 200, 100, 0.25);
  border-radius: 12px;
  background: rgba(255, 180, 50, 0.05);
  font-size: 13px;
  line-height: 1.55;
  color: #aaa;
}
.pay-warning-box strong { color: #ddd; }
.pay-warning-box a { color: #fff; }
.pay-penalty-check span { color: #a88; }

.pay-verify-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.pay-timer {
  text-align: center;
  margin: 20px 0;
}
.pay-timer-circle {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 16px;
}
.pay-timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.pay-timer-track {
  stroke: rgba(255, 255, 255, 0.08);
}
.pay-timer-progress {
  stroke: #fff;
  transition: stroke-dashoffset 0.35s ease;
}
.pay-timer.checking .pay-timer-progress {
  stroke: rgba(255, 255, 255, 0.85);
}
.pay-timer-digits {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1;
}
.pay-timer-sep {
  opacity: 0.45;
  margin: 0 1px;
  font-weight: 500;
}
.pay-timer-circle--status {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}
.pay-timer-circle--status.approved {
  border-color: #fff;
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.12);
}
.pay-timer-circle--status.rejected,
.pay-timer-circle--status.expired {
  border-color: rgba(255, 255, 255, 0.25);
}
.pay-timer-status-icon {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}
.order-inline-timer .pay-timer-circle {
  width: 108px;
  height: 108px;
  margin-bottom: 12px;
}
.order-inline-timer .pay-timer-digits {
  font-size: 22px;
}
.pay-timer-title {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}
.pay-status-msg {
  text-align: center;
  font-size: 14px;
  color: #aaa;
  line-height: 1.5;
  margin-top: 12px;
}
.pay-key-result {
  margin-top: 14px;
  padding: 12px;
  background: #0a0a0a;
  border-radius: 8px;
  font-family: monospace;
  letter-spacing: 1px;
  word-break: break-all;
  text-align: center;
  animation: keyReveal 0.7s ease;
}
.pay-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  font-size: 13px;
  color: #888;
  cursor: default;
}
.pay-confirm-check input { margin-top: 3px; accent-color: #fff; }
.support-layout {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
.support-ticket {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.support-ticket:hover { border-color: rgba(255,255,255,0.25); }
.support-chat {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.support-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.support-msg.user { align-self: flex-end; background: #1a1a1a; }
.support-msg.admin { align-self: flex-start; background: #111; border: 1px solid var(--border); }
.support-msg-meta { font-size: 11px; color: #666; margin-bottom: 4px; }
@keyframes timerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.08); }
  50% { box-shadow: 0 0 20px 2px rgba(255,255,255,0.06); }
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 9998;
  width: min(560px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.cookie-banner-logo {
  flex-shrink: 0;
  opacity: 0.9;
}
.cookie-banner-text {
  flex: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #aaa;
}
.cookie-banner-btn {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-banner-logo {
    margin: 0 auto;
  }
  .cookie-banner-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   ETHEREAL ANIME BACKGROUND THEME (v=anime3) — built around /assets/bg-hero.jpg
   ========================================================================== */
:root {
  --bg:#0b0a16;
  --bg-elevated:rgba(23,18,40,0.60);
  --bg-card:rgba(22,17,38,0.55);
  --border:rgba(180,150,255,0.18);
  --text:#f1ebff;
  --text-muted:#c3b6e6;
  --accent:#b18cff;
  --accent-2:#7cc4ff;
  --accent-3:#e2c9ff;
  --glow:rgba(150,120,255,0.35);
  --radius:18px;
}
body {
  color:var(--text);
  background-color:var(--bg);
}
/* fixed background image */
body::before {
  content:""; position:fixed; inset:0; z-index:-2;
  background:url('/static/assets/bg-hero.jpg') center center / cover no-repeat;
  filter:saturate(1.05);
}
/* dark overlay for readability: lighter at top (hero), darker lower */
body::after {
  content:""; position:fixed; inset:0; z-index:-1;
  background:linear-gradient(180deg,
    rgba(11,10,22,0.42) 0%,
    rgba(11,10,22,0.78) 44%,
    rgba(11,10,22,0.93) 100%);
}
/* let the hero show the artwork */
.hero, .hero-bg, .hero-vignette { background:transparent !important; }
.hero-title { text-shadow:0 2px 26px rgba(0,0,0,0.55); }
.hero-subtitle, .hero p { text-shadow:0 1px 14px rgba(0,0,0,0.5); }
.hero-orb--1 { background:radial-gradient(circle, rgba(177,140,255,0.42), transparent 70%); }
.hero-orb--2 { background:radial-gradient(circle, rgba(124,196,255,0.38), transparent 70%); }
.hero-logo-ring { border-color:rgba(177,140,255,0.6) !important; }
.hero-title-accent {
  background:linear-gradient(120deg,var(--accent-2),var(--accent) 60%,var(--accent-3));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:var(--accent);
}
/* buttons */
.btn-primary {
  background:linear-gradient(135deg,var(--accent),var(--accent-2)) !important;
  border:none !important; color:#fff !important;
  box-shadow:0 8px 26px var(--glow);
}
.btn-primary:hover { box-shadow:0 12px 38px rgba(150,120,255,0.5); transform:translateY(-2px); }
.btn:hover { border-color:var(--accent); }
/* navbar */
.navbar {
  background:rgba(11,10,22,0.55) !important;
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(16px);
}
/* cards as frosted glass so art shows through */
.product-card, .feature-card {
  background:var(--bg-card) !important;
  border:1px solid var(--border) !important;
  border-radius:var(--radius);
  backdrop-filter:blur(12px);
}
.product-card:hover, .feature-card:hover {
  border-color:rgba(177,140,255,0.55) !important;
  box-shadow:0 16px 46px rgba(150,120,255,0.22);
  transform:translateY(-4px);
}
/* prices */
.product-price {
  background:linear-gradient(135deg,var(--accent-2),var(--accent));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:var(--accent);
}
.product-price span { -webkit-text-fill-color:var(--text-muted); }
/* inputs */
.form-input:focus, .ui-input:focus, .ui-textarea:focus {
  border-color:var(--accent) !important;
  box-shadow:0 0 0 3px rgba(150,120,255,0.28) !important;
}
/* lang switch */
.lang-btn.active, .lang-switch .active {
  background:linear-gradient(135deg,var(--accent),var(--accent-2)) !important; color:#fff !important;
}
a { color:var(--accent-3); }
/* cursor */
.cursor-dot { background:var(--accent); }
.cursor-ring { border-color:var(--accent); }
.cursor-ring.hover { border-color:var(--accent-2); }
.trail-particle { background:var(--accent-2); }
::-webkit-scrollbar-thumb { background:linear-gradient(var(--accent),var(--accent-2)); border-radius:10px; }


/* ===== Rich site footer ===== */
.site-footer{background:linear-gradient(180deg,rgba(20,14,34,.6),rgba(12,8,20,.92));border-top:1px solid rgba(168,85,247,.18);margin-top:80px;padding:48px 24px 24px;color:#b8b2c8;font-size:14px;text-align:left;}
.site-footer-inner{max-width:1080px;margin:0 auto;display:grid;grid-template-columns:1.6fr 1fr 1fr 1.3fr;gap:32px;}
.site-footer-brand{display:flex;flex-direction:column;gap:18px;}
.site-footer-logo{display:flex;align-items:center;gap:12px;}
.site-footer-name{font-weight:800;font-size:18px;color:#fff;letter-spacing:.3px;}
.site-footer-tag{font-size:11px;letter-spacing:2px;color:#8b7fa8;}
.site-footer-socials{display:flex;gap:10px;flex-wrap:wrap;}
.site-footer-social{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:10px;text-decoration:none;background:rgba(168,85,247,.12);border:1px solid rgba(168,85,247,.25);color:#e6def7;font-weight:600;font-size:13px;transition:.2s;}
.site-footer-social:hover{background:rgba(168,85,247,.25);transform:translateY(-1px);}
.site-footer-col{display:flex;flex-direction:column;gap:10px;}
.site-footer-col h4{color:#fff;font-size:12px;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:4px;}
.site-footer-col a{color:#b8b2c8;text-decoration:none;transition:.15s;}
.site-footer-col a:hover{color:#d946ef;}
.site-footer-bottom{max-width:1080px;margin:32px auto 0;padding-top:20px;border-top:1px solid rgba(255,255,255,.06);display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:#7c748f;}
.site-footer-watermark a{color:#a855f7;text-decoration:none;font-weight:600;}
.site-footer-watermark a:hover{color:#d946ef;}
@media (max-width:820px){.site-footer-inner{grid-template-columns:1fr 1fr;gap:24px;}.site-footer-brand{grid-column:1 / -1;}.site-footer-bottom{flex-direction:column;text-align:center;}}
/* ===== Legal pages ===== */
.legal{max-width:860px;margin:0 auto;line-height:1.7;}
.legal h2{font-size:20px;color:#fff;margin:28px 0 10px;}
.legal p{color:#c4bdd4;margin:8px 0;}
.legal ul{margin:8px 0 8px 4px;padding-left:18px;color:#c4bdd4;}
.legal li{margin:6px 0;}
.legal .legal-updated{color:#8b7fa8;font-size:13px;margin-bottom:8px;}

/* ===== Cookie consent banner ===== */
.cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:10000;background:rgba(13,13,18,0.96);backdrop-filter:blur(12px);border-top:1px solid rgba(139,92,246,0.25);box-shadow:0 -10px 40px rgba(0,0,0,0.45);padding:18px 20px;display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;font-size:14px;color:#e7e2f5;animation:cookieIn .35s ease;}
.cookie-banner.hidden{display:none;}
.cookie-banner p{margin:0;max-width:620px;line-height:1.55;}
.cookie-banner a{color:#b794ff;text-decoration:underline;}
.cookie-actions{display:flex;gap:10px;flex-wrap:wrap;}
.cookie-actions .btn{padding:10px 20px;}
.cookie-btn-ghost{background:transparent;border:1px solid rgba(255,255,255,0.18);color:#cfc8e2;border-radius:10px;padding:10px 20px;font-weight:600;cursor:pointer;font-size:14px;transition:all .2s ease;}
.cookie-btn-ghost:hover{border-color:#b794ff;color:#fff;}
@keyframes cookieIn{from{transform:translateY(100%);opacity:0;}to{transform:translateY(0);opacity:1;}}
@media (max-width:640px){.cookie-banner{padding:14px;gap:12px;}.cookie-actions{width:100%;justify-content:center;}}
