/* ===========================================
   ASA - AI Super Ad | 艾超數位傳媒
   品牌風格：黑色科技 + 紫藍霓虹
   =========================================== */

:root {
  --asa-black: #000000;
  --asa-dark: #0a0a0f;
  --asa-dark-2: #13131a;
  --asa-white: #ffffff;
  --asa-gray: #a0a0b0;
  --asa-purple: #8b5cf6;
  --asa-blue: #6366f1;
  --asa-cyan: #06b6d4;
  --asa-neon: #a855f7;
  --asa-glow: rgba(139, 92, 246, 0.5);
}

* {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans TC', 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--asa-black);
  color: var(--asa-white);
  overflow-x: hidden;
  min-height: 100vh;
}

.font-tech {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.05em;
}

/* ============ 背景動畫：星空粒子 + 光束 ============ */

.bg-cosmic {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: 
    radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #000000 0%, #0a0a0f 50%, #000000 100%);
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(139, 92, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* 光束動畫 */
.light-beam {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.light-beam::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 100%;
  background: linear-gradient(180deg, 
    transparent 0%,
    rgba(139, 92, 246, 0.08) 20%,
    rgba(139, 92, 246, 0.15) 40%,
    rgba(99, 102, 241, 0.1) 70%,
    transparent 100%);
  filter: blur(40px);
  animation: beam-pulse 4s ease-in-out infinite;
}

@keyframes beam-pulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scaleY(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scaleY(1.05); }
}

/* 星星粒子 */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ============ Logo 區塊 ============ */

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 60px;
  animation: fade-in-down 0.8s ease-out;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: white;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  position: relative;
}

.logo-text::after {
  content: 'AI SUPER AD';
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  font-weight: 400;
  color: var(--asa-gray);
  margin-top: 4px;
  text-align: center;
  text-shadow: none;
}

@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ 吉祥物舞台 ============ */

.mascot-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 20px auto 0;
  padding: 10px;
  animation: fade-in-up 1s ease-out 0.3s both;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.mascot-platform {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40px;
  background: radial-gradient(ellipse at center, 
    rgba(139, 92, 246, 0.6) 0%,
    rgba(139, 92, 246, 0.3) 30%,
    transparent 70%);
  filter: blur(20px);
  animation: platform-glow 2s ease-in-out infinite;
}

@keyframes platform-glow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.mascot-image {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
  animation: float 4s ease-in-out infinite;
  filter: 
    drop-shadow(0 25px 50px rgba(139, 92, 246, 0.5))
    drop-shadow(0 10px 25px rgba(99, 102, 241, 0.4))
    drop-shadow(0 0 30px rgba(168, 85, 247, 0.3));
  z-index: 2;
  user-select: none;
  -webkit-user-drag: none;
}

/* 吉祥物背後的霓虹光暈 */
.mascot-glow-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  background: radial-gradient(circle at center,
    rgba(139, 92, 246, 0.4) 0%,
    rgba(99, 102, 241, 0.25) 30%,
    rgba(168, 85, 247, 0.1) 55%,
    transparent 75%);
  filter: blur(40px);
  animation: aura-pulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes aura-pulse {
  0%, 100% { 
    opacity: 0.6; 
    transform: translate(-50%, -50%) scale(1); 
  }
  50% { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1.1); 
  }
}

/* 吉祥物周圍的科技粒子 */
.mascot-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.particle {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(0.5px);
  animation: particle-float 5s ease-in-out infinite;
}

.particle.p1 {
  width: 8px; height: 8px;
  background: radial-gradient(circle, #a855f7, transparent);
  top: 15%; left: 10%;
  animation-delay: 0s;
  box-shadow: 0 0 15px #a855f7;
}
.particle.p2 {
  width: 6px; height: 6px;
  background: radial-gradient(circle, #06b6d4, transparent);
  top: 25%; right: 8%;
  animation-delay: 0.8s;
  box-shadow: 0 0 12px #06b6d4;
}
.particle.p3 {
  width: 5px; height: 5px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  top: 55%; left: 5%;
  animation-delay: 1.5s;
  box-shadow: 0 0 10px #8b5cf6;
}
.particle.p4 {
  width: 7px; height: 7px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: 65%; right: 7%;
  animation-delay: 2.2s;
  box-shadow: 0 0 14px #6366f1;
}
.particle.p5 {
  width: 4px; height: 4px;
  background: radial-gradient(circle, #a855f7, transparent);
  top: 40%; left: 12%;
  animation-delay: 3s;
  box-shadow: 0 0 10px #a855f7;
}
.particle.p6 {
  width: 6px; height: 6px;
  background: radial-gradient(circle, #06b6d4, transparent);
  top: 75%; right: 15%;
  animation-delay: 3.8s;
  box-shadow: 0 0 12px #06b6d4;
}

@keyframes particle-float {
  0%, 100% { 
    transform: translate(0, 0) scale(0.8);
    opacity: 0.3;
  }
  25% {
    transform: translate(10px, -15px) scale(1.2);
    opacity: 1;
  }
  50% { 
    transform: translate(-5px, -25px) scale(1);
    opacity: 0.8;
  }
  75% {
    transform: translate(-15px, -10px) scale(1.1);
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 吉祥物光環 */
.mascot-rings {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80px;
  pointer-events: none;
  z-index: 1;
}

.ring {
  position: absolute;
  bottom: 0;
  left: 50%;
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: ring-expand 3s ease-out infinite;
}

.ring:nth-child(1) {
  width: 100%;
  height: 20px;
  animation-delay: 0s;
}

.ring:nth-child(2) {
  width: 80%;
  height: 15px;
  animation-delay: 1s;
}

.ring:nth-child(3) {
  width: 60%;
  height: 10px;
  animation-delay: 2s;
}

@keyframes ring-expand {
  0% { opacity: 0.8; transform: translateX(-50%) scale(0.8); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.5); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ 歡迎文字 + Slogan ============ */

.welcome-text {
  text-align: center;
  margin: 20px auto 10px;
  padding: 0 20px;
  max-width: 460px;
  animation: fade-in-up 1s ease-out 0.5s both;
}

/* 品牌名稱 */
.welcome-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin: 0 0 14px 0;
  letter-spacing: 0.05em;
}

.welcome-title .font-tech {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.brand-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.8), transparent);
}

.brand-chinese {
  font-size: 0.95rem;
  font-weight: 500;
  color: #c4b5fd;
  letter-spacing: 0.2em;
}

/* Slogan - 主標語 */
.welcome-slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.slogan-highlight {
  background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
}

.slogan-comma {
  color: #a855f7;
  font-weight: 900;
  opacity: 0.8;
  margin: 0 -2px;
}

.slogan-text {
  color: white;
  font-weight: 700;
}

/* 無限符號 ∞ 旋轉動畫 */
.slogan-infinity {
  font-size: 1.4rem;
  display: inline-block;
  margin-left: 6px;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6, #a855f7, #8b5cf6, #06b6d4);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  animation: infinity-flow 3s linear infinite;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

@keyframes infinity-flow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* 副標題 */
.welcome-subtitle {
  font-size: 0.85rem;
  color: var(--asa-gray);
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1.6;
}

.welcome-subtitle .highlight {
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  padding: 0 2px;
}

/* ============ CTA 按鈕 ============ */

.cta-container {
  padding: 30px 24px 20px;
  max-width: 500px;
  margin: 0 auto;
  animation: fade-in-up 1s ease-out 0.7s both;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  background-size: 200% 200%;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 
    0 10px 30px rgba(139, 92, 246, 0.4),
    0 0 20px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: gradient-shift 3s ease infinite;
  text-decoration: none;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 15px 40px rgba(139, 92, 246, 0.6),
    0 0 30px rgba(139, 92, 246, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.cta-button:hover .cta-icon {
  transform: translateX(5px);
}

/* ============ 底部連結 ============ */

.footer-links {
  text-align: center;
  padding: 15px 24px;
  font-size: 0.8rem;
  color: var(--asa-gray);
  letter-spacing: 0.05em;
}

.footer-links a {
  color: var(--asa-gray);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0 8px;
}

.footer-links a:hover {
  color: var(--asa-purple);
}

.footer-divider {
  color: #444;
  margin: 0 4px;
}

/* ============ 浮動聯繫按鈕群組 ============ */

.contact-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
  animation: fade-in-up 1s ease-out 1s both;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, var(--btn-glow, rgba(139, 92, 246, 0.3)));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--btn-border, rgba(139, 92, 246, 0.8));
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px var(--btn-glow, rgba(139, 92, 246, 0.4));
}

.contact-btn:hover::before {
  opacity: 1;
}

.contact-btn i {
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.contact-label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
  letter-spacing: 0.05em;
}

/* 電話按鈕 - 紫色主題 */
.phone-btn {
  --btn-glow: rgba(139, 92, 246, 0.5);
  --btn-border: rgba(139, 92, 246, 0.8);
}

.phone-btn i {
  color: #a855f7;
  animation: phone-ring 3s ease-in-out infinite;
}

@keyframes phone-ring {
  0%, 95%, 100% { transform: rotate(0deg); }
  96% { transform: rotate(-15deg); }
  97% { transform: rotate(15deg); }
  98% { transform: rotate(-15deg); }
  99% { transform: rotate(15deg); }
}

/* LINE 按鈕 - 綠色主題 */
.line-btn {
  --btn-glow: rgba(0, 195, 0, 0.5);
  --btn-border: rgba(0, 195, 0, 0.8);
  background: linear-gradient(135deg, rgba(0, 195, 0, 0.15), rgba(10, 10, 20, 0.85));
  border-color: rgba(0, 195, 0, 0.4);
}

.line-btn i {
  color: #00c300;
  font-size: 1.3rem;
}

.line-btn:hover {
  background: linear-gradient(135deg, rgba(0, 195, 0, 0.3), rgba(10, 10, 20, 0.9));
}

/* 手機版：按鈕縮小 */
@media (max-width: 480px) {
  .contact-floating {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }
  
  .contact-btn {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
  
  .contact-btn i {
    font-size: 1rem;
  }
}

/* ============ 平台圖示浮動 ============ */

.platform-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px auto;
  animation: fade-in-up 1s ease-out 0.6s both;
}

.platform-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 1.2rem;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.platform-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--icon-color-1, #8b5cf6), var(--icon-color-2, #6366f1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.platform-icon:hover::before {
  opacity: 1;
}

.platform-icon i {
  position: relative;
  z-index: 1;
}

.platform-icon.meta {
  --icon-color-1: #0668E1;
  --icon-color-2: #1877F2;
}

.platform-icon.instagram {
  --icon-color-1: #E1306C;
  --icon-color-2: #F77737;
}

.platform-icon.tiktok {
  --icon-color-1: #FF0050;
  --icon-color-2: #00F2EA;
}

.platform-icon.google {
  --icon-color-1: #EA4335;
  --icon-color-2: #4285F4;
}

/* ============ 整體佈局 ============ */

.container-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  position: relative;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  padding: 0 16px;
}

/* ============ 響應式 ============ */

@media (max-width: 480px) {
  .logo-container {
    margin-top: 40px;
  }
  
  .logo-text {
    font-size: 1.8rem;
  }
  
  .mascot-stage {
    max-width: 320px;
  }
  
  .welcome-title {
    font-size: 1.1rem;
  }
  
  .welcome-subtitle {
    font-size: 0.8rem;
  }
}

@media (min-width: 768px) {
  .logo-text {
    font-size: 2.8rem;
  }
  
  .mascot-stage {
    max-width: 480px;
  }
  
  .welcome-title {
    font-size: 1.5rem;
  }
}

/* ============ 載入動畫 ============ */

.loading-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
}

.loading-dots span {
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: loading-pulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ============ 滾動條 ============ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--asa-black);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--asa-purple), var(--asa-blue));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--asa-neon), var(--asa-purple));
}

