:root {
    --sreward-primary: #da0b4e;
    --sreward-secondary: #06b6d4;
    --sreward-success: #10b981;
    --sreward-warning: #f59e0b;
    --sreward-danger: #ef4444;
    --sreward-gold: #fbbf24;
    --sreward-gray-100: #f3f4f6;
    --sreward-gray-200: #e5e7eb;
    --sreward-gray-300: #d1d5db;
    --sreward-gray-400: #9ca3af;
    --sreward-gray-500: #6b7280;
    --sreward-gray-600: #4b5563;
    --sreward-gray-700: #374151;
    --sreward-gray-800: #1f2937;
    --radius-xl: 20px;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
/* Header Section */
.srewards-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-bottom: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.srewards-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.srewards-header-content {
    position: relative;
    z-index: 1;
}

.srewards-header h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.srewards-header p {
    font-size: 1rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Next Reward Banner */
.next-reward-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid var(--sreward-gold);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.next-reward-banner::before {
    content: '🎯';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    opacity: 0.1;
}

.next-reward-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.next-reward-title {
    font-size: 1.1rem;
    color: #92400e;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.next-reward-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #b45309;
    line-height: 1.2;
    margin-bottom: 10px;
}

.next-reward-text {
    font-size: 1.2rem;
    color: #78350f;
    font-weight: 500;
}

.next-reward-highlight {
    background: rgba(255, 255, 255, 0.5);
    padding: 15px 20px;
    border-radius: 60px;
    display: inline-block;
    margin-top: 15px;
    font-size: 1.1rem;
    color: #92400e;
    border: 1px solid var(--sreward-gold);
}

.next-reward-highlight i {
    color: var(--sreward-primary);
    margin-right: 8px;
}

/* Stats Cards */
.srewards-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.srewards-stat-card {
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--sreward-gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.srewards-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.srewards-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--sreward-primary), var(--sreward-secondary));
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.stat-icon.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--sreward-success);
}

.stat-icon.noshow {
    background: rgba(245, 158, 11, 0.1);
    color: var(--sreward-warning);
}

.stat-icon.cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--sreward-danger);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sreward-gray-800);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--sreward-gray-500);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-subtext {
    font-size: 0.75rem;
    color: var(--sreward-gray-400);
    margin-top: 5px;
}

/* Progress Section */
.progress-section {
    background: white;
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--sreward-gray-200);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.progress-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sreward-gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-header h3 i {
    color: var(--sreward-primary);
}

.progress-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sreward-primary);
}

.progress-bar-container {
    background: var(--sreward-gray-100);
    height: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--sreward-primary), var(--sreward-secondary));
    border-radius: 12px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    color: var(--sreward-gray-500);
    font-size: 0.85rem;
}

.current-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 15px;
    background: var(--sreward-gray-100);
    border-radius: 12px;
}

.current-points {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-points i {
    font-size: 1.3rem;
    color: var(--sreward-primary);
}

.points-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sreward-gray-800);
}

.points-label {
    font-size: 0.85rem;
    color: var(--sreward-gray-500);
}

.sessions-needed {
    text-align: right;
}

.needed-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sreward-warning);
}

.needed-label {
    font-size: 0.8rem;
    color: var(--sreward-gray-500);
}

/* Rewards History Table */
.rewards-history-section {
    background: white;
    border-radius: 24px;
    padding: 25px;
    border: 1px solid var(--sreward-gray-200);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sreward-gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h3 i {
    color: var(--sreward-primary);
}

.filter-select {
    padding: 10px 20px;
    border: 1px solid var(--sreward-gray-300);
    border-radius: 40px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    outline: none;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--sreward-gray-200);
}

.rewards-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.rewards-table th {
    background: var(--sreward-gray-100);
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--sreward-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--sreward-gray-200);
}

.rewards-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--sreward-gray-200);
    color: var(--sreward-gray-700);
    font-size: 0.95rem;
}

.rewards-table tr:hover td {
    background: var(--sreward-gray-50);
}

.reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

.reward-badge.claimed {
    background: #d1fae5;
    color: #065f46;
}

.reward-badge.used {
    background: #f3f4f6;
    color: #4b5563;
}

.amount-highlight {
    font-weight: 700;
    color: var(--sreward-success);
}

/* How It Works */
.how-it-works {
    margin-top: 25px;
    margin-top: 25px;
    padding: 25px;
    background: white;
    border-radius: 24px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.step-item {
    text-align: center;
    padding: 20px;
    background: var(--sreward-gray-100);
    border-radius: 20px;
    transition: var(--transition);
}

.step-item:hover {
    transform: translateY(-3px);
    background: white;
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--sreward-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sreward-gray-800);
    margin-bottom: 5px;
}

.step-item p {
    font-size: 0.8rem;
    color: var(--sreward-gray-500);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.nec-btn.primary {
    background: var(--sreward-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.nec-btn.primary:hover {
    background: #b0093f;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .srewards-header h1 {
        font-size: 1.8rem;
    }
    .srewards-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 20px;
    }
    .srewards-header {
        padding: 25px;
    }
    .srewards-header h1 {
        font-size: 1.6rem;
    }
    .srewards-stats {
        grid-template-columns: 1fr;
    }
    .next-reward-amount {
        font-size: 2.5rem;
    }
    .current-progress {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .sessions-needed {
        text-align: center;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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