* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #0a0e27;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.font-orbitron {
    font-family: 'Orbitron', monospace;
}

.font-rajdhani {
    font-family: 'Rajdhani', sans-serif;
}

/* Background particles */
.particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 0, 85, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(212, 165, 116, 0.02) 0%, transparent 50%);
}

/* Floating particles animation */
@keyframes float-particle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    50% { transform: translateY(-200px) translateX(30px); }
}

.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    animation: float-particle 8s infinite;
    pointer-events: none;
}

/* Neon glow effects */
.neon-glow {
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.1);
}

.neon-glow-strong {
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 212, 255, 0.2), 0 0 60px rgba(0, 212, 255, 0.1);
}

.gold-glow {
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.5), 0 0 30px rgba(212, 165, 116, 0.2);
}

/* Pulse animation */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.4), 0 0 20px rgba(0, 212, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.1); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Gradient border animation */
@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-border {
    background: linear-gradient(270deg, #00d4ff, #ff0055, #d4a574, #00d4ff);
    background-size: 400% 400%;
    animation: gradient-rotate 4s ease infinite;
    padding: 2px;
    border-radius: 12px;
}

/* Score counter animation */
@keyframes count-up {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.score-animate {
    animation: count-up 0.5s ease-out;
}

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

.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confetti-fall 3s linear forwards;
    pointer-events: none;
    z-index: 9999;
}

/* Trait button hover */
.trait-btn {
    transition: all 0.3s ease;
}

.trait-btn:hover:not(.disabled) {
    transform: translateY(-2px) scale(1.02);
}

.trait-btn.selected {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4), inset 0 0 15px rgba(0, 212, 255, 0.1);
}

/* Dragon color button */
.dragon-color-btn {
    transition: all 0.3s ease;
}

.dragon-color-btn:hover {
    transform: scale(1.15);
}

.dragon-color-btn.selected {
    box-shadow: 0 0 0 3px #0a0e27, 0 0 0 5px #00d4ff, 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Tab styles */
.tab-btn {
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    border-bottom-color: #00d4ff;
    color: #00d4ff;
}

/* Generate button */
.generate-btn {
    transition: all 0.3s ease;
}

.generate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 0 60px rgba(0, 212, 255, 0.2);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1f3a;
}

::-webkit-scrollbar-thumb {
    background: #00d4ff44;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00d4ff88;
}

/* Export button */
.export-btn {
    transition: all 0.3s ease;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* History item */
.history-item {
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: scale(1.05);
    border-color: #00d4ff;
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Fade in animation */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fade-in-up 0.5s ease-out;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .two-col {
        flex-direction: column !important;
    }
    .col-half {
        width: 100% !important;
    }
}