/* assets/css/style.css */

/* =====================
   Sticky Rewards Button 
   ===================== */
.tsl-sticky-button.rewards-btn {
    position: fixed;
    right: -70px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
/*     z-index: 999999; */
    background-image: url('https://cdn.appsmav.com/gr/upload/img/widget/side-drawer-7158-_widget_backgroungImg-1592672352.jpg');
    background-size: cover;
    background-position: center;
	background-repeat: no-repeat;
    color: #ffffff;
    padding: 15px 35px;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Arial', sans-serif;
	z-index: 1000000;
}

.tsl-sticky-button.rewards-btn:hover {
/*     right: -50px; */
/*     transform: translateY(-50%) rotate(-90deg) scale(1.05); */
/*     box-shadow: 0 4px 15px rgba(0,0,0,0.2); */
}

.tsl-btn-icon {
    width: 24px;
    height: 24px;
    transform: rotate(90deg);
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

/* ==============
   Modal Container 
   ============== */
.tsl-modal {
    display: none; /* Start hidden */
    position: fixed;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    max-width: 90%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
/*     z-index: 9999; */
	z-index: 999999;
/*     opacity: 0; */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tsl-modal.show {
    display: flex; /* Show when active */
/*     opacity: 1; */
    transform: translateY(-50%) translateX(0);
}

/* =============
   Modal Header 
   ============= */
.tsl-modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 12px 12px 0 0;
    color: white;
    position: relative;
}

.tsl-header-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
}

.tsl-points-display {
    margin-top: 15px;
    font-size: 1.1em;
    background: rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
}

.tsl-points-display strong {
    font-weight: 600;
}

.tsl-close {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    font-size: 24px;
    color: rgba(255,255,255,0.9);
    transition: all 0.2s ease;
}

.tsl-close:hover {
    transform: scale(1.1);
    color: #ffffff;
}

/* =============
   Modal Body 
   ============= */
.tsl-modal-body {
    padding: 20px;
/* 	width:100%; */
}
.tsl-modal-content{
	width:100%;
}

/* ==========
   Tabs 
   ========== */
.tsl-tabs {
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tsl-tab {
    background: none;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tsl-tab.active {
    border-bottom: 3px solid #4CAF50;
    color: #2c3e50;
}

.tsl-tab-content {
    display: none;
}

.tsl-tab-content.active {
    display: block;
}

/* ====================
   Guest Content Styles 
   ==================== */
.tsl-guest-content {
    padding: 20px;
    text-align: center;
}

.tsl-signup-promo {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 15px 0;
}

.tsl-signup-promo h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.tsl-signup-promo p {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 20px;
}

.tsl-auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.tsl-auth-button {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.tsl-auth-button.tsl-login {
    background: #4CAF50;
    color: white;
    border: 2px solid #4CAF50;
}

.tsl-auth-button.tsl-signup {
    background: white;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.tsl-auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tsl-terms {
    font-size: 0.85em;
    color: #666;
    margin-top: 15px;
}
.achievements-list {
            list-style: none;
            padding: 0;
            margin: 15px 0 0 0;
        }

        .achievements-list li {
            padding: 12px 0;
            display: grid;
            grid-template-columns: 30px 1fr;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid #eee;
        }

        .achievements-list li:last-child {
            border-bottom: none;
        }

        .achievement-icon {
            width: 24px;
            height: 24px;
            background: #4CAF50;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
        }
 .availability {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.points-required {
    color: #4CAF50;
    font-weight: bold;
    font-size: 0.85em;
}

.available-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    color: #2e7d32;
    cursor: pointer;
    transition: background 0.2s ease;
}
.available-badge:hover {
    background: #c8e6c9;
}

.available-badge svg {
    width: 14px;
    height: 14px;
}
/* =================
   Points Table 
   ================= */
.tsl-points-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.tsl-points-table th,
.tsl-points-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tsl-points-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.tsl-points-earned {
    color: #4CAF50;
    font-weight: bold;
}

.tsl-points-used {
    color: #e74c3c;
    font-weight: bold;
}

/* ====================
   Mobile Optimization 
   ==================== */
@media (max-width: 782px) {
    .tsl-sticky-button.rewards-btn {
        right: -60px;
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .tsl-modal {
        right: 50%;
        transform: translate(50%, -50%);
        width: 95%;
        max-width: 400px;
    }
    
    .tsl-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .tsl-auth-button {
        padding: 10px 20px;
        min-width: 100px;
    }
}

/* ================
   Animations 
   ================ */
@keyframes tslSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tsl-modal-content {
    animation: tslSlideIn 0.3s ease-out;
}