@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

body {
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
    background: #090615 !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(9, 6, 21, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* Animated background blobs */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    mix-blend-mode: screen;
}
.blob-1 {
    top: -15%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 80%);
    animation: drift 25s infinite alternate ease-in-out;
}
.blob-2 {
    bottom: -15%;
    right: -5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 80%);
    animation: drift-reverse 30s infinite alternate ease-in-out;
}
.blob-3 {
    top: 35%;
    left: 45%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 80%);
    animation: pulse-zoom 20s infinite alternate ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(120px, 80px) rotate(180deg); }
}
@keyframes drift-reverse {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-120px, -80px) rotate(-180deg); }
}
@keyframes pulse-zoom {
    0% { transform: scale(1) translate(0, 0); opacity: 0.25; }
    50% { transform: scale(1.2) translate(50px, -30px); opacity: 0.45; }
    100% { transform: scale(0.85) translate(-30px, 50px); opacity: 0.25; }
}

/* Glassmorphism card */
.glass {
    position: relative;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 2;
    transition: all 0.5s ease;
}
.glass:hover {
    transform: translateY(-4px) scale(1.005);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 40px 80px -20px rgba(139, 92, 246, 0.15),
                0 0 1px 1px rgba(139, 92, 246, 0.1);
}

/* Title text gradient clip */
.title-gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #f472b6 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Neon text & glows */
.neon-text {
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.45), 0 0 40px rgba(167, 139, 250, 0.2);
}

/* Glow Button with flow transition */
.glow-btn {
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #8b5cf6);
    background-size: 200% auto;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: flowBg 4s linear infinite;
}
.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5), 0 0 20px rgba(236, 72, 153, 0.25);
}
.glow-btn:active {
    transform: translateY(1px);
}

@keyframes flowBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Smooth entrances */
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success SVG draw animation */
.svg-checkmark {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawCheckmark 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}
.svg-circle {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawCircle 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes drawCheckmark {
    to { stroke-dashoffset: 0; }
}
@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

/* Error SVG animation */
.svg-error-line1 {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheckmark 0.4s ease-out 0.4s forwards;
}
.svg-error-line2 {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheckmark 0.4s ease-out 0.6s forwards;
}

/* Custom interactive input classes */
.custom-input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255,255,255,0.05);
    outline: none;
}

/* Pulse animation for active sync status indicator */
.dot-pulse {
    animation: dotPulse 1.8s infinite ease-in-out;
}
@keyframes dotPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 10px currentColor; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Ticking Clock slow spin animation */
.animate-spin-slow {
    animation: spinSlow 12s linear infinite;
}
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
