* {
    font-family: 'Inter', sans-serif;
}

body {
    background: #020617;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(45, 212, 191, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.glow-purple {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.glow-teal {
    box-shadow: 0 0 40px rgba(45, 212, 191, 0.3);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
    }
}

.pulse-btn {
    animation: pulse-glow 2s ease-in-out infinite;
}

.gradient-border {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(45, 212, 191, 0.1));
    border: 1px solid transparent;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #8B5CF6, #2DD4BF);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Wallet Card Animation */
.wallet-card {
    transition: transform 0.3s ease;
}

/* Feature Cards */
.feature-card {
    transform: translateY(30px);
    opacity: 0;
}

.feature-card.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Security Items */
.security-item {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.3s ease;
}

.security-item.visible {
    transform: translateY(0);
    opacity: 1;
}

.security-item:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

/* Coin Dropdown */
#coinDropdown {
    transition: all 0.3s ease;
}

#coinDropdown.hidden {
    display: none;
}

/* Input styling */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Chart animation */
#rewardsChart path {
    transition: all 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wallet-card {
        max-width: 100% !important;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
}

/* Scroll animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for buttons */
a.gradient-border:hover,
button.gradient-border:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(45, 212, 191, 0.2));
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* Loading state for calculator */
.calculating {
    opacity: 0.7;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
