:root {
  --bg-base: #0b1220;
  --bg-soft: #0f172a;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text-strong: #e5e7eb;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #a855f7;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.5);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  --aurora-bg: radial-gradient(120% 120% at 18% 20%, rgba(94, 234, 212, 0.06), transparent 55%), radial-gradient(110% 120% at 82% 10%, rgba(56, 189, 248, 0.06), transparent 58%), radial-gradient(140% 140% at 70% 88%, rgba(129, 140, 248, 0.05), transparent 60%), #090d16;
}

body {
  font-family: 'Manrope', 'Space Grotesk', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #060912;
  background-attachment: fixed;
  color: var(--text-strong);
}

body:not(.no-aurora) {
  background: var(--aurora-bg);
}

body.bg-slate-950:not(.no-aurora) {
  background: var(--aurora-bg);
}

body.no-aurora {
  background: radial-gradient(90% 70% at 50% 0%, rgba(59, 130, 246, 0.05), transparent 45%), #05070d;
}

.background-veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.background-veil::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  opacity: 0.08;
  mix-blend-mode: soft-light;
}

.background-veil::after {
  content: '';
  position: absolute;
  inset: -12%;
  background: radial-gradient(46% 62% at 20% 20%, rgba(94, 234, 212, 0.1), transparent 55%), radial-gradient(40% 60% at 78% 14%, rgba(56, 189, 248, 0.08), transparent 60%), radial-gradient(60% 60% at 62% 78%, rgba(168, 85, 247, 0.07), transparent 65%), linear-gradient(120deg, rgba(8, 47, 73, 0.42), rgba(15, 23, 42, 0.4), rgba(30, 27, 75, 0.35));
  filter: blur(22px) saturate(108%);
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: aurora-shift 22s ease-in-out infinite alternate;
}

body.no-aurora .background-veil::after {
  background: radial-gradient(70% 50% at 50% -6%, rgba(59, 130, 246, 0.05), transparent 45%);
  filter: none;
  opacity: 0.3;
  mix-blend-mode: normal;
  animation: none;
}

@keyframes aurora-shift {
  0% {
    transform: translate3d(-3%, 2%, 0) scale(1);
  }

  50% {
    transform: translate3d(3%, -2%, 0) scale(1.02);
  }

  100% {
    transform: translate3d(-2%, 1%, 0) scale(1.01);
  }
}

@keyframes slow-pan {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-3%, -2%, 0) scale(1.02);
  }

  100% {
    transform: translate3d(2%, 3%, 0) scale(1.01);
  }
}

@keyframes subtle-zoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.04);
  }
}

.surface-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(120%);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.surface-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.surface-card.strong {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Free用户卡片样式 - 冷色调灰蓝边框 */
.card-free {
  border-color: rgba(148, 163, 184, 0.35) !important;
  background: rgba(148, 163, 184, 0.05) !important;
}

.card-free:hover {
  border-color: rgba(148, 163, 184, 0.5) !important;
}

/* VIP用户卡片样式 - 金色琥珀色边框和发光 */
.card-vip {
  border-color: rgba(251, 191, 36, 0.45) !important;
  background: rgba(251, 191, 36, 0.06) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(251, 191, 36, 0.12), inset 0 1px 0 rgba(251, 191, 36, 0.15) !important;
}

.card-vip:hover {
  border-color: rgba(251, 191, 36, 0.6) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(251, 191, 36, 0.18), inset 0 1px 0 rgba(251, 191, 36, 0.2) !important;
}

/* VIP标签徽章 */
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Free标签徽章 */
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-item-active {
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.18), rgba(168, 85, 247, 0.16));
  border-left: 3px solid var(--accent);
  color: var(--text-strong);
}

.chip-soft {
  background: rgba(56, 189, 248, 0.12);
  color: #c5f2ff;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0f1b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-strong);
}

.support-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 45;
}

.support-fab button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0f1b;
  box-shadow: 0 16px 42px rgba(56, 189, 248, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.support-fab button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 52px rgba(168, 85, 247, 0.32);
}

.support-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 15, 0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}

.support-modal.active {
  display: flex;
}

.support-modal .card {
  max-width: 420px;
  width: 100%;
  background: rgba(14, 19, 35, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-strong);
}

.support-modal img {
  width: 240px;
  height: 240px;
  margin: 0 auto;
  border-radius: 12px;
  background: #0b1220;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.support-modal h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.support-modal p {
  color: var(--text-muted);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.outline-muted {
  outline-color: rgba(56, 189, 248, 0.5);
}