/* ================================================
   登入頁樣式
   ================================================ */

.login-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 40px;
  position: relative;
  z-index: 1;
}

/* 頂部 */
.login-header {
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  animation: fade-in-down 0.6s ease-out;
}

.login-back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-back:hover {
  background: rgba(139, 92, 246, 0.3);
  transform: translateX(-3px);
}

.login-brand .logo-text {
  font-size: 1.5rem;
  margin: 0;
}

.login-brand .logo-text::after {
  display: none;
}

/* 登入卡片 */
.login-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(10, 10, 20, 0.6));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 24px;
  padding: 30px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(139, 92, 246, 0.1);
  animation: fade-in-up 0.7s ease-out;
  position: relative;
}

/* 迷你吉祥物 */
.login-mascot {
  width: 100px;
  height: 100px;
  margin: -70px auto 15px;
  position: relative;
  animation: float 4s ease-in-out infinite;
}

.login-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(139, 92, 246, 0.5));
}

.login-mascot-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.6), transparent 70%);
  filter: blur(20px);
  animation: aura-pulse 3s ease-in-out infinite;
  z-index: 1;
}

/* 標題 */
.login-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.login-title .font-tech {
  font-size: 1.4rem;
  background: linear-gradient(135deg, #ffffff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.login-title-sub {
  font-size: 1.1rem;
  color: white;
  font-weight: 600;
}

.login-subtitle {
  text-align: center;
  color: var(--asa-gray);
  font-size: 0.85rem;
  margin: 0 0 25px;
  letter-spacing: 0.05em;
}

/* 錯誤訊息 */
.login-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* 登入方式容器 */
.login-method {
  margin-bottom: 20px;
}

.login-method-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c4b5fd;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.login-method-header i {
  color: #a855f7;
}

/* 手機輸入 */
.phone-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.phone-country {
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 100px;
}

.phone-country:focus {
  outline: none;
  border-color: #8b5cf6;
}

.phone-input {
  flex: 1;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
}

.phone-input:focus {
  outline: none;
  border-color: #a855f7;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.phone-input::placeholder {
  color: #666;
}

/* 統一按鈕樣式 */
.method-btn {
  width: 100%;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.method-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(139, 92, 246, 0.5);
}

.method-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.method-btn-link {
  width: 100%;
  background: none;
  border: none;
  color: var(--asa-gray);
  font-size: 0.85rem;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.3s;
  margin-top: 6px;
}

.method-btn-link:hover {
  color: #a855f7;
}

/* OTP 輸入 */
.otp-hint {
  text-align: center;
  color: var(--asa-gray);
  font-size: 0.85rem;
  margin: 0 0 16px;
}

.otp-hint strong {
  color: white;
  font-family: 'Orbitron', monospace;
}

.otp-input-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.otp-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  color: white;
  font-family: 'Orbitron', monospace;
  transition: all 0.2s;
}

