/* ===== Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body, h1, h2, h3, p, a, span, button, li, ul, nav, header, section, div, input, label, table, td, th {
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
}
html { overflow-x: hidden; scroll-behavior: smooth; }

:root {
  --accent: #9886e5;
  --accent-rgb: 152, 134, 229;
  --accent-contrast: #101010;
  --grad-a-rgb: 152, 134, 229;
  --grad-b-rgb: 80, 200, 255;
}
body[data-product-theme="tonkeeper"] {
  --accent: #0098EA; --accent-rgb: 0, 152, 234; --accent-contrast: #ffffff;
  --grad-a-rgb: 0, 152, 234; --grad-b-rgb: 69, 211, 255;
}
body[data-product-theme="telegram"] {
  --accent: #2AABEE; --accent-rgb: 42, 171, 238; --accent-contrast: #ffffff;
  --grad-a-rgb: 42, 171, 238; --grad-b-rgb: 0, 136, 204;
}
body[data-product-theme="paypal"] {
  --accent: #0070e0; --accent-rgb: 0, 112, 224; --accent-contrast: #ffffff;
  --grad-a-rgb: 0, 112, 224; --grad-b-rgb: 92, 179, 255;
}
body[data-product-theme="coinbase"] {
  --accent: #1652F0; --accent-rgb: 22, 82, 240; --accent-contrast: #ffffff;
  --grad-a-rgb: 22, 82, 240; --grad-b-rgb: 80, 130, 255;
}
body[data-product-theme="phantom"] {
  --accent: #AB9FF2; --accent-rgb: 171, 159, 242; --accent-contrast: #101010;
  --grad-a-rgb: 171, 159, 242; --grad-b-rgb: 220, 200, 255;
}

body {
  background-color: #0a0a0a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  overflow-x: hidden;
  position: relative;
  color: #ffffff;
}
body::before {
  content: '';
  position: fixed;
  inset: -18%;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 18% 12%, rgba(var(--grad-a-rgb), 0.34) 0%, rgba(var(--grad-a-rgb), 0) 62%),
    radial-gradient(55% 55% at 86% 22%, rgba(var(--grad-b-rgb), 0.28) 0%, rgba(var(--grad-b-rgb), 0) 65%),
    radial-gradient(48% 55% at 55% 92%, rgba(var(--grad-a-rgb), 0.18) 0%, rgba(var(--grad-a-rgb), 0) 70%),
    radial-gradient(40% 40% at 40% 55%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
  transform: translateZ(0);
  transition: background 0.6s ease;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(120% 90% at 50% 20%, rgba(10,10,10,0) 0%, rgba(10,10,10,0.55) 72%, rgba(10,10,10,0.85) 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ===== Floating Header ===== */
