* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0D1421;
}

::-webkit-scrollbar-thumb {
    background: #243044;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #324560;
}

/* Slider styling */
.sector-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    outline: none;
}

.sector-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(103, 232, 249, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sector-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(103, 232, 249, 0.5);
}

.sector-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(103, 232, 249, 0.3);
}

.sector-slider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sector-slider:disabled::-webkit-slider-thumb {
    cursor: not-allowed;
}

/* Confetti animation */
@keyframes confetti-fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti-particle {
    animation: confetti-fall 2s ease-out forwards;
    border-radius: 2px;
}

/* Glow effects */
.glow-btc {
    box-shadow: 0 0 30px rgba(247, 147, 26, 0.2);
}

.glow-eth {
    box-shadow: 0 0 30px rgba(98, 126, 234, 0.2);
}

.glow-defi {
    box-shadow: 0 0 30px rgba(0, 211, 149, 0.2);
}

/* Input focus glow */
input:focus {
    box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.2);
}

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sector-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
}

/* Gradient border effect */
.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    -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;
}

/* Number input hide arrows */
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;
}

/* Pulse animation for valid state */
@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
}

.valid-pulse {
    animation: pulse-green 2s infinite;
}