        .badge-new { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; font-size: 0.65rem; font-weight: 600; padding: 2px 6px; border-radius: 12px; margin-left: 6px; vertical-align: middle; letter-spacing: 0.3px; }
        .badge-hot { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; font-size: 0.65rem; font-weight: 600; padding: 2px 6px; border-radius: 12px; margin-left: 6px; vertical-align: middle; letter-spacing: 0.3px; }
        .badge-popular { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; font-size: 0.65rem; font-weight: 600; padding: 2px 6px; border-radius: 12px; margin-left: 6px; vertical-align: middle; letter-spacing: 0.3px; }
        
        /* Tool count badge */
        .tool-count-badge {
            background: linear-gradient(135deg, #2563eb, #1e40af);
            color: white;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 20px;
            margin-left: 10px;
            display: inline-block;
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
            100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
        }
        
        .nav-dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: #ffffff;
            min-width: 280px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            border-radius: 12px;
            padding: 15px 0;
            z-index: 1000;
            border: 1px solid #e2e8f0;
            border-top: 4px solid #2563eb;
            backdrop-filter: blur(10px);
        }
        .dropdown-parent:hover .nav-dropdown-menu { 
            display: block; 
            animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .dropdown-item { 
            display: flex; 
            align-items: center; 
            justify-content: space-between;
            padding: 12px 20px; 
            color: #334155; 
            text-decoration: none; 
            font-size: 0.95rem; 
            font-weight: 500;
            border-bottom: 1px solid #f1f5f9; 
            transition: all 0.2s ease;
        }
        .dropdown-item:hover { 
            background: linear-gradient(90deg, #f8fafc, #ffffff); 
            color: #2563eb; 
            padding-left: 25px; 
            transform: translateX(5px);
        }
        .dropdown-item i { 
            width: 25px; 
            color: #64748b; 
            font-size: 1rem;
        }
        .dropdown-item:hover i { 
            color: #2563eb;
        }
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Tool Category Labels */
        .tool-category {
            display: inline-block;
            font-size: 0.7rem;
            color: #2563eb;
            background: #dbeafe;
            padding: 2px 8px;
            border-radius: 10px;
            margin-left: 8px;
            font-weight: 600;
        }
        
        /* Enhanced Search */
        .search-container {
            position: relative;
        }
        .search-input {
            width: 300px;
            padding: 12px 45px 12px 20px;
            border: 2px solid #e2e8f0;
            border-radius: 25px;
            font-size: 0.95rem;
            transition: all 0.3s;
        }
        .search-input:focus {
            width: 400px;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }
        
        /* Trust Badges */
        .trust-badge {
            display: inline-flex;
            align-items: center;
            margin-left: 15px;
            font-size: 0.8rem;
            color: #059669;
            font-weight: 600;
        }
        .trust-badge i {
            margin-right: 5px;
        }
        
        /* ========== USER DASHBOARD STYLES ========== */
        .user-dashboard {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 16px;
            padding: 25px;
            margin: 30px auto;
            max-width: 1200px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            display: none;
        }
        
        .dashboard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .user-welcome h2 {
            margin: 0;
            font-size: 1.8rem;
            color: white;
        }
        
        .user-welcome p {
            margin: 5px 0 0 0;
            opacity: 0.9;
            font-size: 1rem;
        }
        
        .dashboard-status {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(255, 255, 255, 0.1);
            padding: 8px 16px;
            border-radius: 20px;
            backdrop-filter: blur(10px);
        }
        
        .status-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #10b981;
            animation: pulse 2s infinite;
        }
        
        .status-indicator.online {
            background: #10b981;
        }
        
        .user-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }
        
        .stat-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: transform 0.3s;
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
        }
        
        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            display: block;
            margin-bottom: 5px;
        }
        
        .stat-label {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
        .dashboard-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .dashboard-btn {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 10px 20px;
            border-radius: 8px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        .dashboard-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        /* User Profile in Navbar */
        .user-profile-dropdown {
            position: relative;
            display: none;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            border: 2px solid white;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
            transition: all 0.3s;
        }
        
        .user-avatar:hover {
            transform: scale(1.05);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.4);
        }
        
        .user-dropdown-menu {
            position: absolute;
            top: 120%;
            right: 0;
            background: white;
            min-width: 220px;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            z-index: 1000;
            display: none;
            border: 1px solid #e2e8f0;
            overflow: hidden;
        }
        
        .user-profile-dropdown:hover .user-dropdown-menu {
            display: block;
            animation: slideDown 0.3s ease;
        }
        
        .user-dropdown-item {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            color: #334155;
            text-decoration: none;
            border-bottom: 1px solid #f1f5f9;
            transition: all 0.2s;
            font-size: 0.9rem;
        }
        
        .user-dropdown-item:last-child {
            border-bottom: none;
        }
        
        .user-dropdown-item:hover {
            background: #f8fafc;
            color: #2563eb;
            padding-left: 25px;
        }
        
        .user-dropdown-item i {
            width: 20px;
            margin-right: 10px;
            color: #64748b;
            font-size: 0.9rem;
        }
        
        .user-dropdown-item:hover i {
            color: #2563eb;
        }
        
        #loginHoursDisplay {
            color: #64748b;
            cursor: default;
            background: #f8fafc;
            font-size: 0.8rem;
        }
        
        #loginHoursDisplay:hover {
            background: #f8fafc;
            color: #64748b;
            padding-left: 20px;
        }
        
        /* Mobile User Menu */
        .mobile-user-menu {
            display: none;
        }
        
        @media (max-width: 768px) {
            .user-stats {
                grid-template-columns: 1fr;
            }
            
            .dashboard-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
            
            .dashboard-actions {
                justify-content: center;
            }
            
            .dashboard-btn {
                flex: 1;
                justify-content: center;
                text-align: center;
            }
            
            .user-dropdown-menu {
                position: fixed;
                top: auto;
                bottom: 0;
                left: 0;
                right: 0;
                width: 100%;
                border-radius: 20px 20px 0 0;
                display: none;
                z-index: 9999;
            }
            
            .user-profile-dropdown:hover .user-dropdown-menu {
                display: none;
            }
            
            .user-dropdown-menu.show-mobile {
                display: block;
                animation: slideUp 0.3s ease;
            }
            
            @keyframes slideUp {
                from { transform: translateY(100%); }
                to { transform: translateY(0); }
            }
        }
        
        /* Settings Modal */
        .settings-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }
        
        .settings-content {
            background: white;
            border-radius: 16px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }
        
        .settings-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .settings-header h3 {
            margin: 0;
            color: #1e293b;
        }
        
        .close-settings {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #64748b;
            cursor: pointer;
            padding: 5px;
        }
        
        .settings-group {
            margin-bottom: 20px;
        }
        
        .settings-label {
            display: block;
            margin-bottom: 8px;
            color: #334155;
            font-weight: 500;
        }
        
        .settings-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            font-size: 0.95rem;
        }
        
        .settings-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }
