/* ============================================
   BlinkHustle Dashboard Styles - Ultra Enhanced v3.0
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #ecfdf5;
    --secondary: #6366f1;
    --accent: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray: #64748b;
    --gray-light: #f8fafc;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 30px rgba(16,185,129,0.25);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f0f4f8;
    color: var(--dark);
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ===== HEADER ===== */
.dashboard-header-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226,232,240,0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-left { display: flex; align-items: center; gap: 1.5rem; }

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-right { display: flex; align-items: center; gap: 0.75rem; }

/* ===== NOTIFICATION BELL - FULLY FIXED ===== */
.notifications-dropdown {
    position: relative;
    display: inline-block;
}

.notification-bell {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 2px solid #bbf7d0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(16,185,129,0.15);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.notification-bell:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.3);
    border-color: var(--primary);
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.notification-bell.has-notifications {
    animation: bellShake 4s ease-in-out infinite;
    border-color: var(--primary);
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

@keyframes bellShake {
    0%,80%,100% { transform: rotate(0deg); }
    82% { transform: rotate(-14deg); }
    85% { transform: rotate(14deg); }
    88% { transform: rotate(-9deg); }
    91% { transform: rotate(9deg); }
    94% { transform: rotate(0deg); }
}

.notification-badge {
    position: absolute;
    top: -7px; right: -7px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 50%;
    min-width: 20px; height: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(239,68,68,0.5);
    animation: badgePulse 2.5s ease-in-out infinite;
    padding: 0 3px;
    z-index: 1;
}

@keyframes badgePulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* KEY FIX: display:none by default, display:block when .active */
.notifications-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 390px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.05);
    display: none;
    z-index: 9999;
    overflow: hidden;
    transform-origin: top right;
}

.notifications-panel.active {
    display: block;
    animation: dropIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.notifications-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(16,185,129,0.2);
}

.notifications-header h3 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notifications-header a {
    color: #10b981;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    background: rgba(16,185,129,0.15);
    border-radius: 50px;
    border: 1px solid rgba(16,185,129,0.3);
    transition: var(--transition);
}