.otp-digit:focus {
  outline: none;
  border-color: #a855f7;
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  transform: scale(1.05);
}

.otp-demo-hint {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fde68a;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  margin-bottom: 12px;
  text-align: center;
}

.otp-demo-hint code {
  background: rgba(251, 191, 36, 0.25);
  color: #fef3c7;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.resend-timer {
  text-align: center;
  color: var(--asa-gray);
  font-size: 0.8rem;
  margin-top: 12px;
}

.resend-timer strong {
  color: #a855f7;
  font-family: 'Orbitron', monospace;
}

.resend-timer a {
  color: #a855f7;
  text-decoration: none;
  font-weight: 600;
}

.resend-timer a:hover {
  text-decoration: underline;
}

/* 分隔線 */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  color: var(--asa-gray);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

/* 社群登入 */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.google-btn:hover {
  border-color: #4285F4;
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.3);
}

.line-btn-social:hover {
  border-color: #00c300;
  box-shadow: 0 8px 20px rgba(0, 195, 0, 0.3);
}

/* 服務條款 */
.login-terms {
  text-align: center;
  color: var(--asa-gray);
  font-size: 0.75rem;
  margin: 20px 0 0;
  line-height: 1.6;
}

.login-terms a {
  color: #a855f7;
  text-decoration: none;
}

