/* Premium Reward System - Dark Indigo SaaS Theme */

:root {
    /* Primary Brand Colors */
    --wprs-primary: #6366f1;
    /* Indigo-500 */
    --wprs-primary-dark: #4f46e5;
    /* Indigo-600 */
    --wprs-secondary: #0ea5e9;
    /* Sky-500 */

    /* Functional Colors */
    --wprs-success: #10b981;
    /* Emerald-500 */
    --wprs-danger: #ef4444;
    /* Red-500 */
    --wprs-warning: #f59e0b;
    /* Amber-500 */

    /* Layout Colors */
    --wprs-bg-body: #f8fafc;
    /* Slate-50 */
    --wprs-bg-sidebar: #1e1b4b;
    /* Indigo-950 (Dark) */
    --wprs-bg-surface: #ffffff;
    /* White */

    /* Text Colors */
    --wprs-text-main: #0f172a;
    /* Slate-900 */
    --wprs-text-muted: #64748b;
    /* Slate-500 */
    --wprs-text-on-dark: #e0e7ff;
    /* Indigo-100 */

    /* Effects */
    --wprs-radius: 16px;
    --wprs-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --wprs-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --wprs-gradient-primary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

/* Base RESETS */
.wprs-dashboard-container * {
    box-sizing: border-box;
}

/* -------------------------------------------
   Main Dashboard Layout (Desktop)
   ------------------------------------------- */
.wprs-dashboard-container {
    max-width: 1280px;
    margin: 40px auto;
    background: var(--wprs-bg-surface);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    overflow: hidden;
    min-height: 800px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dark Sidebar */
.wprs-tabs {
    width: 280px;
    background: var(--wprs-bg-sidebar);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    color: var(--wprs-text-on-dark);
}

.wprs-tabs h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-left: 10px;
}

/* Sidebar Links */
.wprs-tab-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    color: #94a3b8;
    /* Slate-400 */
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.wprs-tab-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateX(4px);
}

.wprs-tab-link.active {
    background: rgba(99, 102, 241, 0.15);
    /* Primary with opacity */
    color: #818cf8;
    /* Light Indigo */
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.wprs-tab-link span {
    font-size: 1.2rem;
}

/* Main Content Area */
.wprs-tab-content {
    flex: 1;
    background: #f8fafc;
    /* Light Gray Body */
    padding: 40px;
    display: none;
    overflow-y: auto;
}

.wprs-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------
   Premium Cards & Components
   ------------------------------------------- */

/* Points Hero Card */
.wprs-points-header {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--wprs-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.wprs-points-header div:first-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wprs-points-header span:first-child {
    font-size: 0.9rem;
    color: var(--wprs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.wprs-points-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--wprs-text-main);
    letter-spacing: -0.02em;
    background: var(--wprs-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Standard Cards */
.wprs-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.wprs-card h3 {
    margin-top: 0;
    color: var(--wprs-text-main);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Buttons */
.wprs-buy-btn {
    background: var(--wprs-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.2s;
    width: 100%;
}

.wprs-buy-btn:hover {
    background: var(--wprs-primary-dark);
    transform: translateY(-2px);
}

/* Store Grid */
.wprs-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.wprs-store-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.wprs-store-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.wprs-store-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

/* Live Ticker */
.wprs-ticker-wrap {
    background: #e0e7ff;
    /* Light Indigo */
    color: var(--wprs-primary-dark);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
    border: 1px solid #c7d2fe;
    overflow: hidden;
}

.wprs-ticker-move {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    padding-right: 40px;
}

.wprs-ticker-item {
    color: #312e81;
    /* Dark Indigo Text for Contrast */
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Mobile App Specifics (App Landing) */
.wprs-mobile-app-container {
    max-width: 480px;
    margin: 0 auto;
    background: #f8fafc;
    min-height: 100vh;
    border: 1px solid #eee;
    padding-bottom: 80px;
}

.wprs-app-header {
    background: var(--wprs-bg-sidebar);
    /* Match Dark Theme */
    color: white;
    padding: 24px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

@media (max-width: 768px) {
    .wprs-dashboard-container {
        display: none !important;
        /* Hide Desktop Dashboard on Mobile */
    }
}

/* -------------------------------------------
   Mobile App Specifics (App Landing)
   ------------------------------------------- */
.wprs-mobile-app-container {
    max-width: 480px;
    margin: 0 auto;
    background: #f8fafc;
    min-height: 100vh;
    padding-bottom: 80px;
    font-family: 'Inter', sans-serif;
}

.wprs-app-header {
    background: var(--wprs-bg-sidebar);
    color: white;
    padding: 24px 24px 40px 24px;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    position: relative;
    margin-bottom: 50px;
}

.wprs-user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.wprs-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.wprs-user-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.wprs-user-info span {
    font-size: 13px;
    opacity: 0.8;
}

.wprs-wallet-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    color: #333;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: -35px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wprs-wallet-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wprs-wallet-val {
    font-size: 28px;
    font-weight: 800;
    color: var(--wprs-text-main);
    line-height: 1.2;
}

.wprs-daily-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    margin: 0 20px 20px 20px;
    padding: 15px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #78350f;
    box-shadow: 0 4px 6px -1px rgba(251, 191, 36, 0.2);
}

.wprs-checkin-btn {
    background: #000;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.wprs-app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.wprs-app-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    border: 1px solid #f1f5f9;
}

.wprs-app-card:active {
    transform: scale(0.98);
}

.wprs-app-icon {
    width: 50px;
    height: 50px;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px auto;
}

.wprs-app-card h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.wprs-app-card span {
    font-size: 12px;
    color: #64748b;
}

.wprs-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #eee;
    z-index: 100;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.wprs-nav-item {
    text-decoration: none;
    color: #94a3b8;
    text-align: center;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wprs-nav-item i {
    font-size: 22px;
}

.wprs-nav-item.active {
    color: #4f46e5;
}

/* Responsive CSS for Mobile View of Dashboard */
@media (max-width: 768px) {
    .wprs-dashboard-container {
        flex-direction: column;
        border-radius: 0;
        margin: 0;
    }

    .wprs-tabs {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 16px;
        gap: 8px;
    }

    .wprs-tab-link {
        padding: 10px 14px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .wprs-tab-content {
        padding: 20px;
    }

    .wprs-points-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Toast Notifications */
.wprs-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.wprs-toast {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--wprs-success);
    margin-top: 10px;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}