.notifications-header a:hover { background: rgba(16,185,129,0.3); color: #34d399; }

.notifications-body { max-height: 380px; overflow-y: auto; }
.notifications-body::-webkit-scrollbar { width: 4px; }
.notifications-body::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:last-child { border-bottom: none; }
.notification-item:hover { background: #f8fafc; }

.notification-item.unread {
    background: linear-gradient(90deg, rgba(16,185,129,0.05), transparent);
    border-left: 3px solid #10b981;
    padding-left: calc(1.25rem - 3px);
}

.notification-item.unread:hover { background: rgba(16,185,129,0.08); }

.notif-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notif-content { flex: 1; min-width: 0; }
.notif-content strong { display: block; font-size: 0.88rem; font-weight: 700; color: #0f172a; margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-content p { font-size: 0.8rem; color: #64748b; margin-bottom: 0.3rem; line-height: 1.45; }
.notif-content small { font-size: 0.73rem; color: #94a3b8; }

.no-notifications { padding: 3rem 1.5rem; text-align: center; color: #94a3b8; }
.no-notifications .empty-icon { font-size: 3.5rem; display: block; margin-bottom: 0.75rem; opacity: 0.6; }
.no-notifications p { font-size: 0.9rem; font-weight: 500; }

.notifications-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}
.notifications-footer a { color: #10b981; text-decoration: none; font-weight: 700; font-size: 0.88rem; }
.notifications-footer a:hover { color: #059669; text-decoration: underline; }

/* ===== USER MENU ===== */
.user-menu { position: relative; }

.user-avatar {
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 2px solid var(--border);
    cursor: pointer;
    background: none;
    overflow: hidden;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.user-avatar:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 12px); right: 0;
    width: 230px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.05);
    display: none;
    z-index: 9999;
    overflow: hidden;
}
.user-menu-dropdown.active { display: block; animation: dropIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both; }

.user-info {
    padding: 1.25rem;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-bottom: 1px solid #d1fae5;
}
.user-info strong { display: block; font-weight: 700; color: #0f172a; font-size: 0.95rem; }
.user-info small { color: #64748b; font-size: 0.8rem; }

.user-menu-dropdown a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: #374151; text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    transition: var(--transition);
}
.user-menu-dropdown a:hover { background: #f8fafc; color: var(--primary); padding-left: 1.5rem; }
.user-menu-dropdown hr { border: none; border-top: 1px solid #f1f5f9; }

/* ===== SIDEBAR ===== */
.dashboard-sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid var(--border);
    height: calc(100vh - 70px);
    position: fixed;
    left: 0; top: 70px;
    overflow-y: auto;
    z-index: 900;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 20px rgba(0,0,0,0.04);
}

.sidebar-nav { padding: 1.25rem 0; display: flex; flex-direction: column; flex: 1; }

.sidebar-section-label {
    padding: 0.75rem 1.5rem 0.4rem;
    font-size: 0.68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #94a3b8; margin-top: 0.5rem;
}

.sidebar-link {
    display: flex; flex-direction: row; align-items: center;
    gap: 0.9rem; padding: 0.85rem 1.5rem;
    color: #64748b; text-decoration: none;
    transition: var(--transition);
    position: relative; font-size: 0.9rem; font-weight: 500;
    white-space: nowrap;
}
.sidebar-link .icon { font-size: 1.2rem; min-width: 22px; text-align: center; transition: transform 0.3s; }
.sidebar-link:hover { background: linear-gradient(90deg, #f0fdf4, transparent); color: #10b981; padding-left: 1.75rem; }
.sidebar-link:hover .icon { transform: scale(1.1); }
.sidebar-link.active { background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%); color: #059669; font-weight: 700; }
.sidebar-link.active::after {
    content: ''; position: absolute; right: 0; top: 20%; bottom: 20%;
    width: 3px; background: linear-gradient(180deg, #10b981, #059669);
    border-radius: 3px 0 0 3px;
}
.sidebar-badge {
    margin-left: auto;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white; font-size: 0.65rem; font-weight: 800;
    padding: 0.15rem 0.5rem; border-radius: 50px;
    min-width: 18px; text-align: center;
}
.sidebar-divider { margin: 0.75rem 1.5rem; border: none; border-top: 1px solid #f1f5f9; }

/* ===== MAIN CONTENT ===== */
.dashboard-container { display: flex; min-height: 100vh; padding-top: 70px; }
.dashboard-main { flex: 1; margin-left: 260px; padding: 2rem 2.5rem; min-height: calc(100vh - 70px); }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-bottom: 1.75rem; }

.stat-card {
    background: white; border-radius: 20px; padding: 1.75rem;
    border: 1px solid #f1f5f9; position: relative; overflow: hidden;
    transition: var(--transition); animation: fadeInUp 0.5s ease-out; animation-fill-mode: backwards;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--card-gradient, linear-gradient(90deg,#10b981,#059669));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInDown { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: translateY(0); } }

.stat-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin-bottom: 1.1rem; background: var(--icon-bg, #ecfdf5); }
.stat-value { font-size: 2.1rem; font-weight: 900; color: #1f2937; margin-bottom: 0.25rem; letter-spacing: -0.5px; }
.stat-label { color: #6b7280; font-size: 0.9rem; font-weight: 500; }
.stat-change { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.5rem; padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; }
.stat-change.positive { background: #d1fae5; color: #065f46; }
.stat-change.neutral { background: #fef3c7; color: #92400e; }

/* ===== CARD ===== */
.card { background: white; border-radius: 20px; border: 1px solid #f1f5f9; box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-md); }
.card-header { padding: 1.5rem; border-bottom: 1px solid #f8fafc; display: flex; justify-content: space-between; align-items: center; }
.card-header h2 { font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.card-body { padding: 1.5rem; }
.btn-link { color: #10b981; text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.btn-link:hover { color: #059669; text-decoration: underline; }

/* ===== GAMIFICATION POPUP ===== */
.gamify-popup-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 10000; display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; animation: overlayIn 0.3s ease;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.gamify-popup {
    background: white; border-radius: 28px; padding: 2.5rem;
    max-width: 460px; width: 100%; text-align: center;
    position: relative; overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.25);
    animation: popupIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes popupIn { from { opacity: 0; transform: scale(0.6) translateY(40px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.gamify-popup::before {
    content: ''; position: absolute; top: -80px; left: 50%;
    transform: translateX(-50%); width: 220px; height: 220px;
    background: radial-gradient(circle, var(--popup-color, #10b981) 0%, transparent 70%);
    opacity: 0.12;
}
.popup-icon { font-size: 5rem; margin-bottom: 1rem; display: block; animation: iconBounce 0.6s 0.3s cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes iconBounce { from { transform: scale(0) rotate(-20deg); } to { transform: scale(1) rotate(0deg); } }
.popup-title { font-size: 1.75rem; font-weight: 900; color: #0f172a; margin-bottom: 0.5rem; }
.popup-subtitle { color: #64748b; font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.6; }
.popup-xp-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white; padding: 0.6rem 1.5rem; border-radius: 50px;
    font-weight: 800; font-size: 1.1rem; margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(16,185,129,0.35);
    animation: xpPulse 1s 0.5s ease-in-out infinite alternate;
}
@keyframes xpPulse { from { transform: scale(1); } to { transform: scale(1.04); box-shadow: 0 12px 28px rgba(16,185,129,0.5); } }
.popup-btn {
    background: linear-gradient(135deg, var(--popup-color, #10b981), #059669);
    color: white; border: none; padding: 1rem 2.5rem;
    border-radius: 50px; font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: var(--transition); width: 100%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.popup-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.25); }

/* ===== TOAST ===== */
.toast-container { position: fixed; top: 80px; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast {
    background: white; border-radius: 14px; padding: 1rem 1.25rem;
    display: flex; align-items: center; gap: 0.75rem;
    min-width: 280px; max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-left: 4px solid var(--toast-color, #10b981);
    animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
    pointer-events: all;
}
.toast.removing { animation: toastOut 0.3s ease-in forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(0.9); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px) scale(0.8); } }
.toast-icon { font-size: 1.4rem; flex-shrink: 0; }
.toast-title { font-weight: 700; font-size: 0.9rem; color: #0f172a; margin-bottom: 0.1rem; }
.toast-msg { font-size: 0.8rem; color: #64748b; }
.toast.success { --toast-color: #10b981; }
.toast.error { --toast-color: #ef4444; }
.toast.warning { --toast-color: #f59e0b; }
.toast.info { --toast-color: #6366f1; }

/* ===== PROGRESS ===== */
.progress-card { background: white; border-radius: 20px; padding: 1.75rem; margin-bottom: 1.75rem; border: 1px solid #f1f5f9; animation: fadeInUp 0.5s 0.25s ease-out backwards; }
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.progress-header h2 { font-size: 1.1rem; font-weight: 700; }
.xp-display { background: linear-gradient(135deg, #10b981, #059669); color: white; padding: 0.45rem 1.25rem; border-radius: 50px; font-weight: 700; font-size: 0.88rem; box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.level-progress-bar { background: #f1f5f9; height: 14px; border-radius: 50px; overflow: hidden; margin-bottom: 0.75rem; }
.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669, #34d399);
    background-size: 200% 100%;
    border-radius: 50px;
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
    animation: gradientFlow 3s ease-in-out infinite;
    position: relative;
}
@keyframes gradientFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.level-progress-fill::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); animation: shimmer 2s infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.progress-labels { display: flex; justify-content: space-between; font-size: 0.82rem; color: #6b7280; font-weight: 500; }

/* ===== QUICK ACTIONS ===== */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.action-btn {
    background: white; border: 2px solid #f1f5f9; border-radius: 18px;
    padding: 1.4rem; text-align: center; text-decoration: none;
    color: #1f2937; transition: var(--transition); font-weight: 600;
    display: block; position: relative; overflow: hidden;
}
.action-btn:hover { border-color: var(--btn-color, #10b981); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); color: var(--btn-color, #059669); }
.action-btn-icon { font-size: 2.2rem; display: block; margin-bottom: 0.6rem; transition: transform 0.3s; }
.action-btn:hover .action-btn-icon { transform: scale(1.15) rotate(5deg); }

/* ===== TABLES ===== */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { text-align: left; padding: 0.85rem 1.25rem; background: #f8fafc; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; border-bottom: 1px solid #f1f5f9; }
.data-table td { padding: 1rem 1.25rem; border-bottom: 1px solid #f8fafc; color: #374151; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbfc; }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.28rem 0.75rem; border-radius: 50px; font-size: 0.78rem; font-weight: 700; }
.badge-approved, .badge-active { background: #d1fae5; color: #065f46; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0e7ff; color: #3730a3; }

/* ===== BUTTONS ===== */
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, #10b981, #059669); color: white; padding: 0.7rem 1.4rem; border-radius: 10px; font-weight: 700; font-size: 0.9rem; text-decoration: none; border: none; cursor: pointer; transition: var(--transition); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,185,129,0.4); }
.btn-primary.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.5rem; background: white; color: #374151; padding: 0.7rem 1.4rem; border-radius: 10px; font-weight: 600; font-size: 0.9rem; text-decoration: none; border: 2px solid #e5e7eb; cursor: pointer; transition: var(--transition); }
.btn-secondary:hover { border-color: #10b981; color: #10b981; transform: translateY(-1px); }

/* ===== WELCOME ===== */
.welcome-section {
    background: linear-gradient(135deg, #10b981 0%, #059669 60%, #047857 100%);
    border-radius: 24px; padding: 2.25rem; margin-bottom: 1.75rem;
    color: white; position: relative; overflow: hidden;
    box-shadow: 0 20px 40px rgba(16,185,129,0.25);
    animation: slideInDown 0.6s ease-out;
}
.welcome-section::before { content: ''; position: absolute; top: -60px; right: -60px; width: 250px; height: 250px; background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%); border-radius: 50%; }
.welcome-section::after { content: ''; position: absolute; bottom: -40px; left: -20px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%); border-radius: 50%; }
.welcome-content { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.welcome-text h1 { font-size: 2rem; font-weight: 900; margin-bottom: 0.3rem; text-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.welcome-text p { opacity: 0.9; font-size: 1rem; }
.level-badge { background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0.85rem 1.75rem; border-radius: 50px; display: flex; align-items: center; gap: 0.75rem; font-size: 1.15rem; font-weight: 800; border: 2px solid rgba(255,255,255,0.3); }

/* ===== ANIMATIONS ===== */
.animate-up { animation: fadeInUp 0.5s ease-out backwards; }
.animate-up-1 { animation: fadeInUp 0.5s 0.1s ease-out backwards; }
.animate-up-2 { animation: fadeInUp 0.5s 0.2s ease-out backwards; }
.animate-up-3 { animation: fadeInUp 0.5s 0.3s ease-out backwards; }
.animate-up-4 { animation: fadeInUp 0.5s 0.4s ease-out backwards; }

/* ===== ACTIVITY ===== */
.activity-list { display: flex; flex-direction: column; gap: 0; }
.activity-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #f8fafc; align-items: flex-start; }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 38px; height: 38px; background: linear-gradient(135deg, #f0fdf4, #ecfdf5); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.activity-content p { font-size: 0.88rem; color: #374151; line-height: 1.5; margin-bottom: 0.2rem; }
.activity-content small { font-size: 0.75rem; color: #94a3b8; }
.text-muted { color: #94a3b8; }

/* ===== SETTINGS LIST ===== */
.settings-list { display: flex; flex-direction: column; gap: 0; }
.setting-item { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid #f8fafc; font-size: 0.9rem; color: #374151; }
.setting-item:last-child { border-bottom: none; }

/* ===== CARDS GRID ===== */
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.75rem; }
@media (max-width: 1200px) { .cards-grid { grid-template-columns: 1fr; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .dashboard-main { margin-left: 0; padding: 1.25rem; }
    .dashboard-sidebar { transform: translateX(-100%); transition: transform 0.35s; }
    .dashboard-sidebar.mobile-open { transform: translateX(0); box-shadow: 10px 0 40px rgba(0,0,0,0.2); }
    .welcome-text h1 { font-size: 1.5rem; }
    .welcome-content { flex-direction: column; }
    .notifications-panel { width: 320px; right: -60px; }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .cards-grid { grid-template-columns: 1fr; }
}

/* ===== FANCY TOAST NOTIFICATIONS ===== */
.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 99999; display: flex; flex-direction: column; gap: 0.75rem; pointer-events: none; }
.toast { background: white; border-radius: 14px; padding: 1rem 1.5rem; box-shadow: 0 8px 32px rgba(0,0,0,0.12); display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; font-weight: 600; color: #0f172a; min-width: 280px; max-width: 380px; pointer-events: all; border-left: 4px solid #008751; animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.toast.toast-success { border-color: #008751; }
.toast.toast-error   { border-color: #ef4444; }
.toast.toast-info    { border-color: #0ea5e9; }
.toast.toast-warning { border-color: #f59e0b; }
.toast.removing { animation: toastOut 0.3s ease-in forwards; }
@keyframes toastIn  { from { opacity:0; transform:translateX(100px) scale(0.9); } to { opacity:1; transform:translateX(0) scale(1); } }
@keyframes toastOut { from { opacity:1; transform:translateX(0); }               to { opacity:0; transform:translateX(100px); } }

/* ===== PULSING UNREAD BADGE ===== */
.notification-badge { animation: badgePulse 2s infinite; }
@keyframes badgePulse { 0%,100% { transform:scale(1); box-shadow:0 0 0 0 rgba(239,68,68,0.4); } 50% { transform:scale(1.1); box-shadow:0 0 0 6px rgba(239,68,68,0); } }

/* ===== RIPPLE ON BUTTONS ===== */
.btn-ripple { position: relative; overflow: hidden; }
.btn-ripple::after { content:''; position:absolute; border-radius:50%; background:rgba(255,255,255,0.35); transform:scale(0); animation:ripple 0.6s linear; pointer-events:none; }
@keyframes ripple { to { transform:scale(4); opacity:0; } }

/* ===== GLASS CARD EFFECT ===== */
.glass-card { background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.6); }

/* ===== GRADIENT TEXT ===== */
.gradient-text { background: linear-gradient(135deg, #008751, #4f46e5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== SHIMMER LOADING ===== */
.shimmer { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }

/* ===== HOVER LIFT EFFECT ===== */
.hover-lift { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }

/* ===== ONLINE INDICATOR DOT ===== */
.online-dot { width: 10px; height: 10px; background: #22c55e; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); animation: onlinePulse 2s infinite; }
@keyframes onlinePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }

/* ===== EARNING COUNTER ANIMATION ===== */
.counter-animate { transition: transform 0.3s, color 0.3s; }
.counter-animate.updating { transform: scale(1.15); color: #008751; }

/* ============================================
   BlinkHustle — Fancy Enhancements v4.0
   ============================================ */

/* Floating particles background for hero cards */
@keyframes float-up {
    0%   { transform: translateY(0) scale(1); opacity: 0.7; }
    100% { transform: translateY(-60px) scale(0.5); opacity: 0; }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

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

@keyframes bounce-in {
    0%   { transform: scale(0.3); opacity: 0; }
    50%  { transform: scale(1.05); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-up-fade {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Shimmer loader for balance amounts */
.shimmer-text {
    background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.6) 50%, transparent 75%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    animation: shimmer 2s linear infinite;
}

/* Glowing stat cards */
.stat-card-glow {
    position: relative;
    overflow: hidden;
}
.stat-card-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #008751, #10b981, #34d399, #10b981, #008751);
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    animation: gradient-rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}
.stat-card-glow:hover::before { opacity: 1; }

@keyframes gradient-rotate {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Fancy balance hero - used in wallet/dashboard */
.balance-hero-fancy {
    background: linear-gradient(135deg, #0a0a1a 0%, #0f2027 40%, #203a43 70%, #2c5364 100%);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    color: white;
}
.balance-hero-fancy::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(16,185,129,0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(99,102,241,0.1) 0%, transparent 40%);
    pointer-events: none;
}
.balance-hero-fancy .orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(16,185,129,0.08);
    animation: float-orb 6s ease-in-out infinite;
}
@keyframes float-orb {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-15px) scale(1.05); }
}

/* Notification badge pulse */
.notif-badge-pulse {
    position: relative;
}
.notif-badge-pulse::after {
    content: '';
    position: absolute;
    top: -2px; right: -2px;
    width: 10px; height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-ring 1.5s ease-out infinite;
}

/* Card hover lift effect - enhanced */
.card-lift {
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.card-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(16,185,129,0.1);
}

/* Earnings counter animation */
.earnings-counter {
    font-variant-numeric: tabular-nums;
    transition: all 0.4s ease;
}

/* Task card fancy hover */
.task-item-fancy {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.task-item-fancy::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #008751, #10b981);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 4px 0 0 4px;
}
.task-item-fancy:hover::before { transform: scaleY(1); }
.task-item-fancy:hover {
    border-color: rgba(16,185,129,0.3);
    box-shadow: 0 8px 30px rgba(16,185,129,0.1);
    transform: translateX(4px);
}

/* Progress bar animated */
.progress-bar-animated {
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}
.progress-bar-animated .fill {
    height: 100%;
    background: linear-gradient(90deg, #008751, #10b981, #34d399);
    background-size: 200% 100%;
    border-radius: 99px;
    animation: shimmer 2s linear infinite;
    transition: width 1s cubic-bezier(0.34,1.56,0.64,1);
}

/* Live indicator dot */
.live-dot {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 700;
    color: #10b981;
}
.live-dot::before {
    content: '';
    width: 8px; height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-ring 1.5s ease-out infinite;
}

/* Toast notification style */
.toast-fancy {
    position: fixed;
    bottom: 2rem; right: 2rem;
    background: #0f172a;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: .88rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: .75rem;
    z-index: 9999;
    animation: slide-up-fade .4s ease;
    border-left: 4px solid #10b981;
    max-width: 360px;
}

/* Glassmorphism card */
.glass-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

/* Fancy empty state */
.empty-state-fancy {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-state-fancy .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce-in .6s cubic-bezier(0.34,1.56,0.64,1);
    display: block;
}
.empty-state-fancy h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: .5rem;
}
.empty-state-fancy p {
    color: #94a3b8;
    font-size: .88rem;
    max-width: 280px;
    margin: 0 auto 1.5rem;
}

/* Number animation utility */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-count { animation: count-up .5s ease forwards; }

/* Section fade-in */
.fade-section {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stat highlight ring */
.stat-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.stat-ring::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(16,185,129,0.3);
    animation: spin-slow 20s linear infinite;
}