.login-terms a:hover {
  text-decoration: underline;
}

/* 底部 */
.login-footer {
  margin-top: 30px;
  text-align: center;
  color: var(--asa-gray);
  font-size: 0.8rem;
  animation: fade-in-up 1s ease-out 0.4s both;
}

.login-contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.login-contact-links a {
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 20px;
  transition: all 0.3s;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-contact-links a:hover {
  background: rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}

.login-contact-links span {
  opacity: 0.5;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-150px);
  padding: 14px 20px;
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  min-width: 250px;
  max-width: 90vw;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.5);
}

.toast-success i {
  color: #22c55e;
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.5);
}

.toast-error i {
  color: #ef4444;
}

/* 響應式 */
@media (max-width: 480px) {
  .login-card {
    padding: 25px 20px;
  }
  
  .otp-digit {
    width: 42px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .login-contact-links {
    flex-direction: column;
    gap: 8px;
  }
  
  .login-contact-links span {
    display: none;
  }
}

/* ================================================
   Onboarding 頁樣式
   ================================================ */

.onboarding-wrapper {
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  position: relative;
  z-index: 1;
}

.onboarding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.onboarding-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.onboarding-logout:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* 進度條 */
.onboarding-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 30px;
  gap: 8px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 70px;
}

.progress-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(139, 92, 246, 0.3);
  color: #888;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
  transition: all 0.4s;
}

.progress-step.active .progress-circle {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  border-color: #a855f7;
  color: white;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
  transform: scale(1.1);
}

.progress-step.completed .progress-circle {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: #22c55e;
  color: white;
}

.progress-step.completed .progress-circle::before {
  content: '✓';
  font-size: 1.1rem;
}

.progress-step.completed .progress-circle {
  font-size: 0;
}

.progress-label {
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.progress-step.active .progress-label,
.progress-step.completed .progress-label {
  color: white;
}

.progress-line {
  flex: 1;
  height: 2px;
  background: rgba(139, 92, 246, 0.2);
  margin: 0 4px;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  max-width: 80px;
  margin-bottom: 25px;
}

.progress-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  transition: width 0.6s ease;
  width: 0%;
}

/* 歡迎訊息 */
.onboarding-welcome {
  text-align: center;
  margin-bottom: 25px;
}

.onboarding-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.onboarding-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: white;
}

.onboarding-title .font-tech {
  background: linear-gradient(135deg, #ffffff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.onboarding-subtitle {
  color: #a0a0b0;
  font-size: 0.9rem;
  margin: 0;
}

.onboarding-subtitle .highlight {
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* 步驟卡片 */
.onboarding-card.step-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(10, 10, 20, 0.6));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 20px;
  animation: fade-in-up 0.5s ease-out;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.step-header i {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.step-desc {
  color: #a0a0b0;
  font-size: 0.85rem;
  margin: 0 0 20px;
  line-height: 1.6;
}

/* 表單 */
.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #c4b5fd;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group label i {
  color: #a855f7;
  font-size: 0.9rem;
}

.form-group label .required {
  color: #f87171;
  font-weight: 900;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  transition: all 0.3s;
  font-family: inherit;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #a855f7;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-input::placeholder {
  color: #555;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a855f7'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 35px;
}

select.form-input option {
  background: #0a0a0f;
  color: white;
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #888;
}

.form-hint code {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
}

/* 步驟按鈕 */
.step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-size: 0.95rem;
  font-family: inherit;
  letter-spacing: 0.05em;
}

.step-btn.primary {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
  margin-top: 10px;
}

.step-btn.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.5);
}

.step-btn.primary.large {
  padding: 18px 32px;
  font-size: 1.05rem;
  margin-top: 25px;
}

.step-btn.secondary {
  background: rgba(139, 92, 246, 0.15);
  color: white;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.step-btn.secondary:hover:not(:disabled) {
  background: rgba(139, 92, 246, 0.25);
  transform: translateY(-1px);
}

.step-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.step-btn-link {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
  font-family: inherit;
}

.step-btn-link:hover {
  color: #a855f7;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

/* 平台選擇器 */
.platform-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.platform-option {
  padding: 16px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  color: #aaa;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
}

.platform-option i {
  font-size: 1.5rem;
}

.platform-option:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
}

.platform-option.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.15));
  border-color: #a855f7;
  color: white;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.platform-option.active i {
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 廣告帳戶表單 */
.ad-account-form {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.ad-form-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-form-title i {
  color: #a855f7;
}

/* 廣告帳戶列表 */
.ad-accounts-list {
  margin-bottom: 15px;
}

.ad-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.3s;
}

.ad-account-item:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.05);
}

.account-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.account-info {
  flex: 1;
  min-width: 0;
}

.account-name {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #888;
  flex-wrap: wrap;
}

.status-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.status-pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-active {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-expired, .status-disabled {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.account-remove {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-remove:hover {
  background: rgba(239, 68, 68, 0.3);
}

.empty-accounts {
  text-align: center;
  padding: 30px 20px;
  color: #666;
}

.empty-accounts i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
  opacity: 0.4;
}

.empty-accounts p {
  margin: 0;
  font-size: 0.9rem;
}

/* 完成動畫 */
.completion-animation {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 25px;
}

.completion-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.5);
  animation: bounce-in 0.6s ease-out;
  z-index: 2;
}

@keyframes bounce-in {
  0% { transform: translate(-50%, -50%) scale(0); }
  60% { transform: translate(-50%, -50%) scale(1.15); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.completion-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 2px solid rgba(34, 197, 94, 0.5);
  border-radius: 50%;
  animation: ring-expand-success 2s ease-out infinite;
}

@keyframes ring-expand-success {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
}

.completion-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: white;
}

.completion-subtitle {
  text-align: center;
  color: #a0a0b0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 25px;
}

.completion-subtitle strong {
  background: linear-gradient(135deg, #ffffff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.completion-summary {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
}

.completion-summary h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #86efac;
  display: flex;
  align-items: center;
  gap: 8px;
}

.completion-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.completion-summary li {
  padding: 6px 0;
  color: #ddd;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.completion-summary li i {
  color: #22c55e;
}

.completion-notice {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  gap: 12px;
  color: #ddd;
  font-size: 0.85rem;
  line-height: 1.6;
}

.completion-notice i {
  color: #a855f7;
  flex-shrink: 0;
  margin-top: 2px;
}

.onboarding-footer {
  text-align: center;
  margin-top: 30px;
  color: #666;
  font-size: 0.8rem;
}

/* ================================================
   Dashboard 樣式
   ================================================ */

.dashboard-wrapper {
  min-height: 100vh;
  padding: 20px 16px 40px;
  position: relative;
  z-index: 1;
}

.dashboard-header {
  max-width: 1100px;
  margin: 0 auto 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-brand .logo-text {
  font-size: 1.5rem;
  margin: 0;
}

.dashboard-brand .logo-text::after {
  display: none;
}

.dashboard-tag {
  padding: 3px 10px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  font-size: 0.7rem;
  color: #c4b5fd;
  font-weight: 600;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.1em;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.5);
}

.dashboard-username {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-logout {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.dashboard-logout:hover {
  background: rgba(239, 68, 68, 0.25);
}

.dashboard-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* 歡迎橫幅 */
.dashboard-welcome-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 20px 25px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.dashboard-welcome-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin: 0 0 4px;
}

.dashboard-welcome-title span {
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dashboard-welcome-sub {
  color: #a0a0b0;
  font-size: 0.85rem;
  margin: 0;
}

.dashboard-welcome-sub .font-tech {
  color: white;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
}

.dashboard-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s;
  box-shadow: 0 6px 15px rgba(245, 158, 11, 0.3);
}

.dashboard-cta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.4);
}

/* 統計卡 */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 14px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stat-label {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  font-family: 'Orbitron', monospace;
}

/* Dashboard 卡片 */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.dashboard-card {
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.card-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header h3 i {
  color: #a855f7;
}

.card-edit {
  color: #a855f7;
  text-decoration: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 0.85rem;
}

.card-edit:hover {
  background: rgba(139, 92, 246, 0.25);
}

/* 個人資料 */
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(139, 92, 246, 0.1);
  font-size: 0.85rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #888;
}

.info-value {
  color: white;
  font-weight: 600;
  text-align: right;
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Dashboard 廣告帳戶迷你列表 */
.ad-accounts-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ad-mini-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 10px;
}

.ad-mini-item i {
  font-size: 1.3rem;
}

.ad-mini-info {
  flex: 1;
  min-width: 0;
}

.ad-mini-name {
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-mini-meta {
  color: #888;
  font-size: 0.7rem;
  margin-top: 2px;
}

/* 空狀態 */
.empty-state {
  text-align: center;
  padding: 25px 15px;
  color: #666;
}

.empty-state i {
  font-size: 2.5rem;
  opacity: 0.4;
  margin-bottom: 10px;
  display: block;
}

.empty-state p {
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.empty-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a855f7;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 20px;
  transition: all 0.3s;
}

.empty-action:hover {
  background: rgba(139, 92, 246, 0.15);
}

/* CTA 卡 */
.dashboard-cta-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.2);
  color: #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dashboard-cta-card > div:nth-child(2) {
  flex: 1;
  min-width: 200px;
}

.dashboard-cta-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: white;
  font-weight: 700;
}

.dashboard-cta-card p {
  margin: 0;
  color: #a0a0b0;
  font-size: 0.85rem;
}

.cta-main-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: white;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.3);
}

.cta-main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5);
}

.dashboard-notice {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 12px;
  padding: 15px;
  color: #fde68a;
  font-size: 0.85rem;
  line-height: 1.6;
  display: flex;
  gap: 12px;
}

.dashboard-notice i {
  flex-shrink: 0;
  color: #fbbf24;
  margin-top: 2px;
}

/* ================================================
   Login 頁 - Facebook 按鈕 + 優勢提示
   ================================================ */

.facebook-btn {
  background: linear-gradient(135deg, #1877F2, #0d5fcc);
  border: 1px solid #1877F2;
  color: white;
  position: relative;
}

.facebook-btn i {
  color: white;
  font-size: 1.4rem;
}

.facebook-btn:hover {
  background: linear-gradient(135deg, #0d5fcc, #0a4ca8);
  border-color: #0d5fcc;
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.recommended-badge {
  position: absolute;
  top: -8px;
  right: 15px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
  letter-spacing: 0.05em;
}

.fb-advantage {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 15px;
  background: rgba(24, 119, 242, 0.08);
  border: 1px solid rgba(24, 119, 242, 0.25);
  border-radius: 10px;
  margin-top: 15px;
  color: #93c5fd;
  font-size: 0.8rem;
  line-height: 1.5;
}

.fb-advantage i {
  color: #fbbf24;
  margin-top: 2px;
  flex-shrink: 0;
}

.fb-advantage strong {
  color: #60a5fa;
}

.oauth-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Demo 按鈕 */
.demo-btn {
  background: rgba(251, 191, 36, 0.08);
  border: 1px dashed rgba(251, 191, 36, 0.4);
  color: #fde68a;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
}

.demo-btn:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.6);
}

.demo-btn i {
  color: #fbbf24;
}

/* ================================================
   響應式
   ================================================ */

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .dashboard-welcome-banner,
  .dashboard-cta-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .onboarding-progress .progress-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .stat-card {
    padding: 12px;
  }
  
  .stat-value {
    font-size: 0.95rem;
  }
  
  .platform-selector {
    gap: 6px;
  }
  
  .platform-option {
    padding: 12px 6px;
    font-size: 0.75rem;
  }
  
  .platform-option i {
    font-size: 1.2rem;
  }
}
