/* assets/css/neon.css - 霓虹主題核心變數與全局樣式 */
:root {
  /* 主題色系 */
  --neon-purple: #9933ff;
  --neon-blue: #0096ff;
  --neon-green: #00ff41;
  --neon-gold: #ffd700;
  --neon-cyan: #00d4ff;
  --neon-orange: #ff8c00;
  --neon-pink: #ff3388;
  --neon-red: #ff3355;

  /* 背景色 */
  --bg-deep: #05000a;
  --bg-card: rgba(10, 0, 20, 0.35);
  --bg-glass: rgba(10, 0, 20, 0.5);

  /* 文字色 */
  --text-primary: #f0e0ff;
  --text-secondary: rgba(240, 224, 255, 0.5);
  --text-muted: rgba(240, 224, 255, 0.2);

  /* 字型 */
  --font-cn: 'Noto Sans SC', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-scifi: 'Orbitron', sans-serif;

  /* 間距 */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* 光效 */
  --glow-purple: 0 0 20px rgba(153, 51, 255, 0.15);
  --glow-blue: 0 0 20px rgba(0, 150, 255, 0.15);
  --glow-green: 0 0 20px rgba(0, 255, 65, 0.15);
  --glow-gold: 0 0 20px rgba(255, 215, 0, 0.15);
}

/* 全域重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-cn);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* 捲軸樣式 */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(153, 51, 255, 0.12); border-radius: 2px; }

/* 選取樣式 */
::selection {
  background: rgba(153, 51, 255, 0.2);
  color: #fff;
}

/* 毛玻璃卡片共用 */
.glass-card {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(153, 51, 255, 0.08);
  border-radius: var(--radius-lg);
}

/* 霓虹按鈕共用 */
.neon-btn {
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(153, 51, 255, 0.15);
  font-family: var(--font-cn);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s ease;
  letter-spacing: 2px;
}

.neon-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-purple);
}

/* 霓虹文字光效 */
.neon-text {
  text-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
}

/* 動態光邊跑動 */
.border-runner {
  position: relative;
  overflow: hidden;
}

.border-runner::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px;
  right: -2px; bottom: -2px;
  border-radius: inherit;
  background: conic-gradient(
    transparent 0deg,
    rgba(153, 51, 255, 0.4) 90deg,
    transparent 180deg,
    rgba(0, 200, 255, 0.3) 270deg,
    transparent 360deg
  );
  z-index: -1;
  animation: borderSpin 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
}

@keyframes borderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 減少動畫偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* 自動減少全站閃爍：放慢無限動畫 */
.border-runner::before, .neon-btn::before, .login-card::before,
.dash-security-card::before, .wallet-dot, .chat-status-dot {
  animation-duration: 8s !important;
}
.scanlines, .login-scan, .forgot-scan, .chat-scanline, .dash-scanline {
  opacity: 0.35 !important;
}

