/* MONAD Energy Inspired - Deep Purple/Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 25%, #0d0d2b 50%, #150a25 75%, #0a0a1a 100%);
    background-attachment: fixed;
    font-family: 'Rajdhani', sans-serif;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Animated background glow */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.wallet-checker-container {
    background: linear-gradient(145deg, rgba(20, 10, 40, 0.95) 0%, rgba(10, 5, 25, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 520px;
    width: 90%;
    box-shadow: 
        0 0 60px rgba(139, 92, 246, 0.3),
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: containerGlow 4s ease-in-out infinite;
}

@keyframes containerGlow {
    0%, 100% { box-shadow: 0 0 60px rgba(139, 92, 246, 0.3), 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 80px rgba(139, 92, 246, 0.5), 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
}


.wallet-checker-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 35px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
}

.wallet-checker-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #a855f7, transparent);
    margin: 15px auto 0;
    border-radius: 2px;
}

.wallet-input {
    width: 100%;
    padding: 18px 20px;
    background: rgba(139, 92, 246, 0.08);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.wallet-input::placeholder {
    color: rgba(168, 85, 247, 0.5);
    font-weight: 400;
}

.wallet-input:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(139, 92, 246, 0.12);
    box-shadow: 
        0 0 0 4px rgba(139, 92, 246, 0.15),
        0 0 30px rgba(139, 92, 246, 0.2);
}

.check-button {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.check-button::before {
    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;
}

.check-button:hover::before {
    left: 100%;
}

.check-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(139, 92, 246, 0.5),
        0 0 50px rgba(168, 85, 247, 0.3);
}

.check-button:active {
    transform: translateY(-1px);
}

.check-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.results-container {
    margin-top: 30px;
    padding: 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.results-container.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 2px solid rgba(34, 197, 94, 0.5);
    color: #4ade80;
    box-shadow: 
        0 0 30px rgba(34, 197, 94, 0.2),
        inset 0 0 20px rgba(34, 197, 94, 0.05);
}

.results-container.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: #f87171;
    box-shadow: 
        0 0 30px rgba(239, 68, 68, 0.2),
        inset 0 0 20px rgba(239, 68, 68, 0.05);
}

/* Loading animation */
.loading {
    display: none;
    text-align: center;
    margin-top: 25px;
}

.loading.active {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top: 3px solid #a855f7;
    border-right: 3px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 600px) {
    .wallet-checker-container {
        padding: 35px 25px;
        margin: 20px;
    }

    .wallet-checker-title {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .wallet-input, .check-button {
        padding: 16px 18px;
        font-size: 15px;
    }

    .check-button {
        letter-spacing: 1px;
    }
}