.header {
  background-color: rgba(16, 16, 16, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 14px;
  border: 1px solid #222222;
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1320px;
  max-width: 1060px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img {
  width: 37px; height: 37px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(255,255,255,0.6) 200%);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-contrast);
  font-weight: 800;
  font-size: 18px;
}
.logo-text { color: #ffffff; font-size: 19px; font-weight: 700; }
.logo-text span { color: var(--accent); }

.nav { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex: 1; min-width: 0; }
.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-actions { display: flex; gap: 8px; align-items: center; padding-left: 6px; border-left: 1px solid rgba(255,255,255,0.08); }
.nav-link {
  color: #cfcfcf;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.nav-link.danger {
  color: #ff8aa0;
  background: rgba(255, 80, 100, 0.08);
  border-color: rgba(255, 80, 100, 0.15);
}
.nav-link.danger:hover {
  color: #ffb6c2;
  background: rgba(255, 80, 100, 0.18);
  border-color: rgba(255, 80, 100, 0.3);
}
.nav-link .cart-dot {
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
}
.cta-btn {
  background-color: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-btn:hover { box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.35); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 5px;
}
.mobile-menu-btn svg { width: 24px; height: 24px; }

/* Hide low-priority links earlier so the bar doesn't overflow */
@media (max-width: 1180px) {
  .nav-secondary { display: none; }
}

/* Drop labels next, leaving only icons */
@media (max-width: 1024px) {
  .nav-link { padding: 8px 10px; }
  .nav-text { display: none; }
  .nav-balance { padding: 8px 12px; }
  .nav-balance .nav-text { display: inline; font-size: 12px; }
  .cta-btn { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 820px) {
  .header { width: calc(100% - 32px); padding: 10px 14px; }
  .logo-img { width: 32px; height: 32px; font-size: 15px; }
  .logo-text { font-size: 16px; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .mobile-menu-btn { display: block; }
  .cta-btn { padding: 8px 12px; }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background-color: #0a0a0a;
  z-index: 998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: #a0a0a0;
  cursor: pointer; padding: 4px;
}
.mobile-nav-close:hover { color: #ffffff; }
.mobile-nav a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  padding: 14px 32px;
  width: 80%;
  text-align: center;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}
.mobile-nav a:hover { color: #ffffff; background-color: #1a1a1a; }

/* ===== Glow blobs ===== */
.hero-glow-left, .hero-glow-right {
  position: absolute;
  top: 0;
  width: 500px; height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
}
.hero-glow-left { left: -150px; background: radial-gradient(circle, rgba(var(--accent-rgb),0.30) 0%, transparent 80%); }
.hero-glow-right { right: -150px; background: radial-gradient(circle, rgba(var(--accent-rgb),0.30) 0%, transparent 80%); }

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  max-width: 960px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 140px;
  padding-bottom: 60px;
  gap: 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-gradient {
  background: linear-gradient(90deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 19px;
  font-weight: 500;
  color: #bebebe;
  max-width: 480px;
  line-height: 1.6;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-mockup {
  margin-top: 8px;
  width: 100%;
  max-width: 480px;
  position: relative;
}
.mockup-img {
  width: 100%; height: auto;
  display: block;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0c0c0c;
  filter: drop-shadow(0 40px 80px rgba(var(--accent-rgb), 0.25));
  transition: opacity 0.3s ease, filter 0.3s ease;
  animation: mockup-bounce 4.5s ease-in-out infinite;
}
.mockup-img.fade { opacity: 0; }
@keyframes mockup-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .mockup-img { animation: none; } }

/* ===== Buttons ===== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.btn-primary { background-color: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.35); transform: translateY(-1px); }
.btn-secondary {
  background-color: #1e1e1e;
  color: #cfcfcf;
  border: 1px solid #2a2a2a;
}
.btn-secondary:hover { color: #ffffff; border-color: var(--accent); }
.btn-full { width: 100%; justify-content: center; }
.btn-danger { background-color: rgba(255, 80, 100, 0.12); color: #ff8aa0; border: 1px solid rgba(255, 80, 100, 0.25); }
.btn-danger:hover { background-color: rgba(255, 80, 100, 0.2); color: #ffd1d8; }

@media (max-width: 768px) {
  .hero { padding-top: 96px; gap: 18px; }
  .hero-sub { font-size: 16px; max-width: 90%; }
  .hero-btns { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin: 0 auto; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .hero-mockup { max-width: 360px; }
}

/* ===== Sections ===== */
.section {
  width: 100%;
  max-width: 1060px;
  padding: 60px 24px;
  text-align: center;
  margin: 0 auto;
}
.section.narrow { max-width: 640px; }
.section.wide { max-width: 1200px; }
.section-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.section-sub { color: #888; font-size: 15px; margin: -22px auto 32px; max-width: 540px; line-height: 1.6; }

/* ===== Features grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  width: 100%;
  margin-top: 24px;
}
.feature-card {
  background-color: transparent;
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  padding: 40px 36px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
  height: 100%;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.feature-icon { font-size: 24px; color: var(--accent); margin-bottom: 16px; display: block; }
.feature-title { font-size: 17px; font-weight: 600; color: #ffffff; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: #6a6a6a; line-height: 1.7; font-weight: 600; }

@media (max-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }

/* ===== How it works ===== */
.steps-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 24px;
}
.step-item {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 16px;
  position: relative;
  padding: 12px 0;
  width: 100%;
  max-width: 400px;
}
.step-number {
  width: 36px; height: 36px; min-width: 36px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--accent);
  position: relative; z-index: 2;
}
.step-item:not(:last-child) .step-number::after {
  content: '';
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: -30px;
  width: 2px; height: 30px;
  background: linear-gradient(to bottom, var(--accent) 0%, transparent 100%);
  opacity: 0.4;
}
.step-content { padding-top: 6px; }
.step-title { font-size: 16px; font-weight: 600; color: #ffffff; margin-bottom: 6px; }
.step-desc { font-size: 13px; color: #888888; line-height: 1.5; font-weight: 500; }

/* ===== Pricing / Showcase ===== */
.pricing-product-switch {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border: 1px solid #252525;
  border-radius: 12px;
  background: #111111;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.pricing-product-btn {
  border: 1px solid #2a2a2a;
  background: transparent;
  color: #9a9a9a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.pricing-product-btn.active {
  color: #ffffff;
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.18);
}

/* ===== Showcase: media gallery + buy panel ===== */
.showcase-wrap { margin: 36px auto 0; width: 100%; max-width: 1060px; }
.showcase-card {
  display: none;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
}
.showcase-card.active { display: grid; }
@media (max-width: 900px) { .showcase-card { grid-template-columns: 1fr; gap: 20px; } }

.showcase-gallery { display: flex; flex-direction: column; gap: 12px; }
.showcase-main {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
}
.showcase-main img,
.showcase-main video {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(var(--accent-rgb), 0.25));
  border-radius: 14px;
  background: transparent;
}
.showcase-main .zoom-hint {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.showcase-main:hover .zoom-hint { opacity: 1; }

.showcase-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
}
.showcase-thumbs::-webkit-scrollbar { height: 8px; }
.showcase-thumbs::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }
.showcase-thumb {
  position: relative;
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  background: rgba(255,255,255,0.03);
  border: 2px solid #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, transform 0.2s;
}
.showcase-thumb:hover { transform: translateY(-2px); }
.showcase-thumb.active { border-color: var(--accent); }
.showcase-thumb img,
.showcase-thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.showcase-thumb .video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.5));
  color: #fff;
  font-size: 22px;
  pointer-events: none;
}
.showcase-thumb .video-tag {
  position: absolute;
  bottom: 4px; left: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
}

