:root:root {
  --ui-bg-page: #0b0c14;
  --ui-bg-elevated: #111219;
  --ui-bg-soft: #15161f;
  --ui-bg-muted: #1a1c26;
  --ui-bg-overlay: rgba(11, 12, 20, 0.82);
  --ui-bg-overlay-strong: rgba(11, 12, 20, 0.94);
  --ui-text-primary: #f4f5f7;
  --ui-text-secondary: #c9ccd6;
  --ui-text-muted: #9ca3af;
  --ui-text-on-accent: #ffffff;
  --ui-border: rgba(147, 157, 184, 0.18);
  --ui-border-strong: rgba(147, 157, 184, 0.3);
  --ui-accent: #c23030;
  --ui-accent-hover: #d43a3a;
  --ui-accent-soft: rgba(194, 48, 48, 0.16);
  --ui-focus-ring: rgba(194, 48, 48, 0.35);
  --ui-success: #3ecf8e;
  --ui-success-soft: rgba(62, 207, 142, 0.18);
  --ui-warning: #e0a12c;
  --ui-warning-soft: rgba(224, 161, 44, 0.18);
  --ui-danger: #e5484d;
  --ui-danger-soft: rgba(229, 72, 77, 0.18);
  --ui-info: #5aa9e6;
  --ui-info-soft: rgba(90, 169, 230, 0.18);
  --ui-shadow-1: 0 10px 24px -18px rgba(0, 0, 0, 0.65);
  --ui-shadow-2: 0 18px 38px -24px rgba(0, 0, 0, 0.7);
  --ui-shadow-3: 0 30px 64px -34px rgba(0, 0, 0, 0.75);
  --ui-shadow-soft: 0 12px 30px -24px rgba(0, 0, 0, 0.65);
  --ui-shadow-card: 0 24px 52px -32px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

html body.vault-tokens,
html .vault-scope {
  --font-head: "Poppins", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Poppins", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --bg: #0b0c14;
  --bg-warm: #0f1018;
  --surface: #111219;
  --surface-2: #15161f;
  --ink: #f4f5f7;
  --ink-2: #c9ccd6;
  --ink-3: #9ca3af;
  --border: rgba(147, 157, 184, 0.18);
  --border-strong: rgba(147, 157, 184, 0.3);
  --red: #c23030;
  --red-strong: #d43a3a;
  --red-soft: rgba(194, 48, 48, 0.15);
  --gold: #e0a12c;
  --gold-strong: #f0b545;
  --gold-soft: rgba(224, 161, 44, 0.16);
  --teal: #3ecf8e;
  --teal-strong: #5fe0a6;
  --teal-soft: rgba(62, 207, 142, 0.16);
  --plum: #a78bfa;
  --plum-soft: rgba(167, 139, 250, 0.16);
  --on-red: #ffffff;
  --on-gold: #1c1b2e;
  --on-teal: #08221f;
}

html body {
  background-color: #0b0c14 !important;
  background-image: radial-gradient(1100px 560px at 50% -12%, rgba(194, 48, 48, 0.13), transparent 62%) !important;
  background-attachment: fixed !important;
  font-family: "Poppins", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif !important;
  color: var(--ui-text-primary);
}

html body #app,
html body .min-h-screen {
  background-color: transparent;
}

footer a[href*="dujiao-next"] {
  display: none !important;
}

/* Full-page animated starfield (shop only; injected via nginx on backend HTML) */
html::before,
html body::before {
  content: "";
  position: fixed;
  inset: -20% 0 auto;
  height: 150%;
  z-index: 0;
  pointer-events: none;
  background-repeat: repeat;
  background-image:
    radial-gradient(1.5px 1.5px at 18px 34px, rgba(255, 255, 255, 0.95) 50%, transparent 51%),
    radial-gradient(1px 1px at 92px 12px, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 150px 88px, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 56px 132px, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 188px 168px, rgba(255, 255, 255, 0.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 120px 198px, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(2px 2px at 260px 60px, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 320px 150px, rgba(255, 255, 255, 0.45) 50%, transparent 51%);
  background-size: 200px 200px, 200px 200px, 200px 200px, 200px 200px, 200px 200px, 200px 200px, 360px 360px, 360px 360px;
}
html::before {
  opacity: 0.5;
  background-size: 420px 420px;
  animation: pageStarDriftSlow 110s linear infinite !important;
}
html body::before {
  opacity: 0.8;
  animation: pageStarDrift 55s linear infinite !important;
}
html body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: none !important;
}
html body #app {
  position: relative;
  z-index: 1;
}
header.sticky {
  background-color: rgba(11, 12, 20, 0.72) !important;
  backdrop-filter: blur(12px);
}
@keyframes pageStarDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 0 -1400px, 0 -1400px, 0 -1400px, 0 -1400px, 0 -1400px, 0 -1400px, 0 -1000px, 0 -1000px; }
}
@keyframes pageStarDriftSlow {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 0 -1000px, 0 -1000px, 0 -1000px, 0 -1000px, 0 -1000px, 0 -1000px, 0 -700px, 0 -700px; }
}
@keyframes pageGlow {
  from { opacity: 0.5; transform: scale(1); }
  to { opacity: 0.95; transform: scale(1.06); }
}

