* { font-family: 'Inter', sans-serif; }

:root {
    --glow-violet: rgba(139, 92, 246, 0.4);
    --glow-blue: rgba(96, 165, 250, 0.3);
}

body {
    background-color: #0a0a0f;
    color: #e4e4e7;
    overflow-x: hidden;
    cursor: default;
}

/* Background Particles */
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #a78bfa;
    border-radius: 50%;
    animation: floatUp 8s linear infinite;
    opacity: 0;
}

.particle:nth-child(odd) { background: #60a5fa; animation-duration: 10s; }
.particle:nth-child(3n) { background: #f472b6; animation-duration: 7s; }

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* Background Grid */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Hero Background */
.hero-bg {
    background-image: url('https://image.qwenlm.ai/public_source/4fa7433b-d03d-4d87-a64f-e28c308cc81b/1d919086b-f37a-490d-af27-3f65de6499dd.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Glass Effects */
.glass {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-light {
    background: rgba(30, 30, 45, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Drop Zone */
.drop-zone {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.4) 0%, rgba(20, 20, 35, 0.6) 100%);
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(96, 165, 250, 0.1) 50%, rgba(244, 114, 182, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.drop-zone:hover::before, .drop-zone.drag-over::before { opacity: 1; }

.drop-zone::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, 0.1), transparent, rgba(96, 165, 250, 0.1), transparent);
    animation: rotateBorder 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.drop-zone:hover::after, .drop-zone.drag-over::after { opacity: 1; }

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

.drop-zone:hover, .drop-zone.drag-over {
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -10px rgba(139, 92, 246, 0.3), 0 0 120px -20px rgba(96, 165, 250, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    background-size: 200% 200%;
}

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

/* Telegram Button */
.telegram-btn {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.telegram-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.telegram-btn:hover::after { left: 100%; }
.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px rgba(42, 171, 238, 0.5);
}

/* Pulse Ring */
.pulse-ring {
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

/* Progress Bar */
.progress-bar {
    background: linear-gradient(90deg, #a78bfa, #60a5fa, #f472b6, #a78bfa);
    background-size: 300% 100%;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Result Box */
.result-box {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    font-family: 'Inter', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    transition: all 0.3s ease;
}

.result-box:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 30px -10px rgba(139, 92, 246, 0.2);
}

/* Copy Button */
.copy-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 20px -5px rgba(139, 92, 246, 0.3);
}

.copy-btn.copied {
    background: rgba(74, 222, 128, 0.2);
    border-color: rgba(74, 222, 128, 0.4);
}

/* Spinner */
.spinner {
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: #a78bfa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Preview Image */
.preview-img {
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.preview-img:hover { transform: scale(1.02); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, #a78bfa, #60a5fa);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { 
    background: linear-gradient(180deg, #c4b5fd, #93c5fd);
}

/* Feature Cards */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px -15px rgba(139, 92, 246, 0.2), 0 0 80px -20px rgba(96, 165, 250, 0.15);
}

/* Glow Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 6s ease-in-out infinite;
}

.glow-orb-1 {
    width: 300px; height: 300px;
    background: #a78bfa;
    top: 10%; right: -100px;
}

.glow-orb-2 {
    width: 250px; height: 250px;
    background: #60a5fa;
    bottom: 20%; left: -80px;
    animation-delay: -3s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Checkmark Animation */
.checkmark-animate {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkmarkDraw 0.6s ease-out forwards;
}

@keyframes checkmarkDraw {
    from { stroke-dashoffset: 50; }
    to { stroke-dashoffset: 0; }
}

/* Glitch Effect */
.glitch-hover:hover { animation: glitch 0.3s ease; }

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -1px); }
}

/* SEO Content Styling */
.seo-content {
    max-width: 800px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e4e4e7;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #a78bfa;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.seo-content p {
    color: #a1a1aa;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.seo-content ul {
    list-style: none;
    padding-left: 0;
}

.seo-content ul li {
    color: #a1a1aa;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.seo-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #a78bfa;
}