/* assets/css/style.css - 所有頁面專屬樣式模組 */

/* ==============================================================
   模組：登入頁 - 紫色霓虹主題 (login.html)
   ============================================================== */
.login-body {
  background: #bb16b3;
  color: #18298d;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* 上傳的 WUDAO AI 海報背景 */
.login-bg-img {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}

.login-bg-1 {
  position: fixed; top: 0; left: 0;
  width: 100vh; height: 100vh;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(150,0,255,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, rgba(200,0,255,0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(80,0,150,0.08) 0%, transparent 60%);
}

.login-bg-2 {
  position: fixed; top: -25%; left: -25%;
  width: 150%; height: 150%;
  z-index: 0; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, rgba(180,0,255,0.02), transparent 30%, transparent 70%, rgba(100,0,200,0.015), transparent);
  animation: loginBgSpin 35s linear infinite;
}

@keyframes loginBgSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.login-hex {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 40%, rgba(180,0,255,0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(100,0,200,0.02) 0%, transparent 35%);
}

#loginParticles {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;
}

.login-scan {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(180,0,255,0.015) 2px, rgba(180,0,255,0.015) 4px);
}

.login-wrapper {
  position: relative; z-index: 5;
  width: 100%; max-width: 440px;
  padding: 20px;
  animation: loginWrapIn 1.2s ease-out forwards;
}

@keyframes loginWrapIn {
  0% { opacity: 0; transform: translateY(30px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card {
  background: rgba(16,0,26,0.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(180,0,255,0.12);
  border-radius: 28px;
  padding: 40px 36px 44px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

.login-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px;
  right: -2px; bottom: -2px;
  border-radius: 29px;
  background: conic-gradient(
    transparent 0deg, rgba(180,0,255,0.4) 90deg,
    transparent 180deg, rgba(0,200,255,0.3) 270deg,
    transparent 360deg
  );
  z-index: -1;
  animation: loginBorderSpin 6s linear infinite;
  /* ✅ 修正：先 -webkit- 後標準，且都定義完整 */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 2px;
}

@keyframes loginBorderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.login-brand { text-align: center; margin-bottom: 32px; }

.login-brand .brand-icon {
  width: 60px; height: 60px; margin-bottom: 12px;
  filter: drop-shadow(0 0 20px rgba(180,0,255,0.3));
  animation: loginBrandPulse 3s ease-in-out infinite;
}

@keyframes loginBrandPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(180,0,255,0.3)); }
  50% { filter: drop-shadow(0 0 35px rgba(180,0,255,0.5)); }
}

.login-brand h1 {
  font-size: 24px; font-weight: 900; color: #fff;
  margin: 0 0 4px; letter-spacing: 4px;
}

.login-brand h1 .highlight {
  color: #b366ff;
  text-shadow: 0 0 25px rgba(180,0,255,0.4);
}

.login-brand p {
  color: rgba(180,0,255,0.4);
  font-size: 12px; font-family: 'Share Tech Mono', monospace;
  letter-spacing: 2px;
}

.login-form { display: flex; flex-direction: column; gap: 18px; }

.login-form .form-group { position: relative; }

.login-form .form-group label {
  display: block;
  font-size: 12px; font-weight: 500;
  color: rgba(180,0,255,0.4);
  margin-bottom: 6px; letter-spacing: 1px;
  text-transform: uppercase;
}

.login-form .form-group .input-wrap {
  position: relative; display: flex; align-items: center;
}

.login-form .form-group .input-wrap .input-icon {
  position: absolute; left: 16px;
  color: rgba(180,0,255,0.2);
  font-size: 16px; pointer-events: none;
  transition: color 0.3s ease; z-index: 1;
}

.login-form .form-group .input-wrap:focus-within .input-icon {
  color: rgba(180,0,255,0.6);
}

.login-form .form-group input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: rgba(20,0,40,0.5);
  border: 1px solid rgba(180,0,255,0.1);
  border-radius: 14px;
  color: #f0e0ff;
  font-size: 15px;
  font-family: 'Noto Sans SC', sans-serif;
  outline: none;
  transition: all 0.4s ease;
  box-sizing: border-box;
}

.login-form .form-group input::placeholder {
  color: rgba(180,0,255,0.15);
}

.login-form .form-group input:focus {
  border-color: #b366ff;
  background: rgba(30,0,50,0.6);
  box-shadow: 0 0 20px rgba(180,0,255,0.06), inset 0 0 20px rgba(180,0,255,0.02);
}

.login-form .form-group input.error {
  border-color: #ff3355;
  box-shadow: 0 0 20px rgba(255,51,85,0.1);
}

.login-form .form-group .error-msg {
  font-size: 11px; color: #ff3355;
  margin-top: 4px; display: none;
}

.login-form .form-group .error-msg.show { display: block; }

.login-form .form-options {
  display: flex; justify-content: space-between; align-items: center;
}

.login-form .form-options .remember-group {
  display: flex; align-items: center; gap: 8px;
}

.login-form .form-options .remember-group .hack-checkbox {
  position: relative; width: 18px; height: 18px;
}

.login-form .form-options .remember-group .hack-checkbox input {
  position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; margin: 0;
}

.login-form .form-options .remember-group .hack-checkbox .checkmark {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border: 1px solid rgba(180,0,255,0.15);
  border-radius: 4px; background: rgba(20,0,40,0.4);
  transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}

.login-form .form-options .remember-group .hack-checkbox .checkmark::after {
  content: '✔'; font-size: 11px;
  color: #b366ff; opacity: 0;
  transform: scale(0); transition: all 0.3s ease;
}

.login-form .form-options .remember-group .hack-checkbox input:checked + .checkmark {
  border-color: #b366ff;
  background: rgba(180,0,255,0.08);
  box-shadow: 0 0 10px rgba(180,0,255,0.1);
}

.login-form .form-options .remember-group .hack-checkbox input:checked + .checkmark::after {
  opacity: 1; transform: scale(1);
}

.login-form .form-options .remember-label {
  font-size: 12px; color: rgba(180,0,255,0.3);
  cursor: pointer;
  /* ✅ 修正：增加 -webkit-user-select 支援 Safari */
  -webkit-user-select: none;
  user-select: none;
}

.login-form .form-options .forgot-link {
  font-size: 12px;
  color: rgba(180,0,255,0.2);
  text-decoration: none;
  border-bottom: 1px dashed rgba(180,0,255,0.1);
  transition: all 0.3s ease;
}

.login-form .form-options .forgot-link:hover {
  color: #b366ff;
  border-bottom-color: #b366ff;
}

.login-form .btn-login {
  position: relative;
  padding: 16px 20px;
  background: linear-gradient(135deg, #3d0066, #6600aa, #9933ff);
  border: 1px solid rgba(180,0,255,0.15);
  border-radius: 14px;
  color: #fff;
  font-size: 16px; font-weight: 700;
  font-family: 'Noto Sans SC', sans-serif;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 4px;
  overflow: hidden;
}

.login-form .btn-login::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(transparent, rgba(255,255,255,0.08), transparent 30%);
  animation: loginBtnSpin 6s linear infinite;
  opacity: 0; transition: opacity 0.5s ease;
}

.login-form .btn-login:hover::before { opacity: 1; }