/* Shop home banner: transparent, no border, glitch title */
div.relative.overflow-hidden.rounded-lg.border.bg-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
div.relative.overflow-hidden.rounded-lg.border.bg-card > img.absolute.inset-0 {
  display: none !important;
}
div.relative.overflow-hidden.rounded-lg.border.bg-card::before,
div.relative.overflow-hidden.rounded-lg.border.bg-card::after {
  content: none !important;
}
div.relative.overflow-hidden.rounded-lg.border.bg-card h2 {
  animation: shopGlitch 7s ease-in-out 1.2s infinite !important;
}
@keyframes shopGlitch {
  0%, 14%, 18%, 44%, 48%, 74%, 78%, 100% { transform: translate(0); filter: blur(0); }
  15% { transform: translate(-3px, 3px); filter: blur(3px); }
  16% { transform: translate(3px, -3px); filter: blur(6px); }
  17% { transform: translate(-2px, 2px); filter: blur(3px); }
  45% { transform: translate(-2px, -2px); filter: blur(4px); }
  46% { transform: translate(2px, 2px); filter: blur(2px); }
  75% { transform: translate(-1px, 2px); filter: blur(3px); }
  76% { transform: translate(2px, -1px); filter: blur(5px); }
}

html .vault-scope {
  background-color: transparent !important;
  background-image: none !important;
}

div.relative.overflow-hidden.rounded-lg.border.bg-card > div.absolute.inset-0 {
  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
}

div.relative.overflow-hidden.rounded-lg.border.bg-card > div.relative.flex {
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
div.relative.overflow-hidden.rounded-lg.border.bg-card > div.relative.flex > div:last-child {
  margin-top: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
/* button-row-hide */
div.relative.overflow-hidden.rounded-lg.border.bg-card > div.relative.flex > div:last-child > div.flex.flex-wrap {
  display: none !important;
}
/* footer-transparent */
footer {
  background-color: transparent !important;
  background-image: none !important;
}
/* footer-white-line */
footer { border-top: 0 !important; }
/* footer-inner-line-off */
footer > div { border-top-width: 0 !important; }
/* card-transparent */
[class~="bg-card"],
[class*="bg-card/"],
header.sticky, .sticky.top-0 {
  background-color: transparent !important;
  background-image: none !important;
}
header.sticky {
  background-color: rgba(11, 12, 20, 0.72) !important;
  backdrop-filter: blur(12px);
}
header.sticky.top-0 {
  background-color: rgba(11, 12, 20, 0.72) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* hide-telegram-miniapp-entry */
form.grid > div.grid.gap-2.pt-1:has(> p.text-center.text-xs.text-muted-foreground):has(> button) {
  display: none !important;
}
