/* Prime Earn CSS Style System & Custom Overrides */

:root {
    --primary: #3B5BFF;
    --primary-light: rgba(59, 91, 255, 0.06);
    --primary-hover: #2A49DF;
    --accent: #6C63FF;
    --accent-light: rgba(108, 99, 255, 0.06);
    --bg: #F5F7FF;
    --surface: #FFFFFF;
    --text-main: #162033;
    --text-muted: #6B7280;
    --border: #E6EAF2;
    --success: #16A34A;
    --success-light: rgba(22, 163, 74, 0.08);
    --warning: #F59E0B;
    --warning-light: rgba(245, 158, 11, 0.08);
    --danger: #EF4444;
    --danger-light: rgba(239, 68, 68, 0.08);
    
    --shadow-sm: 0 2px 4px rgba(22, 32, 51, 0.02);
    --shadow-md: 0 10px 25px rgba(22, 32, 51, 0.04);
    --shadow-lg: 0 20px 40px rgba(59, 91, 255, 0.06);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-outfit: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-outfit);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography Custom Scales */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-main);
}

/* Card layout structure */
.premium-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.premium-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(59, 91, 255, 0.15);
}

/* Stats Widgets */
.stat-card-custom {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
}

.stat-card-custom:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon-wrapper.primary {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-icon-wrapper.success {
    background: var(--success-light);
    color: var(--success);
}

.stat-icon-wrapper.warning {
    background: var(--warning-light);
    color: var(--warning);
}

/* Buttons System */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(59, 91, 255, 0.15);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 91, 255, 0.25);
    color: #ffffff;
    opacity: 0.95;
}

.btn-secondary-custom {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary-custom:hover {
    background: var(--bg);
    border-color: var(--text-muted);
}

/* Custom inputs design overrides */
.form-control-custom {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.25s ease;
}

.form-control-custom:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 91, 255, 0.1);
    outline: none;
}

/* Sidebar Custom Styling */
.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: 1000;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.sidebar-brand {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-item-link:hover, .nav-item-link.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

.nav-item-link.active {
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-left: -30px;
    padding-left: 26px;
}

/* User profile widget inside sidebar */
.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.coins-display {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

/* Mobile Header & Bottom Nav styling */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.mobile-brand {
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(22, 32, 51, 0.05);
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    gap: 4px;
    transition: all 0.2s ease;
}

.mobile-nav-link i {
    font-size: 20px;
}

.mobile-nav-link.active {
    color: var(--primary);
    font-weight: 700;
    background: var(--primary-light);
}

/* Page Wrapper / Main content offset */
.main-wrapper {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Horizontal Scrolling Queues */
.horizontal-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Custom badges */
.badge-custom {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-custom.success {
    background: var(--success-light);
    color: var(--success);
}

.badge-custom.primary {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-custom.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-custom.danger {
    background: var(--danger-light);
    color: var(--danger);
}

/* Empty State block styles */
.empty-state {
    padding: 50px 30px;
    text-align: center;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
}

.empty-state-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.6;
}

/* Timeline Support chat thread styles */
.timeline-chat {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-bubble {
    max-width: 75%;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.chat-bubble.sent {
    background: var(--primary);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.received {
    background: var(--surface);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}

/* Responsive Fluid layouts */
@media (max-width: 1200px) {
    .sidebar {
        width: 240px;
        padding: 20px;
    }
    .main-wrapper {
        margin-left: 240px;
        padding: 30px;
    }
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .mobile-header {
        display: flex;
    }
    .mobile-nav {
        display: flex;
    }
    .main-wrapper {
        margin-left: 0;
        padding: 100px 20px 100px 20px;
    }
}

/* Gamification & Micro-Animations */

/* 1. Bouncy spring transition overrides */
.premium-card, .stat-card-custom, .store-card, .grid-offer-card, .offer-horizontal-card, .offerwall-horizontal-card, .white-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* 2. Glow effect on hover */
.premium-card:hover {
    box-shadow: 0 20px 40px rgba(59, 91, 255, 0.12) !important;
    border-color: var(--primary) !important;
}
.stat-card-custom:hover {
    box-shadow: 0 12px 30px rgba(59, 91, 255, 0.08) !important;
    border-color: var(--primary) !important;
}
.store-card:hover {
    box-shadow: 0 16px 35px rgba(108, 99, 255, 0.12) !important;
    border-color: var(--accent) !important;
}
.grid-offer-card:hover, .offer-horizontal-card:hover {
    box-shadow: 0 16px 35px rgba(59, 91, 255, 0.12) !important;
    border-color: var(--primary) !important;
}

/* 3. Coin Shimmer / Spin effect */
.coins-display i, .stat-icon-wrapper.warning i {
    animation: coinPulse 2s infinite ease-in-out;
    display: inline-block;
}

.stat-icon-wrapper.primary i, .sidebar-brand i, .mobile-brand i {
    animation: boltGlow 2.5s infinite ease-in-out;
}

@keyframes coinPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0)); }
    50% { transform: scale(1.18) rotate(15deg); filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.7)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0)); }
}

@keyframes boltGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(59, 91, 255, 0)); }
    50% { transform: scale(1.15) translateY(-3px); filter: drop-shadow(0 0 12px rgba(59, 91, 255, 0.6)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(59, 91, 255, 0)); }
}

/* 4. Pulsing hot badges */
.badge-custom.success, .badge-custom.danger {
    position: relative;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.badge-custom.danger {
    animation: badgePulseDanger 2s infinite;
}

@keyframes badgePulseDanger {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* 5. Floating shapes in background */
.floating-circle-bg {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 91, 255, 0.06) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
    animation: floatDrift 20s infinite ease-in-out;
}

.floating-circle-bg-2 {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.05) 0%, transparent 70%);
    filter: blur(35px);
    z-index: -1;
    pointer-events: none;
    animation: floatDrift 25s infinite ease-in-out reverse;
}

@keyframes floatDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, 60px) scale(1.15); }
    100% { transform: translate(0, 0) scale(1); }
}

/* 6. Dynamic active states for bottom nav */
.mobile-nav-link:hover i {
    transform: translateY(-4px) scale(1.1);
    color: var(--primary);
}

.mobile-nav-link i {
    transition: transform 0.2s ease;
}

/* 7. Shiny button hover slide */
.btn-primary-custom {
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.btn-primary-custom:hover::after {
    left: 150%;
    transition: left 0.6s ease-in-out;
}