@keyframes loginBtnSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.login-form .btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(180,0,255,0.1);
  border-color: rgba(180,0,255,0.25);
}

.login-form .btn-login .btn-text { position: relative; z-index: 1; }

.login-form .btn-login.loading .btn-text { visibility: hidden; }

.login-form .btn-login.loading::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: loginLoader 0.8s linear infinite;
  z-index: 1;
}

@keyframes loginLoader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.login-form .btn-login:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.login-footer {
  text-align: center; margin-top: 24px;
  font-size: 13px; color: rgba(180,0,255,0.2);
}

.login-footer a {
  color: #b366ff; text-decoration: none;
  border-bottom: 1px dashed rgba(180,0,255,0.1);
  transition: all 0.3s ease; font-weight: 500;
}

.login-footer a:hover {
  text-shadow: 0 0 12px rgba(180,0,255,0.3);
  border-bottom-color: rgba(180,0,255,0.3);
}
.login-footer .auth-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.login-footer .auth-sep {
  color: rgba(180,0,255,0.25);
  user-select: none;
}


/* ==============================================================
   模組：註冊頁 - 綠色矩陣主題 (register.html)
   ============================================================== */
.register-body {
  background: #001a00;
  color: #e0ffe0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

#registerMatrix {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  opacity: 0.35;
}

.register-scan {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,65,0.025) 2px, rgba(0,255,65,0.025) 4px);
}

.register-hex {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at 20% 50%, rgba(0,255,65,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,200,255,0.02) 0%, transparent 50%);
}

#registerParticles {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 2; pointer-events: none;
  opacity: 0.5;
}

.register-wrapper {
  position: relative; z-index: 5;
  width: 100%; max-width: 480px;
  padding: 20px;
  animation: regWrapIn 1.2s ease-out forwards;
}

@keyframes regWrapIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.register-card {
  background: rgba(0,26,0,0.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(0,255,65,0.12);
  border-radius: 28px;
  padding: 40px 36px 48px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

.register-card::before {
  content: '';
  position: absolute; top: -2px; left: -2px;
  right: -2px; bottom: -2px;
  border-radius: 29px;
  background: conic-gradient(
    transparent 0deg, rgba(0,255,65,0.4) 90deg,
    transparent 180deg, rgba(0,200,255,0.3) 270deg,
    transparent 360deg
  );
  z-index: -1;
  animation: regBorderSpin 6s linear infinite;
  /* ✅ 修正：先 -webkit- 後標準 */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 2px;
}

@keyframes regBorderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.reg-brand { text-align: center; margin-bottom: 32px; }

.reg-brand .brand-icon {
  width: 60px; height: 60px; margin-bottom: 12px;
  filter: drop-shadow(0 0 20px rgba(0,255,65,0.3));
  animation: regBrandPulse 3s ease-in-out infinite;
}

@keyframes regBrandPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(0,255,65,0.3)); }
  50% { filter: drop-shadow(0 0 35px rgba(0,255,65,0.5)); }
}

.reg-brand h1 {
  font-size: 24px; font-weight: 900; color: #fff;
  margin: 0 0 4px; letter-spacing: 4px;
}

.reg-brand h1 .highlight {
  color: #00ff41;
  text-shadow: 0 0 25px rgba(0,255,65,0.4);
}

.reg-brand p {
  color: rgba(0,255,65,0.4);
  font-size: 12px; font-family: 'Share Tech Mono', monospace;
  letter-spacing: 2px;
}

.reg-form { display: flex; flex-direction: column; gap: 16px; }

.reg-form .form-group { position: relative; }

.reg-form .form-group label {
  display: block;
  font-size: 12px; font-weight: 500;
  color: rgba(0,255,65,0.4);
  margin-bottom: 6px; letter-spacing: 1px;
  text-transform: uppercase;
}

.reg-form .form-group .input-wrap {
  position: relative; display: flex; align-items: center;
}

.reg-form .form-group .input-wrap .input-icon {
  position: absolute; left: 16px;
  color: rgba(0,255,65,0.2);
  font-size: 16px; pointer-events: none;
  transition: color 0.3s ease; z-index: 1;
}

.reg-form .form-group .input-wrap:focus-within .input-icon {
  color: rgba(0,255,65,0.6);
}

.reg-form .form-group input,
.reg-form .form-group select {
  width: 100%;
  padding: 13px 16px 13px 48px;
  background: rgba(0,30,0,0.5);
  border: 1px solid rgba(0,255,65,0.08);
  border-radius: 14px;
  color: #e0ffe0;
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  outline: none;
  transition: all 0.4s ease;
  box-sizing: border-box;
}

.reg-form .form-group input::placeholder {
  color: rgba(0,255,65,0.12);
}

.reg-form .form-group input:focus,
.reg-form .form-group select:focus {
  border-color: #00ff41;
  background: rgba(0,40,0,0.6);
  box-shadow: 0 0 20px rgba(0,255,65,0.05), inset 0 0 20px rgba(0,255,65,0.02);
}

.reg-form .form-group input.error {
  border-color: #ff3355;
  box-shadow: 0 0 20px rgba(255,51,85,0.1);
}

.reg-form .form-group .error-msg {
  font-size: 11px; color: #ff3355;
  margin-top: 4px; display: none;
}

.reg-form .form-group .error-msg.show { display: block; }

.reg-password-strength {
  display: flex; gap: 5px; margin-top: 6px; align-items: center;
}

.reg-password-strength .segment {
  flex: 1; height: 3px;
  border-radius: 2px;
  background: rgba(0,255,65,0.05);
  transition: all 0.4s ease;
}

.reg-password-strength .segment.active.weak { background: #ff3355; box-shadow: 0 0 6px rgba(255,51,85,0.3); }
.reg-password-strength .segment.active.medium { background: #ffaa00; box-shadow: 0 0 6px rgba(255,170,0,0.3); }
.reg-password-strength .segment.active.strong { background: #00ff41; box-shadow: 0 0 6px rgba(0,255,65,0.3); }

.reg-password-strength .strength-label {
  font-size: 10px; color: rgba(0,255,65,0.2);
  margin-left: 8px; font-family: 'Share Tech Mono', monospace;
  min-width: 30px; text-align: right;
}

.reg-terms {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 4px;
}

.reg-terms .hack-checkbox {
  position: relative; width: 20px; height: 20px; min-width: 20px; margin-top: 2px;
}

.reg-terms .hack-checkbox input {
  position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; margin: 0;
}

.reg-terms .hack-checkbox .checkmark {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border: 1px solid rgba(0,255,65,0.15);
  border-radius: 4px; background: rgba(0,30,0,0.4);
  transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}

.reg-terms .hack-checkbox .checkmark::after {
  content: '✔'; font-size: 12px;
  color: #00ff41; opacity: 0;
  transform: scale(0); transition: all 0.3s ease;
}

.reg-terms .hack-checkbox input:checked + .checkmark {
  border-color: #00ff41;
  background: rgba(0,255,65,0.08);
  box-shadow: 0 0 10px rgba(0,255,65,0.1);
}

.reg-terms .hack-checkbox input:checked + .checkmark::after {
  opacity: 1; transform: scale(1);
}

.reg-terms .terms-label {
  font-size: 12px; color: rgba(0,255,65,0.3);
  line-height: 1.6; cursor: pointer;
}

.reg-terms .terms-label a {
  color: #00ff41; text-decoration: none;
  border-bottom: 1px dashed rgba(0,255,65,0.1);
  transition: all 0.3s ease;
}

.reg-terms .terms-label a:hover {
  text-shadow: 0 0 10px rgba(0,255,65,0.3);
  border-bottom-color: rgba(0,255,65,0.3);
}

.reg-form .btn-register {
  position: relative;
  padding: 15px 20px;
  background: linear-gradient(135deg, #003300, #006600, #00aa00);
  border: 1px solid rgba(0,255,65,0.15);
  border-radius: 14px;
  color: #fff;
  font-size: 16px; font-weight: 700;
  font-family: 'Noto Sans SC', sans-serif;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 4px;
  overflow: hidden;
}

.reg-form .btn-register::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(transparent, rgba(0,255,65,0.08), transparent 30%);
  animation: regBtnSpin 6s linear infinite;
  opacity: 0; transition: opacity 0.5s ease;
}

.reg-form .btn-register:hover::before { opacity: 1; }

@keyframes regBtnSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.reg-form .btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,255,65,0.08);
  border-color: rgba(0,255,65,0.2);
}

.reg-form .btn-register .btn-text { position: relative; z-index: 1; }

.reg-form .btn-register.loading .btn-text { visibility: hidden; }

.reg-form .btn-register.loading::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: #00ff41;
  border-radius: 50%;
  animation: regLoader 0.8s linear infinite;
  z-index: 1;
}

