/* Fun Email Signup Modal */
.email-signup-trigger {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff00ff, #ff0099);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 0 30px rgba(255, 0, 153, 0.6);
    transition: all 0.3s ease;
}

.email-signup-trigger:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 0 50px rgba(255, 0, 153, 0.9);
}

.email-signup-trigger .pulse-ring {
    display: none;
}

/* Email Signup Modal */
.email-signup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.email-signup-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.email-signup-content {
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.95), rgba(20, 30, 50, 0.95));
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 1.5rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 60px var(--glow-color);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.email-signup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 0, 85, 0.2);
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.email-signup-close:hover {
    background: rgba(255, 0, 85, 0.4);
    transform: rotate(90deg);
}

.email-signup-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.email-signup-icon {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

.email-signup-title {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.email-signup-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Benefits List */
.email-benefits {
    margin: 1rem 0;
    display: grid;
    gap: 0.6rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.benefit-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.benefit-text {
    flex: 1;
}

.benefit-text h4 {
    margin-bottom: 0.1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.benefit-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Email Form */
.email-signup-form {
    margin-top: 1rem;
}

.form-group-inline {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.email-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    background: rgba(0, 217, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.email-input::placeholder {
    color: var(--text-secondary);
}

.email-submit-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--glow-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.email-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px var(--primary-color);
}

.email-submit-btn:active {
    transform: translateY(-1px);
}

/* Success State */
.signup-success {
    display: none;
    text-align: center;
    padding: 1.5rem;
}

.signup-success.active {
    display: block;
    animation: slideUp 0.5s ease-out;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 0.8rem;
    animation: successPop 0.6s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--success-color);
}

.success-message {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.success-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(600px) rotate(720deg);
        opacity: 0;
    }
}

/* Gamification Elements */
.progress-tracker {
    margin: 1.25rem 0;
    padding: 0.75rem;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.reward-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 170, 0, 0.2);
    border: 2px solid var(--accent-glow);
    border-radius: 20px;
    color: var(--accent-glow);
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 1rem;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .email-signup-trigger {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        left: 20px;
        bottom: 90px;
    }

    .email-signup-content {
        padding: 1.5rem;
        width: 95%;
        max-width: 95%;
    }

    .email-signup-title {
        font-size: 1.4rem;
    }
    
    .email-signup-icon {
        font-size: 2.5rem;
    }
    
    .benefit-item {
        padding: 0.6rem;
    }

    .form-group-inline {
        flex-direction: column;
    }

    .email-submit-btn {
        width: 100%;
    }
    
    /* Disable all animations on mobile for performance */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Keep only essential hover effects */
    .email-signup-trigger:active {
        transform: scale(0.95);
    }
}