/* Right info panel */
.showcase-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  padding: 22px;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.showcase-label {
  color: var(--accent);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 4px;
}
.showcase-title { color: #fff; font-size: 22px; line-height: 1.2; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.showcase-desc { color: #9a9a9a; font-size: 13px; line-height: 1.55; margin: 0; }
.showcase-platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.showcase-platforms .platform-pill { font-size: 10px; padding: 4px 10px; }
.showcase-platforms .platform-pill.disabled {
  opacity: 0.35;
  background: transparent;
  border-style: dashed;
}
.showcase-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #1e1e1e;
  flex-wrap: wrap;
}
.showcase-price {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.showcase-price-each { color: #777; font-size: 12px; white-space: nowrap; }
.showcase-stock {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #45e0a1;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.showcase-stock::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #45e0a1;
  box-shadow: 0 0 8px #45e0a1;
}
.showcase-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.showcase-actions .btn-primary,
.showcase-actions .btn-secondary {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  padding: 12px 16px;
  font-size: 14px;
}
.showcase-owned-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(69,224,161,0.12);
  border: 1px solid rgba(69,224,161,0.3);
  color: #45e0a1;
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 768px) {
  .showcase-main { min-height: 280px; }
  .showcase-main img, .showcase-main video { max-height: 380px; }
  .showcase-info { position: static; }
}

/* ===== Before / After comparison slider ===== */
.compare-slider {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  user-select: none;
  border-radius: 14px;
  overflow: hidden;
  cursor: ew-resize;
  filter: drop-shadow(0 30px 60px rgba(var(--accent-rgb), 0.25));
  --cs-pos: 50%;
}
.compare-slider .compare-bg,
.compare-slider .compare-fg {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.compare-slider .compare-bg { position: relative; }
.compare-slider .compare-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: inset(0 calc(100% - var(--cs-pos)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--cs-pos)) 0 0);
}
.compare-handle {
  position: absolute;
  top: 0;
  left: var(--cs-pos);
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: rgba(255,255,255,0.85);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}
.compare-knob {
  position: absolute;
  top: 50%;
  left: var(--cs-pos);
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  font-size: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  cursor: ew-resize;
  border: 3px solid var(--accent);
}
.compare-label {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 999px;
  pointer-events: none;
  text-transform: uppercase;
}
.compare-label.before { left: 12px; }
.compare-label.after { right: 12px; }