@keyframes regLoader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.reg-form .btn-register:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.reg-success {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 28px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,15,0,0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 10;
  padding: 40px;
  box-sizing: border-box;
  animation: regSuccessIn 0.6s ease forwards;
}

@keyframes regSuccessIn {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

.reg-success.show { display: flex; }

.reg-success .success-icon {
  font-size: 50px; margin-bottom: 14px;
  animation: regSuccessBounce 0.8s ease;
}

@keyframes regSuccessBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.15); }
  70% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.reg-success h2 {
  font-size: 22px; color: #00ff41;
  margin: 0 0 8px;
  text-shadow: 0 0 25px rgba(0,255,65,0.3);
}

.reg-success p {
  color: rgba(0,255,65,0.4);
  font-size: 13px; margin: 0;
  text-align: center; line-height: 1.8;
}

.reg-success .countdown {
  color: rgba(0,255,65,0.2);
  font-size: 11px; margin-top: 14px;
  font-family: 'Share Tech Mono', monospace;
}

.reg-footer {
  text-align: center; margin-top: 22px;
  font-size: 13px; color: rgba(0,255,65,0.2);
}

.reg-footer a {
  color: #00ff41; text-decoration: none;
  border-bottom: 1px dashed rgba(0,255,65,0.1);
  transition: all 0.3s ease; font-weight: 500;
}

.reg-footer a:hover {
  text-shadow: 0 0 10px rgba(0,255,65,0.3);
  border-bottom-color: rgba(0,255,65,0.3);
}


/* ==============================================================
   模組：儀表板 - 藍色AI科技主題 (dashboard.html)
   ============================================================== */
.dash-body {
  background: #000d1a;
  color: #e0f0ff;
  overflow-x: hidden;
}

.dash-grid-bg {
  position: fixed; top: 0; left: 0;
  width: 300px; height: 300px;
  z-index: 0;
  background:
    linear-gradient(rgba(0,100,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,100,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: dashGridShift 20s linear infinite;
  pointer-events: none;
}

@keyframes dashGridShift {
  0% { transform: translate(0,0); }
  50% { transform: translate(30px,30px); }
  100% { transform: translate(0,0); }
}

.dash-glow-bg {
  position: fixed; top: 0; left: 0;
  width: 300px; height: 300px;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0,100,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(0,200,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(0,50,200,0.04) 0%, transparent 70%);
}

.dash-scanline {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 250px; /* 固定高度背景 */
  z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,150,255,0.02) 2px, rgba(0,150,255,0.02) 4px);
}

.dash-header {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
  background: rgba(0,13,26,0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,150,255,0.1);
}

