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

* {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --violet-accent: #a78bfa;
    --violet-dark: #8b5cf6;
    --violet-light: #c4b5fd;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(167, 139, 250, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.15),
                0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.header-glass {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.compact-p {
    padding: 0.875rem;
}

@media (max-width: 640px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1025px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.product-grid > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.product-grid > *:nth-child(1) { animation-delay: 0.05s; }
.product-grid > *:nth-child(2) { animation-delay: 0.1s; }
.product-grid > *:nth-child(3) { animation-delay: 0.15s; }
.product-grid > *:nth-child(4) { animation-delay: 0.2s; }
.product-grid > *:nth-child(5) { animation-delay: 0.25s; }
.product-grid > *:nth-child(6) { animation-delay: 0.3s; }
.product-grid > *:nth-child(7) { animation-delay: 0.35s; }
.product-grid > *:nth-child(8) { animation-delay: 0.4s; }

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

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.7);
}

.captcha-error {
    border-color: rgba(239, 68, 68, 0.5) !important;
    background: rgba(239, 68, 68, 0.05);
}

.captcha-success {
    border-color: rgba(34, 197, 94, 0.5) !important;
    background: rgba(34, 197, 94, 0.05);
}