* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a1f 0%, #1a1a3e 50%, #0f0f2e 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Animated stars background */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stars {
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2P4//+/AAMDAwMA//8DAxISFh0AAAAASUVORK5CYII=') repeat;
    animation: animateStars 100s linear infinite;
    opacity: 0.3;
}

.stars2 {
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAYAAABWKLW/AAAAFUlEQVQIW2P4//+/AwMDAwMjAwMABP8C/15dXGEAAAAASUVORK5CYII=') repeat;
    animation: animateStars 150s linear infinite;
    opacity: 0.2;
}

.stars3 {
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2P4//+/PwAI/wP9p6u7XAAAAABJRU5ErkJggg==') repeat;
    animation: animateStars 200s linear infinite;
    opacity: 0.1;
}

@keyframes animateStars {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.redemption-box {
    background: rgba(15, 15, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 25px;
    padding: 50px 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.4),
                0 0 100px rgba(75, 0, 130, 0.3),
                inset 0 0 50px rgba(138, 43, 226, 0.1);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.moon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #b19cd9 0%, #8a2be2 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.8),
                0 0 80px rgba(138, 43, 226, 0.4),
                inset -10px -10px 20px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
    position: relative;
}

.moon::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    top: 20px;
    left: 25px;
}

.moon::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    top: 45px;
    right: 20px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo h1 {
    font-size: 48px;
    background: linear-gradient(135deg, #b19cd9 0%, #8a2be2 50%, #b19cd9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 8px;
    font-weight: bold;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
}

.tagline {
    text-align: center;
    color: #b19cd9;
    font-size: 18px;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.input-section {
    margin-bottom: 30px;
}

#codeInput {
    width: 100%;
    padding: 18px 20px;
    background: rgba(26, 26, 62, 0.6);
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 15px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

#codeInput:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    background: rgba(26, 26, 62, 0.8);
}

#codeInput::placeholder {
    color: rgba(177, 156, 217, 0.5);
    text-transform: none;
    letter-spacing: 1px;
}

#redeemBtn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #8a2be2 0%, #b19cd9 100%);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
}

#redeemBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.6);
}

#redeemBtn:active {
    transform: translateY(0);
}

.shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -50%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

.message {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.message.success {
    background: rgba(0, 255, 127, 0.1);
    border: 2px solid rgba(0, 255, 127, 0.4);
    color: #00ff7f;
}

.message.error {
    background: rgba(255, 69, 0, 0.1);
    border: 2px solid rgba(255, 69, 0, 0.4);
    color: #ff6347;
}

.passid-display {
    background: rgba(26, 26, 62, 0.6);
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.passid-title {
    color: #b19cd9;
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.passid-value {
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 10px;
    padding: 15px;
    color: #fff;
    font-size: 18px;
    text-align: center;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin-bottom: 15px;
    word-break: break-all;
}

.copy-btn, .profile-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(138, 43, 226, 0.6);
    border-radius: 10px;
    background: rgba(138, 43, 226, 0.2);
    color: #b19cd9;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.copy-btn:hover, .profile-btn:hover {
    background: rgba(138, 43, 226, 0.4);
    border-color: #8a2be2;
    color: #fff;
}

.profile-btn {
    background: linear-gradient(135deg, #8a2be2 0%, #b19cd9 100%);
    border: none;
    color: white;
    margin-bottom: 0;
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
}

.info-text {
    text-align: center;
    color: rgba(177, 156, 217, 0.6);
    font-size: 12px;
    letter-spacing: 1px;
}

/* Loading animation */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(138, 43, 226, 0.3);
    border-top-color: #8a2be2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .redemption-box {
        padding: 40px 30px;
    }
    
    .logo h1 {
        font-size: 36px;
        letter-spacing: 6px;
    }
    
    .moon {
        width: 60px;
        height: 60px;
    }
}

