/* ============================================
   REGISTER MODAL CSS - Modal de registro
   ============================================ */

/* ===== OVERLAY DEL MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== CONTENIDO DEL MODAL ===== */
.modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98), rgba(30, 10, 35, 0.98));
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid;
    border-image: linear-gradient(135deg, #ff0080, #00ffff, #ff8c00) 1;
    box-shadow: 
        0 0 60px rgba(255, 0, 128, 0.4),
        0 0 100px rgba(0, 255, 255, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 0, 128, 0.2);
    border: 2px solid #ff0080;
    color: #ff0080;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.modal-close:hover {
    background: #ff0080;
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 0 20px #ff0080;
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #ff0080, #00ffff, #ff8c00);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-slide 3s linear infinite;
}

@keyframes gradient-slide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ===== PASOS DEL REGISTRO ===== */
.register-step {
    display: none;
}

.register-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* ===== PASO 1: CONECTAR WALLET ===== */
.wallet-connect-section {
    text-align: center;
}

.wallet-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.wallet-connect-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 10px;
}

.wallet-connect-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.btn-phantom {
    background: linear-gradient(135deg, #ab9ff2, #5753c5);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(171, 159, 242, 0.4);
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-phantom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(171, 159, 242, 0.6);
}

.phantom-link {
    display: block;
    margin-top: 20px;
    color: #00ffff;
    text-decoration: none;
    font-size: 0.9rem;
}

.phantom-link:hover {
    text-decoration: underline;
}

/* ===== PASO 2: CREAR PERFIL ===== */
.profile-creation-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 15px;
    text-align: center;
}

.wallet-connected {
    text-align: center;
    color: #00ff88;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.wallet-connected span {
    font-weight: 700;
    color: #00ffff;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #00ffff;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.input-hint {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.input-error {
    display: block;
    color: #ff0080;
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 600;
}

.input-success {
    display: block;
    color: #00ff88;
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 600;
}

/* ===== GRID DE EMOJIS ===== */
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.emoji-option {
    font-size: 2rem;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.emoji-option:hover {
    transform: scale(1.1);
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.emoji-option.selected {
    border-color: #ff0080;
    background: rgba(255, 0, 128, 0.2);
    box-shadow: 0 0 25px rgba(255, 0, 128, 0.5);
    transform: scale(1.15);
}

.btn-register-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff0080, #ff8c00);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(255, 0, 128, 0.4);
}

.btn-register-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 0, 128, 0.6);
}

.btn-register-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== PASO 3: ÉXITO ===== */
.success-section {
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.success-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #00ff88;
    margin-bottom: 10px;
}

.success-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.user-info {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.user-emoji {
    font-size: 4rem;
    margin-bottom: 10px;
}

.user-nickname {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 10px;
}

.user-level,
.user-coins {
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0;
}

.btn-enter-site {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00ffff, #00ff88);
    border: none;
    border-radius: 50px;
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

.btn-enter-site:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .modal-content {
        padding: 25px;
        width: 95%;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .emoji-option {
        font-size: 1.5rem;
        padding: 8px;
    }
}