/* ========================================
   Loyalty Program Styles in Session Modal
   ======================================== */

.loyalty-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(237, 20, 91, 0.05));
    border-radius: 15px;
    border: 2px solid rgba(108, 92, 231, 0.3);
}

.loyalty-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(108, 92, 231, 0.3);
}

.loyalty-header i {
    color: gold;
    font-size: 1.5rem;
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px gold);
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px gold);
    }
}

.loyalty-header span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.customer-loyalty-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(108, 92, 231, 0.3);
    transition: all 0.3s ease;
}

.customer-loyalty-card:hover {
    border-color: rgba(108, 92, 231, 0.6);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.customer-info i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.customer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.free-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: auto;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 200, 0, 0.3));
    border: 1px solid rgba(0, 255, 0, 0.5);
    border-radius: 20px;
    color: #00ff00;
    font-weight: 700;
    font-size: 0.9rem;
    animation: freeBadgeGlow 2s ease-in-out infinite;
}

@keyframes freeBadgeGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    }
}

.free-badge i {
    font-size: 1rem;
}

.loyalty-progress-container {
    padding: 0.75rem;
    background: rgba(108, 92, 231, 0.05);
    border-radius: 10px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.sessions-count {
    color: var(--accent-cyan);
    font-weight: 600;
}

.remaining-sessions {
    color: var(--text-secondary);
    font-weight: 500;
}

.loyalty-progress-bar {
    position: relative;
    height: 40px;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 20px;
    overflow: visible;
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.progress-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-cyan));
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.5);
}

.progress-fill.completed {
    background: linear-gradient(90deg, #00ff00, #00cc00);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    animation: progressCompleteGlow 1.5s ease-in-out infinite;
}

@keyframes progressCompleteGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.9);
    }
}

.progress-circles {
    position: relative;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;
    padding: 0 0.5rem;
    z-index: 1;
}

.progress-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(108, 92, 231, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.4s ease;
    position: relative;
}

.progress-circle.completed {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    border-color: var(--accent-cyan);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
}

.progress-circle.completed i {
    animation: checkBounce 0.6s ease;
}

@keyframes checkBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Free Session Notice and Price Displays */
.free-session-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.15), rgba(0, 200, 0, 0.2));
    border: 2px solid rgba(0, 255, 0, 0.4);
    border-radius: 12px;
    margin-bottom: 1rem;
    animation: freeNoticeGlow 2s ease-in-out infinite;
}

@keyframes freeNoticeGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 0, 0.5);
    }
}

.free-session-notice i {
    font-size: 1.5rem;
    color: #00ff00;
}

.free-session-notice span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00ff00;
}

.recommended-price.original-price {
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.recommended-price.original-price del {
    color: var(--text-secondary);
}

.recommended-price.free-price {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 200, 0, 0.15));
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.free-text {
    color: #00ff00;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Responsive Loyalty Styles */
@media (max-width: 768px) {
    .loyalty-section {
        padding: 1rem;
    }

    .customer-loyalty-card {
        padding: 1rem;
    }

    .customer-info {
        flex-wrap: wrap;
    }

    .free-badge {
        margin-right: 0;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .progress-circle {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .loyalty-progress-bar {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .loyalty-header {
        font-size: 0.95rem;
    }

    .customer-name {
        font-size: 1rem;
    }

    .progress-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .progress-circle {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .loyalty-progress-bar {
        height: 30px;
    }
}