.dash-header .logo-area { display: flex; align-items: center; gap: 12px; }
.dash-header .logo-area .logo-icon { width: 36px; height: 36px; filter: drop-shadow(0 0 12px rgba(0,150,255,0.4)); }
.dash-header .logo-area h1 { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: 2px; }
.dash-header .logo-area h1 span { color: #0096ff; text-shadow: 0 0 20px rgba(0,150,255,0.4); }

.dash-header .user-area { display: flex; align-items: center; gap: 20px; }

.dash-header .user-area .user-balance {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px; color: #0096ff;
  background: rgba(0,150,255,0.08);
  border: 1px solid rgba(0,150,255,0.1);
  border-radius: 10px;
  padding: 6px 14px;
  display: flex; align-items: center; gap: 6px;
}

.dash-header .user-area .user-balance .token-num { color: #fff; font-size: 16px; }
.dash-header .user-area .user-balance .token-label { color: rgba(224,240,255,0.3); font-size: 12px; }

.dash-header .user-area .user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #003d80, #0096ff);
  border: 2px solid rgba(0,150,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; font-weight: 700;
  cursor: pointer; transition: all 0.3s ease; text-transform: uppercase;
}

.dash-header .user-area .user-avatar:hover {
  border-color: #0096ff;
  box-shadow: 0 0 20px rgba(0,150,255,0.2);
}

.dash-main {
  position: relative; z-index: 3;
  max-width: 1200px; margin: 0 auto;
  padding: 14px 24px 60px;
}

.dash-banner {
  background: linear-gradient(135deg, rgba(0,40,100,0.5), rgba(0,80,160,0.3));
  border: 1px solid rgba(0,150,255,0.1);
  border-radius: 16px;
  padding: 16px 22px;
  margin-bottom: 16px;
  position: relative; overflow: hidden;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: dashBannerIn 0.8s ease-out;
}

@keyframes dashBannerIn {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.dash-banner::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(transparent, rgba(0,150,255,0.05), transparent 60%);
  animation: dashBannerSpin 10s linear infinite;
}

@keyframes dashBannerSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dash-banner h2 { font-size: 20px; font-weight: 700; position: relative; z-index: 1; margin-bottom: 6px; }
.dash-banner h2 .highlight { color: #0096ff; text-shadow: 0 0 20px rgba(0,150,255,0.3); }
.dash-banner p { position: relative; z-index: 1; color: rgba(224,240,255,0.4); font-size: 13px; font-family: 'Share Tech Mono', monospace; letter-spacing: 1px; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.dash-stat-card {
  background: rgba(0,30,60,0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,150,255,0.06);
  border-radius: 14px;
  padding: 16px 18px;
  position: relative; overflow: hidden;
  transition: all 0.4s ease;
  animation: dashCardIn 0.6s ease-out forwards;
  opacity: 0;
}

.dash-stat-card:nth-child(1) { animation-delay: 0.1s; }
.dash-stat-card:nth-child(2) { animation-delay: 0.2s; }
.dash-stat-card:nth-child(3) { animation-delay: 0.3s; }
.dash-stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes dashCardIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.dash-stat-card:hover {
  border-color: rgba(0,150,255,0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,150,255,0.04);
}

.dash-stat-card::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #0096ff, transparent);
  opacity: 0; transition: opacity 0.4s ease;
}

.dash-stat-card:hover::after { opacity: 1; }

.dash-stat-card .stat-icon { font-size: 24px; margin-bottom: 8px; display: block; opacity: 0.5; }
.dash-stat-card .stat-value { font-size: 26px; font-weight: 700; color: #fff; font-family: 'Share Tech Mono', monospace; margin-bottom: 4px; text-shadow: 0 0 14px rgba(0,150,255,0.1); }
.dash-stat-card .stat-label { font-size: 12px; color: rgba(224,240,255,0.3); letter-spacing: 1px; text-transform: uppercase; }

.dash-recent {
  background: rgba(0,30,60,0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,150,255,0.04);
  border-radius: 16px;
  padding: 18px;
  animation: dashCardIn 0.6s ease-out 0.5s forwards;
  opacity: 0;
}

.dash-recent .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-recent .section-header h3 { font-size: 15px; font-weight: 700; color: #0096ff; text-shadow: 0 0 14px rgba(0,150,255,0.15); }
.dash-recent .section-header a { font-size: 12px; color: rgba(224,240,255,0.2); text-decoration: none; border-bottom: 1px dashed rgba(224,240,255,0.1); transition: all 0.3s ease; }
.dash-recent .section-header a:hover { color: #0096ff; border-bottom-color: #0096ff; }

.dash-activity-list { display: flex; flex-direction: column; }

.dash-activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,150,255,0.03);
  transition: all 0.3s ease;
}

.dash-activity-item:last-child { border-bottom: none; }
.dash-activity-item:hover { padding-left: 6px; background: rgba(0,150,255,0.015); border-radius: 8px; }

.dash-activity-item .activity-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dash-activity-item .activity-dot.online { background: #00ff41; box-shadow: 0 0 6px rgba(0,255,65,0.3); }
.dash-activity-item .activity-dot.warning { background: #ffaa00; box-shadow: 0 0 6px rgba(255,170,0,0.3); }
.dash-activity-item .activity-dot.info { background: #0096ff; box-shadow: 0 0 6px rgba(0,150,255,0.3); }
.dash-activity-item .activity-dot.error { background: #ff3355; box-shadow: 0 0 6px rgba(255,51,85,0.3); }

.dash-activity-item .activity-text { flex: 1; font-size: 13px; color: rgba(224,240,255,0.5); }
.dash-activity-item .activity-text strong { color: #e0f0ff; font-weight: 500; }
.dash-activity-item .activity-time { font-size: 11px; color: rgba(224,240,255,0.15); font-family: 'Share Tech Mono', monospace; white-space: nowrap; }

.dash-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.dash-quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 12px;
  background: rgba(0,30,60,0.2);
  border: 1px solid rgba(0,150,255,0.04);
  border-radius: 14px;
  color: rgba(224,240,255,0.4);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.4s ease;
  font-family: 'Noto Sans SC', sans-serif;
}

.dash-quick-btn .qa-icon { font-size: 24px; transition: transform 0.4s ease; }

.dash-quick-btn:hover {
  border-color: rgba(0,150,255,0.2);
  background: rgba(0,60,120,0.15);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,150,255,0.04);
}

.dash-quick-btn:hover .qa-icon { transform: scale(1.12); }


/* ==============================================================
   模組：聊天 - 極致紫色駭客主題 (chat.html)
   ============================================================== */
.chat-body {
  background: #080012;
  color: #f0e0ff;
  overflow: hidden;
  height: 100vh;
}

/* 背景層 1-4 */
.chat-bg-1 {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(130,0,220,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 35%, rgba(80,0,200,0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 75%, rgba(200,0,255,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(40,0,80,0.15) 0%, transparent 70%);
}

.chat-bg-2 {
  position: fixed; top: -25%; left: -25%;
  width: 150%; height: 150%;
  z-index: 0; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, rgba(180,0,255,0.03), transparent 30%, transparent 70%, rgba(100,0,200,0.02), transparent);
  animation: chatBgSpin 30s linear infinite;
}

@keyframes chatBgSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

.chat-bg-3 {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  opacity: 0.15;
  background:
    radial-gradient(circle at 20% 30%, #9900ff 0%, transparent 30%),
    radial-gradient(circle at 80% 60%, #6600cc 0%, transparent 35%),
    radial-gradient(circle at 40% 80%, #cc33ff 0%, transparent 25%);
  filter: blur(60px);
  animation: chatNebula 20s ease-in-out infinite alternate;
}

@keyframes chatNebula {
  0% { transform: translate(0,0) scale(1); opacity: 0.12; }
  50% { transform: translate(20px,-15px) scale(1.05); opacity: 0.18; }
  100% { transform: translate(-10px,10px) scale(0.95); opacity: 0.12; }
}

.chat-bg-4 {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(180,0,255,0.5) 40px, rgba(180,0,255,0.5) 41px),
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(150,0,220,0.3) 40px, rgba(150,0,220,0.3) 41px);
}

.chat-scanline {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(180,0,255,0.015) 2px, rgba(180,0,255,0.015) 4px);
}

/* 流星光束 */
.chat-stars {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none; overflow: hidden;
}

.chat-star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(180,0,255,0.3);
  animation: chatShoot linear infinite;
}

.chat-star::after {
  content: '';
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 60px; height: 1px;
  background: linear-gradient(90deg, rgba(180,0,255,0.4), transparent);
  right: 100%;
}

.chat-star:nth-child(1) { top: 10%; left: 80%; animation-duration: 8s; animation-delay: 2s; }
.chat-star:nth-child(2) { top: 25%; left: 90%; animation-duration: 12s; animation-delay: 5s; }
.chat-star:nth-child(3) { top: 50%; left: 70%; animation-duration: 10s; animation-delay: 8s; }
.chat-star:nth-child(4) { top: 70%; left: 85%; animation-duration: 15s; animation-delay: 3s; }
.chat-star:nth-child(5) { top: 40%; left: 95%; animation-duration: 9s; animation-delay: 11s; }

@keyframes chatShoot {
  0% { transform: translate(0,0); opacity: 0; }
  5% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(-300px, 200px); opacity: 0; }
}

/* 聊天容器 */
.chat-layout {
  position: relative; z-index: 5;
  display: flex; flex-direction: column;
  height: 100vh; max-width: 880px;
  margin: 0 auto; padding: 0 20px;
}

/* 頂欄 */
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; margin-top: 8px;
  background: rgba(10,0,25,0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(180,0,255,0.06);
  border-radius: 18px;
  flex-shrink: 0; position: relative; overflow: hidden;
}

.chat-header::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180,0,255,0.2), transparent);
}

.chat-header .header-left { display: flex; align-items: center; gap: 12px; }

.chat-header .back-link {
  color: rgba(240,224,255,0.2); text-decoration: none;
  font-size: 20px; transition: all 0.3s ease;
  display: flex; align-items: center;
  width: 30px; height: 30px; justify-content: center;
  border-radius: 8px;
}

.chat-header .back-link:hover { color: #b366ff; background: rgba(180,0,255,0.06); }

.chat-header .chat-brand { display: flex; align-items: center; gap: 8px; }
.chat-header .chat-brand .brand-icon { width: 26px; height: 26px; filter: drop-shadow(0 0 10px rgba(180,0,255,0.2)); }
.chat-header .chat-brand .brand-text { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 2px; }
.chat-header .chat-brand .brand-text span { color: #b366ff; text-shadow: 0 0 16px rgba(180,0,255,0.2); }

.chat-header .header-right { display: flex; align-items: center; gap: 14px; }

.chat-header .status-badge {
  font-size: 11px; font-family: 'Share Tech Mono', monospace;
  color: rgba(240,224,255,0.25);
  display: flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  background: rgba(0,255,65,0.03);
  border: 1px solid rgba(0,255,65,0.04);
  border-radius: 20px;
}

.chat-header .status-badge .dot {
  width: 5px; height: 5px; background: #00ff41;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,255,65,0.5);
  animation: chatStatusPulse 2s ease-in-out infinite;
}

@keyframes chatStatusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.chat-header .token-display {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; color: rgba(240,224,255,0.1);
}

/* 對話框 */
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 16px 6px 10px;
  display: flex; flex-direction: column;
  gap: 12px; scroll-behavior: smooth;
  /* ✅ 修正：先 -webkit- 後標準 */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(180,0,255,0.08); border-radius: 2px; }

/* 訊息泡泡 */
.chat-msg {
  display: flex; gap: 10px;
  max-width: 88%;
  animation: chatMsgIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0; transform: translateY(14px);
}

@keyframes chatMsgIn {
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.bot { align-self: flex-start; }

.chat-msg .msg-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; position: relative;
}

.chat-msg.user .msg-avatar {
  background: linear-gradient(135deg, #7b1fa2, #ce93d8);
  color: #fff; border: 1px solid rgba(180,0,255,0.15);
}

.chat-msg.bot .msg-avatar {
  background: linear-gradient(135deg, #1a0033, #4a0072);
  color: #ce93d8; border: 1px solid rgba(180,0,255,0.08);
  font-size: 14px;
}

.chat-msg .msg-avatar::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 7px; height: 7px; border-radius: 50%;
  border: 2px solid #080012;
}

.chat-msg.user .msg-avatar::after { background: #00ff41; }
.chat-msg.bot .msg-avatar::after { background: #b366ff; }

.chat-msg .msg-bubble {
  position: relative;
  padding: 12px 16px; border-radius: 16px;
  font-size: 14px; line-height: 1.7; word-break: break-word;
}

.chat-msg.user .msg-bubble {
  background: linear-gradient(135deg, rgba(100,0,180,0.3), rgba(140,0,220,0.15));
  border: 1px solid rgba(180,0,255,0.08);
  color: #f0e0ff;
  border-bottom-right-radius: 4px;
}

.chat-msg.bot .msg-bubble {
  background: rgba(20,0,40,0.4);
  border: 1px solid rgba(180,0,255,0.04);
  color: #d0c0e0;
  border-bottom-left-radius: 4px;
}

.chat-msg .msg-footer {
  display: flex; align-items: center; gap: 6px;
  margin-top: 4px;
  font-size: 10px; font-family: 'Share Tech Mono', monospace;
  color: rgba(240,224,255,0.08);
  padding: 0 4px;
}

.chat-msg.user .msg-footer { justify-content: flex-end; }

/* 打字指示器 */
.chat-typing {
  display: none; align-items: flex-start; gap: 10px;
  padding: 0 6px 6px;
}

.chat-typing.show { display: flex; }

.chat-typing .typing-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #1a0033, #4a0072);
  display: flex; align-items: center; justify-content: center;
  color: #ce93d8; font-size: 13px;
  border: 1px solid rgba(180,0,255,0.06);
  flex-shrink: 0;
}

.chat-typing .typing-bubble {
  display: flex; gap: 4px;
  padding: 12px 18px;
  background: rgba(20,0,40,0.4);
  border-radius: 16px;
  border: 1px solid rgba(180,0,255,0.04);
  border-bottom-left-radius: 4px;
}

.chat-typing .typing-bubble span {
  width: 6px; height: 6px;
  background: #b366ff; border-radius: 50%;
  animation: chatDot 1.4s ease-in-out infinite;
}

.chat-typing .typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing .typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.15; }
  30% { transform: translateY(-8px); opacity: 1; }
}

/* 輸入區 */
.chat-input-area { flex-shrink: 0; padding: 8px 0 16px; }

.chat-input-card {
  background: rgba(10,0,25,0.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(180,0,255,0.06);
  border-radius: 18px;
  padding: 5px;
  transition: all 0.4s ease;
  position: relative;
}

.chat-input-card:focus-within {
  border-color: rgba(180,0,255,0.2);
  box-shadow: 0 0 25px rgba(180,0,255,0.03);
}

.chat-input-row { display: flex; align-items: flex-end; gap: 8px; }

.chat-input-row textarea {
  flex: 1;
  background: transparent; border: none; outline: none;
  color: #f0e0ff;
  font-size: 14px; font-family: 'Noto Sans SC', sans-serif;
  padding: 10px 14px;
  resize: none; min-height: 22px; max-height: 100px;
  line-height: 1.5;
}

.chat-input-row textarea::placeholder { color: rgba(240,224,255,0.08); }

.chat-input-row .btn-send {
  width: 40px; height: 40px;
  border-radius: 12px; border: none;
  background: linear-gradient(135deg, #7b1fa2, #ce93d8);
  color: #fff; font-size: 16px;
  cursor: pointer; transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.chat-input-row .btn-send:hover {
  background: linear-gradient(135deg, #8e24aa, #e1bee7);
  box-shadow: 0 0 20px rgba(180,0,255,0.1);
  transform: translateY(-1px);
}

.chat-input-row .btn-send:disabled { opacity: 0.15; cursor: not-allowed; transform: none !important; }

.chat-input-footer {
  display: flex; justify-content: space-between;
  padding: 6px 10px 0;
  font-size: 10px; color: rgba(240,224,255,0.05);
  font-family: 'Share Tech Mono', monospace;
}

/* 空狀態 */
.chat-empty {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; opacity: 0.35;
}

.chat-empty .empty-icon { font-size: 44px; animation: chatEmptyFloat 4s ease-in-out infinite; }

@keyframes chatEmptyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.chat-empty .empty-text {
  font-size: 13px; color: rgba(240,224,255,0.15);
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 2px;
}


/* ==============================================================
   模組：定價 - 金色高規格訂閱主題 (pricing.html)
   ============================================================== */
.pricing-body {
  background: #0d0800;
  color: #fff8e7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 背景層 */
.price-bg-1,
.price-bg-2,
.price-bg-3,
.price-grid-bg {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}

.price-bg-2 {
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,215,0,0.02), transparent 25%, transparent 75%, rgba(200,150,0,0.015), transparent);
  animation: priceBgSpin 40s linear infinite;
}
@keyframes priceBgSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.price-bg-3 {
  opacity: 0.08;
  background:
    radial-gradient(circle at 30% 40%, #ffd700 0%, transparent 35%),
    radial-gradient(circle at 70% 60%, #ffaa00 0%, transparent 30%),
    radial-gradient(circle at 50% 20%, #ffe066 0%, transparent 25%);
  filter: blur(80px);
  animation: priceNebula 25s ease-in-out infinite alternate;
}
@keyframes priceNebula {
  0% { transform: translate(0,0) scale(1); opacity: 0.06; }
  50% { transform: translate(-15px,10px) scale(1.08); opacity: 0.10; }
  100% { transform: translate(10px,-15px) scale(0.92); opacity: 0.06; }
}

.price-grid-bg {
  opacity: 0.03;
  background:
    linear-gradient(rgba(255,215,0,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,215,0,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.price-scanline {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,215,0,0.01) 2px, rgba(255,215,0,0.01) 4px);
}

/* 主內容 */
.pricing-wrapper {
  position: relative;
  z-index: 10; /* 提高層級，確保在背景之上 */
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* 導航列 */
.price-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  background: rgba(13,8,0,0.5);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,215,0,0.06);
  border-radius: 16px;
  margin-bottom: 40px;
}
.price-nav .pn-left { display: flex; align-items: center; gap: 10px; }
.price-nav .pn-left h2 { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 2px; }
.price-nav .pn-left h2 span { color: #ffd700; text-shadow: 0 0 16px rgba(255,215,0,0.2); }
.price-nav .pn-right { font-size: 11px; color: rgba(255,248,231,0.5); font-family: 'Share Tech Mono', monospace; }

/* 標題 */
.price-title { text-align: center; margin-bottom: 44px; }
.price-title h1 { font-size: 34px; font-weight: 900; color: #fff; margin-bottom: 10px; letter-spacing: 4px; }
.price-title h1 .gold { color: #ffd700; text-shadow: 0 0 25px rgba(255,215,0,0.2), 0 0 50px rgba(255,215,0,0.08); }
.price-title p { font-size: 14px; color: #fff8e7; font-family: 'Share Tech Mono', monospace; letter-spacing: 2px; }

/* 方案卡片 */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 四個方案 */
  gap: 22px;
  margin-bottom: 36px;
}

.plan-card {
  position: relative;
  background: rgba(20,14,0,0.3);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,215,0,0.06);
  border-radius: 22px;
  padding: 36px 24px 32px;
  text-align: center;
  transition: all 0.5s ease;
  overflow: hidden;
  animation: planCardIn 0.7s ease-out forwards;
  opacity: 0; transform: translateY(30px);
}
.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.2s; }
.plan-card:nth-child(3) { animation-delay: 0.3s; }
.plan-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes planCardIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.plan-card:hover {
  border-color: rgba(255,215,0,0.15);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(255,215,0,0.03);
}

/* 價格文字 */
.plan-card .plan-price {
  font-size: 42px; font-weight: 900;
  color: #ffd700;
  font-family: 'Share Tech Mono', monospace;
  text-shadow: 0 0 25px rgba(255,215,0,0.1);
  margin-bottom: 4px;
}
.plan-card .plan-price::before {
  content: "💰 "; /* 加上 emoji */
}
.pm-price-big::before {
  content: "💰 ";
}
/* ==============================================================
   模組：忘記密碼 - 青色主題 (forgot-password.html)
   ============================================================== */
.forgot-body {
  background: #000d12;
  color: #e0f4ff;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}

.forgot-bg {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0,200,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(0,150,200,0.04) 0%, transparent 45%);
}

.forgot-scan {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,212,255,0.015) 3px, rgba(0,212,255,0.015) 6px);
}

#forgotParticles {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;
}

.forgot-wrapper {
  position: relative; z-index: 5;
  width: 100%; max-width: 420px;
  padding: 20px;
  animation: forgotIn 1s ease-out forwards;
}

@keyframes forgotIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.forgot-card {
  background: rgba(0,13,18,0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(0,212,255,0.08);
  border-radius: 24px;
  padding: 36px 32px 40px;
  text-align: center;
}

.forgot-card h1 {
  font-size: 22px; font-weight: 700; color: #fff;
  margin-bottom: 8px; letter-spacing: 3px;
}

.forgot-card h1 .highlight { color: #00d4ff; text-shadow: 0 0 20px rgba(0,212,255,0.3); }

.forgot-card p {
  font-size: 13px; color: rgba(0,212,255,0.3);
  margin-bottom: 24px; font-family: 'Share Tech Mono', monospace;
}

.forgot-card .form-group { margin-bottom: 16px; }

.forgot-card .form-group input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0,30,40,0.4);
  border: 1px solid rgba(0,212,255,0.08);
  border-radius: 14px;
  color: #e0f4ff;
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  outline: none;
  transition: all 0.4s ease;
  box-sizing: border-box;
  text-align: center;
}

.forgot-card .form-group input::placeholder { color: rgba(0,212,255,0.1); }

.forgot-card .form-group input:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 20px rgba(0,212,255,0.05);
}

.forgot-card .btn-reset {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #004466, #0088aa);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 14px;
  color: #fff;
  font-size: 15px; font-weight: 700;
  font-family: 'Noto Sans SC', sans-serif;
  cursor: pointer;
  transition: all 0.4s ease;
  letter-spacing: 2px;
}

.forgot-card .btn-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.08);
}

.forgot-card .back-link {
  display: inline-block; margin-top: 18px;
  font-size: 12px; color: rgba(0,212,255,0.2);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,212,255,0.08);
  transition: all 0.3s ease;
}

.forgot-card .back-link:hover { color: #00d4ff; }

.forgot-card .success-msg {
  display: none;
  padding: 20px;
  color: #00d4ff;
  font-size: 14px;
  line-height: 1.8;
}

.forgot-card .success-msg.show { display: block; }


/* ==============================================================
   模組：歷史記錄 - 橙色主題 (history.html)
   ============================================================== */
.history-body {
  background: #0d0800;
  color: #fff0e0;
  min-height: 100vh;
}

.history-bg {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(255,140,0,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 80%, rgba(255,100,0,0.03) 0%, transparent 45%);
}

.history-scan {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,140,0,0.015) 2px, rgba(255,140,0,0.015) 4px);
}

.history-wrapper {
  position: relative; z-index: 5;
  max-width: 800px; margin: 0 auto;
  padding: 24px 20px 60px;
}

.history-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}

.history-header .back-link {
  color: rgba(255,240,224,0.2);
  text-decoration: none; font-size: 20px;
  transition: all 0.3s ease;
}

.history-header .back-link:hover { color: #ff8c00; }

.history-header h1 {
  font-size: 20px; font-weight: 700; color: #fff;
  letter-spacing: 2px;
}

.history-header h1 span { color: #ff8c00; text-shadow: 0 0 16px rgba(255,140,0,0.2); }

.history-search {
  margin-bottom: 20px;
}

.history-search input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(30,15,0,0.3);
  border: 1px solid rgba(255,140,0,0.06);
  border-radius: 14px;
  color: #fff0e0;
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  outline: none;
  transition: all 0.4s ease;
  box-sizing: border-box;
}

.history-search input::placeholder { color: rgba(255,140,0,0.1); }

.history-search input:focus {
  border-color: rgba(255,140,0,0.15);
  box-shadow: 0 0 16px rgba(255,140,0,0.03);
}

.history-list { display: flex; flex-direction: column; gap: 8px; }

.history-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(20,10,0,0.2);
  border: 1px solid rgba(255,140,0,0.03);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.history-item:hover {
  border-color: rgba(255,140,0,0.08);
  background: rgba(30,15,0,0.2);
}

.history-item .h-icon { font-size: 20px; opacity: 0.4; }
.history-item .h-content { flex: 1; }
.history-item .h-content .h-title { font-size: 14px; color: #fff0e0; margin-bottom: 4px; }
.history-item .h-content .h-preview { font-size: 12px; color: rgba(255,240,224,0.2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 400px; }
.history-item .h-time { font-size: 11px; color: rgba(255,240,224,0.1); font-family: 'Share Tech Mono', monospace; white-space: nowrap; flex-shrink: 0; }

.history-empty {
  text-align: center; padding: 60px 20px;
  color: rgba(255,240,224,0.1);
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
}


/* ==============================================================
   模組：關於我們 - 銀白+紫主題 (about.html)
   ============================================================== */
.about-body {
  background: #08001a;
  color: #e8e0f0;
  min-height: 100vh;
}

.about-bg {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(150,100,255,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(100,50,200,0.03) 0%, transparent 45%);
}

.about-wrapper {
  position: relative; z-index: 5;
  max-width: 800px; margin: 0 auto;
  padding: 40px 24px 80px;
}

.about-header { text-align: center; margin-bottom: 48px; }

.about-header h1 {
  font-size: 30px; font-weight: 900; color: #fff;
  margin-bottom: 10px; letter-spacing: 4px;
}

.about-header h1 .highlight {
  background: linear-gradient(135deg, #9933ff, #aaaaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-header p {
  font-size: 14px; color: rgba(232,224,240,0.2);
  font-family: 'Share Tech Mono', monospace;
}

.about-section { margin-bottom: 40px; }

.about-section h2 {
  font-size: 18px; font-weight: 700;
  color: #9933ff;
  margin-bottom: 16px;
  text-shadow: 0 0 16px rgba(153,51,255,0.15);
}

.about-section p {
  font-size: 14px; line-height: 1.8;
  color: rgba(232,224,240,0.4);
}

.about-section .tech-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; list-style: none; padding: 0;
}

.about-section .tech-list li {
  padding: 10px 16px;
  background: rgba(30,0,60,0.15);
  border: 1px solid rgba(153,51,255,0.04);
  border-radius: 10px;
  font-size: 13px;
  color: rgba(232,224,240,0.4);
  display: flex; align-items: center; gap: 8px;
}

.about-section .tech-list li::before {
  content: '>';
  color: #9933ff;
}

.about-timeline { position: relative; }

.about-timeline::before {
  content: '';
  position: absolute; left: 16px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(153,51,255,0.15), transparent);
}

.about-timeline-item {
  position: relative;
  padding: 0 0 28px 44px;
}

.about-timeline-item::before {
  content: '';
  position: absolute; left: 10px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(153,51,255,0.2);
  border: 2px solid rgba(153,51,255,0.1);
}

.about-timeline-item .tl-date {
  font-size: 11px; color: rgba(153,51,255,0.2);
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 4px;
}

.about-timeline-item .tl-title {
  font-size: 14px; font-weight: 600; color: #fff;
  margin-bottom: 4px;
}

.about-timeline-item .tl-desc {
  font-size: 13px; color: rgba(232,224,240,0.3);
  line-height: 1.6;
}


/* ==============================================================
   模組：錢包連接 - 彩虹主題 (wallet-connect.html)
   ============================================================== */
.wallet-body {
  background: #0d0012;
  color: #f0e0ff;
  min-height: 100vh;
  overflow-x: hidden;
}

.wallet-bg {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,0,100,0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 70%, rgba(0,150,255,0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 30%, rgba(100,255,0,0.03) 0%, transparent 40%);
}

.wallet-wrapper {
  position: relative; z-index: 5;
  max-width: 600px; margin: 0 auto;
  padding: 40px 20px 60px;
}

.wallet-header { text-align: center; margin-bottom: 36px; }

.wallet-header .back-link {
  display: inline-block; margin-bottom: 16px;
  font-size: 12px; color: rgba(240,224,255,0.2);
  text-decoration: none;
  transition: all 0.3s ease;
}

.wallet-header .back-link:hover { color: #b366ff; }

.wallet-header h1 {
  font-size: 24px; font-weight: 700; color: #fff;
  margin-bottom: 8px; letter-spacing: 2px;
}

.wallet-header .rainbow {
  background: linear-gradient(90deg, #ff3388, #ff8c00, #ffd700, #00ff41, #0096ff, #9933ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wallet-header p { font-size: 13px; color: rgba(240,224,255,0.2); font-family: 'Share Tech Mono', monospace; }

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.wallet-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 16px;
  background: rgba(20,0,30,0.3);
  border: 1px solid rgba(240,224,255,0.04);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.4s ease;
  font-family: 'Noto Sans SC', sans-serif;
  color: rgba(240,224,255,0.3);
  font-size: 13px;
  text-decoration: none;
}

.wallet-btn:hover {
  border-color: rgba(240,224,255,0.1);
  background: rgba(30,0,50,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(240,224,255,0.02);
  color: #fff;
}

.wallet-btn .wallet-icon { font-size: 36px; }


/* ==============================================================
   模組：錢包轉帳釣魚 (wallet-transfer.html)
   ============================================================== */
.transfer-body {
  background: #0d0008;
  color: #ffd0d0;
  min-height: 100vh;
}

.transfer-bg {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(200,0,50,0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 70%, rgba(150,0,30,0.03) 0%, transparent 40%);
}

.transfer-wrapper {
  position: relative; z-index: 5;
  max-width: 500px; margin: 0 auto;
  padding: 40px 20px 60px;
}

.transfer-card {
  background: rgba(20,0,10,0.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,50,80,0.06);
  border-radius: 22px;
  padding: 32px 28px;
}

.transfer-card h1 {
  font-size: 20px; font-weight: 700; color: #ff3355;
  margin-bottom: 6px; text-align: center;
  text-shadow: 0 0 16px rgba(255,51,85,0.2);
}

.transfer-card .subtitle {
  text-align: center; font-size: 12px;
  color: rgba(255,208,208,0.2);
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 24px;
}

.transfer-card .form-group { margin-bottom: 14px; }

.transfer-card .form-group label {
  display: block;
  font-size: 11px; color: rgba(255,208,208,0.2);
  margin-bottom: 4px; letter-spacing: 1px;
  text-transform: uppercase;
}

.transfer-card .form-group input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(30,0,10,0.3);
  border: 1px solid rgba(255,50,80,0.06);
  border-radius: 12px;
  color: #ffd0d0;
  font-size: 14px;
  font-family: 'Share Tech Mono', monospace;
  outline: none;
  transition: all 0.4s ease;
  box-sizing: border-box;
}

.transfer-card .form-group input::placeholder { color: rgba(255,208,208,0.08); }
.transfer-card .form-group input:focus { border-color: rgba(255,50,80,0.15); }

.transfer-card .btn-transfer {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #660011, #aa0022);
  border: 1px solid rgba(255,50,80,0.1);
  border-radius: 14px;
  color: #fff;
  font-size: 15px; font-weight: 700;
  font-family: 'Noto Sans SC', sans-serif;
  cursor: pointer;
  transition: all 0.4s ease;
  letter-spacing: 2px;
  margin-top: 8px;
}

.transfer-card .btn-transfer:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,51,85,0.06);
}


/* ==============================================================
   模組：釣魚數據管理 (phish-data.html)
   ============================================================== */
.phish-body {
  background: #080008;
  color: #e0d0e0;
  min-height: 100vh;
}

.phish-bg {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(100,0,50,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(50,0,100,0.03) 0%, transparent 45%);
}

.phish-wrapper {
  position: relative; z-index: 5;
  max-width: 900px; margin: 0 auto;
  padding: 24px 20px 60px;
}

.phish-header { margin-bottom: 24px; }

.phish-header h1 {
  font-size: 22px; font-weight: 700; color: #ff3366;
  text-shadow: 0 0 20px rgba(255,51,102,0.15);
  letter-spacing: 2px;
}

.phish-header .phish-stats {
  display: flex; gap: 20px; margin-top: 12px;
  font-size: 12px; font-family: 'Share Tech Mono', monospace;
  color: rgba(224,208,224,0.2);
}

.phish-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(10,0,10,0.3);
  border: 1px solid rgba(255,51,102,0.04);
  border-radius: 14px;
  overflow: hidden;
}

.phish-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,51,102,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,51,102,0.04);
  background: rgba(30,0,15,0.2);
}

.phish-table td {
  padding: 10px 14px;
  font-size: 12px;
  color: rgba(224,208,224,0.4);
  font-family: 'Share Tech Mono', monospace;
  border-bottom: 1px solid rgba(255,51,102,0.02);
}

.phish-table tr:hover td { background: rgba(255,51,102,0.02); }

.phish-table .sensitive { color: #ff3366; }

.phish-empty {
  text-align: center; padding: 60px;
  color: rgba(224,208,224,0.1);
  font-family: 'Share Tech Mono', monospace;
}


/* ==============================================================
   響應式 - 所有頁面共用 (也可放在 responsive.css)
   ============================================================== */
@media (max-width: 768px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .plan-card.featured { transform: none; }
  .price-title h1 { font-size: 26px; }
  .wallet-grid { grid-template-columns: 1fr; }
  .about-section .tech-list { grid-template-columns: 1fr; }
  .chat-layout { padding: 0 10px; }
  .chat-header { padding: 10px 16px; }
  .chat-header .chat-brand .brand-text { font-size: 12px; }
  .chat-header .token-display { display: none; }
  .chat-msg { max-width: 95%; }
  .dash-header { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .dash-main { padding: 16px 12px 40px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dash-quick { grid-template-columns: repeat(2, 1fr); }
  .index-hero h1 { font-size: 32px; }
  .index-features { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 480px) {
  .dash-stats { grid-template-columns: 1fr; }
  .dash-quick { grid-template-columns: repeat(2, 1fr); }
  .login-card { padding: 28px 20px 32px; }
  .register-card { padding: 28px 20px 36px; }
  .price-title h1 { font-size: 20px; }
  .plan-card { padding: 28px 18px 26px; }
  .plan-card .plan-price { font-size: 34px; }
  .index-hero h1 { font-size: 24px; }
  .index-nav .nav-links a:not(.nav-cta) { display: none; }
  .about-wrapper { padding: 24px 16px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .dash-grid-bg, .dash-glow-bg, .dash-scanline,
  .chat-bg-2, .chat-bg-3, .chat-stars, .chat-scanline,
  .price-bg-2, .price-bg-3, .price-grid-bg, .price-scanline,
  .login-bg-2, .login-hex, .login-scan,
  .register-scan, .register-hex,
  .forgot-scan, .history-scan,
  .index-bg-2, .index-scan,
  .wallet-bg, .transfer-bg, .phish-bg,
  #loginParticles, #registerMatrix, #registerParticles,
  #indexParticles, #forgotParticles, #priceParticles,
  #particleCanvas { display: none; }
  body { background: #0a0012 !important; }
  .dash-stat-card, .dash-recent, .dash-banner,
  .plan-card, .price-footer-info,
  .login-wrapper, .register-wrapper,
  .chat-msg { animation: none; opacity: 1; transform: none; }
  .dash-banner::before,
  .login-card::before,
  .register-card::before,
  .plan-card::after { display: none; }
}
/* ==============================================================
   錢包連接頁面 - 強化樣式（2026 更新）
   ============================================================== */
.wallet-btn .wallet-name {
  font-weight: 600;
  font-size: 14px;
  color: inherit;
}

.wallet-btn.wallet-unavailable {
  opacity: 0.45;
  cursor: not-allowed;
}

.wallet-btn.wallet-unavailable:hover {
  transform: none;
  border-color: rgba(240,224,255,0.04);
  box-shadow: none;
}

.wallet-btn.wallet-loading {
  position: relative;
  pointer-events: none;
}

.wallet-btn.wallet-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: rgba(153, 51, 255, 0.15);
  animation: walletPulse 1.2s ease-in-out infinite;
}

@keyframes walletPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.wallet-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 204, 255, 0.15);
  color: #00ccff;
  border: 1px solid rgba(0, 204, 255, 0.2);
  font-family: 'Share Tech Mono', monospace;
}

.wallet-btn { position: relative; }

.wallet-message {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
  animation: verifyFadeIn 0.4s ease;
}
.wallet-message.success {
  background: rgba(0, 200, 100, 0.12);
  border: 1px solid rgba(0, 200, 100, 0.25);
  color: #6cf0a0;
}
.wallet-message.error {
  background: rgba(255, 50, 50, 0.12);
  border: 1px solid rgba(255, 50, 50, 0.25);
  color: #ff6b6b;
}
.wallet-message.info {
  background: rgba(0, 150, 255, 0.12);
  border: 1px solid rgba(0, 150, 255, 0.25);
  color: #66c2ff;
}

.wallet-info-box {
  margin-top: 30px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(20, 0, 40, 0.25);
  border: 1px solid rgba(153, 51, 255, 0.1);
}
.wallet-info-box h3 {
  font-size: 14px;
  color: #d4c0ff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wallet-info-box p,
.wallet-info-box li {
  font-size: 12px;
  color: rgba(224, 208, 255, 0.5);
  line-height: 1.8;
}
.wallet-info-box ul { padding-left: 18px; }

/* ==============================================================
   錢包連接頁面 - 錢包圖片頭卡樣式
   ============================================================== */
.wallet-btn .wallet-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wallet-btn:hover .wallet-logo {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(153, 51, 255, 0.25);
}

.wallet-btn .wallet-logo.wallet-icon-fallback {
  font-size: 28px;
  background: rgba(255, 255, 255, 0.05);
}

.wallet-btn.wallet-unavailable .wallet-logo {
  filter: grayscale(100%);
  opacity: 0.5;
}

@media (max-width: 480px) {
  .wallet-btn .wallet-logo {
    width: 44px;
    height: 44px;
  }
}

/* ==============================================================
   無道Ai Logo 圖片統一樣式
   ============================================================== */
.ai-logo-img {
  display: inline-block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 0 12px rgba(153, 51, 255, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.ai-logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(153, 51, 255, 0.6));
}

/* 導航欄 logo */
.index-nav .nav-logo .ai-logo-img {
  width: 32px;
  height: 32px;
}

/* 控制台 header logo */
.dash-header .logo-area .ai-logo-img {
  width: 36px;
  height: 36px;
}

/* 登入/註冊 brand logo */
.login-brand .ai-logo-img,
.reg-brand .ai-logo-img {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

/* Admin sidebar logo */
.sidebar-logo .ai-logo-img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