/* ===== Crypto payment ===== */
.nav-balance {
  color: #45e0a1 !important;
  background: rgba(69, 224, 161, 0.08) !important;
  border-color: rgba(69, 224, 161, 0.2) !important;
}
.nav-balance:hover {
  background: rgba(69, 224, 161, 0.18) !important;
  border-color: rgba(69, 224, 161, 0.35) !important;
}

.currency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.currency-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: rgba(255,255,255,0.025);
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.currency-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}
.currency-card.selected {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.25);
}
.currency-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.currency-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
}
.currency-name {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.currency-net {
  color: #888;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.currency-rate {
  color: #cfcfcf;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}
.currency-rate.warn {
  color: #ffb86b;
  font-family: inherit;
  font-weight: 600;
}
.currency-card.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.5);
}
.currency-card.disabled:hover {
  border-color: #1e1e1e;
  transform: none;
}

/* Payment screen layout */
.payment-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  margin-top: 12px;
}
@media (max-width: 760px) {
  .payment-grid { grid-template-columns: 1fr; }
}

.payment-qr-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid #1e1e1e;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  height: fit-content;
}
.payment-qr {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-qr img:first-child {
  width: 240px;
  height: 240px;
  display: block;
}
.payment-qr-icon {
  position: absolute;
  width: 54px;
  height: 54px;
  background: #fff;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px #ddd;
  padding: 4px;
  box-sizing: border-box;
}
.payment-qr-help {
  color: #888;
  font-size: 12px;
  text-align: center;
  max-width: 250px;
  line-height: 1.5;
}
.payment-timer {
  margin-top: 4px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 12px;
  color: #cfcfcf;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.payment-timer.expired {
  color: #ff8aa0;
  background: rgba(255,80,100,0.08);
  border-color: rgba(255,80,100,0.2);
}

.payment-fields-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid #1e1e1e;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.payment-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #1e1e1e;
  background: rgba(255,255,255,0.025);
}
.payment-status .status-title {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.payment-status .status-sub {
  color: #888;
  font-size: 12px;
  margin-top: 2px;
}
.payment-status.pending {
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.08);
}
.payment-status.paid {
  border-color: rgba(69, 224, 161, 0.5);
  background: rgba(69, 224, 161, 0.10);
}
.payment-status.paid .status-title { color: #45e0a1; }
.payment-status.expired {
  border-color: rgba(255,80,100,0.4);
  background: rgba(255,80,100,0.08);
}
.payment-status.expired .status-title { color: #ff8aa0; }
.payment-status-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pay-field {
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.015);
}
.pay-field.highlight {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.05);
}
.pay-field-label {
  color: #888;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pay-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pay-field-value {
  flex: 1;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  word-break: break-all;
  font-family: 'JetBrains Mono', monospace;
}
.pay-field-value.small {
  font-size: 13px;
  font-weight: 500;
  color: #cfcfcf;
}
.pay-field-hint {
  color: #888;
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.5;
}
.copy-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cfcfcf;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.copy-btn:hover { background: rgba(255,255,255,0.10); color: #fff; }
.copy-btn.copied { color: #45e0a1; border-color: rgba(69,224,161,0.4); }

.pill {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}
.pill.required {
  background: rgba(255, 162, 76, 0.18);
  color: #ffa24c;
  border: 1px solid rgba(255, 162, 76, 0.3);
}
.pill.optional {
  background: rgba(255,255,255,0.06);
  color: #888;
  border: 1px solid rgba(255,255,255,0.08);
}

.payment-help {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.08);
}

/* ===== Balance hero ===== */
.balance-hero {
  position: relative;
  margin: 16px 0 24px;
  padding: 32px;
  border-radius: 22px;
  background: linear-gradient(135deg,
    rgba(var(--accent-rgb), 0.18) 0%,
    rgba(124, 92, 255, 0.08) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  overflow: hidden;
}
.balance-hero::before {
  content: '';
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.5), transparent 60%);
  pointer-events: none;
  opacity: 0.4;
}
.balance-hero-label {
  position: relative;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.balance-hero-amount {
  position: relative;
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}
.balance-hero-sub {
  position: relative;
  color: #aaa;
  font-size: 13px;
  margin-top: 8px;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox-content {
  position: relative;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.18); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.05); }
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }
.lightbox-counter {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
  width: 100%;
  margin-top: 40px;
  max-width: 1060px;
  margin-left: auto; margin-right: auto;
}
.pricing-card {
  background-color: transparent;
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
  height: 100%;
  display: flex; flex-direction: column;
  position: relative;
}
.pricing-card:hover { border-color: #2c2c2c; transform: translateY(-3px); }
.pricing-card.popular { border-color: var(--accent); }
.pricing-cherry { font-size: 24px; color: var(--accent); margin-bottom: 8px; opacity: 0.85; }
.popular-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  color: var(--accent-contrast);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-name { font-size: 20px; font-weight: 600; color: #ffffff; margin-bottom: 8px; }
.pricing-duration { font-size: 14px; color: #6a6a6a; font-weight: 500; margin-bottom: 20px; }
.pricing-price { font-size: 36px; font-weight: 700; color: #ffffff; margin-bottom: 24px; }
.pricing-price span { font-size: 16px; font-weight: 500; color: #6a6a6a; }
.pricing-features { text-align: left; margin-bottom: 28px; flex: 1; }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #b0b0b0;
  font-weight: 500;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1e1e1e;
}
.pricing-feature:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pricing-feature i { color: var(--accent); font-size: 12px; }
.pricing-feature.inactive { color: #4a4a4a; }
.pricing-feature.inactive i { color: #4a4a4a; }
.pricing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
}
.pricing-btn-primary { background-color: var(--accent); color: var(--accent-contrast); }
.pricing-btn-primary:hover { box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.35); }
.pricing-btn-secondary {
  background-color: transparent;
  border: 1px solid #2a2a2a;
  color: #a0a0a0;
}
.pricing-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card.popular { order: -1; }
}

/* ===== FAQ ===== */
.faq-list { margin-top: 24px; text-align: left; }
.faq-item {
  background: transparent;
  border: 1px solid #252525;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: #333; }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.faq-question i { color: #666; font-size: 12px; transition: transform 0.3s ease, color 0.3s ease; }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--accent); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.4,0,0.2,1); }
.faq-answer-inner {
  overflow: hidden;
  color: #888; font-size: 14px; line-height: 1.7;
  padding: 0 20px 0;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s, padding 0.3s ease;
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer-inner { opacity: 1; transform: translateY(0); padding-bottom: 20px; }

/* ===== Flash messages ===== */
.flash-wrap { width: 100%; max-width: 960px; padding: 0 24px; margin-top: 100px; }
.flash {
  background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}

/* ===== Cards / forms ===== */
.auth-wrap {
  width: 100%;
  max-width: 460px;
  padding: 100px 24px 40px;
}
.auth-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid #1e1e1e;
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(14px);
}
.auth-card h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.auth-card .lead { color: #888; font-size: 14px; margin-bottom: 22px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: #b0b0b0; font-weight: 500; }
.field input, .field textarea, .field select {
  background: rgba(255,255,255,0.04);
  border: 1px solid #252525;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15);
}
.field input::placeholder { color: #555; }

.divider { text-align: center; color: #555; font-size: 12px; margin: 18px 0; position: relative; }
.divider::before, .divider::after {
  content: ''; position: absolute; top: 50%;
  width: 40%; height: 1px; background: #1e1e1e;
}
.divider::before { left: 0; }
.divider::after { right: 0; }
.google-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s;
}
.google-btn:hover { transform: translateY(-1px); }

.muted-link { color: #888; font-size: 14px; }
.muted-link a { color: var(--accent); font-weight: 600; }

/* ===== Page wrap ===== */
.page-wrap {
  width: 100%;
  max-width: 1060px;
  padding: 110px 24px 40px;
}
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.1;
}
.page-head .sub { color: #888; font-size: 14px; margin-top: 4px; }

/* ===== Library / shop card grid ===== */
.product-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.product-card {
  --card-accent: var(--accent);
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #1e1e1e;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent);
}
.product-cover {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #0c0c0c;
}
.product-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-cover img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  border-radius: 999px;
  background: var(--card-accent);
  color: #fff;
  text-transform: uppercase;
}
.product-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.01em; }
.product-body .subtitle { color: #777; font-size: 13px; margin-bottom: 14px; }
.product-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; gap: 12px;
}
.price { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.add-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: transparent;
  color: #ddd;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.add-btn:hover { background: var(--card-accent); color: var(--accent-contrast); border-color: var(--card-accent); }

/* ===== Product detail ===== */
.product-page {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 14px;
}
@media (max-width: 900px) { .product-page { grid-template-columns: 1fr; } }
.gallery {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #1e1e1e;
  background: #0c0c0c;
}
.gallery .main { aspect-ratio: 4/3; background: #0a0a0a; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs {
  display: flex; gap: 8px; padding: 10px;
  overflow-x: auto;
}
.gallery .thumbs button {
  flex: 0 0 96px;
  width: 96px; height: 64px;
  border-radius: 8px;
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.gallery .thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs button.active { border-color: var(--accent); }

.product-info { display: flex; flex-direction: column; gap: 16px; }
.product-info h1 { margin: 0; font-size: 32px; letter-spacing: -0.02em; font-weight: 700; }
.product-info .subtitle { color: #888; font-size: 15px; }
.price-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.price-block .pp { font-size: 28px; font-weight: 700; color: var(--accent); }
.price-block .pps { color: #888; font-size: 13px; }
.description { color: #cfcfcf; font-size: 15px; line-height: 1.6; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-pill {
  padding: 6px 14px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #cfcfcf;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.02);
  display: inline-flex; align-items: center; gap: 6px;
}
.download-row {
  background: rgba(255,255,255,0.03);
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 18px;
}

/* ===== Cart / Checkout ===== */
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  margin-bottom: 10px;
}
.cart-row .thumb { width: 80px; height: 64px; border-radius: 10px; background: #0c0c0c; overflow: hidden; }
.cart-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row .info h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.cart-row .info .meta { color: #777; font-size: 12px; }
.cart-summary {
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 14px;
  padding: 22px;
}
.cart-summary .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.cart-summary .row.total {
  font-size: 22px; font-weight: 800;
  border-top: 1px solid #2a2a2a; padding-top: 14px; margin-top: 8px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-top: 14px;
}
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }

/* ===== Tables ===== */
.table-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #1e1e1e; }
.table th { color: #777; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.table tr:last-child td { border-bottom: none; }
.table .key { font-family: 'JetBrains Mono', 'Roboto Mono', monospace; font-size: 13px; color: var(--accent); }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag.pending { background: rgba(255,200,70,0.15); color: #ffd166; }
.tag.paid { background: rgba(69,224,161,0.15); color: #45e0a1; }
.tag.used { background: rgba(255,94,122,0.15); color: #ffb6c2; }
.tag.free { background: rgba(var(--accent-rgb), 0.15); color: var(--accent); }
.tag.cancelled { background: rgba(255,80,100,0.15); color: #ff8aa0; }

/* ===== Stats ===== */
.stats {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 28px;
}
.stat-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  padding: 22px;
  text-align: left;
}
.stat-card .num {
  font-size: 32px; font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-card .lbl { color: #777; font-size: 13px; margin-top: 4px; }

/* ===== Empty / error ===== */
.empty { text-align: center; padding: 60px 20px; color: #888; }
.empty h3 { color: #fff; margin: 0 0 8px; font-size: 22px; }
.error-page { text-align: center; padding: 100px 20px; }
.error-page .code {
  font-size: 96px; font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(135deg, var(--accent), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Footer ===== */
.footer { width: 100%; padding: 50px 24px 30px; display: flex; justify-content: center; }
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1060px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom { color: #666; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  color: #666;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: #fff; }
@media (max-width: 768px) {
  .footer-content { flex-direction: column; justify-content: center; text-align: center; }
  .footer-links { justify-content: center; gap: 16px; }
}

/* ===== Admin product form ===== */
.admin-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 14px;
}
@media (max-width: 900px) { .admin-form-grid { grid-template-columns: 1fr; } }
.admin-form-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  padding: 24px;
}
.admin-form-card h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 14px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field input[type="color"] {
  height: 44px;
  padding: 4px;
  cursor: pointer;
}
.field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid #252525;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  min-height: 110px;
  resize: vertical;
  transition: border-color 0.2s;
}
.field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15); }
.field-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #cfcfcf;
  cursor: pointer;
  user-select: none;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #252525;
  border-radius: 10px;
}
.field-checkbox input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.cover-preview {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1e1e1e;
  background: #0c0c0c;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-preview img { width: 100%; height: 100%; object-fit: contain; }
.cover-preview .empty { color: #555; font-size: 13px; }
.help { color: #777; font-size: 12px; margin-top: 4px; }

/* Admin product list */
.admin-product-list {
  display: grid;
  gap: 10px;
}
.admin-product-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid #1e1e1e;
  border-radius: 14px;
}
.admin-product-row .thumb {
  width: 64px; height: 50px;
  border-radius: 8px; overflow: hidden;
  background: #0c0c0c;
}
.admin-product-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-product-row .meta { min-width: 0; }
.admin-product-row .meta h4 { margin: 0 0 2px; font-size: 15px; }
.admin-product-row .meta .small { color: #777; font-size: 12px; font-family: 'JetBrains Mono', monospace; }
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a2a2a;
  color: #cfcfcf;
  cursor: pointer;
  transition: all 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.icon-btn.danger { color: #ff8aa0; border-color: rgba(255,80,100,0.25); }
.icon-btn.danger:hover { background: rgba(255,80,100,0.18); color: #ffb6c2; }
@media (max-width: 700px) {
  .admin-product-row { grid-template-columns: 64px 1fr; }
  .admin-product-row > :nth-child(n+3) { grid-column: 1 / -1; }
  .admin-product-row .meta { grid-column: 2 / 3; }
}

/* ===== Admin: price field & image picker ===== */
.price-field .price-input {
  position: relative;
  display: flex;
  align-items: center;
}
.price-field .price-input input {
  padding-left: 32px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.price-field .price-prefix {
  position: absolute;
  left: 14px;
  color: var(--accent, #0098EA);
  font-size: 18px;
  font-weight: 700;
  pointer-events: none;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
}

.picker-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0,152,234,0.08);
  border: 1px solid rgba(0,152,234,0.25);
  border-radius: 10px;
  font-size: 13px;
  color: #cfcfcf;
  margin-bottom: 14px;
}
.picker-status .dot { color: #555; }
.picker-status .muted { color: #888; }
.picker-status #pickerCount {
  font-weight: 700;
  color: var(--accent, #0098EA);
}

.image-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.picker-empty {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  color: #666;
  font-size: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed #2a2a2a;
  border-radius: 12px;
}
.picker-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.03);
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
.picker-tile:hover { border-color: #3a3a3a; transform: translateY(-1px); }
.picker-tile.selected {
  border-color: var(--accent, #0098EA);
  box-shadow: 0 0 0 2px rgba(0,152,234,0.25), 0 8px 24px -12px rgba(0,152,234,0.55);
}
.picker-tile .picker-checkbox {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.picker-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #0c0c0c;
  overflow: hidden;
}
.picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.picker-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #bdbdbd;
  min-height: 34px;
}
.picker-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
}
.picker-order {
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent, #0098EA);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.picker-tile.selected .picker-order { display: inline-flex; }
.picker-tile.selected .picker-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,152,234,0.0) 60%, rgba(0,152,234,0.18));
  pointer-events: none;
}
.row.between { justify-content: space-between; }
.row.center { align-items: center; }

/* ===== Utility ===== */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.spacer { flex: 1; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-mono { font-family: 'JetBrains Mono', 'Roboto Mono', monospace; }
.wrap { flex-wrap: wrap; }

.library-keys-card {
  background: var(--card-bg, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 22px 24px 8px;
  margin-bottom: 28px;
}
.library-keys-lead {
  color: #b8b8c8;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 18px;
  max-width: 720px;
}
.library-keys-table-wrap {
  overflow-x: auto;
  margin: 0 -8px 12px;
}
.library-keys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.library-keys-table th {
  text-align: left;
  padding: 10px 12px;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.library-keys-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: middle;
}
.library-keys-table tr:last-child td { border-bottom: none; }
.library-key-cell {
  font-size: 13px;
  word-break: break-all;
}
.muted-small { color: #888; font-size: 13px; }
.library-downloads-title {
  font-size: 20px;
  margin: 8px 0 6px;
  letter-spacing: -0.02em;
}
.library-downloads-sub {
  color: #9a9aac;
  font-size: 14px;
  margin: 0 0 18px;
}
